Contract
DelayedMessageExecution
Ƭ DelayedMessageExecution: Object
Type declaration
| Name | Type | Description |
|---|---|---|
messageHash | string | External message hash |
expireAt | number | Message expiration timestamp |
transaction | Promise<Transaction> | Transaction promise (it will be rejected if the message has expired) |
Defined in:
ContractMethods
Ƭ ContractMethods<C>: { [K in AbiFunctionName<C>]: Function }
Type parameters
| Name |
|---|
C |
Defined in:
ContractFields
Ƭ ContractFields<C>: { [K in AbiFieldName<C>]: Function }
Type parameters
| Name |
|---|
C |
Defined in:
GetContractFieldsParams
Ƭ GetContractFieldsParams: Object
Type declaration
| Name | Type | Description |
|---|---|---|
cachedState? | FullContractState | Cached contract state |
allowPartial? | boolean | Don't fail if something is left in a cell after unpacking |
Defined in:
ContractFunction
Ƭ ContractFunction: Object
Type declaration
| Name | Type |
|---|---|
name | string |
inputs? | AbiParam[] |
outputs? | AbiParam[] |
Defined in:
SendInternalParams
Ƭ SendInternalParams: Object
Type declaration
| Name | Type | Description |
|---|---|---|
from | Address | Preferred wallet address. It is the same address as the accountInteraction.address, but it must be explicitly provided |
amount | string | Amount of nano EVER to send |
bounce? | boolean | Default ts true |
stateInit? | string | Optional base64 encoded TVC NOTE: If the selected contract do not support stateInit in the internal message, an error is returned |
Defined in:
SendInternalWithResultParams
Ƭ SendInternalWithResultParams: SendInternalParams & { subscriber?: Subscriber }
Defined in:
SendExternalParams
Ƭ SendExternalParams: Object
Type declaration
| Name | Type | Description |
|---|---|---|
publicKey | string | The public key of the preferred account. It is the same publicKey as the accountInteraction.publicKey, but it must be explicitly provided |
stateInit? | string | Optional base64 encoded TVC |
local? | boolean | Whether to run this message locally. Default: false |
executorParams? | { disableSignatureCheck?: boolean ; overrideBalance?: string | number } | Optional executor parameters used during local contract execution |
executorParams.disableSignatureCheck? | boolean | If true, signature verification always succeds |
executorParams.overrideBalance? | string | number | Explicit account balance in nano EVER |
withoutSignature? | boolean | Whether to prepare this message without signature. Default: false |
Defined in:
SendExternalDelayedParams
Ƭ SendExternalDelayedParams: Object
Type declaration
| Name | Type | Description |
|---|---|---|
publicKey | string | The public key of the preferred account. It is the same publicKey as the accountInteraction.publicKey, but it must be explicitly provided |
stateInit? | string | Optional base64 encoded TVC |
Defined in:
CallParams
Ƭ CallParams: Object
Type declaration
| Name | Type | Description |
|---|---|---|
cachedState? | FullContractState | Cached contract state |
responsible? | boolean | Whether to run the method locally as responsible. This will use internal message with unlimited account balance. |
Defined in:
ExecuteExternalParams
Ƭ ExecuteExternalParams: Object
Type declaration
| Name | Type | Description |
|---|---|---|
cachedState? | FullContractState | Cached contract state |
publicKey | string | The public key of the signer. |
stateInit? | string | Optional base64 encoded TVC |
executorParams? | { disableSignatureCheck?: boolean ; overrideBalance?: string | number } | Optional executor parameters used during local contract execution |
executorParams.disableSignatureCheck? | boolean | If true, signature verification always succeeds |
executorParams.overrideBalance? | string | number | Explicit account balance in nano EVER |
withoutSignature? | boolean | Whether to prepare this message without signature. Default: false |
Defined in:
ExecuteInternalParams
Ƭ ExecuteInternalParams: Object
Type declaration
| Name | Type | Description |
|---|---|---|
cachedState? | FullContractState | Cached contract state |
stateInit? | string | Optional base64 encoded TVC |
sender | Address | Message source address |
amount | string | Amount of nano EVER to attach to the message |
bounce? | boolean | Whether to bounce message back on error. Default: false |
bounced? | boolean | Whether the constructed message is bounced. Default: false |
executorParams? | { disableSignatureCheck?: boolean ; overrideBalance?: string | number } | Optional executor parameters used during local contract execution |
executorParams.disableSignatureCheck? | boolean | If true, signature verification always succeeds |
executorParams.overrideBalance? | string | number | Explicit account balance in nano EVER |
Defined in:
GetPastEventParams
Ƭ GetPastEventParams<Abi, E>: Object
Type parameters
| Name | Type |
|---|---|
Abi | Abi |
E | extends AbiEventName<Abi> |
Type declaration
| Name | Type |
|---|---|
filter? | E | EventsFilter<Abi, AbiEventName<Abi>> |
range? | EventsRange |
limit? | number |
continuation? | TransactionId |
Defined in:
WaitForEventParams
Ƭ WaitForEventParams<Abi, E>: Object
Type parameters
| Name | Type |
|---|---|
Abi | Abi |
E | extends AbiEventName<Abi> |
Type declaration
| Name | Type |
|---|---|
filter? | E | EventsFilter<Abi, E> |
range? | EventsRange |
subscriber? | Subscriber |
Defined in:
EventsBatch
Ƭ EventsBatch<Abi, E>: Object
Type parameters
| Name | Type |
|---|---|
Abi | Abi |
E | extends AbiEventName<Abi> |
Type declaration
| Name | Type |
|---|---|
events | DecodedEventWithTransaction<Abi, E>[] |
continuation? | TransactionId |
Defined in:
EventsFilter
Ƭ EventsFilter<Abi, E>: (event: DecodedEventWithTransaction<Abi, E>) => Promise<boolean> | boolean
Type parameters
| Name | Type |
|---|---|
Abi | Abi |
E | extends AbiEventName<Abi> = AbiEventName<Abi> |
Type declaration
▸ (event): Promise<boolean> | boolean
Parameters
| Name | Type |
|---|---|
event | DecodedEventWithTransaction<Abi, E> |
Returns
Promise<boolean> | boolean
Defined in:
DecodedEventWithTransaction
Ƭ DecodedEventWithTransaction<Abi, E>: DecodedEvent<Abi, E> & { transaction: Transaction }
Type parameters
| Name | Type |
|---|---|
Abi | Abi |
E | extends AbiEventName<Abi> |
Defined in:
EventsRange
Ƭ EventsRange: Object
Type declaration
| Name | Type |
|---|---|
fromLt? | string |
fromUtime? | number |
toLt? | string |
toUtime? | number |
Defined in:
DecodeTransactionParams
Ƭ DecodeTransactionParams<Abi>: Object
Type parameters
| Name |
|---|
Abi |
Type declaration
| Name | Type |
|---|---|
transaction | Transaction |
methods | UniqueArray<AbiFunctionName<Abi>[]> |
Defined in:
DecodedTransaction
Ƭ DecodedTransaction<Abi, T>: T extends AbiFunctionName<Abi> ? { method: T ; input: DecodedAbiFunctionInputs<Abi, T> ; output: DecodedAbiFunctionOutputs<Abi, T> } : never
Type parameters
| Name |
|---|
Abi |
T |
Defined in:
DecodeInputParams
Ƭ DecodeInputParams<Abi>: Object
Type parameters
| Name |
|---|
Abi |
Type declaration
| Name | Type |
|---|---|
body | string |
methods | UniqueArray<AbiFunctionName<Abi>[]> |
internal | boolean |
Defined in:
DecodedInput
Ƭ DecodedInput<Abi, T>: T extends AbiFunctionName<Abi> ? { method: T ; input: DecodedAbiFunctionInputs<Abi, T> } : never
Type parameters
| Name |
|---|
Abi |
T |
Defined in:
DecodeOutputParams
Ƭ DecodeOutputParams<Abi>: Object
Type parameters
| Name |
|---|
Abi |
Type declaration
| Name | Type | Description |
|---|---|---|
body | string | Base64 encoded message body BOC |
methods | UniqueArray<AbiFunctionName<Abi>[]> | - |
Defined in:
DecodeEventParams
Ƭ DecodeEventParams<Abi>: Object
Type parameters
| Name |
|---|
Abi |
Type declaration
| Name | Type | Description |
|---|---|---|
body | string | Base64 encoded message body BOC |
events | UniqueArray<AbiEventName<Abi>[]> | - |
Defined in:
DecodedOutput
Ƭ DecodedOutput<Abi, T>: T extends AbiFunctionName<Abi> ? { method: T ; output: DecodedAbiFunctionOutputs<Abi, T> } : never
Type parameters
| Name |
|---|
Abi |
T |
Defined in:
DecodeTransactionEventsParams
Ƭ DecodeTransactionEventsParams: Object
Type declaration
| Name | Type |
|---|---|
transaction | Transaction |
Defined in:
DecodedEvent
Ƭ DecodedEvent<Abi, T>: T extends AbiEventName<Abi> ? { event: T ; data: DecodedAbiEventData<Abi, T> } : never
Type parameters
| Name |
|---|
Abi |
T |
Defined in:
ExecutorOutput
Ƭ ExecutorOutput<O>: Object
Type parameters
| Name |
|---|
O |
Type declaration
| Name | Type | Description |
|---|---|---|
transaction | Transaction | Executed transaction |
newState | FullContractState | undefined | Contract state after the executed transaction |
output | O | undefined | Parsed function call output |
Defined in: