UNPKG

@morpho-labs/gnosis-tx-builder

Version:

Transform an array of transactions into a json for Gnosis Tx-Builder UX

44 lines (43 loc) 998 B
export declare type Address = string; export interface Options { chainId?: number; name?: string; description?: string; createdAt?: number; txBuilderVersion?: string; } export interface BatchFile { version: string; chainId: string; createdAt: number; meta: BatchFileMeta; transactions: BatchTransaction[]; } export interface BatchFileMeta { txBuilderVersion?: string; checksum?: string; createdFromSafeAddress?: Address; createdFromOwnerAddress?: Address; name: string; description?: string; } export interface BatchTransaction { to: Address; value: string; data?: string | null; contractMethod?: ContractMethod; contractInputsValues?: { [key: string]: string; }; } export interface ContractMethod { inputs: ContractInput[]; name: string; payable: boolean; } export interface ContractInput { internalType: string; name: string; type: string; components?: ContractInput[]; }