@xchainjs/xchain-evm
Version:
Genereic EVM client for XChainJS
125 lines (124 loc) • 3.59 kB
TypeScript
import { ClientKeystore } from './clients/clientKeystore';
export { ClientLedger, ClientKeystore, ClientKeystore as Client, type EVMKeystoreClientParams, type EVMClientParams, } from './clients';
export default ClientKeystore;
export * from './types';
export { KeystoreSigner, type KeystoreSignerParams, LedgerSigner, type LedgerSignerParams } from './signers';
export { call, // Function to call a contract
estimateApprove, // Function to estimate approval transaction
estimateCall, // Function to estimate contract function call
getApprovalAmount, // Function to calculate the approval amount
getTokenAddress, // Function to get the address of a token
getPrefix, // Function to get the address prefix
getFee, // Function to calculate the fee
isApproved, // Function to check if an amount is approved
strip0x, // Function to remove '0x' prefix from a string
validateAddress, // Function to validate an address
MAX_APPROVAL, } from './utils';
export declare const abi: {
router: ({
inputs: {
internalType: string;
name: string;
type: string;
}[];
stateMutability: string;
type: string;
anonymous?: undefined;
name?: undefined;
outputs?: undefined;
} | {
anonymous: boolean;
inputs: ({
indexed: boolean;
internalType: string;
name: string;
type: string;
components?: undefined;
} | {
components: {
internalType: string;
name: string;
type: string;
}[];
indexed: boolean;
internalType: string;
name: string;
type: string;
})[];
name: string;
type: string;
stateMutability?: undefined;
outputs?: undefined;
} | {
inputs: ({
internalType: string;
name: string;
type: string;
components?: undefined;
} | {
components: {
internalType: string;
name: string;
type: string;
}[];
internalType: string;
name: string;
type: string;
})[];
name: string;
outputs: never[];
stateMutability: string;
type: string;
anonymous?: undefined;
} | {
inputs: {
internalType: string;
name: string;
type: string;
}[];
name: string;
outputs: {
internalType: string;
name: string;
type: string;
}[];
stateMutability: string;
type: string;
anonymous?: undefined;
})[];
erc20: ({
inputs: never[];
stateMutability: string;
type: string;
anonymous?: undefined;
name?: undefined;
outputs?: undefined;
} | {
anonymous: boolean;
inputs: {
indexed: boolean;
internalType: string;
name: string;
type: string;
}[];
name: string;
type: string;
stateMutability?: undefined;
outputs?: undefined;
} | {
inputs: {
internalType: string;
name: string;
type: string;
}[];
name: string;
outputs: {
internalType: string;
name: string;
type: string;
}[];
stateMutability: string;
type: string;
anonymous?: undefined;
})[];
};