Interface VaultInterface

interface VaultInterface {
    #private: any;
    deploy: ConstructorFragment;
    fallback: null | FallbackFragment;
    fragments: readonly Fragment[];
    receive: boolean;
    _decodeParams(params, data): Result;
    _encodeParams(params, values): string;
    decodeErrorResult(fragment, data): Result;
    decodeEventLog(fragment, data, topics?): Result;
    decodeFunctionData(fragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    decodeFunctionResult(functionFragment, data): Result;
    encodeDeploy(values?): string;
    encodeErrorResult(fragment, values?): string;
    encodeEventLog(fragment, values): {
        data: string;
        topics: string[];
    };
    encodeFilterTopics(fragment, values): (null | string | string[])[];
    encodeFunctionData(functionFragment, values?): string;
    encodeFunctionData(functionFragment, values?): string;
    encodeFunctionData(functionFragment, values?): string;
    encodeFunctionData(functionFragment, values?): string;
    encodeFunctionData(functionFragment, values?): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values?): string;
    encodeFunctionData(functionFragment, values?): string;
    encodeFunctionData(functionFragment, values?): string;
    encodeFunctionData(functionFragment, values?): string;
    encodeFunctionData(functionFragment, values?): string;
    encodeFunctionData(functionFragment, values?): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values?): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values?): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values?): string;
    encodeFunctionData(functionFragment, values?): string;
    encodeFunctionData(functionFragment, values?): string;
    encodeFunctionData(functionFragment, values?): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values?): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values?): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values?): string;
    encodeFunctionData(functionFragment, values?): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionData(functionFragment, values): string;
    encodeFunctionResult(fragment, values?): string;
    forEachError(callback): void;
    forEachEvent(callback): void;
    forEachFunction(callback): void;
    format(minimal?): string[];
    formatJson(): string;
    getAbiCoder(): AbiCoder;
    getError(key, values?): null | ErrorFragment;
    getEvent(nameOrSignatureOrTopic): EventFragment;
    getEventName(key): string;
    getFunction(nameOrSignature): FunctionFragment;
    getFunctionName(key): string;
    hasEvent(key): boolean;
    hasFunction(key): boolean;
    makeError(_data, tx): CallExceptionError;
    parseCallResult(data): Result;
    parseError(data): null | ErrorDescription;
    parseLog(log): null | LogDescription;
    parseTransaction(tx): null | TransactionDescription;
}

Hierarchy

  • Interface
    • VaultInterface

Properties

#private: any
deploy: ConstructorFragment

The Contract constructor.

fallback: null | FallbackFragment

The Fallback method, if any.

fragments: readonly Fragment[]

All the Contract ABI members (i.e. methods, events, errors, etc).

receive: boolean

If receiving ether is supported.

Methods

  • Parameters

    • params: readonly ParamType[]
    • data: BytesLike

    Returns Result

  • Parameters

    • params: readonly ParamType[]
    • values: readonly any[]

    Returns string

  • Decodes the result %%data%% (e.g. from an eth_call) for the specified error (see [[getError]] for valid values for %%key%%).

    Most developers should prefer the [[parseCallResult]] method instead, which will automatically detect a CALL_EXCEPTION and throw the corresponding error.

    Parameters

    • fragment: string | ErrorFragment
    • data: BytesLike

    Returns Result

  • Parameters

    • fragment: string | EventFragment
    • data: BytesLike
    • Optional topics: readonly string[]

    Returns Result

  • Decodes the %%data%% from a transaction tx.data for the function specified (see [[getFunction]] for valid values for %%fragment%%).

    Most developers should prefer the [[parseTransaction]] method instead, which will automatically detect the fragment.

    Parameters

    • fragment: string | FunctionFragment
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "DOMAIN_SEPARATOR"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "FACTORY"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "MATHLIB"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "_adjustmentTarget"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "_chainInterface"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "_escrowLookup"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "_escrowedTokens"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "_escrowedVaultTokens"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "_feeAdministrator"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "_governanceFeeShare"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "_lastModificationTime"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "_maxUnitCapacity"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "_setupMaster"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "_tokenIndexing"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "_vaultConnection"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "_vaultFee"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "_weight"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "allowance"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "approve"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "balanceOf"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "calcLocalSwap"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "calcReceiveAsset"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "calcSendAsset"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "decimals"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "deleteUnderwriteAsset"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "depositMixed"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "factoryOwner"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "finishSetup"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "getUnitCapacity"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "governanceFeeDestination"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "initializeSwapCurves"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "localSwap"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "multicall"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "name"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "nonces"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "onSendAssetFailure"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "onSendAssetSuccess"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "onSendLiquidityFailure"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "onSendLiquiditySuccess"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "permit"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "ready"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "receiveAsset"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "receiveLiquidity"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "releaseUnderwriteAsset"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "sendAsset"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "sendAssetFixedUnit"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "sendLiquidity"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "setConnection"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "setFeeAdministrator"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "setGovernanceFee"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "setVaultFee"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "setup"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "symbol"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "totalSupply"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "transfer"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "transferFrom"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "underwriteAsset"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "withdrawAll"
    • data: BytesLike

    Returns Result

  • Parameters

    • functionFragment: "withdrawMixed"
    • data: BytesLike

    Returns Result

  • Encodes a tx.data object for deploying the Contract with the %%values%% as the constructor arguments.

    Parameters

    • Optional values: readonly any[]

    Returns string

  • Encodes the transaction revert data for a call result that reverted from the the Contract with the sepcified %%error%% (see [[getError]] for valid values for %%fragment%%) with the %%values%%.

    This is generally not used by most developers, unless trying to mock a result from a Contract.

    Parameters

    • fragment: string | ErrorFragment
    • Optional values: readonly any[]

    Returns string

  • Parameters

    • fragment: string | EventFragment
    • values: readonly any[]

    Returns {
        data: string;
        topics: string[];
    }

    • data: string
    • topics: string[]
  • Parameters

    • fragment: string | EventFragment
    • values: readonly any[]

    Returns (null | string | string[])[]

  • Parameters

    • functionFragment: "DOMAIN_SEPARATOR"
    • Optional values: undefined

    Returns string

  • Parameters

    • functionFragment: "FACTORY"
    • Optional values: undefined

    Returns string

  • Parameters

    • functionFragment: "MATHLIB"
    • Optional values: undefined

    Returns string

  • Parameters

    • functionFragment: "_adjustmentTarget"
    • Optional values: undefined

    Returns string

  • Parameters

    • functionFragment: "_chainInterface"
    • Optional values: undefined

    Returns string

  • Parameters

    • functionFragment: "_escrowLookup"
    • values: [BytesLike]

    Returns string

  • Parameters

    • functionFragment: "_escrowedTokens"
    • values: [AddressLike]

    Returns string

  • Parameters

    • functionFragment: "_escrowedVaultTokens"
    • Optional values: undefined

    Returns string

  • Parameters

    • functionFragment: "_feeAdministrator"
    • Optional values: undefined

    Returns string

  • Parameters

    • functionFragment: "_governanceFeeShare"
    • Optional values: undefined

    Returns string

  • Parameters

    • functionFragment: "_lastModificationTime"
    • Optional values: undefined

    Returns string

  • Parameters

    • functionFragment: "_maxUnitCapacity"
    • Optional values: undefined

    Returns string

  • Parameters

    • functionFragment: "_setupMaster"
    • Optional values: undefined

    Returns string

  • Parameters

    • functionFragment: "_tokenIndexing"
    • values: [BigNumberish]

    Returns string

  • Parameters

    • functionFragment: "_vaultConnection"
    • values: [BytesLike, BytesLike]

    Returns string

  • Parameters

    • functionFragment: "_vaultFee"
    • Optional values: undefined

    Returns string

  • Parameters

    • functionFragment: "_weight"
    • values: [AddressLike]

    Returns string

  • Parameters

    • functionFragment: "allowance"
    • values: [AddressLike, AddressLike]

    Returns string

  • Parameters

    • functionFragment: "approve"
    • values: [AddressLike, BigNumberish]

    Returns string

  • Parameters

    • functionFragment: "balanceOf"
    • values: [AddressLike]

    Returns string

  • Parameters

    • functionFragment: "calcLocalSwap"
    • values: [AddressLike, AddressLike, BigNumberish]

    Returns string

  • Parameters

    • functionFragment: "calcReceiveAsset"
    • values: [AddressLike, BigNumberish]

    Returns string

  • Parameters

    • functionFragment: "calcSendAsset"
    • values: [AddressLike, BigNumberish]

    Returns string

  • Parameters

    • functionFragment: "decimals"
    • Optional values: undefined

    Returns string

  • Parameters

    • functionFragment: "deleteUnderwriteAsset"
    • values: [BytesLike, BigNumberish, BigNumberish, AddressLike]

    Returns string

  • Parameters

    • functionFragment: "depositMixed"
    • values: [BigNumberish[], BigNumberish]

    Returns string

  • Parameters

    • functionFragment: "factoryOwner"
    • Optional values: undefined

    Returns string

  • Parameters

    • functionFragment: "finishSetup"
    • Optional values: undefined

    Returns string

  • Parameters

    • functionFragment: "getUnitCapacity"
    • Optional values: undefined

    Returns string

  • Parameters

    • functionFragment: "governanceFeeDestination"
    • Optional values: undefined

    Returns string

  • Parameters

    • functionFragment: "initializeSwapCurves"
    • values: [AddressLike[], BigNumberish[], BigNumberish, AddressLike]

    Returns string

  • Parameters

    • functionFragment: "localSwap"
    • values: [AddressLike, AddressLike, BigNumberish, BigNumberish]

    Returns string

  • Parameters

    • functionFragment: "multicall"
    • values: [BytesLike[]]

    Returns string

  • Parameters

    • functionFragment: "name"
    • Optional values: undefined

    Returns string

  • Parameters

    • functionFragment: "nonces"
    • values: [AddressLike]

    Returns string

  • Parameters

    • functionFragment: "onSendAssetFailure"
    • values: [BytesLike, BytesLike, BigNumberish, BigNumberish, AddressLike, BigNumberish]

    Returns string

  • Parameters

    • functionFragment: "onSendAssetSuccess"
    • values: [BytesLike, BytesLike, BigNumberish, BigNumberish, AddressLike, BigNumberish]

    Returns string

  • Parameters

    • functionFragment: "onSendLiquidityFailure"
    • values: [BytesLike, BytesLike, BigNumberish, BigNumberish, BigNumberish]

    Returns string

  • Parameters

    • functionFragment: "onSendLiquiditySuccess"
    • values: [BytesLike, BytesLike, BigNumberish, BigNumberish, BigNumberish]

    Returns string

  • Parameters

    • functionFragment: "permit"
    • values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BigNumberish, BytesLike, BytesLike]

    Returns string

  • Parameters

    • functionFragment: "ready"
    • Optional values: undefined

    Returns string

  • Parameters

    • functionFragment: "receiveAsset"
    • values: [BytesLike, BytesLike, BigNumberish, AddressLike, BigNumberish, BigNumberish, BigNumberish, BytesLike, BigNumberish]

    Returns string

  • Parameters

    • functionFragment: "receiveLiquidity"
    • values: [BytesLike, BytesLike, AddressLike, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish]

    Returns string

  • Parameters

    • functionFragment: "releaseUnderwriteAsset"
    • values: [AddressLike, BytesLike, BigNumberish, AddressLike]

    Returns string

  • Parameters

    • functionFragment: "sendAsset"
    • values: [RouteDescriptionStruct, AddressLike, BigNumberish, BigNumberish, BigNumberish, AddressLike, BigNumberish, BytesLike]

    Returns string

  • Parameters

    • functionFragment: "sendAssetFixedUnit"
    • values: [RouteDescriptionStruct, AddressLike, BigNumberish, BigNumberish, BigNumberish, BigNumberish, AddressLike, BigNumberish, BytesLike]

    Returns string

  • Parameters

    • functionFragment: "sendLiquidity"
    • values: [RouteDescriptionStruct, BigNumberish, [BigNumberish, BigNumberish], AddressLike, BytesLike]

    Returns string

  • Parameters

    • functionFragment: "setConnection"
    • values: [BytesLike, BytesLike, boolean]

    Returns string

  • Parameters

    • functionFragment: "setFeeAdministrator"
    • values: [AddressLike]

    Returns string

  • Parameters

    • functionFragment: "setGovernanceFee"
    • values: [BigNumberish]

    Returns string

  • Parameters

    • functionFragment: "setVaultFee"
    • values: [BigNumberish]

    Returns string

  • Parameters

    • functionFragment: "setup"
    • values: [string, string, AddressLike, BigNumberish, BigNumberish, AddressLike, AddressLike]

    Returns string

  • Parameters

    • functionFragment: "symbol"
    • Optional values: undefined

    Returns string

  • Parameters

    • functionFragment: "totalSupply"
    • Optional values: undefined

    Returns string

  • Parameters

    • functionFragment: "transfer"
    • values: [AddressLike, BigNumberish]

    Returns string

  • Parameters

    • functionFragment: "transferFrom"
    • values: [AddressLike, AddressLike, BigNumberish]

    Returns string

  • Parameters

    • functionFragment: "underwriteAsset"
    • values: [BytesLike, AddressLike, BigNumberish, BigNumberish]

    Returns string

  • Parameters

    • functionFragment: "withdrawAll"
    • values: [BigNumberish, BigNumberish[]]

    Returns string

  • Parameters

    • functionFragment: "withdrawMixed"
    • values: [BigNumberish, BigNumberish[], BigNumberish[]]

    Returns string

  • Encodes the result data (e.g. from an eth_call) for the specified function (see [[getFunction]] for valid values for %%fragment%%) with %%values%%.

    This is generally not used by most developers, unless trying to mock a result from a Contract.

    Parameters

    • fragment: string | FunctionFragment
    • Optional values: readonly any[]

    Returns string

  • Iterate over all errors, calling %%callback%%, sorted by their name.

    Parameters

    • callback: ((func, index) => void)
        • (func, index): void
        • Parameters

          • func: ErrorFragment
          • index: number

          Returns void

    Returns void

  • Iterate over all events, calling %%callback%%, sorted by their name.

    Parameters

    • callback: ((func, index) => void)
        • (func, index): void
        • Parameters

          • func: EventFragment
          • index: number

          Returns void

    Returns void

  • Iterate over all functions, calling %%callback%%, sorted by their name.

    Parameters

    • callback: ((func, index) => void)
        • (func, index): void
        • Parameters

          • func: FunctionFragment
          • index: number

          Returns void

    Returns void

  • Returns the entire Human-Readable ABI, as an array of signatures, optionally as %%minimal%% strings, which removes parameter names and unneceesary spaces.

    Parameters

    • Optional minimal: boolean

    Returns string[]

  • Return the JSON-encoded ABI. This is the format Solidiy returns.

    Returns string

  • The ABI coder that will be used to encode and decode binary data.

    Returns AbiCoder

  • Get the [[ErrorFragment]] for %%key%%, which may be an error selector, error name or error signature that belongs to the ABI.

    If %%values%% is provided, it will use the Typed API to handle ambiguous cases where multiple errors match by name.

    If the %%key%% and %%values%% do not refine to a single error in the ABI, this will throw.

    Parameters

    • key: string
    • Optional values: any[]

    Returns null | ErrorFragment

  • Parameters

    • nameOrSignatureOrTopic: "FinishSetup" | "Initialized" | "LocalSwap" | "ReceiveAsset" | "ReceiveLiquidity" | "SendAsset" | "SendAssetFailure" | "SendAssetSuccess" | "SendLiquidity" | "SendLiquidityFailure" | "SendLiquiditySuccess" | "SetAmplification" | "SetConnection" | "SetFeeAdministrator" | "SetGovernanceFee" | "SetVaultFee" | "SetWeights" | "VaultDeposit" | "VaultWithdraw"

    Returns EventFragment

  • Get the event name for %%key%%, which may be a topic hash, event name or event signature that belongs to the ABI.

    Parameters

    • key: string

    Returns string

  • Parameters

    • nameOrSignature: "symbol" | "DOMAIN_SEPARATOR" | "FACTORY" | "MATHLIB" | "_adjustmentTarget" | "_chainInterface" | "_escrowLookup" | "_escrowedTokens" | "_escrowedVaultTokens" | "_feeAdministrator" | "_governanceFeeShare" | "_lastModificationTime" | "_maxUnitCapacity" | "_setupMaster" | "_tokenIndexing" | "_vaultConnection" | "_vaultFee" | "_weight" | "allowance" | "approve" | "balanceOf" | "calcLocalSwap" | "calcReceiveAsset" | "calcSendAsset" | "decimals" | "deleteUnderwriteAsset" | "depositMixed" | "factoryOwner" | "finishSetup" | "getUnitCapacity" | "governanceFeeDestination" | "initializeSwapCurves" | "localSwap" | "multicall" | "name" | "nonces" | "onSendAssetFailure" | "onSendAssetSuccess" | "onSendLiquidityFailure" | "onSendLiquiditySuccess" | "permit" | "ready" | "releaseUnderwriteAsset" | "sendAsset" | "sendLiquidity" | "setConnection" | "setFeeAdministrator" | "setGovernanceFee" | "setVaultFee" | "setup" | "totalSupply" | "transfer" | "transferFrom" | "underwriteAsset" | "withdrawAll" | "withdrawMixed" | "receiveAsset" | "receiveLiquidity" | "sendAssetFixedUnit"

    Returns FunctionFragment

  • Get the function name for %%key%%, which may be a function selector, function name or function signature that belongs to the ABI.

    Parameters

    • key: string

    Returns string

  • Returns true if %%key%% (an event topic hash, event name or event signature) is present in the ABI.

    In the case of an event name, the name may be ambiguous, so accessing the [[EventFragment]] may require refinement.

    Parameters

    • key: string

    Returns boolean

  • Returns true if %%key%% (a function selector, function name or function signature) is present in the ABI.

    In the case of a function name, the name may be ambiguous, so accessing the [[FunctionFragment]] may require refinement.

    Parameters

    • key: string

    Returns boolean

  • Parameters

    • _data: BytesLike
    • tx: CallExceptionTransaction

    Returns CallExceptionError

  • Parameters

    • data: BytesLike

    Returns Result

  • Parses a revert data, finding the matching error and extracts the parameter values along with other useful error details.

    If the matching error cannot be found, returns null.

    Parameters

    • data: BytesLike

    Returns null | ErrorDescription

  • Parses a receipt log, finding the matching event and extracts the parameter values along with other useful event details.

    If the matching event cannot be found, returns null.

    Parameters

    • log: {
          data: string;
          topics: readonly string[];
      }
      • data: string
      • topics: readonly string[]

    Returns null | LogDescription

  • Parses a transaction, finding the matching function and extracts the parameter values along with other useful function details.

    If the matching function cannot be found, return null.

    Parameters

    • tx: {
          data: string;
          value?: BigNumberish;
      }
      • data: string
      • Optional value?: BigNumberish

    Returns null | TransactionDescription