From 7b8c78222b70b5981c09bb592e197bdbaf1ef6e3 Mon Sep 17 00:00:00 2001 From: Gas One Cent <86567384+gas1cent@users.noreply.github.com> Date: Sun, 19 Dec 2021 15:05:19 +0400 Subject: [PATCH] Fix a typo in `evm_setTime` docs --- docs/index.html | 2 +- docs/typedoc/api.json | 2 +- docs/typedoc/classes/default.html | 188 ++++++++++++------------ src/chains/ethereum/ethereum/src/api.ts | 2 +- 4 files changed, 97 insertions(+), 97 deletions(-) diff --git a/docs/index.html b/docs/index.html index ac9f5550f8..b1657f236f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4167,7 +4167,7 @@
Sets the internal clock time to the given timestamp.
Warning: This will allow you to move backwards in time, which may cause -new blocks to appear to be mined before old blocks. This is will result in +new blocks to appear to be mined before old blocks. This will result in an invalid state.
diff --git a/docs/typedoc/api.json b/docs/typedoc/api.json index 2eaff9bb10..ed6127db34 100644 --- a/docs/typedoc/api.json +++ b/docs/typedoc/api.json @@ -7194,7 +7194,7 @@ "flags": {}, "comment": { "shortText": "Sets the internal clock time to the given timestamp.", - "text": "Warning: This will allow you to move *backwards* in time, which may cause\nnew blocks to appear to be mined before old blocks. This is will result in\nan invalid state.\n", + "text": "Warning: This will allow you to move *backwards* in time, which may cause\nnew blocks to appear to be mined before old blocks. This will result in\nan invalid state.\n", "returns": "The amount of *seconds* between the given timestamp and now.", "tags": [ { diff --git a/docs/typedoc/classes/default.html b/docs/typedoc/classes/default.html index 9855413092..87acfdccae 100644 --- a/docs/typedoc/classes/default.html +++ b/docs/typedoc/classes/default.html @@ -1,4 +1,4 @@ -
- Preparing search index...
- The search index is not available
@ganache/ethereumClass default
Hierarchy
Implements
Indexable
Parameters
Rest ...args: any
Returns Promise<any>
Index
Constructors
Properties
Methods
Constructors
constructor
This is the Ethereum API that the provider interacts with. The only methods permitted on the prototype are the supported json-rpc methods.
@@ -10,17 +10,17 @@blockchain: default
Returns default
Properties
Private Readonly #blockchain
Private Readonly #filters
Private Readonly #get Id
Type declaration
Returns Quantity
Private Readonly #options
Private Readonly #subscriptions
Private Readonly #wallet
Methods
bzz_ hive
blockchain: default
Returns default
Properties
Private Readonly #blockchain
Private Readonly #filters
Private Readonly #get Id
Type declaration
Returns Quantity
Private Readonly #options
Private Readonly #subscriptions
Private Readonly #wallet
Methods
bzz_ hive
Returns the kademlia table in a readable table format.
Returns Promise<any[]>
Returns the kademlia table in a readable table format.
-bzz_ info
bzz_ info
Returns details about the swarm node.
Returns Promise<any[]>
Returns details about the swarm node.
-db_ get Hex
db_ get Hex
Returns binary data from the local database.
key: string
Key name.
Returns Promise<string>
The previously stored data.
-db_ get String
db_ get String
Returns string from the local database.
key: string
Key name.
Returns Promise<string>
The previously stored string.
-db_ put Hex
db_ put Hex
Stores binary data in the local database.
data: string
Data to store.
Returns Promise<boolean>
true if the value was stored, otherwise false.
-db_ put String
db_ put String
Stores a string in the local database.
value: string
String to store.
Returns Promise<boolean>
returns true if the value was stored, otherwise false.
-debug_ storage Range At
debug_ storage Range At
Attempts to replay the transaction as it was executed on the network and return storage data given a starting key and max number of entries to return.
Returns Promise<StorageRangeResult>
Returns a storage object with the keys being keccak-256 hashes of the storage keys, and the values being the raw, unhashed key and value for that specific storage slot. Also returns a next key which is the keccak-256 hash of the next key in storage for continuous downloading.
-debug_ trace Transaction
debug_ trace Transaction
Attempt to run the transaction in the exact same manner as it was executed on the network. It will replay any transaction that may have been executed prior to this one before it will finally attempt to execute the transaction @@ -110,17 +110,17 @@
stack
: The EVM execution stack.storage
: An object containing the contract's storage data.eth_ accounts
eth_ accounts
Returns a list of addresses owned by client.
Returns Promise<string[]>
Array of 20 Bytes - addresses owned by the client.
-eth_ block Number
eth_ block Number
Returns the number of the most recent block.
Returns Promise<Quantity>
The current block number the client is on.
-eth_ call
eth_ call
Executes a new message call immediately without creating a transaction on the block chain.
Transaction call object:
@@ -139,19 +139,19 @@
Integer block number, or the string "latest", "earliest" or "pending".
Returns Promise<Data>
The return value of executed contract.
-eth_ chain Id
eth_ chain Id
Returns the currently configured chain id, a value used in replay-protected transaction signing as introduced by EIP-155.
155 – Simple replay attack protection
Returns Promise<Quantity>
The chain id as a string.
-eth_ coinbase
eth_ coinbase
Returns the client coinbase address.
Returns Promise<Address>
The current coinbase address.
-eth_ estimate Gas
eth_ estimate Gas
Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. The transaction will not be added to the blockchain. Note that the estimate may be significantly more than the @@ -174,12 +174,12 @@
Integer block number, or the string "latest", "earliest" or "pending".
Returns Promise<Quantity>
The amount of gas used.
-eth_ gas Price
eth_ gas Price
Returns the current price per gas in wei.
Returns Promise<Quantity>
Integer of the current gas price in wei.
-eth_ get Balance
eth_ get Balance
Returns the balance of the account of given address.
Integer block number, or the string "latest", "earliest" or "pending".
Returns Promise<Quantity>
Integer of the account balance in wei.
-eth_ get Block By Hash
eth_ get Block By Hash
Returns information about a block by block hash.
transactions
:Array
- Array of transaction objects or 32 Bytes transaction hashes depending on the last parameter.uncles
:Array
- Array of uncle hashes.eth_ get Block By Number
eth_ get Block By Number
Returns information about a block by block number.
transactions
:Array
- Array of transaction objects or 32 Bytes transaction hashes depending on the last parameter.uncles
:Array
- Array of uncle hashes.eth_ get Block Transaction Count By Hash
eth_ get Block Transaction Count By Hash
Returns the number of transactions in a block from a block matching the given block hash.
Parameters
hash: string
Hash of a block.
Returns Promise<Quantity>
Number of transactions in the block.
-eth_ get Block Transaction Count By Number
eth_ get Block Transaction Count By Number
Returns the number of transactions in a block from a block matching the given block number.
Parameters
blockNumber: string
Returns Promise<Quantity>
Integer of the number of transactions in the block.
-eth_ get Code
eth_ get Code
Returns code at a given address.
blockNumber: string = Tag.LATEST
Integer block number, or the string "latest", "earliest" or "pending".
Returns Promise<Data>
The code from the given address.
-eth_ get Compilers
eth_ get Compilers
Returns a list of available compilers.
Returns Promise<string[]>
List of available compilers.
-eth_ get Filter Changes
eth_ get Filter Changes
Polling method for a filter, which returns an array of logs, block hashes, or transaction hashes, depending on the filter type, which occurred since last poll.
@@ -304,14 +304,14 @@data
:DATA
- Contains one or more 32 Bytes non-indexed arguments of the log.topics
:Array of DATA
- Array of 0 to 4 32 BytesDATA
of indexed log arguments.eth_ get Filter Logs
eth_ get Filter Logs
Returns an array of all logs matching filter with given id.
Parameters
filterId: string
The filter id.
Returns Promise<{ address: Address; blockHash: Data; blockNumber: Quantity; data: Data | Data[]; logIndex: Quantity; removed: boolean; topics: Data | Data[]; transactionHash: Data; transactionIndex: Quantity }[]>
Array of log objects, or an empty array.
-eth_ get Logs
eth_ get Logs
Returns an array of all logs matching a given filter object.
Filter options:
@@ -330,7 +330,7 @@
Parameters
filter: FilterArgs
The filter options as seen in source.
Returns Promise<{ address: Address; blockHash: Data; blockNumber: Quantity; data: Data | Data[]; logIndex: Quantity; removed: boolean; topics: Data | Data[]; transactionHash: Data; transactionIndex: Quantity }[]>
Array of log objects, or an empty array.
-eth_ get Storage At
eth_ get Storage At
Returns the value from a storage position at a given address.
Integer block number, or the string "latest", "earliest" or "pending".
Returns Promise<Data>
The value in storage at the requested position.
-eth_ get Transaction By Block Hash And Index
eth_ get Transaction By Block Hash And Index
Returns information about a transaction by block hash and transaction index position.
r
:DATA
, 32 Bytes - ECDSA signature r.s
:DATA
, 32 Bytes - ECDSA signature s.eth_ get Transaction By Block Number And Index
eth_ get Transaction By Block Number And Index
Returns information about a transaction by block number and transaction index position.
r
:DATA
, 32 Bytes - ECDSA signature r.s
:DATA
, 32 Bytes - ECDSA signature s.eth_ get Transaction By Hash
eth_ get Transaction By Hash
Returns the information about a transaction requested by transaction hash.
r
:DATA
, 32 Bytes - ECDSA signature r.s
:DATA
, 32 Bytes - ECDSA signature s.eth_ get Transaction Count
eth_ get Transaction Count
Returns the number of transactions sent from an address.
Integer block number, or the string "latest", "earliest" or "pending".
Returns Promise<Quantity>
Number of transactions sent from this address.
-eth_ get Transaction Receipt
eth_ get Transaction Receipt
Returns the receipt of a transaction by transaction hash.
Note: The receipt is not available for pending transactions.
Parameters
transactionHash: string
Hash of a transaction.
Returns Promise<TransactionReceiptJSON>
Returns the receipt of a transaction by transaction hash.
-eth_ get Uncle By Block Hash And Index
eth_ get Uncle By Block Hash And Index
Returns information about a uncle of a block by hash and uncle index position.
transactions
:Array
- Array of transaction objects or 32 Bytes transaction hashes depending on the last parameter.uncles
:Array
- Array of uncle hashes.eth_ get Uncle By Block Number And Index
eth_ get Uncle By Block Number And Index
Returns information about a uncle of a block by hash and uncle index position.
transactions
:Array
- Array of transaction objects or 32 Bytes transaction hashes depending on the last parameter.uncles
:Array
- Array of uncle hashes.eth_ get Uncle Count By Block Hash
eth_ get Uncle Count By Block Hash
Returns the number of uncles in a block from a block matching the given block hash.
Parameters
hash: string
Hash of a block.
Returns Promise<Quantity>
The number of uncles in a block.
-eth_ get Uncle Count By Block Number
eth_ get Uncle Count By Block Number
Returns the number of uncles in a block from a block matching the given block hash.
Parameters
blockNumber: string
A block number, or the string "earliest", "latest" or "pending".
Returns Promise<Quantity>
The number of uncles in a block.
-eth_ get Work
eth_ get Work
Returns: An Array with the following elements 1:
DATA
, 32 Bytes - current block header pow-hash 2:DATA
, 32 Bytes - the seed hash used for the DAG. @@ -519,28 +519,28 @@Parameters
filterId: string
A filter id.
Returns Promise<[] | [string, string, string]>
The hash of the current block, the seedHash, and the boundary condition to be met ("target").
-eth_ hashrate
eth_ hashrate
Returns the number of hashes per second that the node is mining with.
Returns Promise<Quantity>
Number of hashes per second.
-eth_ max Priority Fee Per Gas
eth_ max Priority Fee Per Gas
Returns a
maxPriorityFeePerGas
value suitable for quick transaction inclusion.Returns Promise<Quantity>
The maxPriorityFeePerGas in wei.
-eth_ mining
eth_ mining
Returns
true
if client is actively mining new blocks.Returns Promise<boolean>
returns
-true
if the client is mining, otherwisefalse
.eth_ new Block Filter
eth_ new Block Filter
Creates a filter in the node, to notify when a new block arrives. To check if the state has changed, call
eth_getFilterChanges
.Returns Promise<Quantity>
A filter id.
-eth_ new Filter
eth_ new Filter
Creates a filter object, based on filter options, to notify when the state changes (logs). To check if the state has changed, call
@@ -579,25 +579,25 @@eth_getFilterChanges
.A note on specifying topic filters:
Parameters
Optional filter: RangeFilterArgs
The filter options as seen in source.
Returns Promise<Quantity>
A filter id.
-eth_ new Pending Transaction Filter
eth_ new Pending Transaction Filter
Creates a filter in the node, to notify when new pending transactions arrive. To check if the state has changed, call
eth_getFilterChanges
.Returns Promise<Quantity>
A filter id.
-eth_ protocol Version
eth_ protocol Version
Returns the current ethereum protocol version.
Returns Promise<Data>
The current ethereum protocol version.
-eth_ send Raw Transaction
eth_ send Raw Transaction
Creates new message call transaction or a contract creation for signed transactions.
Parameters
transaction: string
The signed transaction data.
Returns Promise<Data>
The transaction hash.
-eth_ send Transaction
eth_ send Transaction
Creates new message call transaction or a contract creation, if the data field contains code.
Transaction call object:
@@ -613,7 +613,7 @@
A note on specifying topic filters:
Parameters
transaction: TypedRpcTransaction
The transaction call object as seen in source.
Returns Promise<Data>
The transaction hash.
-eth_ sign
eth_ sign
The sign method calculates an Ethereum specific signature with:
sign(keccak256("\x19Ethereum Signed Message:\n" + message.length + message)))
.By adding a prefix to the message makes the calculated signature @@ -632,7 +632,7 @@
A note on specifying topic filters:
in big-endian format. Bytes 0...64 contain ther
parameter, bytes 64...128 thes
parameter, and the last byte thev
parameter. Note that thev
parameter includes the chain id as specified in EIP-155. -eth_ sign Transaction
eth_ sign Transaction
Signs a transaction that can be submitted to the network at a later time using
eth_sendRawTransaction
.Transaction call object:
@@ -648,7 +648,7 @@
A note on specifying topic filters:
Parameters
transaction: TypedRpcTransaction
The transaction call object as seen in source.
Returns Promise<string>
The raw, signed transaction.
-eth_ sign Typed Data
eth_ sign Typed Data
Identical to eth_signTypedData_v4.
712
eth_ sign Typed Data_ v4
712
+eth_ sign Typed Data_ v4
712
Parameters
address: string
A note on specifying topic filters:
in big-endian format. Bytes 0...64 contain ther
parameter, bytes 64...128 thes
parameter, and the last byte thev
parameter. Note that thev
parameter includes the chain id as specified in EIP-155. -eth_ submit Hashrate
eth_ submit Hashrate
Used for submitting mining hashrate.
A note on specifying topic filters:
clientID: string
A random hexadecimal(32 bytes) ID identifying the client.
Returns Promise<boolean>
-true
if submitting went through succesfully andfalse
otherwise.eth_ submit Work
eth_ submit Work
Used for submitting a proof-of-work solution.
A note on specifying topic filters:
digest: string
The mix digest (256 bits).
Returns Promise<boolean>
-true
if the provided solution is valid, otherwisefalse
.eth_ subscribe
eth_ subscribe
Starts a subscription to a particular event. For every event that matches the subscription a JSON-RPC notification with event details and subscription ID will be sent to a client.
@@ -705,7 +705,7 @@A note on specifying topic filters:
Parameters
subscriptionName: SubscriptionName
Name for the subscription.
Returns PromiEvent<Quantity>
A subscription id.
-Starts a subscription to a particular event. For every event that matches the subscription a JSON-RPC notification with event details and subscription ID will be sent to a client.
@@ -721,7 +721,7 @@A note on specifying topic filters:
topics
, only logs which match the specified topicsReturns PromiEvent<Quantity>
A subscription id.
-eth_ syncing
eth_ syncing
Returns an object containing data about the sync status or
false
when not syncing.A note on specifying topic filters:
currentBlock
: {bigint} The current block, same aseth_blockNumber
.highestBlock
: {bigint} The estimated highest block.eth_ uninstall Filter
eth_ uninstall Filter
Uninstalls a filter with given id. Should always be called when watch is no longer needed.
Returns Promise<boolean>
-true
if the filter was successfully uninstalled, otherwisefalse
.eth_ unsubscribe
eth_ unsubscribe
Cancel a subscription to a particular event. Returns a boolean indicating if the subscription was successfully cancelled.
Parameters
subscriptionId: string
The ID of the subscription to unsubscribe to.
Returns Promise<boolean>
-true
if subscription was cancelled successfully, otherwisefalse
.evm_ add Account
evm_ add Account
Adds any arbitrary account to the
personal
namespace.Note: accounts already known to the
@@ -764,14 +764,14 @@personal
namespace and accounts returned byeth_accounts
cannot be re-added using this method.A note on specifying topic filters:
that require a password.Returns Promise<boolean>
-true
if the account was successfully added.false
if the account is already in thepersonal
namespace.evm_ increase Time
evm_ increase Time
Jump forward in time by the given amount of time, in seconds.
Parameters
seconds: string | number
Number of seconds to jump forward in time by. Must be greater than or equal to
0
.Returns Promise<number>
Returns the total time adjustment, in seconds.
-evm_ mine
evm_ mine
Force a single block to be mined.
Mines a block independent of whether or not mining is started or stopped. Will mine an empty block if there are no available transactions to mine.
@@ -784,7 +784,7 @@A note on specifying topic filters:
number of blocks, regardless of any other blocks mined or reverted during it's operation. This behavior is subject to change!Returns Promise<"0x0">
The string
-"0x0"
. May return additional meta-data in the future.Parameters
options: { blocks?: number; timestamp?: number }
Optional blocks?: number
Optional timestamp?: number
Returns Promise<"0x0">
evm_ remove Account
Parameters
options: { blocks?: number; timestamp?: number }
Optional blocks?: number
Optional timestamp?: number
Returns Promise<"0x0">
evm_ remove Account
Removes an account from the
personal
namespace.Note: accounts not known to the
@@ -797,7 +797,7 @@personal
namespace cannot be removed using this method.A note on specifying topic filters:
The passphrase used to decrypt the account's private key.
Returns Promise<boolean>
-true
if the account was successfully removed.false
if the account was not in thepersonal
namespace.evm_ revert
evm_ revert
Revert the state of the blockchain to a previous snapshot. Takes a single parameter, which is the snapshot id to revert to. This deletes the given snapshot, as well as any snapshots taken after (e.g.: reverting to id 0x1 @@ -807,7 +807,7 @@
A note on specifying topic filters:
Parameters
snapshotId: string
The snapshot id to revert.
Returns Promise<boolean>
-true
if a snapshot was reverted, otherwisefalse
.evm_ set Account Nonce
evm_ set Account Nonce
Sets the given account's nonce to the specified value. Mines a new block before returning.
Warning: this will result in an invalid state tree.
@@ -818,17 +818,17 @@A note on specifying topic filters:
nonce: string
The nonce value to be set.
Returns Promise<boolean>
-true
if it worked, otherwisefalse
.evm_ set Time