0.0.1 • Published 2 years ago

abi-coder-bundle v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

abi-coder-bundle

export declare class AbiCoder {
  encodeFunctionSignature<AbiItem extends any = any>(functionName: string | AbiItem): string
  encodeEventSignature<AbiItem extends any = any>(functionName: string | AbiItem): string
  encodeParameter(type: any, parameter: any): string
  encodeParameters(types: any[], parameters: any[]): string
  encodeFunctionCall<AbiItem extends any = any>(abiItem: AbiItem, params: string[]): string
  decodeParameter(
    type: any,
    hex: string
  ): {
    [key: string]: any
  }
  decodeParameters(
    types: any[],
    hex: string
  ): {
    [key: string]: any
  }
  decodeLog(
    inputs: any[],
    hex: string,
    topics: string[]
  ): {
    [key: string]: string
  }
}
declare const _default: AbiCoder
export default _default
0.0.1

2 years ago