diff --git a/docs.wrm/README.md b/docs.wrm/README.md new file mode 100644 index 000000000..64b29053a --- /dev/null +++ b/docs.wrm/README.md @@ -0,0 +1,16 @@ +Documentation +============= + +These docs are built using [Flatworm Docs](https://github.com/ricmoo/flatworm). + +The output is placed in [docs](../docs) and generates both HTML and Markdown +files. + + +Building +-------- + +``` +/home/ricmoo/ethers.js> npm run build-docs +``` + diff --git a/docs.wrm/api/providers/provider.wrm b/docs.wrm/api/providers/provider.wrm index 981edffb5..a2b1dd131 100644 --- a/docs.wrm/api/providers/provider.wrm +++ b/docs.wrm/api/providers/provider.wrm @@ -137,5 +137,5 @@ Returns the list of Listeners for //eventName//. _subsection: Inspection Methods _property: Provider.isProvider(object) => boolean -Returns true if and only if object is a Provider. +Returns true if and only if //object// is a Provider. diff --git a/docs.wrm/config.json b/docs.wrm/config.json new file mode 100644 index 000000000..c44f8b1aa --- /dev/null +++ b/docs.wrm/config.json @@ -0,0 +1,9 @@ +{ + "title": "ethers", + "subtitle": "v5.0-beta", + "logo": "logo.svg", + "link": "https://docs-beta.ethers.io", + "markdown": { + "banner": "-----\n\nDocumentation: [html](https://docs-beta.ethers.io/)\n\n-----\n\n" + } +} diff --git a/docs.wrm/logo.svg b/docs.wrm/logo.svg new file mode 100644 index 000000000..bac18e568 --- /dev/null +++ b/docs.wrm/logo.svg @@ -0,0 +1,12 @@ + + + + + + diff --git a/docs/README.md b/docs/README.md index 37fe1bb4a..6bc5c4694 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,9 +1,10 @@ ----- -test +Documentation: [html](https://docs-beta.ethers.io/) ----- + What is ethers? =============== @@ -140,4 +141,4 @@ older versions of the library. ----- -**Content Hash:** 488687b8320fc7da1517bdf2b1ac582250593622aca6b0b3244f61fc14973e42 +**Content Hash:** 6abeb4fa3f15b3443d89a26a6b0320f602a12368bc5ebbfb14a6cce682836167 \ No newline at end of file diff --git a/docs/api/README.md b/docs/api/README.md index cb03aa068..dd54277aa 100644 --- a/docs/api/README.md +++ b/docs/api/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Application Programming Interface (API) ======================================= @@ -74,4 +80,4 @@ Here... ----- -**Content Hash:** 3b51f44082b56d5b7fd9be77c92e6871df8642a3307b24d478ee625dbe1d8585 \ No newline at end of file +**Content Hash:** cbd0b8ac4ada4bfee211c0553ac53e171a6900127d874743a0dedf7fa30618f3 \ No newline at end of file diff --git a/docs/api/contract/README.md b/docs/api/contract/README.md index 0fa29ad5e..8c91d1ffe 100644 --- a/docs/api/contract/README.md +++ b/docs/api/contract/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Contracts @@ -14,4 +20,4 @@ Buckets ----- -**Content Hash:** c703f8cc79e5372fb818572209c72eaa54c68385c2021e6fc412594379d834e0 \ No newline at end of file +**Content Hash:** 190c93691014eae64ffcb66549f127aa73f4645fc7a4b3a2be9ae00216c79cf6 \ No newline at end of file diff --git a/docs/api/contract/index.html b/docs/api/contract/index.html index 00b794daa..316431dc4 100644 --- a/docs/api/contract/index.html +++ b/docs/api/contract/index.html @@ -1,6 +1,6 @@ -Contracts
+Contracts

Contracts

Explain what contracts are...

Buckets

-
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/api/index.html b/docs/api/index.html index 2be9799c9..567b657b2 100644 --- a/docs/api/index.html +++ b/docs/api/index.html @@ -1,4 +1,4 @@ -Application Programming Interface
+Application Programming Interface

Application Programming Interface (API)

Here...

-
\ No newline at end of file +
Contracts
Buckets
Signers
Signer
Wallet inherits Signer
Providers
Provider
Accounts Methods
Blocks Methods
Ethereum Naming Service (ENS) Methods
Logs Methods
Network Status Methods
Transactions Methods
Event Emitter Methods
Inspection Methods
JSON-RPC Provider
JsonRpcProvider
JsonRpcSigner
JsonRpcUncheckedSigner
API Providers
EtherscanProvider
InfuraProvider
NodesmithProvider
AlchemyProvider
Other Providers
FallbackProvider
IpcProvider
Types
Blocks
Events and Logs
Transactions
Utilities
Addresses
BigNumber
Types
Creating Instances
Methods
Notes
Byte Manipulation
Types
Inspection
Converting between Arrays and Hexstrings
Array Manipulation
Hexstring Manipulation
Signature Conversion
Constants
Bytes
Strings
BigNumber
Display Logic and Input
Units
Functions
FixedNumber
Types
Creating Instances
Properties
Methods
Hashing Algorithms
Cryptographic Hashing
Common Hashing Helpers
Solidity Hashing Algorithms
Strings
Bytes32String
UTF-8 Strings
\ No newline at end of file diff --git a/docs/api/providers/README.md b/docs/api/providers/README.md index 0b583640d..54a26ab71 100644 --- a/docs/api/providers/README.md +++ b/docs/api/providers/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Providers ========= @@ -78,4 +84,4 @@ Provider Documentation ----- -**Content Hash:** 7c81bceed28adc2b3e892a999c49c14f0d63d29be28d44587c6c2bc63ecd0204 \ No newline at end of file +**Content Hash:** b15d8a2febb07abbbd784242c47575fbbb097f24643997ce30625c2e88adb095 \ No newline at end of file diff --git a/docs/api/providers/api-providers/README.md b/docs/api/providers/api-providers/README.md index 4a9ca9207..ad627d0eb 100644 --- a/docs/api/providers/api-providers/README.md +++ b/docs/api/providers/api-providers/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + API Providers ============= @@ -44,4 +50,4 @@ Tra la la... ----- -**Content Hash:** cc4a4f172bf2c52a4c2876b44408d293e57ff92b1607ece82192adada290b93a \ No newline at end of file +**Content Hash:** 9669eaaa1c2e9a31256fdd49e1b7f79550f064056b1bfd67a8cef6c7b5f8d473 \ No newline at end of file diff --git a/docs/api/providers/api-providers/index.html b/docs/api/providers/api-providers/index.html index 97f664d8a..487f82245 100644 --- a/docs/api/providers/api-providers/index.html +++ b/docs/api/providers/api-providers/index.html @@ -1,4 +1,4 @@ -API Providers
+API Providers

API Providers

There are many services which offer a web API for accessing the Ethereum Blockchain. These Providers allow connecting to them, which simplifies development, since you do not need to run your own instance or cluster of Ethereum nodes.

However, this reliance on third-party services can reduce resiliance, security and increase the amount of required trust. To mitigate these issues, it is recommended you use a Default Provider.

EtherscanProvider

@@ -8,4 +8,4 @@

NodesmithProvider

Tra la la...

AlchemyProvider

-

Tra la la...

\ No newline at end of file +

Tra la la...

\ No newline at end of file diff --git a/docs/api/providers/index.html b/docs/api/providers/index.html index f1e6a7d09..1cdb56120 100644 --- a/docs/api/providers/index.html +++ b/docs/api/providers/index.html @@ -1,4 +1,4 @@ -Providers
+Providers

Providers

A Provider is an abstraction of a connection to the Ethereum network, providing a concise, consistent interface to standard Ethereum node functionality.

The ethers.js library provides several options which should cover the vast majority of use-cases, but also includes the necessary functions and classes for sub-classing if a more custom configuration is necessary.

Most users should be able to simply use the Default Provider.

Default Provider

@@ -6,4 +6,4 @@
ethers . getDefaultProvider ( [ network ] ) Provider

Returns a new Provider, backed by multiple services, connected to network. Is no network is provided, homestead (i.e. mainnet) is used.

Provider Documentation

-
\ No newline at end of file +
Provider
Accounts Methods
Blocks Methods
Ethereum Naming Service (ENS) Methods
Logs Methods
Network Status Methods
Transactions Methods
Event Emitter Methods
Inspection Methods
JSON-RPC Provider
JsonRpcProvider
JsonRpcSigner
JsonRpcUncheckedSigner
API Providers
EtherscanProvider
InfuraProvider
NodesmithProvider
AlchemyProvider
Other Providers
FallbackProvider
IpcProvider
Types
Blocks
Events and Logs
Transactions
\ No newline at end of file diff --git a/docs/api/providers/jsonrpc-provider/README.md b/docs/api/providers/jsonrpc-provider/README.md index c8439045b..08147caf5 100644 --- a/docs/api/providers/jsonrpc-provider/README.md +++ b/docs/api/providers/jsonrpc-provider/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + JSON-RPC Provider ================= @@ -45,4 +51,4 @@ TODO... Explain ----- -**Content Hash:** 497729952599bd12a48198ea62e259c24bb3ec8de38d594f346695f34753a2c2 \ No newline at end of file +**Content Hash:** 09091214806fa2270a7425521fd948901355db2ec3406597fb5e29141b40639b \ No newline at end of file diff --git a/docs/api/providers/jsonrpc-provider/index.html b/docs/api/providers/jsonrpc-provider/index.html index fe01074a8..26c42e053 100644 --- a/docs/api/providers/jsonrpc-provider/index.html +++ b/docs/api/providers/jsonrpc-provider/index.html @@ -1,4 +1,4 @@ -JSON-RPC Provider
+JSON-RPC Provider

JSON-RPC Provider

Explain here...

JsonRpcProvider

@@ -8,4 +8,4 @@

JsonRpcSigner

TODO... Explain

JsonRpcUncheckedSigner

-

TODO... Explain

\ No newline at end of file +

TODO... Explain

\ No newline at end of file diff --git a/docs/api/providers/other/README.md b/docs/api/providers/other/README.md index c830a7cb1..b01ae540f 100644 --- a/docs/api/providers/other/README.md +++ b/docs/api/providers/other/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Other Providers =============== @@ -48,4 +54,4 @@ Explain... ----- -**Content Hash:** 5718f5431014c04862ff69aa2ff77548301446272c4ad92724b443850c10a117 \ No newline at end of file +**Content Hash:** c950a8710b679e9061aa834f8b0366614dcb031270627249acb412813bb5ca94 \ No newline at end of file diff --git a/docs/api/providers/other/index.html b/docs/api/providers/other/index.html index e500e99ad..4107417d2 100644 --- a/docs/api/providers/other/index.html +++ b/docs/api/providers/other/index.html @@ -1,4 +1,4 @@ -Other Providers
+Other Providers

Other Providers

Others...

FallbackProvider

@@ -9,4 +9,4 @@
provider . quorum number

The quorum the backend responses must agree upon before a result will be resolved. By default this is half the sum of the weights.

provider . weights Array< number >

The weight each of the Providers adds to a results acceptance.

IpcProvider

-

Explain...

\ No newline at end of file +

Explain...

\ No newline at end of file diff --git a/docs/api/providers/provider/README.md b/docs/api/providers/provider/README.md index 18223f62f..d61b4dc28 100644 --- a/docs/api/providers/provider/README.md +++ b/docs/api/providers/provider/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Provider ======== @@ -49,19 +55,19 @@ sent to the network. ```javascript // Get the balance for an account... provider.getBalance("ricmoo.firefly.eth"); -// { Promise: { BigNumber: "3446592266910605872" } } +// { Promise: { BigNumber: "3446592266910605872" } } // Get the code for a contract... provider.getCode("registrar.firefly.eth"); -// { Promise: "0x606060405236156100885763ffffffff60e060020a60003504166369fe0e2d81146100fa578063704b6c021461010f57806379502c551461012d578063bed866f614610179578063c37067fa1461019e578063c66485b2146101ab578063d80528ae146101c9578063ddca3f43146101f7578063f2c298be14610219578063f3fef3a314610269575b6100f85b6000808052600760209081527f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df80543490810190915560408051918252517fdb7750418f9fa390aaf85d881770065aa4adbe46343bcff4ae573754c829d9af929181900390910190a25b565b005b341561010257fe5b6100f860043561028a565b005b341561011757fe5b6100f8600160a060020a03600435166102ec565b005b341561013557fe5b61013d610558565b60408051600160a060020a0396871681526020810195909552928516848401526060840191909152909216608082015290519081900360a00190f35b341561018157fe5b61018c600435610580565b60408051918252519081900360200190f35b6100f8600435610595565b005b34156101b357fe5b6100f8600160a060020a03600435166105e6565b005b34156101d157fe5b6101d9610676565b60408051938452602084019290925282820152519081900360600190f35b34156101ff57fe5b61018c61068d565b60408051918252519081900360200190f35b6100f8600480803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284375094965061069495505050505050565b005b341561027157fe5b6100f8600160a060020a0360043516602435610ab2565b005b60025433600160a060020a039081169116146102a65760006000fd5b600454604080519182526020820183905280517f854231545a00e13c316c82155f2b8610d638e9ff6ebc4930676f84a5af08a49a9281900390910190a160048190555b50565b60025433600160a060020a039081169116146103085760006000fd5b60025460408051600160a060020a039283168152918316602083015280517fbadc9a52979e89f78b7c58309537410c5e51d0f63a0a455efe8d61d2b474e6989281900390910190a16002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038381169190911790915560008054604080516020908101849052815160e060020a6302571be30281527f91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e26004820152915192909416936302571be39360248084019492938390030190829087803b15156103e957fe5b60325a03f115156103f657fe5b50505060405180519050600160a060020a0316631e83409a826000604051602001526040518263ffffffff1660e060020a0281526004018082600160a060020a0316600160a060020a03168152602001915050602060405180830381600087803b151561045f57fe5b60325a03f1151561046c57fe5b50506040805160008054600354602093840183905284517f0178b8bf00000000000000000000000000000000000000000000000000000000815260048101919091529351600160a060020a039091169450630178b8bf9360248082019493918390030190829087803b15156104dd57fe5b60325a03f115156104ea57fe5b505060408051805160035460025460e860020a62d5fa2b0284526004840191909152600160a060020a03908116602484015292519216925063d5fa2b0091604480830192600092919082900301818387803b151561054457fe5b60325a03f1151561055157fe5b5050505b50565b600054600354600254600454600154600160a060020a039485169492831692165b9091929394565b6000818152600760205260409020545b919050565b6000818152600760209081526040918290208054349081019091558251908152915183927fdb7750418f9fa390aaf85d881770065aa4adbe46343bcff4ae573754c829d9af92908290030190a25b50565b60025433600160a060020a039081169116146106025760006000fd5b60015460408051600160a060020a039283168152918316602083015280517f279875333405c968e401e3bc4e71d5f8e48728c90f4e8180ce28f74efb5669209281900390910190a16001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600654600554600160a060020a033016315b909192565b6004545b90565b80516001820190600080808060048510806106af5750601485115b156106ba5760006000fd5b600093505b8484101561072a57855160ff16925060618310806106e05750607a8360ff16115b80156106fc575060308360ff1610806106fc575060398360ff16115b5b801561070d57508260ff16602d14155b156107185760006000fd5b6001909501945b6001909301926106bf565b60045434101561073a5760006000fd5b866040518082805190602001908083835b6020831061076a5780518252601f19909201916020918201910161074b565b51815160209384036101000a60001901801990921691161790526040805192909401829003822060035483528282018190528451928390038501832060008054948401819052865160e060020a6302571be3028152600481018390529651929a509098509650600160a060020a0390921694506302571be393602480820194509192919082900301818787803b15156107ff57fe5b60325a03f1151561080c57fe5b505060405151600160a060020a031691909114905061082b5760006000fd5b60008054600354604080517f06ab5923000000000000000000000000000000000000000000000000000000008152600481019290925260248201869052600160a060020a03308116604484015290519216926306ab59239260648084019382900301818387803b151561089a57fe5b60325a03f115156108a757fe5b505060008054600154604080517f1896f70a00000000000000000000000000000000000000000000000000000000815260048101879052600160a060020a0392831660248201529051919092169350631896f70a9260448084019391929182900301818387803b151561091657fe5b60325a03f1151561092357fe5b50506001546040805160e860020a62d5fa2b02815260048101859052600160a060020a033381166024830152915191909216925063d5fa2b009160448082019260009290919082900301818387803b151561097a57fe5b60325a03f1151561098757fe5b505060008054604080517f5b0fc9c300000000000000000000000000000000000000000000000000000000815260048101869052600160a060020a0333811660248301529151919092169350635b0fc9c39260448084019391929182900301818387803b15156109f357fe5b60325a03f11515610a0057fe5b505060058054349081019091556006805460010190556000838152600760209081526040918290208054840190558151600160a060020a03331681529081019290925280518493507f179ef3319e6587f6efd3157b34c8b357141528074bcb03f9903589876168fa149281900390910190a260408051348152905182917fdb7750418f9fa390aaf85d881770065aa4adbe46343bcff4ae573754c829d9af919081900360200190a25b50505050505050565b60025433600160a060020a03908116911614610ace5760006000fd5b604051600160a060020a0383169082156108fc029083906000818181858888f193505050501515610aff5760006000fd5b60408051600160a060020a03841681526020810183905281517fac375770417e1cb46c89436efcf586a74d0298fee9838f66a38d40c65959ffda929181900390910190a15b50505600a165627a7a723058205c3628c01dc80233f51979d91a76cec2a25d84e86c9838d34672734ca2232b640029" } +// { Promise: "0x606060405236156100885763ffffffff60e060020a60003504166369fe0e2d81146100fa578063704b6c021461010f57806379502c551461012d578063bed866f614610179578063c37067fa1461019e578063c66485b2146101ab578063d80528ae146101c9578063ddca3f43146101f7578063f2c298be14610219578063f3fef3a314610269575b6100f85b6000808052600760209081527f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df80543490810190915560408051918252517fdb7750418f9fa390aaf85d881770065aa4adbe46343bcff4ae573754c829d9af929181900390910190a25b565b005b341561010257fe5b6100f860043561028a565b005b341561011757fe5b6100f8600160a060020a03600435166102ec565b005b341561013557fe5b61013d610558565b60408051600160a060020a0396871681526020810195909552928516848401526060840191909152909216608082015290519081900360a00190f35b341561018157fe5b61018c600435610580565b60408051918252519081900360200190f35b6100f8600435610595565b005b34156101b357fe5b6100f8600160a060020a03600435166105e6565b005b34156101d157fe5b6101d9610676565b60408051938452602084019290925282820152519081900360600190f35b34156101ff57fe5b61018c61068d565b60408051918252519081900360200190f35b6100f8600480803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284375094965061069495505050505050565b005b341561027157fe5b6100f8600160a060020a0360043516602435610ab2565b005b60025433600160a060020a039081169116146102a65760006000fd5b600454604080519182526020820183905280517f854231545a00e13c316c82155f2b8610d638e9ff6ebc4930676f84a5af08a49a9281900390910190a160048190555b50565b60025433600160a060020a039081169116146103085760006000fd5b60025460408051600160a060020a039283168152918316602083015280517fbadc9a52979e89f78b7c58309537410c5e51d0f63a0a455efe8d61d2b474e6989281900390910190a16002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038381169190911790915560008054604080516020908101849052815160e060020a6302571be30281527f91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e26004820152915192909416936302571be39360248084019492938390030190829087803b15156103e957fe5b60325a03f115156103f657fe5b50505060405180519050600160a060020a0316631e83409a826000604051602001526040518263ffffffff1660e060020a0281526004018082600160a060020a0316600160a060020a03168152602001915050602060405180830381600087803b151561045f57fe5b60325a03f1151561046c57fe5b50506040805160008054600354602093840183905284517f0178b8bf00000000000000000000000000000000000000000000000000000000815260048101919091529351600160a060020a039091169450630178b8bf9360248082019493918390030190829087803b15156104dd57fe5b60325a03f115156104ea57fe5b505060408051805160035460025460e860020a62d5fa2b0284526004840191909152600160a060020a03908116602484015292519216925063d5fa2b0091604480830192600092919082900301818387803b151561054457fe5b60325a03f1151561055157fe5b5050505b50565b600054600354600254600454600154600160a060020a039485169492831692165b9091929394565b6000818152600760205260409020545b919050565b6000818152600760209081526040918290208054349081019091558251908152915183927fdb7750418f9fa390aaf85d881770065aa4adbe46343bcff4ae573754c829d9af92908290030190a25b50565b60025433600160a060020a039081169116146106025760006000fd5b60015460408051600160a060020a039283168152918316602083015280517f279875333405c968e401e3bc4e71d5f8e48728c90f4e8180ce28f74efb5669209281900390910190a16001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600654600554600160a060020a033016315b909192565b6004545b90565b80516001820190600080808060048510806106af5750601485115b156106ba5760006000fd5b600093505b8484101561072a57855160ff16925060618310806106e05750607a8360ff16115b80156106fc575060308360ff1610806106fc575060398360ff16115b5b801561070d57508260ff16602d14155b156107185760006000fd5b6001909501945b6001909301926106bf565b60045434101561073a5760006000fd5b866040518082805190602001908083835b6020831061076a5780518252601f19909201916020918201910161074b565b51815160209384036101000a60001901801990921691161790526040805192909401829003822060035483528282018190528451928390038501832060008054948401819052865160e060020a6302571be3028152600481018390529651929a509098509650600160a060020a0390921694506302571be393602480820194509192919082900301818787803b15156107ff57fe5b60325a03f1151561080c57fe5b505060405151600160a060020a031691909114905061082b5760006000fd5b60008054600354604080517f06ab5923000000000000000000000000000000000000000000000000000000008152600481019290925260248201869052600160a060020a03308116604484015290519216926306ab59239260648084019382900301818387803b151561089a57fe5b60325a03f115156108a757fe5b505060008054600154604080517f1896f70a00000000000000000000000000000000000000000000000000000000815260048101879052600160a060020a0392831660248201529051919092169350631896f70a9260448084019391929182900301818387803b151561091657fe5b60325a03f1151561092357fe5b50506001546040805160e860020a62d5fa2b02815260048101859052600160a060020a033381166024830152915191909216925063d5fa2b009160448082019260009290919082900301818387803b151561097a57fe5b60325a03f1151561098757fe5b505060008054604080517f5b0fc9c300000000000000000000000000000000000000000000000000000000815260048101869052600160a060020a0333811660248301529151919092169350635b0fc9c39260448084019391929182900301818387803b15156109f357fe5b60325a03f11515610a0057fe5b505060058054349081019091556006805460010190556000838152600760209081526040918290208054840190558151600160a060020a03331681529081019290925280518493507f179ef3319e6587f6efd3157b34c8b357141528074bcb03f9903589876168fa149281900390910190a260408051348152905182917fdb7750418f9fa390aaf85d881770065aa4adbe46343bcff4ae573754c829d9af919081900360200190a25b50505050505050565b60025433600160a060020a03908116911614610ace5760006000fd5b604051600160a060020a0383169082156108fc029083906000818181858888f193505050501515610aff5760006000fd5b60408051600160a060020a03841681526020810183905281517fac375770417e1cb46c89436efcf586a74d0298fee9838f66a38d40c65959ffda929181900390910190a15b50505600a165627a7a723058205c3628c01dc80233f51979d91a76cec2a25d84e86c9838d34672734ca2232b640029" } // Get the storage value at position 0... provider.getStorageAt("registrar.firefly.eth", 0) -// { Promise: "0x000000000000000000000000314159265dd8dbb310642f98f50c066173c1259b" } +// { Promise: "0x000000000000000000000000314159265dd8dbb310642f98f50c066173c1259b" } // Get transaction count of an account... provider.getTransactionCount("ricmoo.firefly.eth"); -// { Promise: 531 } +// { Promise: 531 } ``` @@ -119,11 +125,11 @@ not have an address configured, `null` is returned. ```javascript // Reverse lookup of an ENS by address... provider.lookupAddress("0x6fC21092DA55B392b045eD78F4732bff3C580e2c"); -// { Promise: "registrar.firefly.eth" } +// { Promise: "registrar.firefly.eth" } // Lookup an address of an ENS name... provider.resolveName("ricmoo.firefly.eth"); -// { Promise: "0x8ba1f109551bD432803012645Ac136ddd64DBA72" } +// { Promise: "0x8ba1f109551bD432803012645Ac136ddd64DBA72" } ``` @@ -280,11 +286,11 @@ Inspection Methods #### *Provider* . **isProvider** ( object ) **=>** *boolean* -Returns true if and only if object is a Provider. +Returns true if and only if *object* is a Provider. ----- -**Content Hash:** 38e58d0fb1f03baf7411d8caa20a5d311d89ebc24c17ac5d42eba5c54d0e9a2e \ No newline at end of file +**Content Hash:** 3058ddf4bd47707a1887377afc48a0dffedfbfbebf06929a92274e266c9dc196 \ No newline at end of file diff --git a/docs/api/providers/provider/index.html b/docs/api/providers/provider/index.html index 3082df97d..300232a6d 100644 --- a/docs/api/providers/provider/index.html +++ b/docs/api/providers/provider/index.html @@ -1,4 +1,4 @@ -Abstract Provider
+Abstract Provider

Provider

Explain what a provider is...

Accounts Methods

@@ -9,7 +9,7 @@
provider . getTransactionCount ( address [ , blockTag = "latest" ] ) Promise< number >

Returns the number of transactions address has ever sent, as of blockTag. This value is required to be the nonce for the next transaction from address sent to the network.

Examples

-

// Get the balance for an account...
provider.getBalance("ricmoo.firefly.eth");
// { Promise: { BigNumber: "3446592266910605872" } }

// Get the code for a contract...
provider.getCode("registrar.firefly.eth");
// { Promise: "0x606060405236156100885763ffffffff60e060020a60003504166369fe0e2d81146100fa578063704b6c021461010f57806379502c551461012d578063bed866f614610179578063c37067fa1461019e578063c66485b2146101ab578063d80528ae146101c9578063ddca3f43146101f7578063f2c298be14610219578063f3fef3a314610269575b6100f85b6000808052600760209081527f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df80543490810190915560408051918252517fdb7750418f9fa390aaf85d881770065aa4adbe46343bcff4ae573754c829d9af929181900390910190a25b565b005b341561010257fe5b6100f860043561028a565b005b341561011757fe5b6100f8600160a060020a03600435166102ec565b005b341561013557fe5b61013d610558565b60408051600160a060020a0396871681526020810195909552928516848401526060840191909152909216608082015290519081900360a00190f35b341561018157fe5b61018c600435610580565b60408051918252519081900360200190f35b6100f8600435610595565b005b34156101b357fe5b6100f8600160a060020a03600435166105e6565b005b34156101d157fe5b6101d9610676565b60408051938452602084019290925282820152519081900360600190f35b34156101ff57fe5b61018c61068d565b60408051918252519081900360200190f35b6100f8600480803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284375094965061069495505050505050565b005b341561027157fe5b6100f8600160a060020a0360043516602435610ab2565b005b60025433600160a060020a039081169116146102a65760006000fd5b600454604080519182526020820183905280517f854231545a00e13c316c82155f2b8610d638e9ff6ebc4930676f84a5af08a49a9281900390910190a160048190555b50565b60025433600160a060020a039081169116146103085760006000fd5b60025460408051600160a060020a039283168152918316602083015280517fbadc9a52979e89f78b7c58309537410c5e51d0f63a0a455efe8d61d2b474e6989281900390910190a16002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038381169190911790915560008054604080516020908101849052815160e060020a6302571be30281527f91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e26004820152915192909416936302571be39360248084019492938390030190829087803b15156103e957fe5b60325a03f115156103f657fe5b50505060405180519050600160a060020a0316631e83409a826000604051602001526040518263ffffffff1660e060020a0281526004018082600160a060020a0316600160a060020a03168152602001915050602060405180830381600087803b151561045f57fe5b60325a03f1151561046c57fe5b50506040805160008054600354602093840183905284517f0178b8bf00000000000000000000000000000000000000000000000000000000815260048101919091529351600160a060020a039091169450630178b8bf9360248082019493918390030190829087803b15156104dd57fe5b60325a03f115156104ea57fe5b505060408051805160035460025460e860020a62d5fa2b0284526004840191909152600160a060020a03908116602484015292519216925063d5fa2b0091604480830192600092919082900301818387803b151561054457fe5b60325a03f1151561055157fe5b5050505b50565b600054600354600254600454600154600160a060020a039485169492831692165b9091929394565b6000818152600760205260409020545b919050565b6000818152600760209081526040918290208054349081019091558251908152915183927fdb7750418f9fa390aaf85d881770065aa4adbe46343bcff4ae573754c829d9af92908290030190a25b50565b60025433600160a060020a039081169116146106025760006000fd5b60015460408051600160a060020a039283168152918316602083015280517f279875333405c968e401e3bc4e71d5f8e48728c90f4e8180ce28f74efb5669209281900390910190a16001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600654600554600160a060020a033016315b909192565b6004545b90565b80516001820190600080808060048510806106af5750601485115b156106ba5760006000fd5b600093505b8484101561072a57855160ff16925060618310806106e05750607a8360ff16115b80156106fc575060308360ff1610806106fc575060398360ff16115b5b801561070d57508260ff16602d14155b156107185760006000fd5b6001909501945b6001909301926106bf565b60045434101561073a5760006000fd5b866040518082805190602001908083835b6020831061076a5780518252601f19909201916020918201910161074b565b51815160209384036101000a60001901801990921691161790526040805192909401829003822060035483528282018190528451928390038501832060008054948401819052865160e060020a6302571be3028152600481018390529651929a509098509650600160a060020a0390921694506302571be393602480820194509192919082900301818787803b15156107ff57fe5b60325a03f1151561080c57fe5b505060405151600160a060020a031691909114905061082b5760006000fd5b60008054600354604080517f06ab5923000000000000000000000000000000000000000000000000000000008152600481019290925260248201869052600160a060020a03308116604484015290519216926306ab59239260648084019382900301818387803b151561089a57fe5b60325a03f115156108a757fe5b505060008054600154604080517f1896f70a00000000000000000000000000000000000000000000000000000000815260048101879052600160a060020a0392831660248201529051919092169350631896f70a9260448084019391929182900301818387803b151561091657fe5b60325a03f1151561092357fe5b50506001546040805160e860020a62d5fa2b02815260048101859052600160a060020a033381166024830152915191909216925063d5fa2b009160448082019260009290919082900301818387803b151561097a57fe5b60325a03f1151561098757fe5b505060008054604080517f5b0fc9c300000000000000000000000000000000000000000000000000000000815260048101869052600160a060020a0333811660248301529151919092169350635b0fc9c39260448084019391929182900301818387803b15156109f357fe5b60325a03f11515610a0057fe5b505060058054349081019091556006805460010190556000838152600760209081526040918290208054840190558151600160a060020a03331681529081019290925280518493507f179ef3319e6587f6efd3157b34c8b357141528074bcb03f9903589876168fa149281900390910190a260408051348152905182917fdb7750418f9fa390aaf85d881770065aa4adbe46343bcff4ae573754c829d9af919081900360200190a25b50505050505050565b60025433600160a060020a03908116911614610ace5760006000fd5b604051600160a060020a0383169082156108fc029083906000818181858888f193505050501515610aff5760006000fd5b60408051600160a060020a03841681526020810183905281517fac375770417e1cb46c89436efcf586a74d0298fee9838f66a38d40c65959ffda929181900390910190a15b50505600a165627a7a723058205c3628c01dc80233f51979d91a76cec2a25d84e86c9838d34672734ca2232b640029" }

// Get the storage value at position 0...
provider.getStorageAt("registrar.firefly.eth", 0)
// { Promise: "0x000000000000000000000000314159265dd8dbb310642f98f50c066173c1259b" }

// Get transaction count of an account...
provider.getTransactionCount("ricmoo.firefly.eth");
// { Promise: 531 }
+

// Get the balance for an account...
provider.getBalance("ricmoo.firefly.eth");
// { Promise: { BigNumber: "3446592266910605872" } }

// Get the code for a contract...
provider.getCode("registrar.firefly.eth");
// { Promise: "0x606060405236156100885763ffffffff60e060020a60003504166369fe0e2d81146100fa578063704b6c021461010f57806379502c551461012d578063bed866f614610179578063c37067fa1461019e578063c66485b2146101ab578063d80528ae146101c9578063ddca3f43146101f7578063f2c298be14610219578063f3fef3a314610269575b6100f85b6000808052600760209081527f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df80543490810190915560408051918252517fdb7750418f9fa390aaf85d881770065aa4adbe46343bcff4ae573754c829d9af929181900390910190a25b565b005b341561010257fe5b6100f860043561028a565b005b341561011757fe5b6100f8600160a060020a03600435166102ec565b005b341561013557fe5b61013d610558565b60408051600160a060020a0396871681526020810195909552928516848401526060840191909152909216608082015290519081900360a00190f35b341561018157fe5b61018c600435610580565b60408051918252519081900360200190f35b6100f8600435610595565b005b34156101b357fe5b6100f8600160a060020a03600435166105e6565b005b34156101d157fe5b6101d9610676565b60408051938452602084019290925282820152519081900360600190f35b34156101ff57fe5b61018c61068d565b60408051918252519081900360200190f35b6100f8600480803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284375094965061069495505050505050565b005b341561027157fe5b6100f8600160a060020a0360043516602435610ab2565b005b60025433600160a060020a039081169116146102a65760006000fd5b600454604080519182526020820183905280517f854231545a00e13c316c82155f2b8610d638e9ff6ebc4930676f84a5af08a49a9281900390910190a160048190555b50565b60025433600160a060020a039081169116146103085760006000fd5b60025460408051600160a060020a039283168152918316602083015280517fbadc9a52979e89f78b7c58309537410c5e51d0f63a0a455efe8d61d2b474e6989281900390910190a16002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038381169190911790915560008054604080516020908101849052815160e060020a6302571be30281527f91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e26004820152915192909416936302571be39360248084019492938390030190829087803b15156103e957fe5b60325a03f115156103f657fe5b50505060405180519050600160a060020a0316631e83409a826000604051602001526040518263ffffffff1660e060020a0281526004018082600160a060020a0316600160a060020a03168152602001915050602060405180830381600087803b151561045f57fe5b60325a03f1151561046c57fe5b50506040805160008054600354602093840183905284517f0178b8bf00000000000000000000000000000000000000000000000000000000815260048101919091529351600160a060020a039091169450630178b8bf9360248082019493918390030190829087803b15156104dd57fe5b60325a03f115156104ea57fe5b505060408051805160035460025460e860020a62d5fa2b0284526004840191909152600160a060020a03908116602484015292519216925063d5fa2b0091604480830192600092919082900301818387803b151561054457fe5b60325a03f1151561055157fe5b5050505b50565b600054600354600254600454600154600160a060020a039485169492831692165b9091929394565b6000818152600760205260409020545b919050565b6000818152600760209081526040918290208054349081019091558251908152915183927fdb7750418f9fa390aaf85d881770065aa4adbe46343bcff4ae573754c829d9af92908290030190a25b50565b60025433600160a060020a039081169116146106025760006000fd5b60015460408051600160a060020a039283168152918316602083015280517f279875333405c968e401e3bc4e71d5f8e48728c90f4e8180ce28f74efb5669209281900390910190a16001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600654600554600160a060020a033016315b909192565b6004545b90565b80516001820190600080808060048510806106af5750601485115b156106ba5760006000fd5b600093505b8484101561072a57855160ff16925060618310806106e05750607a8360ff16115b80156106fc575060308360ff1610806106fc575060398360ff16115b5b801561070d57508260ff16602d14155b156107185760006000fd5b6001909501945b6001909301926106bf565b60045434101561073a5760006000fd5b866040518082805190602001908083835b6020831061076a5780518252601f19909201916020918201910161074b565b51815160209384036101000a60001901801990921691161790526040805192909401829003822060035483528282018190528451928390038501832060008054948401819052865160e060020a6302571be3028152600481018390529651929a509098509650600160a060020a0390921694506302571be393602480820194509192919082900301818787803b15156107ff57fe5b60325a03f1151561080c57fe5b505060405151600160a060020a031691909114905061082b5760006000fd5b60008054600354604080517f06ab5923000000000000000000000000000000000000000000000000000000008152600481019290925260248201869052600160a060020a03308116604484015290519216926306ab59239260648084019382900301818387803b151561089a57fe5b60325a03f115156108a757fe5b505060008054600154604080517f1896f70a00000000000000000000000000000000000000000000000000000000815260048101879052600160a060020a0392831660248201529051919092169350631896f70a9260448084019391929182900301818387803b151561091657fe5b60325a03f1151561092357fe5b50506001546040805160e860020a62d5fa2b02815260048101859052600160a060020a033381166024830152915191909216925063d5fa2b009160448082019260009290919082900301818387803b151561097a57fe5b60325a03f1151561098757fe5b505060008054604080517f5b0fc9c300000000000000000000000000000000000000000000000000000000815260048101869052600160a060020a0333811660248301529151919092169350635b0fc9c39260448084019391929182900301818387803b15156109f357fe5b60325a03f11515610a0057fe5b505060058054349081019091556006805460010190556000838152600760209081526040918290208054840190558151600160a060020a03331681529081019290925280518493507f179ef3319e6587f6efd3157b34c8b357141528074bcb03f9903589876168fa149281900390910190a260408051348152905182917fdb7750418f9fa390aaf85d881770065aa4adbe46343bcff4ae573754c829d9af919081900360200190a25b50505050505050565b60025433600160a060020a03908116911614610ace5760006000fd5b604051600160a060020a0383169082156108fc029083906000818181858888f193505050501515610aff5760006000fd5b60408051600160a060020a03841681526020810183905281517fac375770417e1cb46c89436efcf586a74d0298fee9838f66a38d40c65959ffda929181900390910190a15b50505600a165627a7a723058205c3628c01dc80233f51979d91a76cec2a25d84e86c9838d34672734ca2232b640029" }

// Get the storage value at position 0...
provider.getStorageAt("registrar.firefly.eth", 0)
// { Promise: "0x000000000000000000000000314159265dd8dbb310642f98f50c066173c1259b" }

// Get transaction count of an account...
provider.getTransactionCount("ricmoo.firefly.eth");
// { Promise: 531 }

Blocks Methods

@@ -21,7 +21,7 @@
provider . resovleName ( name ) Promise< string >

Looks up the address of name. If the name is not owned, or does not have a Resolver configured, or the Resolver does not have an address configured, null is returned.

Examples

-

// Reverse lookup of an ENS by address...
provider.lookupAddress("0x6fC21092DA55B392b045eD78F4732bff3C580e2c");
// { Promise: "registrar.firefly.eth" }

// Lookup an address of an ENS name...
provider.resolveName("ricmoo.firefly.eth");
// { Promise: "0x8ba1f109551bD432803012645Ac136ddd64DBA72" }

+

// Reverse lookup of an ENS by address...
provider.lookupAddress("0x6fC21092DA55B392b045eD78F4732bff3C580e2c");
// { Promise: "registrar.firefly.eth" }

// Lookup an address of an ENS name...
provider.resolveName("ricmoo.firefly.eth");
// { Promise: "0x8ba1f109551bD432803012645Ac136ddd64DBA72" }

Logs Methods

@@ -48,4 +48,4 @@
provider . listeners ( eventName ) Array< Listener >

Returns the list of Listeners for eventName.

Inspection Methods

-
Provider . isProvider ( object ) boolean

Returns true if and only if object is a Provider.

\ No newline at end of file +
Provider . isProvider ( object ) boolean

Returns true if and only if object is a Provider.

\ No newline at end of file diff --git a/docs/api/providers/types/README.md b/docs/api/providers/types/README.md index f8e634bba..d28b1cb56 100644 --- a/docs/api/providers/types/README.md +++ b/docs/api/providers/types/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Types ===== @@ -122,4 +128,4 @@ TODO ----- -**Content Hash:** 9b08b2e4c2db679ae2fc80deb4ce59ec288da11c40730d7e1a045a2538436b17 \ No newline at end of file +**Content Hash:** f6d5ea85b1ddef3a5b5bc0745984620507c001cf7d898c7842e006ddcd2b056b \ No newline at end of file diff --git a/docs/api/providers/types/index.html b/docs/api/providers/types/index.html index 574d0425e..8d82a9854 100644 --- a/docs/api/providers/types/index.html +++ b/docs/api/providers/types/index.html @@ -1,4 +1,4 @@ -Types
+Types

Types

BlockTag

@@ -30,4 +30,4 @@

TransactionResponse

A TransactionResponse ..

TransactionReceipt

-

TODO

\ No newline at end of file +

TODO

\ No newline at end of file diff --git a/docs/api/signer/README.md b/docs/api/signer/README.md index afbd213c6..289d8e47d 100644 --- a/docs/api/signer/README.md +++ b/docs/api/signer/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Signers ======= @@ -63,4 +69,4 @@ TODO ----- -**Content Hash:** abb9583fce7bfb330648881c6855cebac07174afa724901ba883e2b33dcb0a07 \ No newline at end of file +**Content Hash:** 08ec198fa4ab407a1bed0a705073d7f40a6c3969b8e922961939fd8e009ca1ed \ No newline at end of file diff --git a/docs/api/signer/index.html b/docs/api/signer/index.html index a67fb2daf..6c47316ad 100644 --- a/docs/api/signer/index.html +++ b/docs/api/signer/index.html @@ -1,4 +1,4 @@ -Signer
+Signer

Signers

Tra la la...

Signer

@@ -13,4 +13,4 @@

Creating an Instance

new ethers . Wallet ( privateKey [ , provider ] )

TODO

-
Wallet . fromEncryptedJson ( json , password )

TODO

\ No newline at end of file +
Wallet . fromEncryptedJson ( json , password )

TODO

\ No newline at end of file diff --git a/docs/api/utils/README.md b/docs/api/utils/README.md index 43ce384bb..0ba1d965e 100644 --- a/docs/api/utils/README.md +++ b/docs/api/utils/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Utilities ========= @@ -43,4 +49,4 @@ are also quite useful for application developers. ----- -**Content Hash:** 2ad729e67eb1303dcd0749dafe8b681b0e71d5511e3921ffdb45b81b2561755a \ No newline at end of file +**Content Hash:** ae9deb0419f2da1644ae9588d27ecc475961b741fa9d7b27b2cf13ddf62d50b6 \ No newline at end of file diff --git a/docs/api/utils/address/README.md b/docs/api/utils/address/README.md index a8fb50c60..d2c640714 100644 --- a/docs/api/utils/address/README.md +++ b/docs/api/utils/address/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Addresses ========= @@ -42,4 +48,4 @@ TODO ----- -**Content Hash:** 85968aa9edabc277425171a51527f26b845070f5e2cc44ea573bae6b06a8b952 \ No newline at end of file +**Content Hash:** 0e138a3fe39efa87749ebc8290d153f705d26e547a38b7dce5f4d85603264d24 \ No newline at end of file diff --git a/docs/api/utils/address/index.html b/docs/api/utils/address/index.html index 202f17371..a4230c001 100644 --- a/docs/api/utils/address/index.html +++ b/docs/api/utils/address/index.html @@ -1,4 +1,4 @@ -Addresses
+Addresses

Addresses

Explain addresses,formats and checksumming here.

Also see: Constants.AddressZero

Functions

@@ -6,4 +6,4 @@
utils . getAddress ( address ) string

TODO

utils . isAddress ( address ) boolean

TODO

utils . getIcapAddress ( address ) string

TODO

-
utils . getContractAddress ( transaction ) string

TODO

\ No newline at end of file +
utils . getContractAddress ( transaction ) string

TODO

\ No newline at end of file diff --git a/docs/api/utils/bignumber/README.md b/docs/api/utils/bignumber/README.md index 44d490bf9..a6746c9a4 100644 --- a/docs/api/utils/bignumber/README.md +++ b/docs/api/utils/bignumber/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + BigNumber ========= @@ -104,42 +110,42 @@ Returns an instance of a **BigNumber** for *aBigNumberish*. ```javascript // From a decimal string... BigNumber.from("42") -// { BigNumber: "42" } +// { BigNumber: "42" } // From a hexstring... BigNumber.from("0x2a") -// { BigNumber: "42" } +// { BigNumber: "42" } // From a negative hexstring... BigNumber.from("-0x2a") -// { BigNumber: "-42" } +// { BigNumber: "-42" } // From an Array (or Uint8Array)... BigNumber.from([ 42 ]) -// { BigNumber: "42" } +// { BigNumber: "42" } // From an existing BigNumber... let one1 = constants.One; let one2 = BigNumber.from(one1) one2 -// { BigNumber: "1" } +// { BigNumber: "1" } // ...which returns the same instance one1 === one2 -// true +// true // From a (safe) number... BigNumber.from(42) -// { BigNumber: "42" } +// { BigNumber: "42" } // From a ES2015 BigInt... (only on platforms with BigInt support) BigNumber.from(42n) -// { BigNumber: "42" } +// { BigNumber: "42" } // Numbers outside the safe range fail: BigNumber.from(Number.MAX_SAFE_INTEGER); -// Error: overflow (fault="overflow", operation="BigNumber.from", value=9007199254740991, version=bignumber/5.0.0-beta.129) +// Error: overflow (fault="overflow", operation="BigNumber.from", value=9007199254740991, version=bignumber/5.0.0-beta.129) ``` @@ -331,7 +337,7 @@ let a = BigNumber.from(42); let b = BigNumber.from("91"); a.mul(b); - // { BigNumber: "3822" } + // { BigNumber: "3822" } ``` @@ -349,7 +355,7 @@ A few short notes on numbers... The first problem many encounter when dealing with Ethereum is the concept of numbers. Most common currencies are broken down with very little granularity. For example, there are only 100 -cents in a single dollar. However, there are 10*18* **wei** in a +cents in a single dollar. However, there are 10^18 **wei** in a single **ether**. JavaScript uses [IEEE 754 double-precision binary floating point](https://en.wikipedia.org/wiki/Double-precision_floating-point_format) @@ -364,7 +370,7 @@ To demonstrate how this may be an issue in your code, consider: ```javascript (Number.MAX_SAFE_INTEGER + 2 - 2) == (Number.MAX_SAFE_INTEGER) -// false +// false ``` @@ -380,4 +386,4 @@ mathematical operations handled safely. ----- -**Content Hash:** 2bd4504f910c0e79b352ebb19083a36d6ee0ed263c279aa64a4921a28874c2e9 \ No newline at end of file +**Content Hash:** 269c8464ff80c77316617cbfa4e9a195d742f829a23911fecf0bba16961f81ae \ No newline at end of file diff --git a/docs/api/utils/bignumber/index.html b/docs/api/utils/bignumber/index.html index fc52aec00..755e9093e 100644 --- a/docs/api/utils/bignumber/index.html +++ b/docs/api/utils/bignumber/index.html @@ -1,4 +1,4 @@ -Big Number
+Big Number

BigNumber

Explain about BigNumber here...

Importing

@@ -19,7 +19,7 @@
BigNumber . from ( aBigNumberish ) BigNumber

Returns an instance of a BigNumber for aBigNumberish.

Examples:

-

// From a decimal string...
BigNumber.from("42")
// { BigNumber: "42" }

// From a hexstring...
BigNumber.from("0x2a")
// { BigNumber: "42" }

// From a negative hexstring...
BigNumber.from("-0x2a")
// { BigNumber: "-42" }

// From an Array (or Uint8Array)...
BigNumber.from([ 42 ])
// { BigNumber: "42" }

// From an existing BigNumber...
let one1 = constants.One;
let one2 = BigNumber.from(one1)

one2
// { BigNumber: "1" }

// ...which returns the same instance
one1 === one2
// true

// From a (safe) number...
BigNumber.from(42)
// { BigNumber: "42" }

// From a ES2015 BigInt... (only on platforms with BigInt support)
BigNumber.from(42n)
// { BigNumber: "42" }

// Numbers outside the safe range fail:
BigNumber.from(Number.MAX_SAFE_INTEGER);
// Error: overflow (fault="overflow", operation="BigNumber.from", value=9007199254740991, version=bignumber/5.0.0-beta.129)
+

// From a decimal string...
BigNumber.from("42")
// { BigNumber: "42" }

// From a hexstring...
BigNumber.from("0x2a")
// { BigNumber: "42" }

// From a negative hexstring...
BigNumber.from("-0x2a")
// { BigNumber: "-42" }

// From an Array (or Uint8Array)...
BigNumber.from([ 42 ])
// { BigNumber: "42" }

// From an existing BigNumber...
let one1 = constants.One;
let one2 = BigNumber.from(one1)

one2
// { BigNumber: "1" }

// ...which returns the same instance
one1 === one2
// true

// From a (safe) number...
BigNumber.from(42)
// { BigNumber: "42" }

// From a ES2015 BigInt... (only on platforms with BigInt support)
BigNumber.from(42n)
// { BigNumber: "42" }

// Numbers outside the safe range fail:
BigNumber.from(Number.MAX_SAFE_INTEGER);
// Error: overflow (fault="overflow", operation="BigNumber.from", value=9007199254740991, version=bignumber/5.0.0-beta.129)

Methods

The BigNumber class is immutable, so no operations can change the value it represents.

@@ -55,11 +55,11 @@
BigNumnber . isBigNumber ( object ) boolean

Returns true if and only if the object is a BigNumber object.

Examples

-

let a = BigNumber.from(42);
let b = BigNumber.from("91");

a.mul(b);
// { BigNumber: "3822" }
+

let a = BigNumber.from(42);
let b = BigNumber.from("91");

a.mul(b);
// { BigNumber: "3822" }

Notes

A few short notes on numbers...

Why can't I just use numbers?

The first problem many encounter when dealing with Ethereum is the concept of numbers. Most common currencies are broken down with very little granularity. For example, there are only 100 cents in a single dollar. However, there are 1018 wei in a single ether.

JavaScript uses IEEE 754 double-precision binary floating point numbers to represent numeric values. As a result, there are holes in the integer set after 9,007,199,254,740,991; which is problematic for Ethereum because that is only around 0.009 ether (in wei), which means any value over that will begin to experience rounding errors.

To demonstrate how this may be an issue in your code, consider:

-
(Number.MAX_SAFE_INTEGER + 2 - 2) == (Number.MAX_SAFE_INTEGER)
// false
-

To remedy this, all numbers (which can be large) are stored and manipulated as Big Numbers.

The functions parseEther( etherString ) and formatEther( wei ) can be used to convert between string representations, which are displayed to or entered by the user and Big Number representations which can have mathematical operations handled safely.

\ No newline at end of file +
(Number.MAX_SAFE_INTEGER + 2 - 2) == (Number.MAX_SAFE_INTEGER)
// false
+

To remedy this, all numbers (which can be large) are stored and manipulated as Big Numbers.

The functions parseEther( etherString ) and formatEther( wei ) can be used to convert between string representations, which are displayed to or entered by the user and Big Number representations which can have mathematical operations handled safely.

\ No newline at end of file diff --git a/docs/api/utils/bytes/README.md b/docs/api/utils/bytes/README.md index 8f34bce35..88e40112a 100644 --- a/docs/api/utils/bytes/README.md +++ b/docs/api/utils/bytes/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Byte Manipulation ================= @@ -119,27 +125,27 @@ zeros. The result of this function can be of odd-length. ```javascript // Convert a hexstring to a Uint8Array arrayify("0x1234") -// [ 18, 52 ] +// [ 18, 52 ] // Convert an Array to a hexstring hexlify([1, 2, 3, 4]) -// 0x01020304 +// 0x01020304 // Convert an Object to a hexstring hexlify({ length: 2, "0": 1, "1": 2 }) -// 0x0102 +// 0x0102 // Convert an Array to a hexstring hexlify([ 1 ]) -// 0x01 +// 0x01 // Convert a number to a stripped hex value hexValue(1) -// 0x1 +// 0x1 // Convert an Array to a stripped hex value hexValue([ 1, 2 ]) -// 0x102 +// 0x102 ``` @@ -240,4 +246,4 @@ computed. ----- -**Content Hash:** 6c6608cb249ff3e352417e8c99e1965500c19a3ae9b33d0397d7f8b84e78e20b \ No newline at end of file +**Content Hash:** 1e52066c61f8794d858f02fb8164b146c9379968b0e0ab90efeb2fe16831599f \ No newline at end of file diff --git a/docs/api/utils/bytes/index.html b/docs/api/utils/bytes/index.html index 335bfa847..902bf5b0c 100644 --- a/docs/api/utils/bytes/index.html +++ b/docs/api/utils/bytes/index.html @@ -1,4 +1,4 @@ -Byte Manipulation
+Byte Manipulation

Byte Manipulation

Tra la la...

Types

@@ -25,7 +25,7 @@
utils . hexValue ( aBigNumberish ) string

Converts aBigNumberish to a Hexstring, with no unecessary leading zeros. The result of this function can be of odd-length.

Examples

-

// Convert a hexstring to a Uint8Array
arrayify("0x1234")
// [ 18, 52 ]

// Convert an Array to a hexstring
hexlify([1, 2, 3, 4])
// 0x01020304

// Convert an Object to a hexstring
hexlify({ length: 2, "0": 1, "1": 2 })
// 0x0102

// Convert an Array to a hexstring
hexlify([ 1 ])
// 0x01

// Convert a number to a stripped hex value
hexValue(1)
// 0x1

// Convert an Array to a stripped hex value
hexValue([ 1, 2 ])
// 0x102
+

// Convert a hexstring to a Uint8Array
arrayify("0x1234")
// [ 18, 52 ]

// Convert an Array to a hexstring
hexlify([1, 2, 3, 4])
// 0x01020304

// Convert an Object to a hexstring
hexlify({ length: 2, "0": 1, "1": 2 })
// 0x0102

// Convert an Array to a hexstring
hexlify([ 1 ])
// 0x01

// Convert a number to a stripped hex value
hexValue(1)
// 0x1

// Convert an Array to a stripped hex value
hexValue([ 1, 2 ])
// 0x102

Array Manipulation

@@ -42,4 +42,4 @@

Signature Conversion

utils . joinSignature ( aSignatureLike ) string

Return the flat-format of a SignatureLike, which is 65 bytes (130 nibbles) long, concatenating the r, s and v of a Signature.

-
utils . splitSignature ( aSignatureLikeOrBytesLike ) Signature

Return the full expanded-format of a SignatureLike or a flat-format Hexstring. Any missing properties will be computed.

\ No newline at end of file +
utils . splitSignature ( aSignatureLikeOrBytesLike ) Signature

Return the full expanded-format of a SignatureLike or a flat-format Hexstring. Any missing properties will be computed.

\ No newline at end of file diff --git a/docs/api/utils/constants/README.md b/docs/api/utils/constants/README.md index 321db5d8f..3aa493d42 100644 --- a/docs/api/utils/constants/README.md +++ b/docs/api/utils/constants/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Constants ========= @@ -98,4 +104,4 @@ The BigNumber value representing the maximum `uint256` value. ----- -**Content Hash:** 36d1996cf9909e8654bc8eef0c760bf3022681482bc88ebc553c79f0b224c9af \ No newline at end of file +**Content Hash:** a781a8990aec282632e70ebc003a711adf5bc7773243aed727fc37a0934097f7 \ No newline at end of file diff --git a/docs/api/utils/constants/index.html b/docs/api/utils/constants/index.html index 8c4832af0..6e5df998c 100644 --- a/docs/api/utils/constants/index.html +++ b/docs/api/utils/constants/index.html @@ -1,4 +1,4 @@ -Constants
+Constants

Constants

The ethers.contants Object contains commonly used values.

Importing

@@ -19,4 +19,4 @@
constants . One

The BigNumber value representing "1".

constants . Two

The BigNumber value representing "2".

constants . WeiPerEther

The BigNumber value representing "1000000000000000000", which is the number of Wei per Ether.

-
constants . MaxUint256

The BigNumber value representing the maximum uint256 value.

\ No newline at end of file +
constants . MaxUint256

The BigNumber value representing the maximum uint256 value.

\ No newline at end of file diff --git a/docs/api/utils/display-logic/README.md b/docs/api/utils/display-logic/README.md index 949ec8ee9..90ba35308 100644 --- a/docs/api/utils/display-logic/README.md +++ b/docs/api/utils/display-logic/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Display Logic and Input ======================= @@ -104,4 +110,4 @@ The equivalent to calling `parseUnits(value, "ether")`. ----- -**Content Hash:** a0fd257cd92fcf3ae0659a22281fe10e7b68d632443cdf65556445a34365fcf1 \ No newline at end of file +**Content Hash:** 172c3345092afd2abb6a47dc225ae54c13c3ee3ce87868dd87e19656f4e6078d \ No newline at end of file diff --git a/docs/api/utils/display-logic/index.html b/docs/api/utils/display-logic/index.html index 6fcf6e1ba..b3817de7d 100644 --- a/docs/api/utils/display-logic/index.html +++ b/docs/api/utils/display-logic/index.html @@ -1,4 +1,4 @@ -Display Logic and Input
+Display Logic and Input

Display Logic and Input

When creating an Application, it is useful to convert between user-friendly strings (usually displaying ether) and the machine-readable values that contracts and maths depend on (usually in wei).

For example, a Wallet may specify the balance in ether, and gas prices in gwei for the User Interface, but when sending a transaction, both must be specified in wei.

The parseUnits will parse a string representing ether, such as 1.1 into a BigNumber in wei, and is useful when a user types in a value, such as sending 1.1 ether.

The formatUnits will format a BigNumberish into a string, which is useful when displaying a balance.

Units

@@ -17,4 +17,4 @@
utils . formatUnits ( value [ , unit = "ether" ] ) string

Returns a string representation of value formatted with unit digits (if it is a number) or to the unit specified (if a string).

utils . formatEther ( value ) string

The equivalent to calling formatUnits(value, "ether").

utils . parseUnits ( value [ , unit = "ether" ] ) BigNumber

Returns a BigNumber representation of value, parsed with unit digits (if it is a number) or from the unit specified (if a string).

-
utils . parseEther ( value ) BigNumber

The equivalent to calling parseUnits(value, "ether").

\ No newline at end of file +
utils . parseEther ( value ) BigNumber

The equivalent to calling parseUnits(value, "ether").

\ No newline at end of file diff --git a/docs/api/utils/fixednumber/README.md b/docs/api/utils/fixednumber/README.md index 7a0ff931c..19348695d 100644 --- a/docs/api/utils/fixednumber/README.md +++ b/docs/api/utils/fixednumber/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + FixedNumber =========== @@ -161,4 +167,4 @@ Returns true if and only if *value* is a **FixedNumber**. ----- -**Content Hash:** ddffbdca7bc7b54726596bd79a88e5df5dc947ff48bd2f93d516bb5b084aa4db \ No newline at end of file +**Content Hash:** e58731f51c5fe088aa89a78c7649ec914dce2d65dac9c1de3c4b3a89c911b46b \ No newline at end of file diff --git a/docs/api/utils/fixednumber/index.html b/docs/api/utils/fixednumber/index.html index 20a17f27d..2ad5311c6 100644 --- a/docs/api/utils/fixednumber/index.html +++ b/docs/api/utils/fixednumber/index.html @@ -1,4 +1,4 @@ -Fixed Number
+Fixed Number

FixedNumber

Types

@@ -32,4 +32,4 @@
fixednumber . toUnsafeFloat ( ) float

Returns a floating-point JavaScript number value of fixednumber. Due to rounding in JavaScript numbers, the value is only approximate.

Inspection

-
BigNumber . isFixedNumber ( value ) boolean

Returns true if and only if value is a FixedNumber.

\ No newline at end of file +
BigNumber . isFixedNumber ( value ) boolean

Returns true if and only if value is a FixedNumber.

\ No newline at end of file diff --git a/docs/api/utils/hashing/README.md b/docs/api/utils/hashing/README.md index 3ad3d4014..d6451f5c4 100644 --- a/docs/api/utils/hashing/README.md +++ b/docs/api/utils/hashing/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Hashing Algorithms ================== @@ -131,4 +137,4 @@ according to their respective type in *arrayOfTypes*. ----- -**Content Hash:** d67fa58e91e9358b895d2c6dbb0ab2f6b1ce71b85c7c0d9bc1a93b4ae2eb4b23 \ No newline at end of file +**Content Hash:** 65dd2158ef160da7be3291c8e7aac15df2de683869df9c31b8efdaa39551b3e4 \ No newline at end of file diff --git a/docs/api/utils/hashing/index.html b/docs/api/utils/hashing/index.html index c58061b3b..8140b6cd8 100644 --- a/docs/api/utils/hashing/index.html +++ b/docs/api/utils/hashing/index.html @@ -1,4 +1,4 @@ -Hashing
+Hashing

Hashing Algorithms

Explain what hash functions are?

Cryptographic Hashing

@@ -21,4 +21,4 @@

When using the Solidity abi.packEncoded(...) function, a non-standard tightly packed version of encoding is used. These functions implement the tightly packing algorithm.

utils . solidityPack ( arrayOfTypes , arrayOfValues ) string

Returns the non-standard encoded arrayOfValues packed according to their respecive type in arrayOfTypes.

utils . solidityKeccak256 ( arrayOfTypes , arrayOfValues ) string

Returns the KECCAK256 of the non-standard encoded arrayOfValues packed according to their respective type in arrayOfTypes.

-
utils . soliditySha256 ( arrayOfTypes , arrayOfValues ) string

Returns the SHA2-256 of the non-standard encoded arrayOfValues packed according to their respective type in arrayOfTypes.

\ No newline at end of file +
utils . soliditySha256 ( arrayOfTypes , arrayOfValues ) string

Returns the SHA2-256 of the non-standard encoded arrayOfValues packed according to their respective type in arrayOfTypes.

\ No newline at end of file diff --git a/docs/api/utils/index.html b/docs/api/utils/index.html index 5c17df12d..7b6d73a41 100644 --- a/docs/api/utils/index.html +++ b/docs/api/utils/index.html @@ -1,4 +1,4 @@ -Utilities
+Utilities

Utilities

These utilities are used extensively within the library, but are also quite useful for application developers.

-
\ No newline at end of file +
Addresses
BigNumber
Types
Creating Instances
Methods
Notes
Byte Manipulation
Types
Inspection
Converting between Arrays and Hexstrings
Array Manipulation
Hexstring Manipulation
Signature Conversion
Constants
Bytes
Strings
BigNumber
Display Logic and Input
Units
Functions
FixedNumber
Types
Creating Instances
Properties
Methods
Hashing Algorithms
Cryptographic Hashing
Common Hashing Helpers
Solidity Hashing Algorithms
Strings
Bytes32String
UTF-8 Strings
\ No newline at end of file diff --git a/docs/api/utils/strings/README.md b/docs/api/utils/strings/README.md index 8cc776882..d481cb0c5 100644 --- a/docs/api/utils/strings/README.md +++ b/docs/api/utils/strings/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Strings ======= @@ -148,4 +154,4 @@ it should not be considered a method to acheive *any* level of security from ----- -**Content Hash:** f6a51816edca0ae4b74c16012629f26108f16204ff9d3aa3879fd44adb8d0d7f \ No newline at end of file +**Content Hash:** 74002cd3d9368872b5618f68967deac34a4d1aeafeeac6ddb5c1d06a450180c9 \ No newline at end of file diff --git a/docs/api/utils/strings/index.html b/docs/api/utils/strings/index.html index 9d6f634e9..99748b178 100644 --- a/docs/api/utils/strings/index.html +++ b/docs/api/utils/strings/index.html @@ -1,4 +1,4 @@ -Strings
+Strings

Strings

Tra la la

Bytes32String

@@ -18,4 +18,4 @@
utils . UnicodeNormalizationForm . NFD

The Decomposed Normalization Form. This form uses multiple codepoints (when necessary) to compose a character.

For example, the é is made up of two codepoints, "0x0065" (which is the letter "e") and "0x0301" which is a special diacritic UTF-8 codepoint which indicates the previous character should have an acute accent.

utils . UnicodeNormalizationForm . NFKC

The Composed Normalization Form with Canonical Equivalence. The Canonical representation folds characters which have the same syntactic representation but different semantic meaning.

For example, the Roman Numeral I, which has a UTF-8 codepoint "0x2160", is folded into the capital letter I, "0x0049".

utils . UnicodeNormalizationForm . NFKD

The Decomposed Normalization Form with Canonical Equivalence. See NFKC for more an example.

-
Note:

Only certain specified characters are folded in Canonical Equivalence, and thus it should not be considered a method to acheive any level of security from homoglyph attacks.

\ No newline at end of file +
Note:

Only certain specified characters are folded in Canonical Equivalence, and thus it should not be considered a method to acheive any level of security from homoglyph attacks.

\ No newline at end of file diff --git a/docs/concepts/README.md b/docs/concepts/README.md index 200d679ad..0161cc00f 100644 --- a/docs/concepts/README.md +++ b/docs/concepts/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Concepts ======== @@ -15,4 +21,4 @@ which developers can make use of or should be aware of. ----- -**Content Hash:** 1a99161696ee94f8320ce5b63367cfc1245dadb9dc5f52819e5a547b3f44c509 \ No newline at end of file +**Content Hash:** ad59f45600332d936821db1fa0d0eeabdab5b4f252e1e815de525b4d1b9a9a7b \ No newline at end of file diff --git a/docs/concepts/events/README.md b/docs/concepts/events/README.md index 0f28f0abe..979b3bb0c 100644 --- a/docs/concepts/events/README.md +++ b/docs/concepts/events/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Events ====== @@ -8,4 +14,4 @@ Explain how topics and such work ----- -**Content Hash:** 1b85be44f478836054f7efb2aa093d82c399ddd636153815991b334dc1c1b4b3 \ No newline at end of file +**Content Hash:** 4b045e823bf9863272ddb1c5a8460bc461de2ad262503dc27829b64b57344d46 \ No newline at end of file diff --git a/docs/concepts/events/index.html b/docs/concepts/events/index.html index 163b69a94..c39b914e7 100644 --- a/docs/concepts/events/index.html +++ b/docs/concepts/events/index.html @@ -1,3 +1,3 @@ -Events
+Events

Events

-

Explain how topics and such work

\ No newline at end of file +

Explain how topics and such work

\ No newline at end of file diff --git a/docs/concepts/gas/README.md b/docs/concepts/gas/README.md index d5ad2ed54..7ae0d8b5d 100644 --- a/docs/concepts/gas/README.md +++ b/docs/concepts/gas/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Gas === @@ -20,4 +26,4 @@ Gas Limit ----- -**Content Hash:** 0e5b9d2e12fbc359899548a8f3d7a0951ee96cc3dec2b4b64be0e4dbfa1371eb \ No newline at end of file +**Content Hash:** 4cc3001196d861faac19ebc393e002ce9e6f24702b66bac62ef8f9185625b3dc \ No newline at end of file diff --git a/docs/concepts/gas/index.html b/docs/concepts/gas/index.html index e2c698d2c..a1833329a 100644 --- a/docs/concepts/gas/index.html +++ b/docs/concepts/gas/index.html @@ -1,7 +1,7 @@ -Gas
+Gas

Gas

Gas Price

The gas price is used somewhat like a bid, indicating an amount you are willing to pay (per unit of execution) to have your transaction processed.

Gas Limit

-
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/concepts/index.html b/docs/concepts/index.html index 4f0ce49e7..9b5640560 100644 --- a/docs/concepts/index.html +++ b/docs/concepts/index.html @@ -1,4 +1,4 @@ -Concepts
+Concepts

Concepts

This is a very breif overview of some aspects of Ethereum which developers can make use of or should be aware of.

-
\ No newline at end of file +
Events
Gas
Gas Price
Gas Limit
\ No newline at end of file diff --git a/docs/contributing/README.md b/docs/contributing/README.md index 3a0725037..850e5562c 100644 --- a/docs/contributing/README.md +++ b/docs/contributing/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Contributing and Hacking ======================== @@ -36,4 +42,4 @@ use npm run update-version ----- -**Content Hash:** a9c6c700043f9b18ddd10b4b914603231c63c6adb95e26d3630fb39709b35eb6 \ No newline at end of file +**Content Hash:** f817d13fd530f58e6a03c9b5cb7190a3b7a084e8bf6eb05b130665c36d421950 \ No newline at end of file diff --git a/docs/contributing/index.html b/docs/contributing/index.html index 0c4e0d64f..571c68a8d 100644 --- a/docs/contributing/index.html +++ b/docs/contributing/index.html @@ -1,5 +1,5 @@ -Contributing and Hacking
+Contributing and Hacking

Contributing and Hacking

The ethers.js library is something that I've written out of necessity, and has grown somewhat organically over time.

Many things are the way they are for good (at the time, at least) reasons, but I always welcome criticism, and am completely willing to have my mind changed on things.

So, pull requests are always welcome, but please keep a few points in mind:

In general, please start an issue before beginning a pull request, so we can have a public discussion and figure out the best way to address to problem/feature. :)

Building

-

use npm run auto-build

use npm run update-version

\ No newline at end of file +

use npm run auto-build

use npm run update-version

\ No newline at end of file diff --git a/docs/cookbook/README.md b/docs/cookbook/README.md index 1bea29397..346fe8853 100644 --- a/docs/cookbook/README.md +++ b/docs/cookbook/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Cookbook ======== @@ -8,4 +14,4 @@ Cooking... ----- -**Content Hash:** 19de63e3df2d64c5982c1625034ee40032aee1bd349eacf1cd8cf00c336548aa \ No newline at end of file +**Content Hash:** e3e2d42077858c887af142ae8f1c49a1882ea80d98cf4b75e272d97a65a0e713 \ No newline at end of file diff --git a/docs/cookbook/index.html b/docs/cookbook/index.html index 7cc8b7f0e..0a87689a0 100644 --- a/docs/cookbook/index.html +++ b/docs/cookbook/index.html @@ -1,3 +1,3 @@ -Cookbook
+Cookbook

Cookbook

-

Cooking...

\ No newline at end of file +

Cooking...

\ No newline at end of file diff --git a/docs/documentation/README.md b/docs/documentation/README.md index a7c3924d1..3dd224652 100644 --- a/docs/documentation/README.md +++ b/docs/documentation/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Flatworm Docs ============= @@ -154,7 +160,7 @@ Markdown The markdown is simple and does not have the flexibility of other dialects, but allows for **bold**, *italic*, -*underlined*, `monospaced`, *super-scripted* text, +*underlined*, `monospaced`, ^super-scripted text, supporting [links](./) and lists. @@ -188,4 +194,4 @@ This is a self-titled link [[https://ethereumorg]] and this ----- -**Content Hash:** 74aa879d77ec6a068c9233aefbf85188a6a18cacf24f5ba9c83cd3602c15e9ae \ No newline at end of file +**Content Hash:** 6cc55a98e7a50c76c8b27fbc7aae97bebaf9355a40b9c44a568f2f7fd927da57 \ No newline at end of file diff --git a/docs/documentation/index.html b/docs/documentation/index.html index e51a245f8..06fd35841 100644 --- a/docs/documentation/index.html +++ b/docs/documentation/index.html @@ -1,4 +1,4 @@ -Flatworm Docs
+Flatworm Docs

Flatworm Docs

The Flatworm Docs rendering script is designed to be very simple, but provide enough formatting necessary for documenting JavaScript libraries.

A lot of its inspiration came from Read the Docs and the Sphinx project.

Fragments

@@ -24,4 +24,4 @@

Markdown

The markdown is simple and does not have the flexibility of other dialects, but allows for bold, italic, underlined, monospaced, super-scripted text, supporting links and lists.

**bold text**

//italic text//

__underlined text__

``monospace code``

^^superscript text^^

- This is a list
- With bullet points
- With a total of three items

This is separated by -- an en-dash.

This is separated by --- an em-dash.

This is a [Link to Ethereum](https://ethereum.org) and this
is an [Internal Link](some-link).

This is a self-titled link [[https://ethereumorg]] and this
[[some-link]] will use the title from its directives value.
-
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/getting-started/README.md b/docs/getting-started/README.md index aa61c0aa0..daf5bd1d9 100644 --- a/docs/getting-started/README.md +++ b/docs/getting-started/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Getting Started =============== @@ -60,4 +66,4 @@ Web Applications from our CDN. ----- -**Content Hash:** 5550edc55238e573fa55ca0421c610304a1c12cfa1281db2ddba44f36b1a3409 \ No newline at end of file +**Content Hash:** 01b739e7d4410ec57652b8058ae7a5902107ce0b170ecd3550cbc97f4d287fd8 \ No newline at end of file diff --git a/docs/getting-started/index.html b/docs/getting-started/index.html index cd015e7d7..e24301fc9 100644 --- a/docs/getting-started/index.html +++ b/docs/getting-started/index.html @@ -1,4 +1,4 @@ -Getting Started
+Getting Started

Getting Started

Installing

@@ -14,4 +14,4 @@

Web Browser

It is generally better practice (for security reasons) to copy the ethers library to your own webserver and serve it yourself.

For quick demos or prototyping though, it can be loaded in your Web Applications from our CDN.

<script src="https://cdn.ethers.io/lib/ethers-5.0.min.js"
        type="application/javascipt"></script>
-
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 66d96fdcd..1ccc8dba8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,4 +1,4 @@ -Documentation
+Documentation

What is ethers?

The ethers.js library aims to be a complete and compact library for interacting with the Ethereum Blockchain and its ecosystem. It was originally designed for use with ethers.io and has since expanded into a much more general-purpose library.

Features

@@ -7,4 +7,4 @@

Legacy Documentation

-

This section will be kept up to date, linking to documentation of older versions of the library.

\ No newline at end of file +

This section will be kept up to date, linking to documentation of older versions of the library.

\ No newline at end of file diff --git a/docs/license/README.md b/docs/license/README.md index 74888ca36..bd96b0764 100644 --- a/docs/license/README.md +++ b/docs/license/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + License and Copyright ===================== @@ -34,4 +40,4 @@ SOFTWARE. ----- -**Content Hash:** 33d04a7c1199b1f7bee1b864f1610c01fde9a928993a6ffb5816b7268183e9d0 \ No newline at end of file +**Content Hash:** 91addf1f9680c79e0db3ee454bc36cf3ba11b14221c075f21d8faf4d94146c65 \ No newline at end of file diff --git a/docs/license/index.html b/docs/license/index.html index b8e1d6c8b..4c6fffca1 100644 --- a/docs/license/index.html +++ b/docs/license/index.html @@ -1,5 +1,5 @@ -License and Copyright
+License and Copyright

License and Copyright

The ethers library (including all dependencies) are available under the MIT License, which permits a wide variety of uses.

MIT License

-

Copyright © 2019 Richard Moore.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

\ No newline at end of file +

Copyright © 2019 Richard Moore.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

\ No newline at end of file diff --git a/docs/migration/README.md b/docs/migration/README.md index 5c2ab41f9..4983d746d 100644 --- a/docs/migration/README.md +++ b/docs/migration/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Migration Guide =============== @@ -22,4 +28,4 @@ test ----- -**Content Hash:** 9b0d95b05f5e8941f7984f2f5141af4c4b17eef142c924bea54c446f11a367f4 \ No newline at end of file +**Content Hash:** dc44071344e2a1a26a1638594b7403e8ab4722d4964a8ae5b9b94411eaa36f3c \ No newline at end of file diff --git a/docs/migration/index.html b/docs/migration/index.html index 9d616d8e9..c90d5bb35 100644 --- a/docs/migration/index.html +++ b/docs/migration/index.html @@ -1,7 +1,7 @@ -Migration Guide
+Migration Guide

Migration Guide

Migratimg...

From Web3

test

From ethers v4

-

test

\ No newline at end of file +

test

\ No newline at end of file diff --git a/docs/testing/README.md b/docs/testing/README.md index a17e6d2ce..85f0cd4d2 100644 --- a/docs/testing/README.md +++ b/docs/testing/README.md @@ -1,3 +1,9 @@ +----- + +Documentation: [html](https://docs-beta.ethers.io/) + +----- + Testing ======= @@ -8,4 +14,4 @@ Here goes info about testing ----- -**Content Hash:** 864815b384bd40e56f3a5aee328bde2186e7453d8a0e968d5e6a6c719096d725 \ No newline at end of file +**Content Hash:** 8c2f2674db316066704a60c421caa69829c391dbf94998f98a603c75b237d42e \ No newline at end of file diff --git a/docs/testing/index.html b/docs/testing/index.html index df43997be..b20428f63 100644 --- a/docs/testing/index.html +++ b/docs/testing/index.html @@ -1,3 +1,3 @@ -Testing
+Testing

Testing

-

Here goes info about testing

\ No newline at end of file +

Here goes info about testing

\ No newline at end of file