UNPKG

@infibridge/celo-sdk-base

Version:

EthersJS wrapper for Celo Blockchain. Based on https://github.com/celo-tools/celo-ethers-wrapper with small modifications.

41 lines (40 loc) 1.18 kB
import { BigNumber, BigNumberish, BytesLike, providers, Transaction, utils } from 'ethers'; declare type SignatureLike = { r: string; s?: string; _vs?: string; recoveryParam?: number; v?: number; } | BytesLike; export interface CeloTransactionRequest extends providers.TransactionRequest { feeCurrency?: string; gatewayFeeRecipient?: string; gatewayFee?: BigNumberish; } export interface CeloTransaction extends Transaction { feeCurrency?: string; gatewayFeeRecipient?: string; gatewayFee?: BigNumber; } export declare const celoTransactionFields: ({ name: string; maxLength: number; numeric: boolean; length?: undefined; } | { name: string; length: number; maxLength?: undefined; numeric?: undefined; } | { name: string; maxLength?: undefined; numeric?: undefined; length?: undefined; })[]; export declare const celoAllowedTransactionKeys: { [key: string]: boolean; }; export declare function serializeCeloTransaction(transaction: any, signature?: SignatureLike): string; export declare function parseCeloTransaction(rawTransaction: utils.BytesLike): CeloTransaction; export {};