import { HexString } from 'https://deno.land/x/polkadot@0.2.45/util/types.ts'; import { GasLimit, Value } from '../../common.ts'; import { PayloadType } from '../../payload.ts'; export interface V1010MessageSendOptions { /** * The message destination */ destination: HexString; /** * Payload to be sent */ payload: PayloadType; /** * Maximum amount of gas the program can spend before it is halted. */ gasLimit: GasLimit; /** * Balance to be transferred to the program once it's been created. */ value?: Value; /** * A flag that indicates whether the account should be kept alive after the value is sent to the program. */ keepAlive?: boolean; /** * ID of the account sending the message */ account?: HexString; } export type MessageSendOptions = V1010MessageSendOptions; export interface V1010MessageSendReplyOptions extends Omit { /** * Message ID to which the reply is sending */ replyToId: HexString; } export type MessageSendReplyOptions = V1010MessageSendReplyOptions;