diff --git a/classes/collections_lookup_map.LookupMap.html b/classes/collections_lookup_map.LookupMap.html index dc8b32c11..f17c808be 100644 --- a/classes/collections_lookup_map.LookupMap.html +++ b/classes/collections_lookup_map.LookupMap.html @@ -1,5 +1,5 @@ -
A lookup map that stores data in NEAR storage.
+Readonly
keyThe byte prefix to use when storing elements inside this collection.
-Readonly
keyThe byte prefix to use when storing elements inside this collection.
+Extends the current collection with the passed in array of key-value pairs.
The key-value pairs to extend the collection with.
Optional
options: GetOptions<DataType>Options for storing the data.
-Get the data stored at the provided key.
The key at which to look for the data.
Optional
options: Omit<GetOptions<DataType>, "serializer">Options for retrieving the data.
-Removes and retrieves the element with the provided key.
The key at which to remove data.
Optional
options: Omit<GetOptions<DataType>, "serializer">Options for retrieving the data.
-Serialize the collection.
Optional
options: Pick<GetOptions<DataType>, "serializer">Options for storing the data.
-Store a new value at the provided key.
The key at which to store in the collection.
The value to store in the collection.
Optional
options: GetOptions<DataType>Options for retrieving and storing the data.
-Optional
options: Omit<GetOptions<DataType>, "serializer">Static
reconstructConverts the deserialized data from storage to a JavaScript instance of the collection.
+Optional
options: Omit<GetOptions<DataType>, "serializer">Static
reconstructGenerated using TypeDoc
Generated using TypeDoc
A lookup set collection that stores entries in NEAR storage.
-A lookup set collection that stores entries in NEAR storage.
+Readonly
keyThe byte prefix to use when storing elements inside this collection.
-Readonly
keyThe byte prefix to use when storing elements inside this collection.
+Checks whether the collection contains the value.
The value for which to check the presence.
Optional
options: Pick<GetOptions<DataType>, "serializer">Options for storing data.
-Extends the current collection with the passed in array of elements.
The elements to extend the collection with.
Optional
options: Pick<GetOptions<DataType>, "serializer">Options for storing the data.
-Returns true if the element was present in the set.
The entry to remove.
Optional
options: Pick<GetOptions<DataType>, "serializer">Options for storing data.
-Serialize the collection.
Optional
options: Pick<GetOptions<DataType>, "serializer">Options for storing the data.
-If the set did not have this value present, true
is returned.
If the set did have this value present, false
is returned.
The value to store in the collection.
Optional
options: Pick<GetOptions<DataType>, "serializer">Options for storing the data.
-Static
reconstructConverts the deserialized data from storage to a JavaScript instance of the collection.
+Static
reconstructGenerated using TypeDoc
Generated using TypeDoc
Abstract
Abstract
Optional
options: Omit<GetOptions<DataType>, "serializer">Generated using TypeDoc
Optional
options: Omit<GetOptions<DataType>, "serializer">Generated using TypeDoc
An unordered map that stores data in NEAR storage.
-An unordered map that stores data in NEAR storage.
+The byte prefix to use when storing elements inside this collection.
-Readonly
_keysReadonly
prefixThe byte prefix to use when storing elements inside this collection.
-Readonly
valuesThe number of elements stored in the collection.
-Private
createReadonly
_keysReadonly
prefixThe byte prefix to use when storing elements inside this collection.
+Readonly
valuesThe number of elements stored in the collection.
+Private
createCreate a iterator on top of the default collection iterator using custom options.
Optional
options: GetOptions<DataType>Options for retrieving and storing the data.
-Get the data stored at the provided key.
The key at which to look for the data.
Optional
options: Omit<GetOptions<DataType>, "serializer">Options for retrieving the data.
-Removes and retrieves the element with the provided key.
The key at which to remove data.
Optional
options: Omit<GetOptions<DataType>, "serializer">Options for retrieving the data.
-Serialize the collection.
Optional
options: Pick<GetOptions<DataType>, "serializer">Options for storing the data.
-Store a new value at the provided key.
The key at which to store in the collection.
The value to store in the collection.
Optional
options: GetOptions<DataType>Options for retrieving and storing the data.
-Optional
options: Omit<GetOptions<DataType>, "serializer">Return a JavaScript array of the data stored within the collection.
+Optional
options: Omit<GetOptions<DataType>, "serializer">Return a JavaScript array of the data stored within the collection.
Optional
options: GetOptions<DataType>Options for retrieving and storing the data.
-Static
reconstructConverts the deserialized data from storage to a JavaScript instance of the collection.
+Static
reconstructConverts the deserialized data from storage to a JavaScript instance of the collection.
The deserialized data to create an instance from.
-Generated using TypeDoc
Generated using TypeDoc
An unordered set that stores data in NEAR storage.
-An unordered set that stores data in NEAR storage.
+The byte prefix to use when storing elements inside this collection.
-Readonly
_elementsReadonly
elementReadonly
prefixThe byte prefix to use when storing elements inside this collection.
-The number of elements stored in the collection.
-Remove all of the elements stored within the collection.
-Optional
options: Pick<GetOptions<DataType>, "serializer">Readonly
_elementsReadonly
elementReadonly
prefixThe byte prefix to use when storing elements inside this collection.
+The number of elements stored in the collection.
+Remove all of the elements stored within the collection.
+Optional
options: Pick<GetOptions<DataType>, "serializer">Checks whether the collection contains the value.
The value for which to check the presence.
Optional
options: Pick<GetOptions<DataType>, "serializer">Options for storing data.
-Private
createCreate a iterator on top of the default collection iterator using custom options.
+Private
createCreate a iterator on top of the default collection iterator using custom options.
Optional
options: GetOptions<DataType>Options for retrieving and storing the data.
-Optional
limit?: numberOptional
options?: GetOptions<DataType>Optional
start?: numberOptional
limit?: numberOptional
options?: GetOptions<DataType>Optional
start?: numberReturns true if the element was present in the set.
The entry to remove.
Optional
options: GetOptions<DataType>Options for retrieving and storing data.
-Serialize the collection.
Optional
options: Pick<GetOptions<DataType>, "serializer">Options for storing the data.
-If the set did not have this value present, true
is returned.
If the set did have this value present, false
is returned.
The value to store in the collection.
Optional
options: Pick<GetOptions<DataType>, "serializer">Options for storing the data.
-Return a JavaScript array of the data stored within the collection.
Optional
options: GetOptions<DataType>Options for retrieving and storing the data.
-Static
reconstructConverts the deserialized data from storage to a JavaScript instance of the collection.
+Static
reconstructConverts the deserialized data from storage to a JavaScript instance of the collection.
The deserialized data to create an instance from.
-Generated using TypeDoc
Generated using TypeDoc
An iterable implementation of vector that stores its content on the trie. +
An iterable implementation of vector that stores its content on the trie. Uses the following map: index -> element
-The initial length of the collection. By default 0.
-Readonly
prefixThe byte prefix to use when storing elements inside this collection.
-Private
createCreate a iterator on top of the default collection iterator using custom options.
+The initial length of the collection. By default 0.
+Readonly
prefixThe byte prefix to use when storing elements inside this collection.
+Private
createCreate a iterator on top of the default collection iterator using custom options.
Optional
options: GetOptions<DataType>Options for retrieving and storing the data.
-Get the data stored at the provided index.
The index at which to look for the data.
Optional
options: Omit<GetOptions<DataType>, "serializer">Options for retrieving the data.
-Removes and retrieves the element with the highest index.
Optional
options: Omit<GetOptions<DataType>, "serializer">Options for retrieving the data.
-Adds data to the collection.
The data to store.
Optional
options: Pick<GetOptions<DataType>, "serializer">Options for storing the data.
-Replaces the data stored at the provided index with the provided data and returns the previously stored data.
The index at which to replace the data.
The data to replace with.
Optional
options: GetOptions<DataType>Options for retrieving and storing the data.
-Serialize the collection.
Optional
options: Pick<GetOptions<DataType>, "serializer">Options for storing the data.
-Optional
options: Omit<GetOptions<DataType>, "serializer">Removes an element from the vector and returns it in serialized form. +
Optional
options: Omit<GetOptions<DataType>, "serializer">Removes an element from the vector and returns it in serialized form.
The removed element is replaced by the last element of the vector.
Does not preserve ordering, but is O(1)
.
The index at which to remove the element.
Optional
options: GetOptions<DataType>Options for retrieving and storing the data.
-Return a JavaScript array of the data stored within the collection.
Optional
options: GetOptions<DataType>Options for retrieving and storing the data.
-Static
reconstructConverts the deserialized data from storage to a JavaScript instance of the collection.
+Static
reconstructGenerated using TypeDoc
Generated using TypeDoc
An iterator for the Vector collection.
-An iterator for the Vector collection.
+The vector collection to create an iterator for.
Optional
options: GetOptions<DataType>Options for retrieving and storing data.
-Private
currentPrivate
Optional
Readonly
optionsOptions for retrieving and storing data.
-Private
vectorThe vector collection to create an iterator for.
-Generated using TypeDoc
Private
currentPrivate
Optional
Readonly
optionsOptions for retrieving and storing data.
+Private
vectorThe vector collection to create an iterator for.
+Generated using TypeDoc
A add access key promise action.
-A add access key promise action.
+The account ID of the receiver.
The names of funcitons to authorize.
The nonce to use.
-The allowance for the key in yoctoNEAR.
-The names of funcitons to authorize.
-The nonce to use.
-The public key to add as a access key.
-The account ID of the receiver.
-The allowance for the key in yoctoNEAR.
+The names of funcitons to authorize.
+The nonce to use.
+The public key to add as a access key.
+The account ID of the receiver.
+The method that describes how a promise action adds it's action to the promise batch with the provided index.
The index of the promise batch to attach the action to.
-Generated using TypeDoc
Generated using TypeDoc
A add full access key promise action.
-A add full access key promise action.
+The public key to add as a full access key.
The nonce to use.
-The nonce to use.
-The public key to add as a full access key.
-The nonce to use.
+The public key to add as a full access key.
+The method that describes how a promise action adds it's action to the promise batch with the provided index.
The index of the promise batch to attach the action to.
-Generated using TypeDoc
Generated using TypeDoc
A create account promise action.
-A create account promise action.
+The method that describes how a promise action adds it's action to the promise batch with the provided index.
The index of the promise batch to attach the action to.
-Generated using TypeDoc
Generated using TypeDoc
A delete account promise action.
-A delete account promise action.
+The beneficiary of the account deletion - the account to recieve all of the remaining funds of the deleted account.
-The beneficiary of the account deletion - the account to recieve all of the remaining funds of the deleted account.
-The beneficiary of the account deletion - the account to recieve all of the remaining funds of the deleted account.
+The method that describes how a promise action adds it's action to the promise batch with the provided index.
The index of the promise batch to attach the action to.
-Generated using TypeDoc
Generated using TypeDoc
A delete key promise action.
-A delete key promise action.
+The public key to delete from the account.
-The public key to delete from the account.
+The method that describes how a promise action adds it's action to the promise batch with the provided index.
The index of the promise batch to attach the action to.
-Generated using TypeDoc
Generated using TypeDoc
A deploy contract promise action.
-A deploy contract promise action.
+The code of the contract to be deployed.
-The code of the contract to be deployed.
-The code of the contract to be deployed.
+The method that describes how a promise action adds it's action to the promise batch with the provided index.
The index of the promise batch to attach the action to.
-Generated using TypeDoc
Generated using TypeDoc
A function call promise action.
-A function call promise action.
+The utf-8 string arguments to be passed to the function.
The amount of NEAR to attach to the call.
The amount of Gas to attach to the call.
-The amount of NEAR to attach to the call.
-The utf-8 string arguments to be passed to the function.
-The name of the function to be called.
-The amount of Gas to attach to the call.
-The amount of NEAR to attach to the call.
+The utf-8 string arguments to be passed to the function.
+The name of the function to be called.
+The amount of Gas to attach to the call.
+The method that describes how a promise action adds it's action to the promise batch with the provided index.
The index of the promise batch to attach the action to.
-Generated using TypeDoc
Generated using TypeDoc
A function call raw promise action.
-A function call raw promise action.
+The arguments to be passed to the function.
The amount of NEAR to attach to the call.
The amount of Gas to attach to the call.
-The amount of NEAR to attach to the call.
-The arguments to be passed to the function.
-The name of the function to be called.
-The amount of Gas to attach to the call.
-The amount of NEAR to attach to the call.
+The arguments to be passed to the function.
+The name of the function to be called.
+The amount of Gas to attach to the call.
+The method that describes how a promise action adds it's action to the promise batch with the provided index.
The index of the promise batch to attach the action to.
-Generated using TypeDoc
Generated using TypeDoc
A function call weight promise action.
-A function call weight promise action.
+The amount of NEAR to attach to the call.
The amount of Gas to attach to the call.
The weight of unused Gas to use.
-The amount of NEAR to attach to the call.
-The utf-8 string arguments to be passed to the function.
-The name of the function to be called.
-The amount of Gas to attach to the call.
-The weight of unused Gas to use.
-The amount of NEAR to attach to the call.
+The utf-8 string arguments to be passed to the function.
+The name of the function to be called.
+The amount of Gas to attach to the call.
+The weight of unused Gas to use.
+The method that describes how a promise action adds it's action to the promise batch with the provided index.
The index of the promise batch to attach the action to.
-Generated using TypeDoc
Generated using TypeDoc
A function call weight raw promise action.
-A function call weight raw promise action.
+The amount of NEAR to attach to the call.
The amount of Gas to attach to the call.
The weight of unused Gas to use.
-The amount of NEAR to attach to the call.
-The arguments to be passed to the function.
-The name of the function to be called.
-The amount of Gas to attach to the call.
-The weight of unused Gas to use.
-The amount of NEAR to attach to the call.
+The arguments to be passed to the function.
+The name of the function to be called.
+The amount of Gas to attach to the call.
+The weight of unused Gas to use.
+The method that describes how a promise action adds it's action to the promise batch with the provided index.
The index of the promise batch to attach the action to.
-Generated using TypeDoc
Generated using TypeDoc
A high level class to construct and work with NEAR promises.
-A high level class to construct and work with NEAR promises.
+The subtype of the promise.
Whether the promise should return.
-Private
shouldWhether the promise should return.
-Private
subtypeThe subtype of the promise.
-Creates a add access key promise action and adds it to the current promise. +
Private
shouldWhether the promise should return.
+Private
subtypeThe subtype of the promise.
+Creates a add access key promise action and adds it to the current promise. Uses 0n as the nonce.
The public key to add as a access key.
The allowance for the key in yoctoNEAR.
The account ID of the receiver.
The names of funcitons to authorize.
-Creates a add access key promise action and adds it to the current promise. +
Creates a add access key promise action and adds it to the current promise. Allows you to specify the nonce.
The public key to add as a access key.
The allowance for the key in yoctoNEAR.
The account ID of the receiver.
The names of funcitons to authorize.
The nonce to use.
-Private
addCreates a add full access key promise action and adds it to the current promise. +
Private
addCreates a add full access key promise action and adds it to the current promise. Uses 0n as the nonce.
The public key to add as a full access key.
-Creates a add full access key promise action and adds it to the current promise. +
Creates a add full access key promise action and adds it to the current promise. Allows you to specify the nonce.
The public key to add as a full access key.
The nonce to use.
-Joins the provided promise with the current promise, making the current promise a joint promise subtype.
+Joins the provided promise with the current promise, making the current promise a joint promise subtype.
The promise to join with the current promise.
-Sets the shouldReturn field to true.
-Attach the promise to transaction but does not return it. The promise will be executed, but +
Sets the shouldReturn field to true.
+Attach the promise to transaction but does not return it. The promise will be executed, but whether it success or not will not affect the transaction result. If you want the promise fail also makes the transaction fail, you can simply return the promise from a
method.
-Recursively goes through the current promise to get the promise index.
-Creates a create account promise action and adds it to the current promise.
-Creates a delete account promise action and adds it to the current promise.
+Recursively goes through the current promise to get the promise index.
+Creates a create account promise action and adds it to the current promise.
+Creates a delete account promise action and adds it to the current promise.
The beneficiary of the account deletion - the account to recieve all of the remaining funds of the deleted account.
-Creates a delete key promise action and adds it to the current promise.
+Creates a delete key promise action and adds it to the current promise.
The public key to delete from the account.
-Creates a deploy contract promise action and adds it to the current promise.
+Creates a deploy contract promise action and adds it to the current promise.
The code of the contract to be deployed.
-Creates a function call promise action and adds it to the current promise.
+Creates a function call promise action and adds it to the current promise.
The name of the function to be called.
The utf-8 string arguments to be passed to the function.
The amount of NEAR to attach to the call.
The amount of Gas to attach to the call.
-Creates a function call raw promise action and adds it to the current promise.
+Creates a function call raw promise action and adds it to the current promise.
The name of the function to be called.
The arguments to be passed to the function.
The amount of NEAR to attach to the call.
The amount of Gas to attach to the call.
-Creates a function call weight promise action and adds it to the current promise.
+Creates a function call weight promise action and adds it to the current promise.
The name of the function to be called.
The utf-8 string arguments to be passed to the function.
The amount of NEAR to attach to the call.
The amount of Gas to attach to the call.
The weight of unused Gas to use.
-Creates a function call weight raw promise action and adds it to the current promise.
+Creates a function call weight raw promise action and adds it to the current promise.
The name of the function to be called.
The arguments to be passed to the function.
The amount of NEAR to attach to the call.
The amount of Gas to attach to the call.
The weight of unused Gas to use.
-Creates a stake promise action and adds it to the current promise.
+Creates a stake promise action and adds it to the current promise.
The amount of NEAR to tranfer.
The public key to use for staking.
-Adds a callback to the current promise.
+Adds a callback to the current promise.
The promise to be executed as the promise.
-Creates a transfer promise action and adds it to the current promise.
+Creates a transfer promise action and adds it to the current promise.
The amount of NEAR to tranfer.
-Static
newCreates a new promise to the provided account ID.
+Static
newCreates a new promise to the provided account ID.
The account ID on which to call the promise.
-Generated using TypeDoc
Generated using TypeDoc
Abstract
A promise action which can be executed on the NEAR blockchain.
-Abstract
A promise action which can be executed on the NEAR blockchain.
+Abstract
addThe method that describes how a promise action adds it's action to the promise batch with the provided index.
The index of the promise batch to attach the action to.
-Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
A stake promise action.
-A stake promise action.
+The amount of NEAR to tranfer.
-The public key to use for staking.
-The amount of NEAR to tranfer.
+The public key to use for staking.
+The method that describes how a promise action adds it's action to the promise batch with the provided index.
The index of the promise batch to attach the action to.
-Generated using TypeDoc
Generated using TypeDoc
A transfer promise action.
-A transfer promise action.
+The amount of NEAR to tranfer.
-The amount of NEAR to tranfer.
+The method that describes how a promise action adds it's action to the promise batch with the provided index.
The index of the promise batch to attach the action to.
-Generated using TypeDoc
Generated using TypeDoc
Optional
causeOptional
stackStatic
Optional
prepareOptional override for formatting stack traces
+Optional
causeOptional
stackStatic
Optional
prepareOptional override for formatting stack traces
Static
stackStatic
captureGenerated using TypeDoc
Optional
constructorOpt: FunctionGenerated using TypeDoc
Optional
causeOptional
stackStatic
Optional
prepareOptional override for formatting stack traces
+Optional
causeOptional
stackStatic
Optional
prepareOptional override for formatting stack traces
Static
stackStatic
captureGenerated using TypeDoc
Optional
constructorOpt: FunctionGenerated using TypeDoc
Optional
message: stringOptional
message: stringOptional
options: ErrorOptionsOptional
causeOptional
stackStatic
Optional
prepareOptional override for formatting stack traces
Static
stackStatic
captureGenerated using TypeDoc
Optional
constructorOpt: FunctionGenerated using TypeDoc
A abstraction on top of the NEAR public key string.
-A abstraction on top of the NEAR public key string.
+The actual value of the public key.
-Private
typeStatic
fromCreate a public key from a public key string.
+The actual value of the public key.
+Private
typeStatic
fromGenerated using TypeDoc
Generated using TypeDoc
Optional
causeOptional
stackStatic
Optional
prepareOptional override for formatting stack traces
+Optional
causeOptional
stackStatic
Optional
prepareOptional override for formatting stack traces
Static
stackStatic
captureGenerated using TypeDoc
Optional
constructorOpt: FunctionGenerated using TypeDoc
A subset of NodeJS TextDecoder API. Only support utf-8 and latin1 encoding.
-A subset of NodeJS TextDecoder API. Only support utf-8 and latin1 encoding.
+Generated using TypeDoc
Generated using TypeDoc
A subset of NodeJS TextEncoder API
-A subset of NodeJS TextEncoder API
+Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
A Promise result in near can be one of:
+A Promise result in near can be one of:
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Computes multiexp on alt_bn128 curve using Pippenger's algorithm \sum_i +
Computes multiexp on alt_bn128 curve using Pippenger's algorithm \sum_i mul_i g_{1 i} should be equal result.
equence of (g1:G1, fr:Fr), where
G1 is point (x:Fq, y:Fq) on alt_bn128,
@@ -6,4 +6,4 @@
value
is encoded as packed, little-endian
[((u256, u256), u256)]
slice.
multi exp sum
-Generated using TypeDoc
Generated using TypeDoc
Computes sum for signed g1 group elements on alt_bn128 curve \sum_i +
Computes sum for signed g1 group elements on alt_bn128 curve \sum_i (-1)^{sign_i} g_{1 i} should be equal result.
sequence of (sign:bool, g1:G1), where
G1 is point (x:Fq, y:Fq) on alt_bn128,
alt_bn128 is Y^2 = X^3 + 3 curve over Fq.
valueis encoded a as packed, little-endian
[((u256, u256), ((u256, u256), (u256, u256)))]` slice.
sum over Fq.
-Generated using TypeDoc
Generated using TypeDoc
Computes pairing check on alt_bn128 curve. +
Computes pairing check on alt_bn128 curve. \sum_i e(g_{1 i}, g_{2 i}) should be equal one (in additive notation), e(g1, g2) is Ate pairing
sequence of (g1:G1, g2:G2), where
G2 is Fr-ordered subgroup point (x:Fq2, y:Fq2) on alt_bn128 twist,
@@ -9,4 +9,4 @@
value
is encoded a as packed, little-endian
[((u256, u256), ((u256, u256), (u256, u256)))]
slice.
whether pairing check pass
-Generated using TypeDoc
Generated using TypeDoc
Returns the amount of NEAR attached to this function call. +
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Recovers an ECDSA signer address from a 32-byte message hash and a corresponding +
Recovers an ECDSA signer address from a 32-byte message hash and a corresponding signature along with v recovery byte. Takes in an additional flag to check for malleability of the signature which is generally only ideal for transactions.
32-byte message hash
@@ -6,4 +6,4 @@number of recovery byte
whether to check malleability
64 bytes representing the public key if the recovery was successful.
-Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Returns keccak256 hash of given value
+Generated using TypeDoc
Generated using TypeDoc
Returns keccak512 hash of given value
+Generated using TypeDoc
Generated using TypeDoc
Logs parameters in the NEAR WASM virtual machine.
+Generated using TypeDoc
Generated using TypeDoc
Log the message in transaction logs
+Generated using TypeDoc
Generated using TypeDoc
Log the message in transaction logs
+Generated using TypeDoc
Generated using TypeDoc
Panic the transaction execution with given message
+Generated using TypeDoc
Generated using TypeDoc
Returns the account ID of the account that called the function. +
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Join an arbitrary array of NEAR promises.
+Join an arbitrary array of NEAR promises.
Rest
...promiseIndexes: PromiseIndex[]An arbitrary array of NEAR promise indexes to join.
-Generated using TypeDoc
Generated using TypeDoc
Attach a add full access key promise action to the NEAR promise index with the provided promise index.
+Attach a add full access key promise action to the NEAR promise index with the provided promise index.
The index of the promise to attach a add full access key action to.
The public key to add as a full access key.
The nonce to use.
-Generated using TypeDoc
Generated using TypeDoc
Attach a add access key promise action to the NEAR promise index with the provided promise index.
+Attach a add access key promise action to the NEAR promise index with the provided promise index.
The index of the promise to attach a add access key action to.
The public key to add.
The nonce to use.
The allowance of the access key.
The account ID of the receiver.
The names of the method to allow the key for.
-Generated using TypeDoc
Generated using TypeDoc
Attach a create account promise action to the NEAR promise index with the provided promise index.
+Attach a create account promise action to the NEAR promise index with the provided promise index.
The index of the promise to attach a create account action to.
-Generated using TypeDoc
Generated using TypeDoc
Attach a delete account promise action to the NEAR promise index with the provided promise index.
+Attach a delete account promise action to the NEAR promise index with the provided promise index.
The index of the promise to attach a delete account action to.
The account ID of the beneficiary - the account that receives the remaining amount of NEAR.
-Generated using TypeDoc
Generated using TypeDoc
Attach a delete key promise action to the NEAR promise index with the provided promise index.
+Attach a delete key promise action to the NEAR promise index with the provided promise index.
The index of the promise to attach a delete key action to.
The public key to delete.
-Generated using TypeDoc
Generated using TypeDoc
Attach a deploy contract promise action to the NEAR promise index with the provided promise index.
+Attach a deploy contract promise action to the NEAR promise index with the provided promise index.
The index of the promise to attach a deploy contract action to.
The WASM byte code of the contract to be deployed.
-Generated using TypeDoc
Generated using TypeDoc
Attach a function call promise action to the NEAR promise index with the provided promise index.
+Attach a function call promise action to the NEAR promise index with the provided promise index.
The index of the promise to attach a function call action to.
The name of the method to be called.
The utf-8 string arguments to call the method with.
The amount of NEAR to attach to the call.
The amount of Gas to attach to the call.
-Generated using TypeDoc
Generated using TypeDoc
Attach a function call promise action to the NEAR promise index with the provided promise index.
+Attach a function call promise action to the NEAR promise index with the provided promise index.
The index of the promise to attach a function call action to.
The name of the method to be called.
The arguments to call the method with.
The amount of NEAR to attach to the call.
The amount of Gas to attach to the call.
-Generated using TypeDoc
Generated using TypeDoc
Attach a function call with weight promise action to the NEAR promise index with the provided promise index.
+Attach a function call with weight promise action to the NEAR promise index with the provided promise index.
The index of the promise to attach a function call with weight action to.
The name of the method to be called.
The utf-8 string arguments to call the method with.
The amount of NEAR to attach to the call.
The amount of Gas to attach to the call.
The weight of unused Gas to use.
-Generated using TypeDoc
Generated using TypeDoc
Attach a function call with weight promise action to the NEAR promise index with the provided promise index.
+Attach a function call with weight promise action to the NEAR promise index with the provided promise index.
The index of the promise to attach a function call with weight action to.
The name of the method to be called.
The arguments to call the method with.
The amount of NEAR to attach to the call.
The amount of Gas to attach to the call.
The weight of unused Gas to use.
-Generated using TypeDoc
Generated using TypeDoc
Attach a stake promise action to the NEAR promise index with the provided promise index.
+Attach a stake promise action to the NEAR promise index with the provided promise index.
The index of the promise to attach a stake action to.
The amount of NEAR to stake.
The public key with which to stake.
-Generated using TypeDoc
Generated using TypeDoc
Attach a transfer promise action to the NEAR promise index with the provided promise index.
+Attach a transfer promise action to the NEAR promise index with the provided promise index.
The index of the promise to attach a transfer action to.
The amount of NEAR to transfer.
-Generated using TypeDoc
Generated using TypeDoc
Create a NEAR promise which will have multiple promise actions inside.
+Create a NEAR promise which will have multiple promise actions inside.
The account ID of the target contract.
-Generated using TypeDoc
Generated using TypeDoc
Attach a callback NEAR promise to a batch of NEAR promise actions.
+Attach a callback NEAR promise to a batch of NEAR promise actions.
The NEAR promise index of the batch.
The account ID of the target contract.
-Generated using TypeDoc
Generated using TypeDoc
Create a NEAR promise call to a contract on the blockchain.
+Create a NEAR promise call to a contract on the blockchain.
The account ID of the target contract.
The name of the method to be called.
The utf-8 string arguments to call the method with.
The amount of NEAR attached to the call.
The amount of Gas attached to the call.
-Generated using TypeDoc
Generated using TypeDoc
Create a NEAR promise call to a contract on the blockchain.
+Create a NEAR promise call to a contract on the blockchain.
The account ID of the target contract.
The name of the method to be called.
The arguments to call the method with.
The amount of NEAR attached to the call.
The amount of Gas attached to the call.
-Generated using TypeDoc
Generated using TypeDoc
Returns the result of the NEAR promise for the passed promise index as utf-8 string
+Returns the result of the NEAR promise for the passed promise index as utf-8 string
The index of the promise to return the result for.
-Generated using TypeDoc
Generated using TypeDoc
Returns the result of the NEAR promise for the passed promise index.
+Returns the result of the NEAR promise for the passed promise index.
The index of the promise to return the result for.
-Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Executes the promise in the NEAR WASM virtual machine.
+Executes the promise in the NEAR WASM virtual machine.
The index of the promise to execute.
-Generated using TypeDoc
Generated using TypeDoc
Attach a callback NEAR promise to be executed after a provided promise.
+Attach a callback NEAR promise to be executed after a provided promise.
The promise after which to call the callback.
The account ID of the contract to perform the callback on.
The name of the method to call.
The utf-8 string arguments to call the method with.
The amount of NEAR to attach to the call.
The amount of Gas to attach to the call.
-Generated using TypeDoc
Generated using TypeDoc
Attach a callback NEAR promise to be executed after a provided promise.
+Attach a callback NEAR promise to be executed after a provided promise.
The promise after which to call the callback.
The account ID of the contract to perform the callback on.
The name of the method to call.
The arguments to call the method with.
The amount of NEAR to attach to the call.
The amount of Gas to attach to the call.
-Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Returns ripemd160 hash of given value
+Generated using TypeDoc
Generated using TypeDoc
Returns sha256 hash of given value
+Generated using TypeDoc
Generated using TypeDoc
Returns the account ID of the account that signed the transaction. +
Generated using TypeDoc
Generated using TypeDoc
Returns the public key of the account that signed the transaction. +
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Checks for the existance of a value under the provided utf-8 string key in NEAR storage.
+Generated using TypeDoc
Generated using TypeDoc
Checks for the existance of a value under the provided key in NEAR storage.
+Generated using TypeDoc
Generated using TypeDoc
Reads the utf-8 string value from NEAR storage that is stored under the provided key.
+Generated using TypeDoc
Generated using TypeDoc
Reads the value from NEAR storage that is stored under the provided key.
+Generated using TypeDoc
Generated using TypeDoc
Removes the value of the provided utf-8 string key from NEAR storage.
+Generated using TypeDoc
Generated using TypeDoc
Removes the value of the provided key from NEAR storage.
+Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Writes the provided utf-8 string to NEAR storage under the provided key.
+Generated using TypeDoc
Generated using TypeDoc
Writes the provided bytes to NEAR storage under the provided key.
+Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Returns the number of staked NEAR of given validator, in yoctoNEAR
+Generated using TypeDoc
Generated using TypeDoc
Returns the number of staked NEAR of all validators, in yoctoNEAR
+Generated using TypeDoc
Generated using TypeDoc
Returns the utf-8 string value from the NEAR WASM virtual machine.
+Generated using TypeDoc
Generated using TypeDoc
Returns the value from the NEAR WASM virtual machine.
+Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Validates the contract by checking that all parameters are initialized in the constructor. Works only for contracts written in TypeScript.
+Validates the contract by checking that all parameters are initialized in the constructor. Works only for contracts written in TypeScript.
Path to the contract.
Whether to print verbose output.
-Generated using TypeDoc
Generated using TypeDoc
A macro that reads the WASM code from the specified path at compile time.
+Generated using TypeDoc
Generated using TypeDoc
Extends this class with the methods needed to make the contract storable/serializable and readable/deserializable to and from the blockchain. +
Extends this class with the methods needed to make the contract storable/serializable and readable/deserializable to and from the blockchain. Also tells the SDK to capture and expose all view, call and initialize functions. Tells the SDK whether the contract requires initialization and whether to use a custom serialization/deserialization function when storing/reading the state.
Options to configure the contract behaviour.
Optional
requireWhether the contract requires initialization.
Generated using TypeDoc
Generated using TypeDoc
Tells the SDK to expose this function as a call function. +
Tells the SDK to expose this function as a call function. Adds the neccessary checks if the function is private or payable.
Options to configure the function behaviour.
Optional
payableWhether the function can accept an attached deposit.
Optional
privateWhether the function can be called by other contracts.
-Generated using TypeDoc
Generated using TypeDoc
Tells the SDK to use this function as the initialization function of the contract.
+Generated using TypeDoc
Generated using TypeDoc
Tells the SDK to apply an array of passed in middleware to the function execution.
+Generated using TypeDoc
Generated using TypeDoc
Tells the SDK to use this function as the migration function of the contract. +
Generated using TypeDoc
Generated using TypeDoc
Tells the SDK to expose this function as a view function.
+Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Asserts that the expression passed to the function is truthy, otherwise throws a new Error with the provided message.
+Asserts that the expression passed to the function is truthy, otherwise throws a new Error with the provided message.
The expression to be asserted.
The error message to be printed.
-Generated using TypeDoc
Generated using TypeDoc
Convert a string to Uint8Array, each character must have a char code between 0-255.
+Generated using TypeDoc
Generated using TypeDoc
Concat two Uint8Array
+Generated using TypeDoc
Generated using TypeDoc
Decode the Uint8Array to string in UTF-8 encoding
+Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Encode the string to Uint8Array with UTF-8 encoding
+Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Convert a Uint8Array to string, each uint8 to the single character of that char code
+Generated using TypeDoc
Generated using TypeDoc
Validates the Account ID according to the NEAR protocol +
Validates the Account ID according to the NEAR protocol Account ID rules.
The Account ID string you want to validate.
-Generated using TypeDoc
Generated using TypeDoc
+
This repository is distributed under the terms of both the MIT license and the Apache License (Version 2.0). See LICENSE and LICENSE-APACHE for details.
-Generated using TypeDoc
Generated using TypeDoc
Options for retrieving and storing data in the SDK collections.
-Options for retrieving and storing data in the SDK collections.
+Optional
defaultA default value to return if the original value is not present or null.
-Optional
deserializerOptional
deserializerOptional
reconstructorOptional
reconstructorA constructor function to call after deserializing a value. Tipically this is a constructor of the class you are storing.
The value returned from deserialization - either the provided deserializer
or default deserialization function.
Optional
serializerOptional
serializerGenerated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
A string that represents a NEAR account ID.
-Generated using TypeDoc
A string that represents a NEAR account ID.
+Generated using TypeDoc
The Gas amount specified in yoctoNEAR.
-Generated using TypeDoc
The Gas amount specified in yoctoNEAR.
+Generated using TypeDoc
The amount of tokens in yoctoNEAR.
-Generated using TypeDoc
The amount of tokens in yoctoNEAR.
+Generated using TypeDoc
A large integer representing the block height.
-Generated using TypeDoc
A large integer representing the block height.
+Generated using TypeDoc
A large integer representing the epoch height.
-Generated using TypeDoc
A large integer representing the epoch height.
+Generated using TypeDoc
The amount of Gas Weight in integers - whole numbers.
-Generated using TypeDoc
The amount of Gas Weight in integers - whole numbers.
+Generated using TypeDoc
A large integer representing the nonce.
-Generated using TypeDoc
A large integer representing the nonce.
+Generated using TypeDoc
The amount of storage used in yoctoNEAR.
-Generated using TypeDoc
The amount of storage used in yoctoNEAR.
+Generated using TypeDoc
The index for iterators.
-Generated using TypeDoc
The index for iterators.
+Generated using TypeDoc
The index for NEAR receipts.
-Generated using TypeDoc
The index for NEAR receipts.
+Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
A number that specifies the amount of NEAR in yoctoNEAR.
-Generated using TypeDoc
A number that specifies the amount of NEAR in yoctoNEAR.
+Generated using TypeDoc
A PromiseIndex which represents the ID of a NEAR Promise.
-Generated using TypeDoc
A PromiseIndex which represents the ID of a NEAR Promise.
+Generated using TypeDoc
A number that specifies the ID of a register in the NEAR WASM virtual machine.
-Generated using TypeDoc
A number that specifies the ID of a register in the NEAR WASM virtual machine.
+Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Generated using TypeDoc
Const
Generated using TypeDoc
Const
Generated using TypeDoc
Const
Generated using TypeDoc
Const
Generated using TypeDoc
Const
Generated using TypeDoc
Const
Generated using TypeDoc
A lookup map that stores data in NEAR storage.
-