UNPKG

@gear-js/api

Version:

A JavaScript library that provides functionality to connect GEAR Component APIs.

28 lines (27 loc) 992 B
import type { Struct, u8, u128, Vec } from '@polkadot/types-codec'; import type { AnyNumber } from '@polkadot/types-codec/types'; import type { HexString } from '../../common'; import type { GearCoreErrorsSimpleReplyCode } from '../../lookup'; export interface ICalculateReplyForHandleOptions { /** Origin of the message */ origin: string; /** Destination of the message */ destination: string; /** Payload of the message */ payload: any; /** Gas limit of the message (optional) */ gasLimit?: AnyNumber; /** Value of the message (optional) */ value?: AnyNumber; /** Hash of the block at wich rpc call should be executed */ at?: HexString; } /** The struct contains results of `calculateReplyForHandle` RPC call. */ export interface ReplyInfo extends Struct { /** Payload of the reply. */ payload: Vec<u8>; /** Value sent with reply. */ value: u128; /** Reply code of the reply. */ code: GearCoreErrorsSimpleReplyCode; }