UNPKG

ecash-agora

Version:

Library for interacting with the eCash Agora protocol

25 lines 904 B
import { payment, TokenType } from 'ecash-lib'; import { AgoraOfferVariant } from './agora.js'; /** * Action to request a payment.Action that will * create an Agora listing */ export interface ListAction { /** The type of agora action, used to distinguish between different spec-enabled actions */ type: 'LIST'; /** * While tokenType can be inferred from an agora partial, * it cannot be inferred from an agora ONESHOT, * so we need to specify it here */ tokenType: TokenType; /** The variant of the agora action to be listed */ variant: AgoraOfferVariant; } /** * Supported agora actions that can be converted to a payment.Action * for build and broadcast by ecash-wallet */ export type AgoraAction = ListAction; export declare const getAgoraPaymentAction: (action: ListAction, dustSats?: bigint) => payment.Action; //# sourceMappingURL=actions.d.ts.map