import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers"; import type { FunctionFragment, Result, EventFragment } from "@ethersproject/abi"; import type { Listener, Provider } from "@ethersproject/providers"; import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common"; export declare namespace BridgeConfigV3 { type PoolStruct = { tokenAddress: string; chainId: BigNumberish; poolAddress: string; metaswap: boolean; }; type PoolStructOutput = [string, BigNumber, string, boolean] & { tokenAddress: string; chainId: BigNumber; poolAddress: string; metaswap: boolean; }; type TokenStruct = { chainId: BigNumberish; tokenAddress: string; tokenDecimals: BigNumberish; maxSwap: BigNumberish; minSwap: BigNumberish; swapFee: BigNumberish; maxSwapFee: BigNumberish; minSwapFee: BigNumberish; hasUnderlying: boolean; isUnderlying: boolean; }; type TokenStructOutput = [ BigNumber, string, number, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, boolean, boolean ] & { chainId: BigNumber; tokenAddress: string; tokenDecimals: number; maxSwap: BigNumber; minSwap: BigNumber; swapFee: BigNumber; maxSwapFee: BigNumber; minSwapFee: BigNumber; hasUnderlying: boolean; isUnderlying: boolean; }; } export interface BridgeConfigV3Interface extends utils.Interface { functions: { "BRIDGEMANAGER_ROLE()": FunctionFragment; "DEFAULT_ADMIN_ROLE()": FunctionFragment; "bridgeConfigVersion()": FunctionFragment; "calculateSwapFee(string,uint256,uint256)": FunctionFragment; "calculateSwapFee(address,uint256,uint256)": FunctionFragment; "getAllTokenIDs()": FunctionFragment; "getMaxGasPrice(uint256)": FunctionFragment; "getPoolConfig(address,uint256)": FunctionFragment; "getRoleAdmin(bytes32)": FunctionFragment; "getRoleMember(bytes32,uint256)": FunctionFragment; "getRoleMemberCount(bytes32)": FunctionFragment; "getToken(string,uint256)": FunctionFragment; "getTokenByAddress(string,uint256)": FunctionFragment; "getTokenByEVMAddress(address,uint256)": FunctionFragment; "getTokenByID(string,uint256)": FunctionFragment; "getTokenID(address,uint256)": FunctionFragment; "getTokenID(string,uint256)": FunctionFragment; "getUnderlyingToken(string)": FunctionFragment; "grantRole(bytes32,address)": FunctionFragment; "hasRole(bytes32,address)": FunctionFragment; "hasUnderlyingToken(string)": FunctionFragment; "isTokenIDExist(string)": FunctionFragment; "renounceRole(bytes32,address)": FunctionFragment; "revokeRole(bytes32,address)": FunctionFragment; "setMaxGasPrice(uint256,uint256)": FunctionFragment; "setPoolConfig(address,uint256,address,bool)": FunctionFragment; "setTokenConfig(string,uint256,address,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool)": FunctionFragment; "setTokenConfig(string,uint256,string,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool)": FunctionFragment; }; getFunction(nameOrSignatureOrTopic: "BRIDGEMANAGER_ROLE" | "DEFAULT_ADMIN_ROLE" | "bridgeConfigVersion" | "calculateSwapFee(string,uint256,uint256)" | "calculateSwapFee(address,uint256,uint256)" | "getAllTokenIDs" | "getMaxGasPrice" | "getPoolConfig" | "getRoleAdmin" | "getRoleMember" | "getRoleMemberCount" | "getToken" | "getTokenByAddress" | "getTokenByEVMAddress" | "getTokenByID" | "getTokenID(address,uint256)" | "getTokenID(string,uint256)" | "getUnderlyingToken" | "grantRole" | "hasRole" | "hasUnderlyingToken" | "isTokenIDExist" | "renounceRole" | "revokeRole" | "setMaxGasPrice" | "setPoolConfig" | "setTokenConfig(string,uint256,address,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool)" | "setTokenConfig(string,uint256,string,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool)"): FunctionFragment; encodeFunctionData(functionFragment: "BRIDGEMANAGER_ROLE", values?: undefined): string; encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string; encodeFunctionData(functionFragment: "bridgeConfigVersion", values?: undefined): string; encodeFunctionData(functionFragment: "calculateSwapFee(string,uint256,uint256)", values: [string, BigNumberish, BigNumberish]): string; encodeFunctionData(functionFragment: "calculateSwapFee(address,uint256,uint256)", values: [string, BigNumberish, BigNumberish]): string; encodeFunctionData(functionFragment: "getAllTokenIDs", values?: undefined): string; encodeFunctionData(functionFragment: "getMaxGasPrice", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "getPoolConfig", values: [string, BigNumberish]): string; encodeFunctionData(functionFragment: "getRoleAdmin", values: [BytesLike]): string; encodeFunctionData(functionFragment: "getRoleMember", values: [BytesLike, BigNumberish]): string; encodeFunctionData(functionFragment: "getRoleMemberCount", values: [BytesLike]): string; encodeFunctionData(functionFragment: "getToken", values: [string, BigNumberish]): string; encodeFunctionData(functionFragment: "getTokenByAddress", values: [string, BigNumberish]): string; encodeFunctionData(functionFragment: "getTokenByEVMAddress", values: [string, BigNumberish]): string; encodeFunctionData(functionFragment: "getTokenByID", values: [string, BigNumberish]): string; encodeFunctionData(functionFragment: "getTokenID(address,uint256)", values: [string, BigNumberish]): string; encodeFunctionData(functionFragment: "getTokenID(string,uint256)", values: [string, BigNumberish]): string; encodeFunctionData(functionFragment: "getUnderlyingToken", values: [string]): string; encodeFunctionData(functionFragment: "grantRole", values: [BytesLike, string]): string; encodeFunctionData(functionFragment: "hasRole", values: [BytesLike, string]): string; encodeFunctionData(functionFragment: "hasUnderlyingToken", values: [string]): string; encodeFunctionData(functionFragment: "isTokenIDExist", values: [string]): string; encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, string]): string; encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, string]): string; encodeFunctionData(functionFragment: "setMaxGasPrice", values: [BigNumberish, BigNumberish]): string; encodeFunctionData(functionFragment: "setPoolConfig", values: [string, BigNumberish, string, boolean]): string; encodeFunctionData(functionFragment: "setTokenConfig(string,uint256,address,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool)", values: [ string, BigNumberish, string, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, boolean, boolean ]): string; encodeFunctionData(functionFragment: "setTokenConfig(string,uint256,string,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool)", values: [ string, BigNumberish, string, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, boolean, boolean ]): string; decodeFunctionResult(functionFragment: "BRIDGEMANAGER_ROLE", data: BytesLike): Result; decodeFunctionResult(functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike): Result; decodeFunctionResult(functionFragment: "bridgeConfigVersion", data: BytesLike): Result; decodeFunctionResult(functionFragment: "calculateSwapFee(string,uint256,uint256)", data: BytesLike): Result; decodeFunctionResult(functionFragment: "calculateSwapFee(address,uint256,uint256)", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getAllTokenIDs", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getMaxGasPrice", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getPoolConfig", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getRoleAdmin", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getRoleMember", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getRoleMemberCount", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getToken", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getTokenByAddress", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getTokenByEVMAddress", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getTokenByID", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getTokenID(address,uint256)", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getTokenID(string,uint256)", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getUnderlyingToken", data: BytesLike): Result; decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; decodeFunctionResult(functionFragment: "hasUnderlyingToken", data: BytesLike): Result; decodeFunctionResult(functionFragment: "isTokenIDExist", data: BytesLike): Result; decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result; decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setMaxGasPrice", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setPoolConfig", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setTokenConfig(string,uint256,address,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool)", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setTokenConfig(string,uint256,string,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool)", data: BytesLike): Result; events: { "RoleAdminChanged(bytes32,bytes32,bytes32)": EventFragment; "RoleGranted(bytes32,address,address)": EventFragment; "RoleRevoked(bytes32,address,address)": EventFragment; }; getEvent(nameOrSignatureOrTopic: "RoleAdminChanged"): EventFragment; getEvent(nameOrSignatureOrTopic: "RoleGranted"): EventFragment; getEvent(nameOrSignatureOrTopic: "RoleRevoked"): EventFragment; } export interface RoleAdminChangedEventObject { role: string; previousAdminRole: string; newAdminRole: string; } export declare type RoleAdminChangedEvent = TypedEvent<[ string, string, string ], RoleAdminChangedEventObject>; export declare type RoleAdminChangedEventFilter = TypedEventFilter; export interface RoleGrantedEventObject { role: string; account: string; sender: string; } export declare type RoleGrantedEvent = TypedEvent<[ string, string, string ], RoleGrantedEventObject>; export declare type RoleGrantedEventFilter = TypedEventFilter; export interface RoleRevokedEventObject { role: string; account: string; sender: string; } export declare type RoleRevokedEvent = TypedEvent<[ string, string, string ], RoleRevokedEventObject>; export declare type RoleRevokedEventFilter = TypedEventFilter; export interface BridgeConfigV3 extends BaseContract { connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; interface: BridgeConfigV3Interface; queryFilter(event: TypedEventFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>; listeners(eventFilter?: TypedEventFilter): Array>; listeners(eventName?: string): Array; removeAllListeners(eventFilter: TypedEventFilter): this; removeAllListeners(eventName?: string): this; off: OnEvent; on: OnEvent; once: OnEvent; removeListener: OnEvent; functions: { BRIDGEMANAGER_ROLE(overrides?: CallOverrides): Promise<[string]>; DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<[string]>; bridgeConfigVersion(overrides?: CallOverrides): Promise<[BigNumber]>; /** * This means the fee should be calculated based on the chain that the nodes emit a tx on * Calculates bridge swap fee based on the destination chain's token transfer. * @param amount in native token decimals * @param chainID destination chain ID to query the token config for * @param tokenAddress address of the destination token to query token config for */ "calculateSwapFee(string,uint256,uint256)"(tokenAddress: string, chainID: BigNumberish, amount: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber]>; /** * This means the fee should be calculated based on the chain that the nodes emit a tx on * Calculates bridge swap fee based on the destination chain's token transfer. * @param amount in native token decimals * @param chainID destination chain ID to query the token config for * @param tokenAddress address of the destination token to query token config for */ "calculateSwapFee(address,uint256,uint256)"(tokenAddress: string, chainID: BigNumberish, amount: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber]>; /** * Returns a list of all existing token IDs converted to strings */ getAllTokenIDs(overrides?: CallOverrides): Promise<[string[]] & { result: string[]; }>; /** * gets the max gas price for a chain */ getMaxGasPrice(chainID: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber]>; getPoolConfig(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise<[BridgeConfigV3.PoolStructOutput]>; /** * Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}. */ getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise<[string]>; /** * Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information. */ getRoleMember(role: BytesLike, index: BigNumberish, overrides?: CallOverrides): Promise<[string]>; /** * Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role. */ getRoleMemberCount(role: BytesLike, overrides?: CallOverrides): Promise<[BigNumber]>; /** * Returns the full token config struct * @param chainID Chain ID of which token address + config to get * @param tokenID String input of the token ID for the token */ getToken(tokenID: string, chainID: BigNumberish, overrides?: CallOverrides): Promise<[ BridgeConfigV3.TokenStructOutput ] & { token: BridgeConfigV3.TokenStructOutput; }>; /** * Returns token config struct, given an address and chainID * @param chainID Chain ID of which token to get config for * @param tokenAddress Matches the token ID by using a combo of address + chain ID */ getTokenByAddress(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise<[ BridgeConfigV3.TokenStructOutput ] & { token: BridgeConfigV3.TokenStructOutput; }>; getTokenByEVMAddress(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise<[ BridgeConfigV3.TokenStructOutput ] & { token: BridgeConfigV3.TokenStructOutput; }>; /** * Returns the full token config struct * @param chainID Chain ID of which token address + config to get * @param tokenID String input of the token ID for the token */ getTokenByID(tokenID: string, chainID: BigNumberish, overrides?: CallOverrides): Promise<[ BridgeConfigV3.TokenStructOutput ] & { token: BridgeConfigV3.TokenStructOutput; }>; /** * Returns the token ID (string) of the cross-chain token inputted * @param chainID chainID of which to get token ID for * @param tokenAddress address of token to get ID for */ "getTokenID(address,uint256)"(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise<[string]>; "getTokenID(string,uint256)"(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise<[string]>; /** * Returns which token is the underlying token to withdraw * @param tokenID string token ID */ getUnderlyingToken(tokenID: string, overrides?: CallOverrides): Promise<[ BridgeConfigV3.TokenStructOutput ] & { token: BridgeConfigV3.TokenStructOutput; }>; /** * Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. */ grantRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Returns `true` if `account` has been granted `role`. */ hasRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise<[boolean]>; /** * Returns true if the token has an underlying token -- meaning the token is deposited into the bridge * @param tokenID String to check if it is a withdraw/underlying token */ hasUnderlyingToken(tokenID: string, overrides?: CallOverrides): Promise<[boolean]>; /** * Public function returning if token ID exists given a string */ isTokenIDExist(tokenID: string, overrides?: CallOverrides): Promise<[boolean]>; /** * Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. */ renounceRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. */ revokeRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * sets the max gas price for a chain */ setMaxGasPrice(chainID: BigNumberish, maxPrice: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; setPoolConfig(tokenAddress: string, chainID: BigNumberish, poolAddress: string, metaswap: boolean, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Main write function of this contract - Handles creating the struct and passing it to the internal logic function * @param chainID chain ID to use for the token config object * @param hasUnderlying bool which represents whether this is a global mint token or one to withdraw() * @param isUnderlying bool which represents if this token is the one to withdraw on the given chain * @param maxSwap maximum amount of token allowed to be transferred at once - in native token decimals * @param maxSwapFee max swap fee to be charged - in native token decimals * @param minSwap minimum amount of token needed to be transferred at once - in native token decimals * @param minSwapFee min swap fee to be charged - in native token decimals - especially useful for mainnet ETH * @param swapFee percent based swap fee -- 10e6 == 10bps * @param tokenAddress token address of the token on the given chain * @param tokenDecimals decimals of token * @param tokenID string ID to set the token config object form */ "setTokenConfig(string,uint256,address,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool)"(tokenID: string, chainID: BigNumberish, tokenAddress: string, tokenDecimals: BigNumberish, maxSwap: BigNumberish, minSwap: BigNumberish, swapFee: BigNumberish, maxSwapFee: BigNumberish, minSwapFee: BigNumberish, hasUnderlying: boolean, isUnderlying: boolean, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Main write function of this contract - Handles creating the struct and passing it to the internal logic function * @param chainID chain ID to use for the token config object * @param hasUnderlying bool which represents whether this is a global mint token or one to withdraw() * @param isUnderlying bool which represents if this token is the one to withdraw on the given chain * @param maxSwap maximum amount of token allowed to be transferred at once - in native token decimals * @param maxSwapFee max swap fee to be charged - in native token decimals * @param minSwap minimum amount of token needed to be transferred at once - in native token decimals * @param minSwapFee min swap fee to be charged - in native token decimals - especially useful for mainnet ETH * @param swapFee percent based swap fee -- 10e6 == 10bps * @param tokenAddress token address of the token on the given chain * @param tokenDecimals decimals of token * @param tokenID string ID to set the token config object form */ "setTokenConfig(string,uint256,string,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool)"(tokenID: string, chainID: BigNumberish, tokenAddress: string, tokenDecimals: BigNumberish, maxSwap: BigNumberish, minSwap: BigNumberish, swapFee: BigNumberish, maxSwapFee: BigNumberish, minSwapFee: BigNumberish, hasUnderlying: boolean, isUnderlying: boolean, overrides?: Overrides & { from?: string | Promise; }): Promise; }; BRIDGEMANAGER_ROLE(overrides?: CallOverrides): Promise; DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; bridgeConfigVersion(overrides?: CallOverrides): Promise; /** * This means the fee should be calculated based on the chain that the nodes emit a tx on * Calculates bridge swap fee based on the destination chain's token transfer. * @param amount in native token decimals * @param chainID destination chain ID to query the token config for * @param tokenAddress address of the destination token to query token config for */ "calculateSwapFee(string,uint256,uint256)"(tokenAddress: string, chainID: BigNumberish, amount: BigNumberish, overrides?: CallOverrides): Promise; /** * This means the fee should be calculated based on the chain that the nodes emit a tx on * Calculates bridge swap fee based on the destination chain's token transfer. * @param amount in native token decimals * @param chainID destination chain ID to query the token config for * @param tokenAddress address of the destination token to query token config for */ "calculateSwapFee(address,uint256,uint256)"(tokenAddress: string, chainID: BigNumberish, amount: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns a list of all existing token IDs converted to strings */ getAllTokenIDs(overrides?: CallOverrides): Promise; /** * gets the max gas price for a chain */ getMaxGasPrice(chainID: BigNumberish, overrides?: CallOverrides): Promise; getPoolConfig(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}. */ getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise; /** * Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information. */ getRoleMember(role: BytesLike, index: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role. */ getRoleMemberCount(role: BytesLike, overrides?: CallOverrides): Promise; /** * Returns the full token config struct * @param chainID Chain ID of which token address + config to get * @param tokenID String input of the token ID for the token */ getToken(tokenID: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns token config struct, given an address and chainID * @param chainID Chain ID of which token to get config for * @param tokenAddress Matches the token ID by using a combo of address + chain ID */ getTokenByAddress(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; getTokenByEVMAddress(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns the full token config struct * @param chainID Chain ID of which token address + config to get * @param tokenID String input of the token ID for the token */ getTokenByID(tokenID: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns the token ID (string) of the cross-chain token inputted * @param chainID chainID of which to get token ID for * @param tokenAddress address of token to get ID for */ "getTokenID(address,uint256)"(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; "getTokenID(string,uint256)"(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns which token is the underlying token to withdraw * @param tokenID string token ID */ getUnderlyingToken(tokenID: string, overrides?: CallOverrides): Promise; /** * Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. */ grantRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Returns `true` if `account` has been granted `role`. */ hasRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise; /** * Returns true if the token has an underlying token -- meaning the token is deposited into the bridge * @param tokenID String to check if it is a withdraw/underlying token */ hasUnderlyingToken(tokenID: string, overrides?: CallOverrides): Promise; /** * Public function returning if token ID exists given a string */ isTokenIDExist(tokenID: string, overrides?: CallOverrides): Promise; /** * Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. */ renounceRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. */ revokeRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * sets the max gas price for a chain */ setMaxGasPrice(chainID: BigNumberish, maxPrice: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; setPoolConfig(tokenAddress: string, chainID: BigNumberish, poolAddress: string, metaswap: boolean, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Main write function of this contract - Handles creating the struct and passing it to the internal logic function * @param chainID chain ID to use for the token config object * @param hasUnderlying bool which represents whether this is a global mint token or one to withdraw() * @param isUnderlying bool which represents if this token is the one to withdraw on the given chain * @param maxSwap maximum amount of token allowed to be transferred at once - in native token decimals * @param maxSwapFee max swap fee to be charged - in native token decimals * @param minSwap minimum amount of token needed to be transferred at once - in native token decimals * @param minSwapFee min swap fee to be charged - in native token decimals - especially useful for mainnet ETH * @param swapFee percent based swap fee -- 10e6 == 10bps * @param tokenAddress token address of the token on the given chain * @param tokenDecimals decimals of token * @param tokenID string ID to set the token config object form */ "setTokenConfig(string,uint256,address,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool)"(tokenID: string, chainID: BigNumberish, tokenAddress: string, tokenDecimals: BigNumberish, maxSwap: BigNumberish, minSwap: BigNumberish, swapFee: BigNumberish, maxSwapFee: BigNumberish, minSwapFee: BigNumberish, hasUnderlying: boolean, isUnderlying: boolean, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Main write function of this contract - Handles creating the struct and passing it to the internal logic function * @param chainID chain ID to use for the token config object * @param hasUnderlying bool which represents whether this is a global mint token or one to withdraw() * @param isUnderlying bool which represents if this token is the one to withdraw on the given chain * @param maxSwap maximum amount of token allowed to be transferred at once - in native token decimals * @param maxSwapFee max swap fee to be charged - in native token decimals * @param minSwap minimum amount of token needed to be transferred at once - in native token decimals * @param minSwapFee min swap fee to be charged - in native token decimals - especially useful for mainnet ETH * @param swapFee percent based swap fee -- 10e6 == 10bps * @param tokenAddress token address of the token on the given chain * @param tokenDecimals decimals of token * @param tokenID string ID to set the token config object form */ "setTokenConfig(string,uint256,string,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool)"(tokenID: string, chainID: BigNumberish, tokenAddress: string, tokenDecimals: BigNumberish, maxSwap: BigNumberish, minSwap: BigNumberish, swapFee: BigNumberish, maxSwapFee: BigNumberish, minSwapFee: BigNumberish, hasUnderlying: boolean, isUnderlying: boolean, overrides?: Overrides & { from?: string | Promise; }): Promise; callStatic: { BRIDGEMANAGER_ROLE(overrides?: CallOverrides): Promise; DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; bridgeConfigVersion(overrides?: CallOverrides): Promise; /** * This means the fee should be calculated based on the chain that the nodes emit a tx on * Calculates bridge swap fee based on the destination chain's token transfer. * @param amount in native token decimals * @param chainID destination chain ID to query the token config for * @param tokenAddress address of the destination token to query token config for */ "calculateSwapFee(string,uint256,uint256)"(tokenAddress: string, chainID: BigNumberish, amount: BigNumberish, overrides?: CallOverrides): Promise; /** * This means the fee should be calculated based on the chain that the nodes emit a tx on * Calculates bridge swap fee based on the destination chain's token transfer. * @param amount in native token decimals * @param chainID destination chain ID to query the token config for * @param tokenAddress address of the destination token to query token config for */ "calculateSwapFee(address,uint256,uint256)"(tokenAddress: string, chainID: BigNumberish, amount: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns a list of all existing token IDs converted to strings */ getAllTokenIDs(overrides?: CallOverrides): Promise; /** * gets the max gas price for a chain */ getMaxGasPrice(chainID: BigNumberish, overrides?: CallOverrides): Promise; getPoolConfig(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}. */ getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise; /** * Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information. */ getRoleMember(role: BytesLike, index: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role. */ getRoleMemberCount(role: BytesLike, overrides?: CallOverrides): Promise; /** * Returns the full token config struct * @param chainID Chain ID of which token address + config to get * @param tokenID String input of the token ID for the token */ getToken(tokenID: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns token config struct, given an address and chainID * @param chainID Chain ID of which token to get config for * @param tokenAddress Matches the token ID by using a combo of address + chain ID */ getTokenByAddress(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; getTokenByEVMAddress(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns the full token config struct * @param chainID Chain ID of which token address + config to get * @param tokenID String input of the token ID for the token */ getTokenByID(tokenID: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns the token ID (string) of the cross-chain token inputted * @param chainID chainID of which to get token ID for * @param tokenAddress address of token to get ID for */ "getTokenID(address,uint256)"(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; "getTokenID(string,uint256)"(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns which token is the underlying token to withdraw * @param tokenID string token ID */ getUnderlyingToken(tokenID: string, overrides?: CallOverrides): Promise; /** * Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. */ grantRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise; /** * Returns `true` if `account` has been granted `role`. */ hasRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise; /** * Returns true if the token has an underlying token -- meaning the token is deposited into the bridge * @param tokenID String to check if it is a withdraw/underlying token */ hasUnderlyingToken(tokenID: string, overrides?: CallOverrides): Promise; /** * Public function returning if token ID exists given a string */ isTokenIDExist(tokenID: string, overrides?: CallOverrides): Promise; /** * Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. */ renounceRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise; /** * Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. */ revokeRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise; /** * sets the max gas price for a chain */ setMaxGasPrice(chainID: BigNumberish, maxPrice: BigNumberish, overrides?: CallOverrides): Promise; setPoolConfig(tokenAddress: string, chainID: BigNumberish, poolAddress: string, metaswap: boolean, overrides?: CallOverrides): Promise; /** * Main write function of this contract - Handles creating the struct and passing it to the internal logic function * @param chainID chain ID to use for the token config object * @param hasUnderlying bool which represents whether this is a global mint token or one to withdraw() * @param isUnderlying bool which represents if this token is the one to withdraw on the given chain * @param maxSwap maximum amount of token allowed to be transferred at once - in native token decimals * @param maxSwapFee max swap fee to be charged - in native token decimals * @param minSwap minimum amount of token needed to be transferred at once - in native token decimals * @param minSwapFee min swap fee to be charged - in native token decimals - especially useful for mainnet ETH * @param swapFee percent based swap fee -- 10e6 == 10bps * @param tokenAddress token address of the token on the given chain * @param tokenDecimals decimals of token * @param tokenID string ID to set the token config object form */ "setTokenConfig(string,uint256,address,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool)"(tokenID: string, chainID: BigNumberish, tokenAddress: string, tokenDecimals: BigNumberish, maxSwap: BigNumberish, minSwap: BigNumberish, swapFee: BigNumberish, maxSwapFee: BigNumberish, minSwapFee: BigNumberish, hasUnderlying: boolean, isUnderlying: boolean, overrides?: CallOverrides): Promise; /** * Main write function of this contract - Handles creating the struct and passing it to the internal logic function * @param chainID chain ID to use for the token config object * @param hasUnderlying bool which represents whether this is a global mint token or one to withdraw() * @param isUnderlying bool which represents if this token is the one to withdraw on the given chain * @param maxSwap maximum amount of token allowed to be transferred at once - in native token decimals * @param maxSwapFee max swap fee to be charged - in native token decimals * @param minSwap minimum amount of token needed to be transferred at once - in native token decimals * @param minSwapFee min swap fee to be charged - in native token decimals - especially useful for mainnet ETH * @param swapFee percent based swap fee -- 10e6 == 10bps * @param tokenAddress token address of the token on the given chain * @param tokenDecimals decimals of token * @param tokenID string ID to set the token config object form */ "setTokenConfig(string,uint256,string,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool)"(tokenID: string, chainID: BigNumberish, tokenAddress: string, tokenDecimals: BigNumberish, maxSwap: BigNumberish, minSwap: BigNumberish, swapFee: BigNumberish, maxSwapFee: BigNumberish, minSwapFee: BigNumberish, hasUnderlying: boolean, isUnderlying: boolean, overrides?: CallOverrides): Promise; }; filters: { "RoleAdminChanged(bytes32,bytes32,bytes32)"(role?: BytesLike | null, previousAdminRole?: BytesLike | null, newAdminRole?: BytesLike | null): RoleAdminChangedEventFilter; RoleAdminChanged(role?: BytesLike | null, previousAdminRole?: BytesLike | null, newAdminRole?: BytesLike | null): RoleAdminChangedEventFilter; "RoleGranted(bytes32,address,address)"(role?: BytesLike | null, account?: string | null, sender?: string | null): RoleGrantedEventFilter; RoleGranted(role?: BytesLike | null, account?: string | null, sender?: string | null): RoleGrantedEventFilter; "RoleRevoked(bytes32,address,address)"(role?: BytesLike | null, account?: string | null, sender?: string | null): RoleRevokedEventFilter; RoleRevoked(role?: BytesLike | null, account?: string | null, sender?: string | null): RoleRevokedEventFilter; }; estimateGas: { BRIDGEMANAGER_ROLE(overrides?: CallOverrides): Promise; DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; bridgeConfigVersion(overrides?: CallOverrides): Promise; /** * This means the fee should be calculated based on the chain that the nodes emit a tx on * Calculates bridge swap fee based on the destination chain's token transfer. * @param amount in native token decimals * @param chainID destination chain ID to query the token config for * @param tokenAddress address of the destination token to query token config for */ "calculateSwapFee(string,uint256,uint256)"(tokenAddress: string, chainID: BigNumberish, amount: BigNumberish, overrides?: CallOverrides): Promise; /** * This means the fee should be calculated based on the chain that the nodes emit a tx on * Calculates bridge swap fee based on the destination chain's token transfer. * @param amount in native token decimals * @param chainID destination chain ID to query the token config for * @param tokenAddress address of the destination token to query token config for */ "calculateSwapFee(address,uint256,uint256)"(tokenAddress: string, chainID: BigNumberish, amount: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns a list of all existing token IDs converted to strings */ getAllTokenIDs(overrides?: CallOverrides): Promise; /** * gets the max gas price for a chain */ getMaxGasPrice(chainID: BigNumberish, overrides?: CallOverrides): Promise; getPoolConfig(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}. */ getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise; /** * Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information. */ getRoleMember(role: BytesLike, index: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role. */ getRoleMemberCount(role: BytesLike, overrides?: CallOverrides): Promise; /** * Returns the full token config struct * @param chainID Chain ID of which token address + config to get * @param tokenID String input of the token ID for the token */ getToken(tokenID: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns token config struct, given an address and chainID * @param chainID Chain ID of which token to get config for * @param tokenAddress Matches the token ID by using a combo of address + chain ID */ getTokenByAddress(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; getTokenByEVMAddress(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns the full token config struct * @param chainID Chain ID of which token address + config to get * @param tokenID String input of the token ID for the token */ getTokenByID(tokenID: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns the token ID (string) of the cross-chain token inputted * @param chainID chainID of which to get token ID for * @param tokenAddress address of token to get ID for */ "getTokenID(address,uint256)"(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; "getTokenID(string,uint256)"(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns which token is the underlying token to withdraw * @param tokenID string token ID */ getUnderlyingToken(tokenID: string, overrides?: CallOverrides): Promise; /** * Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. */ grantRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Returns `true` if `account` has been granted `role`. */ hasRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise; /** * Returns true if the token has an underlying token -- meaning the token is deposited into the bridge * @param tokenID String to check if it is a withdraw/underlying token */ hasUnderlyingToken(tokenID: string, overrides?: CallOverrides): Promise; /** * Public function returning if token ID exists given a string */ isTokenIDExist(tokenID: string, overrides?: CallOverrides): Promise; /** * Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. */ renounceRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. */ revokeRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * sets the max gas price for a chain */ setMaxGasPrice(chainID: BigNumberish, maxPrice: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; setPoolConfig(tokenAddress: string, chainID: BigNumberish, poolAddress: string, metaswap: boolean, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Main write function of this contract - Handles creating the struct and passing it to the internal logic function * @param chainID chain ID to use for the token config object * @param hasUnderlying bool which represents whether this is a global mint token or one to withdraw() * @param isUnderlying bool which represents if this token is the one to withdraw on the given chain * @param maxSwap maximum amount of token allowed to be transferred at once - in native token decimals * @param maxSwapFee max swap fee to be charged - in native token decimals * @param minSwap minimum amount of token needed to be transferred at once - in native token decimals * @param minSwapFee min swap fee to be charged - in native token decimals - especially useful for mainnet ETH * @param swapFee percent based swap fee -- 10e6 == 10bps * @param tokenAddress token address of the token on the given chain * @param tokenDecimals decimals of token * @param tokenID string ID to set the token config object form */ "setTokenConfig(string,uint256,address,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool)"(tokenID: string, chainID: BigNumberish, tokenAddress: string, tokenDecimals: BigNumberish, maxSwap: BigNumberish, minSwap: BigNumberish, swapFee: BigNumberish, maxSwapFee: BigNumberish, minSwapFee: BigNumberish, hasUnderlying: boolean, isUnderlying: boolean, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Main write function of this contract - Handles creating the struct and passing it to the internal logic function * @param chainID chain ID to use for the token config object * @param hasUnderlying bool which represents whether this is a global mint token or one to withdraw() * @param isUnderlying bool which represents if this token is the one to withdraw on the given chain * @param maxSwap maximum amount of token allowed to be transferred at once - in native token decimals * @param maxSwapFee max swap fee to be charged - in native token decimals * @param minSwap minimum amount of token needed to be transferred at once - in native token decimals * @param minSwapFee min swap fee to be charged - in native token decimals - especially useful for mainnet ETH * @param swapFee percent based swap fee -- 10e6 == 10bps * @param tokenAddress token address of the token on the given chain * @param tokenDecimals decimals of token * @param tokenID string ID to set the token config object form */ "setTokenConfig(string,uint256,string,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool)"(tokenID: string, chainID: BigNumberish, tokenAddress: string, tokenDecimals: BigNumberish, maxSwap: BigNumberish, minSwap: BigNumberish, swapFee: BigNumberish, maxSwapFee: BigNumberish, minSwapFee: BigNumberish, hasUnderlying: boolean, isUnderlying: boolean, overrides?: Overrides & { from?: string | Promise; }): Promise; }; populateTransaction: { BRIDGEMANAGER_ROLE(overrides?: CallOverrides): Promise; DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; bridgeConfigVersion(overrides?: CallOverrides): Promise; /** * This means the fee should be calculated based on the chain that the nodes emit a tx on * Calculates bridge swap fee based on the destination chain's token transfer. * @param amount in native token decimals * @param chainID destination chain ID to query the token config for * @param tokenAddress address of the destination token to query token config for */ "calculateSwapFee(string,uint256,uint256)"(tokenAddress: string, chainID: BigNumberish, amount: BigNumberish, overrides?: CallOverrides): Promise; /** * This means the fee should be calculated based on the chain that the nodes emit a tx on * Calculates bridge swap fee based on the destination chain's token transfer. * @param amount in native token decimals * @param chainID destination chain ID to query the token config for * @param tokenAddress address of the destination token to query token config for */ "calculateSwapFee(address,uint256,uint256)"(tokenAddress: string, chainID: BigNumberish, amount: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns a list of all existing token IDs converted to strings */ getAllTokenIDs(overrides?: CallOverrides): Promise; /** * gets the max gas price for a chain */ getMaxGasPrice(chainID: BigNumberish, overrides?: CallOverrides): Promise; getPoolConfig(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}. */ getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise; /** * Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information. */ getRoleMember(role: BytesLike, index: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role. */ getRoleMemberCount(role: BytesLike, overrides?: CallOverrides): Promise; /** * Returns the full token config struct * @param chainID Chain ID of which token address + config to get * @param tokenID String input of the token ID for the token */ getToken(tokenID: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns token config struct, given an address and chainID * @param chainID Chain ID of which token to get config for * @param tokenAddress Matches the token ID by using a combo of address + chain ID */ getTokenByAddress(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; getTokenByEVMAddress(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns the full token config struct * @param chainID Chain ID of which token address + config to get * @param tokenID String input of the token ID for the token */ getTokenByID(tokenID: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns the token ID (string) of the cross-chain token inputted * @param chainID chainID of which to get token ID for * @param tokenAddress address of token to get ID for */ "getTokenID(address,uint256)"(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; "getTokenID(string,uint256)"(tokenAddress: string, chainID: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns which token is the underlying token to withdraw * @param tokenID string token ID */ getUnderlyingToken(tokenID: string, overrides?: CallOverrides): Promise; /** * Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. */ grantRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Returns `true` if `account` has been granted `role`. */ hasRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise; /** * Returns true if the token has an underlying token -- meaning the token is deposited into the bridge * @param tokenID String to check if it is a withdraw/underlying token */ hasUnderlyingToken(tokenID: string, overrides?: CallOverrides): Promise; /** * Public function returning if token ID exists given a string */ isTokenIDExist(tokenID: string, overrides?: CallOverrides): Promise; /** * Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. */ renounceRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. */ revokeRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * sets the max gas price for a chain */ setMaxGasPrice(chainID: BigNumberish, maxPrice: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; setPoolConfig(tokenAddress: string, chainID: BigNumberish, poolAddress: string, metaswap: boolean, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Main write function of this contract - Handles creating the struct and passing it to the internal logic function * @param chainID chain ID to use for the token config object * @param hasUnderlying bool which represents whether this is a global mint token or one to withdraw() * @param isUnderlying bool which represents if this token is the one to withdraw on the given chain * @param maxSwap maximum amount of token allowed to be transferred at once - in native token decimals * @param maxSwapFee max swap fee to be charged - in native token decimals * @param minSwap minimum amount of token needed to be transferred at once - in native token decimals * @param minSwapFee min swap fee to be charged - in native token decimals - especially useful for mainnet ETH * @param swapFee percent based swap fee -- 10e6 == 10bps * @param tokenAddress token address of the token on the given chain * @param tokenDecimals decimals of token * @param tokenID string ID to set the token config object form */ "setTokenConfig(string,uint256,address,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool)"(tokenID: string, chainID: BigNumberish, tokenAddress: string, tokenDecimals: BigNumberish, maxSwap: BigNumberish, minSwap: BigNumberish, swapFee: BigNumberish, maxSwapFee: BigNumberish, minSwapFee: BigNumberish, hasUnderlying: boolean, isUnderlying: boolean, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Main write function of this contract - Handles creating the struct and passing it to the internal logic function * @param chainID chain ID to use for the token config object * @param hasUnderlying bool which represents whether this is a global mint token or one to withdraw() * @param isUnderlying bool which represents if this token is the one to withdraw on the given chain * @param maxSwap maximum amount of token allowed to be transferred at once - in native token decimals * @param maxSwapFee max swap fee to be charged - in native token decimals * @param minSwap minimum amount of token needed to be transferred at once - in native token decimals * @param minSwapFee min swap fee to be charged - in native token decimals - especially useful for mainnet ETH * @param swapFee percent based swap fee -- 10e6 == 10bps * @param tokenAddress token address of the token on the given chain * @param tokenDecimals decimals of token * @param tokenID string ID to set the token config object form */ "setTokenConfig(string,uint256,string,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool)"(tokenID: string, chainID: BigNumberish, tokenAddress: string, tokenDecimals: BigNumberish, maxSwap: BigNumberish, minSwap: BigNumberish, swapFee: BigNumberish, maxSwapFee: BigNumberish, minSwapFee: BigNumberish, hasUnderlying: boolean, isUnderlying: boolean, overrides?: Overrides & { from?: string | Promise; }): Promise; }; }