From ac520accffd3eea5ac394ddb1eec32f3722a126a Mon Sep 17 00:00:00 2001 From: imsk17 Date: Thu, 6 Jun 2024 23:43:48 +0530 Subject: [PATCH] EVM: Cleanup Contracts --- package.json | 2 +- src/chains/web3.ts | 6 +- .../contracts/access/AccessControl.ts | 324 ------ .../contracts/access/IAccessControl.ts | 292 ----- .../@openzeppelin/contracts/access/index.ts | 5 - .../@openzeppelin/contracts/index.ts | 11 - .../draft-IERC6093.sol/IERC1155Errors.ts | 69 -- .../draft-IERC6093.sol/IERC20Errors.ts | 69 -- .../draft-IERC6093.sol/IERC721Errors.ts | 69 -- .../interfaces/draft-IERC6093.sol/index.ts | 6 - .../contracts/interfaces/index.ts | 5 - .../contracts/token/ERC20/ERC20.ts | 286 ----- .../contracts/token/ERC20/IERC20.ts | 262 ----- .../token/ERC20/extensions/IERC20Metadata.ts | 286 ----- .../token/ERC20/extensions/IERC20Permit.ts | 143 --- .../contracts/token/ERC20/extensions/index.ts | 5 - .../contracts/token/ERC20/index.ts | 9 - .../contracts/token/ERC20/utils/SafeERC20.ts | 69 -- .../contracts/token/ERC20/utils/index.ts | 4 - .../@openzeppelin/contracts/token/index.ts | 5 - .../@openzeppelin/contracts/utils/Address.ts | 69 -- .../@openzeppelin/contracts/utils/Pausable.ts | 150 --- .../contracts/utils/ReentrancyGuard.ts | 69 -- .../@openzeppelin/contracts/utils/index.ts | 8 - .../contracts/utils/introspection/ERC165.ts | 94 -- .../contracts/utils/introspection/IERC165.ts | 94 -- .../contracts/utils/introspection/index.ts | 5 - .../typechain-types/@openzeppelin/index.ts | 5 - src/contracts/evm/typechain-types/common.ts | 135 --- .../BridgeComponents/BridgeSecurity.ts | 505 -------- .../BridgeComponents/BridgeStorage.ts | 246 ---- .../contracts/BridgeComponents/BridgeUtils.ts | 264 ----- .../BridgeComponents/IBridgeContract.ts | 268 ----- .../BridgeComponents/IERC20MinterBurner.ts | 115 -- .../BridgeComponents/IMappingAdmin.ts | 166 --- .../BridgeComponents/WrappedERC20.ts | 600 ---------- .../contracts/BridgeComponents/index.ts | 10 - .../evm/typechain-types/contracts/FTBridge.ts | 973 ---------------- .../PriceOracle/ChainLinkPriceFeeds.ts | 331 ------ .../contracts/PriceOracle/EmmetFeeOracle.ts | 502 -------- .../PriceOracle/IChainLinkPriceFeeds.ts | 121 -- .../PriceOracle/IChainLinkPriceFeedsAdmin.ts | 237 ---- .../contracts/PriceOracle/IEmmetFeeOracle.ts | 260 ----- .../PriceOracle/IEmmetFeeOracleAdmin.ts | 170 --- .../contracts/PriceOracle/index.ts | 9 - .../evm/typechain-types/contracts/index.ts | 6 - .../access/AccessControl__factory.ts | 250 ---- .../access/IAccessControl__factory.ts | 218 ---- .../@openzeppelin/contracts/access/index.ts | 5 - .../@openzeppelin/contracts/index.ts | 7 - .../IERC1155Errors__factory.ts | 127 -- .../IERC20Errors__factory.ts | 111 -- .../IERC721Errors__factory.ts | 128 --- .../interfaces/draft-IERC6093.sol/index.ts | 6 - .../contracts/interfaces/index.ts | 4 - .../contracts/token/ERC20/ERC20__factory.ts | 330 ------ .../contracts/token/ERC20/IERC20__factory.ts | 205 ---- .../extensions/IERC20Metadata__factory.ts | 247 ---- .../ERC20/extensions/IERC20Permit__factory.ts | 100 -- .../contracts/token/ERC20/extensions/index.ts | 5 - .../contracts/token/ERC20/index.ts | 7 - .../token/ERC20/utils/SafeERC20__factory.ts | 96 -- .../contracts/token/ERC20/utils/index.ts | 4 - .../@openzeppelin/contracts/token/index.ts | 4 - .../contracts/utils/Address__factory.ts | 91 -- .../contracts/utils/Pausable__factory.ts | 71 -- .../utils/ReentrancyGuard__factory.ts | 30 - .../@openzeppelin/contracts/utils/index.ts | 7 - .../utils/introspection/ERC165__factory.ts | 41 - .../utils/introspection/IERC165__factory.ts | 41 - .../contracts/utils/introspection/index.ts | 5 - .../factories/@openzeppelin/index.ts | 4 - .../BridgeSecurity__factory.ts | 451 -------- .../BridgeStorage__factory.ts | 302 ----- .../BridgeComponents/BridgeUtils__factory.ts | 360 ------ .../IBridgeContract__factory.ts | 186 --- .../IERC20MinterBurner__factory.ts | 61 - .../IMappingAdmin__factory.ts | 107 -- .../BridgeComponents/WrappedERC20__factory.ts | 707 ------------ .../contracts/BridgeComponents/index.ts | 10 - .../factories/contracts/FTBridge__factory.ts | 1024 ----------------- .../ChainLinkPriceFeeds__factory.ts | 277 ----- .../PriceOracle/EmmetFeeOracle__factory.ts | 556 --------- .../IChainLinkPriceFeedsAdmin__factory.ts | 129 --- .../IChainLinkPriceFeeds__factory.ts | 86 -- .../IEmmetFeeOracleAdmin__factory.ts | 105 -- .../PriceOracle/IEmmetFeeOracle__factory.ts | 229 ---- .../factories/contracts/PriceOracle/index.ts | 9 - .../factories/contracts/index.ts | 5 - .../evm/typechain-types/factories/index.ts | 5 - .../evm/typechain-types/hardhat.d.ts | 459 -------- src/contracts/evm/typechain-types/index.ts | 54 - src/contracts/index.ts | 1 - yarn.lock | 12 +- 94 files changed, 9 insertions(+), 14609 deletions(-) delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/access/AccessControl.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/access/IAccessControl.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/access/index.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/index.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/interfaces/index.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/ERC20.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/index.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/index.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/utils/index.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/token/index.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/Address.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/Pausable.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/ReentrancyGuard.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/index.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/introspection/ERC165.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/introspection/IERC165.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/introspection/index.ts delete mode 100644 src/contracts/evm/typechain-types/@openzeppelin/index.ts delete mode 100644 src/contracts/evm/typechain-types/common.ts delete mode 100644 src/contracts/evm/typechain-types/contracts/BridgeComponents/BridgeSecurity.ts delete mode 100644 src/contracts/evm/typechain-types/contracts/BridgeComponents/BridgeStorage.ts delete mode 100644 src/contracts/evm/typechain-types/contracts/BridgeComponents/BridgeUtils.ts delete mode 100644 src/contracts/evm/typechain-types/contracts/BridgeComponents/IBridgeContract.ts delete mode 100644 src/contracts/evm/typechain-types/contracts/BridgeComponents/IERC20MinterBurner.ts delete mode 100644 src/contracts/evm/typechain-types/contracts/BridgeComponents/IMappingAdmin.ts delete mode 100644 src/contracts/evm/typechain-types/contracts/BridgeComponents/WrappedERC20.ts delete mode 100644 src/contracts/evm/typechain-types/contracts/BridgeComponents/index.ts delete mode 100644 src/contracts/evm/typechain-types/contracts/FTBridge.ts delete mode 100644 src/contracts/evm/typechain-types/contracts/PriceOracle/ChainLinkPriceFeeds.ts delete mode 100644 src/contracts/evm/typechain-types/contracts/PriceOracle/EmmetFeeOracle.ts delete mode 100644 src/contracts/evm/typechain-types/contracts/PriceOracle/IChainLinkPriceFeeds.ts delete mode 100644 src/contracts/evm/typechain-types/contracts/PriceOracle/IChainLinkPriceFeedsAdmin.ts delete mode 100644 src/contracts/evm/typechain-types/contracts/PriceOracle/IEmmetFeeOracle.ts delete mode 100644 src/contracts/evm/typechain-types/contracts/PriceOracle/IEmmetFeeOracleAdmin.ts delete mode 100644 src/contracts/evm/typechain-types/contracts/PriceOracle/index.ts delete mode 100644 src/contracts/evm/typechain-types/contracts/index.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/access/AccessControl__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/access/IAccessControl__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/access/index.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/index.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/interfaces/index.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/index.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/index.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/Address__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/Pausable__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/ReentrancyGuard__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/index.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/introspection/ERC165__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/introspection/index.ts delete mode 100644 src/contracts/evm/typechain-types/factories/@openzeppelin/index.ts delete mode 100644 src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/BridgeSecurity__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/BridgeStorage__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/BridgeUtils__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/IBridgeContract__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/IERC20MinterBurner__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/IMappingAdmin__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/WrappedERC20__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/index.ts delete mode 100644 src/contracts/evm/typechain-types/factories/contracts/FTBridge__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/contracts/PriceOracle/ChainLinkPriceFeeds__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/contracts/PriceOracle/EmmetFeeOracle__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/contracts/PriceOracle/IChainLinkPriceFeedsAdmin__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/contracts/PriceOracle/IChainLinkPriceFeeds__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/contracts/PriceOracle/IEmmetFeeOracleAdmin__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/contracts/PriceOracle/IEmmetFeeOracle__factory.ts delete mode 100644 src/contracts/evm/typechain-types/factories/contracts/PriceOracle/index.ts delete mode 100644 src/contracts/evm/typechain-types/factories/contracts/index.ts delete mode 100644 src/contracts/evm/typechain-types/factories/index.ts delete mode 100644 src/contracts/evm/typechain-types/hardhat.d.ts delete mode 100644 src/contracts/evm/typechain-types/index.ts diff --git a/package.json b/package.json index 5e4e92e..6e4231a 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "@ton/crypto": "^3.2.0", "@ton/ton": "^13.11.1", "buffer": "^6.0.3", - "ethers": "^6.12.1", + "ethers": "^6.13", "ethers-decode-error": "^2.1.3" } } diff --git a/src/chains/web3.ts b/src/chains/web3.ts index c9bc9d8..1bc0cd2 100644 --- a/src/chains/web3.ts +++ b/src/chains/web3.ts @@ -96,7 +96,7 @@ export async function web3Helper({ tokenBalance: async (tkn, addr) => WrappedERC20__factory.connect(tkn, provider).balanceOf(addr), sendInstallment: async (signer, amt, cid, fs, ts, da, gasArgs) => { - const ed = ErrorDecoder.create([bridge.interface]) + const ed = ErrorDecoder.create([bridge.interface]); try { const tx = await bridge .connect(signer) @@ -106,10 +106,8 @@ export async function web3Helper({ hash: tx.hash, }; } catch (e) { - throw await ed.decode(e) + throw await ed.decode(e); } - - }, }; } diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/access/AccessControl.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/access/AccessControl.ts deleted file mode 100644 index e53cb8c..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/access/AccessControl.ts +++ /dev/null @@ -1,324 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "../../../common"; - -export interface AccessControlInterface extends Interface { - getFunction( - nameOrSignature: - | "DEFAULT_ADMIN_ROLE" - | "getRoleAdmin" - | "grantRole" - | "hasRole" - | "renounceRole" - | "revokeRole" - | "supportsInterface", - ): FunctionFragment; - - getEvent( - nameOrSignatureOrTopic: "RoleAdminChanged" | "RoleGranted" | "RoleRevoked", - ): EventFragment; - - encodeFunctionData( - functionFragment: "DEFAULT_ADMIN_ROLE", - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: "getRoleAdmin", - values: [BytesLike], - ): string; - encodeFunctionData( - functionFragment: "grantRole", - values: [BytesLike, AddressLike], - ): string; - encodeFunctionData( - functionFragment: "hasRole", - values: [BytesLike, AddressLike], - ): string; - encodeFunctionData( - functionFragment: "renounceRole", - values: [BytesLike, AddressLike], - ): string; - encodeFunctionData( - functionFragment: "revokeRole", - values: [BytesLike, AddressLike], - ): string; - encodeFunctionData( - functionFragment: "supportsInterface", - values: [BytesLike], - ): string; - - decodeFunctionResult( - functionFragment: "DEFAULT_ADMIN_ROLE", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "getRoleAdmin", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "renounceRole", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "supportsInterface", - data: BytesLike, - ): Result; -} - -export namespace RoleAdminChangedEvent { - export type InputTuple = [ - role: BytesLike, - previousAdminRole: BytesLike, - newAdminRole: BytesLike, - ]; - export type OutputTuple = [ - role: string, - previousAdminRole: string, - newAdminRole: string, - ]; - export interface OutputObject { - role: string; - previousAdminRole: string; - newAdminRole: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace RoleGrantedEvent { - export type InputTuple = [ - role: BytesLike, - account: AddressLike, - sender: AddressLike, - ]; - export type OutputTuple = [role: string, account: string, sender: string]; - export interface OutputObject { - role: string; - account: string; - sender: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace RoleRevokedEvent { - export type InputTuple = [ - role: BytesLike, - account: AddressLike, - sender: AddressLike, - ]; - export type OutputTuple = [role: string, account: string, sender: string]; - export interface OutputObject { - role: string; - account: string; - sender: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface AccessControl extends BaseContract { - connect(runner?: ContractRunner | null): AccessControl; - waitForDeployment(): Promise; - - interface: AccessControlInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">; - - getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">; - - grantRole: TypedContractMethod< - [role: BytesLike, account: AddressLike], - [void], - "nonpayable" - >; - - hasRole: TypedContractMethod< - [role: BytesLike, account: AddressLike], - [boolean], - "view" - >; - - renounceRole: TypedContractMethod< - [role: BytesLike, callerConfirmation: AddressLike], - [void], - "nonpayable" - >; - - revokeRole: TypedContractMethod< - [role: BytesLike, account: AddressLike], - [void], - "nonpayable" - >; - - supportsInterface: TypedContractMethod< - [interfaceId: BytesLike], - [boolean], - "view" - >; - - getFunction( - key: string | FunctionFragment, - ): T; - - getFunction( - nameOrSignature: "DEFAULT_ADMIN_ROLE", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "getRoleAdmin", - ): TypedContractMethod<[role: BytesLike], [string], "view">; - getFunction( - nameOrSignature: "grantRole", - ): TypedContractMethod< - [role: BytesLike, account: AddressLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "hasRole", - ): TypedContractMethod< - [role: BytesLike, account: AddressLike], - [boolean], - "view" - >; - getFunction( - nameOrSignature: "renounceRole", - ): TypedContractMethod< - [role: BytesLike, callerConfirmation: AddressLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "revokeRole", - ): TypedContractMethod< - [role: BytesLike, account: AddressLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "supportsInterface", - ): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">; - - getEvent( - key: "RoleAdminChanged", - ): TypedContractEvent< - RoleAdminChangedEvent.InputTuple, - RoleAdminChangedEvent.OutputTuple, - RoleAdminChangedEvent.OutputObject - >; - getEvent( - key: "RoleGranted", - ): TypedContractEvent< - RoleGrantedEvent.InputTuple, - RoleGrantedEvent.OutputTuple, - RoleGrantedEvent.OutputObject - >; - getEvent( - key: "RoleRevoked", - ): TypedContractEvent< - RoleRevokedEvent.InputTuple, - RoleRevokedEvent.OutputTuple, - RoleRevokedEvent.OutputObject - >; - - filters: { - "RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent< - RoleAdminChangedEvent.InputTuple, - RoleAdminChangedEvent.OutputTuple, - RoleAdminChangedEvent.OutputObject - >; - RoleAdminChanged: TypedContractEvent< - RoleAdminChangedEvent.InputTuple, - RoleAdminChangedEvent.OutputTuple, - RoleAdminChangedEvent.OutputObject - >; - - "RoleGranted(bytes32,address,address)": TypedContractEvent< - RoleGrantedEvent.InputTuple, - RoleGrantedEvent.OutputTuple, - RoleGrantedEvent.OutputObject - >; - RoleGranted: TypedContractEvent< - RoleGrantedEvent.InputTuple, - RoleGrantedEvent.OutputTuple, - RoleGrantedEvent.OutputObject - >; - - "RoleRevoked(bytes32,address,address)": TypedContractEvent< - RoleRevokedEvent.InputTuple, - RoleRevokedEvent.OutputTuple, - RoleRevokedEvent.OutputObject - >; - RoleRevoked: TypedContractEvent< - RoleRevokedEvent.InputTuple, - RoleRevokedEvent.OutputTuple, - RoleRevokedEvent.OutputObject - >; - }; -} diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/access/IAccessControl.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/access/IAccessControl.ts deleted file mode 100644 index d810c13..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/access/IAccessControl.ts +++ /dev/null @@ -1,292 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "../../../common"; - -export interface IAccessControlInterface extends Interface { - getFunction( - nameOrSignature: - | "getRoleAdmin" - | "grantRole" - | "hasRole" - | "renounceRole" - | "revokeRole", - ): FunctionFragment; - - getEvent( - nameOrSignatureOrTopic: "RoleAdminChanged" | "RoleGranted" | "RoleRevoked", - ): EventFragment; - - encodeFunctionData( - functionFragment: "getRoleAdmin", - values: [BytesLike], - ): string; - encodeFunctionData( - functionFragment: "grantRole", - values: [BytesLike, AddressLike], - ): string; - encodeFunctionData( - functionFragment: "hasRole", - values: [BytesLike, AddressLike], - ): string; - encodeFunctionData( - functionFragment: "renounceRole", - values: [BytesLike, AddressLike], - ): string; - encodeFunctionData( - functionFragment: "revokeRole", - values: [BytesLike, AddressLike], - ): string; - - decodeFunctionResult( - functionFragment: "getRoleAdmin", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "renounceRole", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; -} - -export namespace RoleAdminChangedEvent { - export type InputTuple = [ - role: BytesLike, - previousAdminRole: BytesLike, - newAdminRole: BytesLike, - ]; - export type OutputTuple = [ - role: string, - previousAdminRole: string, - newAdminRole: string, - ]; - export interface OutputObject { - role: string; - previousAdminRole: string; - newAdminRole: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace RoleGrantedEvent { - export type InputTuple = [ - role: BytesLike, - account: AddressLike, - sender: AddressLike, - ]; - export type OutputTuple = [role: string, account: string, sender: string]; - export interface OutputObject { - role: string; - account: string; - sender: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace RoleRevokedEvent { - export type InputTuple = [ - role: BytesLike, - account: AddressLike, - sender: AddressLike, - ]; - export type OutputTuple = [role: string, account: string, sender: string]; - export interface OutputObject { - role: string; - account: string; - sender: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface IAccessControl extends BaseContract { - connect(runner?: ContractRunner | null): IAccessControl; - waitForDeployment(): Promise; - - interface: IAccessControlInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">; - - grantRole: TypedContractMethod< - [role: BytesLike, account: AddressLike], - [void], - "nonpayable" - >; - - hasRole: TypedContractMethod< - [role: BytesLike, account: AddressLike], - [boolean], - "view" - >; - - renounceRole: TypedContractMethod< - [role: BytesLike, callerConfirmation: AddressLike], - [void], - "nonpayable" - >; - - revokeRole: TypedContractMethod< - [role: BytesLike, account: AddressLike], - [void], - "nonpayable" - >; - - getFunction( - key: string | FunctionFragment, - ): T; - - getFunction( - nameOrSignature: "getRoleAdmin", - ): TypedContractMethod<[role: BytesLike], [string], "view">; - getFunction( - nameOrSignature: "grantRole", - ): TypedContractMethod< - [role: BytesLike, account: AddressLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "hasRole", - ): TypedContractMethod< - [role: BytesLike, account: AddressLike], - [boolean], - "view" - >; - getFunction( - nameOrSignature: "renounceRole", - ): TypedContractMethod< - [role: BytesLike, callerConfirmation: AddressLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "revokeRole", - ): TypedContractMethod< - [role: BytesLike, account: AddressLike], - [void], - "nonpayable" - >; - - getEvent( - key: "RoleAdminChanged", - ): TypedContractEvent< - RoleAdminChangedEvent.InputTuple, - RoleAdminChangedEvent.OutputTuple, - RoleAdminChangedEvent.OutputObject - >; - getEvent( - key: "RoleGranted", - ): TypedContractEvent< - RoleGrantedEvent.InputTuple, - RoleGrantedEvent.OutputTuple, - RoleGrantedEvent.OutputObject - >; - getEvent( - key: "RoleRevoked", - ): TypedContractEvent< - RoleRevokedEvent.InputTuple, - RoleRevokedEvent.OutputTuple, - RoleRevokedEvent.OutputObject - >; - - filters: { - "RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent< - RoleAdminChangedEvent.InputTuple, - RoleAdminChangedEvent.OutputTuple, - RoleAdminChangedEvent.OutputObject - >; - RoleAdminChanged: TypedContractEvent< - RoleAdminChangedEvent.InputTuple, - RoleAdminChangedEvent.OutputTuple, - RoleAdminChangedEvent.OutputObject - >; - - "RoleGranted(bytes32,address,address)": TypedContractEvent< - RoleGrantedEvent.InputTuple, - RoleGrantedEvent.OutputTuple, - RoleGrantedEvent.OutputObject - >; - RoleGranted: TypedContractEvent< - RoleGrantedEvent.InputTuple, - RoleGrantedEvent.OutputTuple, - RoleGrantedEvent.OutputObject - >; - - "RoleRevoked(bytes32,address,address)": TypedContractEvent< - RoleRevokedEvent.InputTuple, - RoleRevokedEvent.OutputTuple, - RoleRevokedEvent.OutputObject - >; - RoleRevoked: TypedContractEvent< - RoleRevokedEvent.InputTuple, - RoleRevokedEvent.OutputTuple, - RoleRevokedEvent.OutputObject - >; - }; -} diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/access/index.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/access/index.ts deleted file mode 100644 index 8209e49..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/access/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { AccessControl } from "./AccessControl"; -export type { IAccessControl } from "./IAccessControl"; diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/index.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/index.ts deleted file mode 100644 index 07c466d..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as access from "./access"; -export type { access }; -import type * as interfaces from "./interfaces"; -export type { interfaces }; -import type * as token from "./token"; -export type { token }; -import type * as utils from "./utils"; -export type { utils }; diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.ts deleted file mode 100644 index 294d7b0..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - FunctionFragment, - Interface, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, -} from "../../../../common"; - -export interface IERC1155ErrorsInterface extends Interface {} - -export interface IERC1155Errors extends BaseContract { - connect(runner?: ContractRunner | null): IERC1155Errors; - waitForDeployment(): Promise; - - interface: IERC1155ErrorsInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - getFunction( - key: string | FunctionFragment, - ): T; - - filters: {}; -} diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.ts deleted file mode 100644 index 18ccebf..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - FunctionFragment, - Interface, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, -} from "../../../../common"; - -export interface IERC20ErrorsInterface extends Interface {} - -export interface IERC20Errors extends BaseContract { - connect(runner?: ContractRunner | null): IERC20Errors; - waitForDeployment(): Promise; - - interface: IERC20ErrorsInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - getFunction( - key: string | FunctionFragment, - ): T; - - filters: {}; -} diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.ts deleted file mode 100644 index 78f5c91..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - FunctionFragment, - Interface, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, -} from "../../../../common"; - -export interface IERC721ErrorsInterface extends Interface {} - -export interface IERC721Errors extends BaseContract { - connect(runner?: ContractRunner | null): IERC721Errors; - waitForDeployment(): Promise; - - interface: IERC721ErrorsInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - getFunction( - key: string | FunctionFragment, - ): T; - - filters: {}; -} diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts deleted file mode 100644 index 9415fdf..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { IERC1155Errors } from "./IERC1155Errors"; -export type { IERC20Errors } from "./IERC20Errors"; -export type { IERC721Errors } from "./IERC721Errors"; diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/interfaces/index.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/interfaces/index.ts deleted file mode 100644 index d70b374..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/interfaces/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as draftIerc6093Sol from "./draft-IERC6093.sol"; -export type { draftIerc6093Sol }; diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/ERC20.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/ERC20.ts deleted file mode 100644 index 23eb40c..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/ERC20.ts +++ /dev/null @@ -1,286 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "../../../../common"; - -export interface ERC20Interface extends Interface { - getFunction( - nameOrSignature: - | "allowance" - | "approve" - | "balanceOf" - | "decimals" - | "name" - | "symbol" - | "totalSupply" - | "transfer" - | "transferFrom", - ): FunctionFragment; - - getEvent(nameOrSignatureOrTopic: "Approval" | "Transfer"): EventFragment; - - encodeFunctionData( - functionFragment: "allowance", - values: [AddressLike, AddressLike], - ): string; - encodeFunctionData( - functionFragment: "approve", - values: [AddressLike, BigNumberish], - ): string; - encodeFunctionData( - functionFragment: "balanceOf", - values: [AddressLike], - ): string; - encodeFunctionData(functionFragment: "decimals", values?: undefined): string; - encodeFunctionData(functionFragment: "name", values?: undefined): string; - encodeFunctionData(functionFragment: "symbol", values?: undefined): string; - encodeFunctionData( - functionFragment: "totalSupply", - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: "transfer", - values: [AddressLike, BigNumberish], - ): string; - encodeFunctionData( - functionFragment: "transferFrom", - values: [AddressLike, AddressLike, BigNumberish], - ): string; - - decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "totalSupply", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "transferFrom", - data: BytesLike, - ): Result; -} - -export namespace ApprovalEvent { - export type InputTuple = [ - owner: AddressLike, - spender: AddressLike, - value: BigNumberish, - ]; - export type OutputTuple = [owner: string, spender: string, value: bigint]; - export interface OutputObject { - owner: string; - spender: string; - value: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace TransferEvent { - export type InputTuple = [ - from: AddressLike, - to: AddressLike, - value: BigNumberish, - ]; - export type OutputTuple = [from: string, to: string, value: bigint]; - export interface OutputObject { - from: string; - to: string; - value: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface ERC20 extends BaseContract { - connect(runner?: ContractRunner | null): ERC20; - waitForDeployment(): Promise; - - interface: ERC20Interface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - allowance: TypedContractMethod< - [owner: AddressLike, spender: AddressLike], - [bigint], - "view" - >; - - approve: TypedContractMethod< - [spender: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - - balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">; - - decimals: TypedContractMethod<[], [bigint], "view">; - - name: TypedContractMethod<[], [string], "view">; - - symbol: TypedContractMethod<[], [string], "view">; - - totalSupply: TypedContractMethod<[], [bigint], "view">; - - transfer: TypedContractMethod< - [to: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - - transferFrom: TypedContractMethod< - [from: AddressLike, to: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - - getFunction( - key: string | FunctionFragment, - ): T; - - getFunction( - nameOrSignature: "allowance", - ): TypedContractMethod< - [owner: AddressLike, spender: AddressLike], - [bigint], - "view" - >; - getFunction( - nameOrSignature: "approve", - ): TypedContractMethod< - [spender: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - getFunction( - nameOrSignature: "balanceOf", - ): TypedContractMethod<[account: AddressLike], [bigint], "view">; - getFunction( - nameOrSignature: "decimals", - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "name", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "symbol", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "totalSupply", - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "transfer", - ): TypedContractMethod< - [to: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - getFunction( - nameOrSignature: "transferFrom", - ): TypedContractMethod< - [from: AddressLike, to: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - - getEvent( - key: "Approval", - ): TypedContractEvent< - ApprovalEvent.InputTuple, - ApprovalEvent.OutputTuple, - ApprovalEvent.OutputObject - >; - getEvent( - key: "Transfer", - ): TypedContractEvent< - TransferEvent.InputTuple, - TransferEvent.OutputTuple, - TransferEvent.OutputObject - >; - - filters: { - "Approval(address,address,uint256)": TypedContractEvent< - ApprovalEvent.InputTuple, - ApprovalEvent.OutputTuple, - ApprovalEvent.OutputObject - >; - Approval: TypedContractEvent< - ApprovalEvent.InputTuple, - ApprovalEvent.OutputTuple, - ApprovalEvent.OutputObject - >; - - "Transfer(address,address,uint256)": TypedContractEvent< - TransferEvent.InputTuple, - TransferEvent.OutputTuple, - TransferEvent.OutputObject - >; - Transfer: TypedContractEvent< - TransferEvent.InputTuple, - TransferEvent.OutputTuple, - TransferEvent.OutputObject - >; - }; -} diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts deleted file mode 100644 index ea0c635..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts +++ /dev/null @@ -1,262 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "../../../../common"; - -export interface IERC20Interface extends Interface { - getFunction( - nameOrSignature: - | "allowance" - | "approve" - | "balanceOf" - | "totalSupply" - | "transfer" - | "transferFrom", - ): FunctionFragment; - - getEvent(nameOrSignatureOrTopic: "Approval" | "Transfer"): EventFragment; - - encodeFunctionData( - functionFragment: "allowance", - values: [AddressLike, AddressLike], - ): string; - encodeFunctionData( - functionFragment: "approve", - values: [AddressLike, BigNumberish], - ): string; - encodeFunctionData( - functionFragment: "balanceOf", - values: [AddressLike], - ): string; - encodeFunctionData( - functionFragment: "totalSupply", - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: "transfer", - values: [AddressLike, BigNumberish], - ): string; - encodeFunctionData( - functionFragment: "transferFrom", - values: [AddressLike, AddressLike, BigNumberish], - ): string; - - decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "totalSupply", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "transferFrom", - data: BytesLike, - ): Result; -} - -export namespace ApprovalEvent { - export type InputTuple = [ - owner: AddressLike, - spender: AddressLike, - value: BigNumberish, - ]; - export type OutputTuple = [owner: string, spender: string, value: bigint]; - export interface OutputObject { - owner: string; - spender: string; - value: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace TransferEvent { - export type InputTuple = [ - from: AddressLike, - to: AddressLike, - value: BigNumberish, - ]; - export type OutputTuple = [from: string, to: string, value: bigint]; - export interface OutputObject { - from: string; - to: string; - value: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface IERC20 extends BaseContract { - connect(runner?: ContractRunner | null): IERC20; - waitForDeployment(): Promise; - - interface: IERC20Interface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - allowance: TypedContractMethod< - [owner: AddressLike, spender: AddressLike], - [bigint], - "view" - >; - - approve: TypedContractMethod< - [spender: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - - balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">; - - totalSupply: TypedContractMethod<[], [bigint], "view">; - - transfer: TypedContractMethod< - [to: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - - transferFrom: TypedContractMethod< - [from: AddressLike, to: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - - getFunction( - key: string | FunctionFragment, - ): T; - - getFunction( - nameOrSignature: "allowance", - ): TypedContractMethod< - [owner: AddressLike, spender: AddressLike], - [bigint], - "view" - >; - getFunction( - nameOrSignature: "approve", - ): TypedContractMethod< - [spender: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - getFunction( - nameOrSignature: "balanceOf", - ): TypedContractMethod<[account: AddressLike], [bigint], "view">; - getFunction( - nameOrSignature: "totalSupply", - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "transfer", - ): TypedContractMethod< - [to: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - getFunction( - nameOrSignature: "transferFrom", - ): TypedContractMethod< - [from: AddressLike, to: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - - getEvent( - key: "Approval", - ): TypedContractEvent< - ApprovalEvent.InputTuple, - ApprovalEvent.OutputTuple, - ApprovalEvent.OutputObject - >; - getEvent( - key: "Transfer", - ): TypedContractEvent< - TransferEvent.InputTuple, - TransferEvent.OutputTuple, - TransferEvent.OutputObject - >; - - filters: { - "Approval(address,address,uint256)": TypedContractEvent< - ApprovalEvent.InputTuple, - ApprovalEvent.OutputTuple, - ApprovalEvent.OutputObject - >; - Approval: TypedContractEvent< - ApprovalEvent.InputTuple, - ApprovalEvent.OutputTuple, - ApprovalEvent.OutputObject - >; - - "Transfer(address,address,uint256)": TypedContractEvent< - TransferEvent.InputTuple, - TransferEvent.OutputTuple, - TransferEvent.OutputObject - >; - Transfer: TypedContractEvent< - TransferEvent.InputTuple, - TransferEvent.OutputTuple, - TransferEvent.OutputObject - >; - }; -} diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts deleted file mode 100644 index aa99abf..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts +++ /dev/null @@ -1,286 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "../../../../../common"; - -export interface IERC20MetadataInterface extends Interface { - getFunction( - nameOrSignature: - | "allowance" - | "approve" - | "balanceOf" - | "decimals" - | "name" - | "symbol" - | "totalSupply" - | "transfer" - | "transferFrom", - ): FunctionFragment; - - getEvent(nameOrSignatureOrTopic: "Approval" | "Transfer"): EventFragment; - - encodeFunctionData( - functionFragment: "allowance", - values: [AddressLike, AddressLike], - ): string; - encodeFunctionData( - functionFragment: "approve", - values: [AddressLike, BigNumberish], - ): string; - encodeFunctionData( - functionFragment: "balanceOf", - values: [AddressLike], - ): string; - encodeFunctionData(functionFragment: "decimals", values?: undefined): string; - encodeFunctionData(functionFragment: "name", values?: undefined): string; - encodeFunctionData(functionFragment: "symbol", values?: undefined): string; - encodeFunctionData( - functionFragment: "totalSupply", - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: "transfer", - values: [AddressLike, BigNumberish], - ): string; - encodeFunctionData( - functionFragment: "transferFrom", - values: [AddressLike, AddressLike, BigNumberish], - ): string; - - decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "totalSupply", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "transferFrom", - data: BytesLike, - ): Result; -} - -export namespace ApprovalEvent { - export type InputTuple = [ - owner: AddressLike, - spender: AddressLike, - value: BigNumberish, - ]; - export type OutputTuple = [owner: string, spender: string, value: bigint]; - export interface OutputObject { - owner: string; - spender: string; - value: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace TransferEvent { - export type InputTuple = [ - from: AddressLike, - to: AddressLike, - value: BigNumberish, - ]; - export type OutputTuple = [from: string, to: string, value: bigint]; - export interface OutputObject { - from: string; - to: string; - value: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface IERC20Metadata extends BaseContract { - connect(runner?: ContractRunner | null): IERC20Metadata; - waitForDeployment(): Promise; - - interface: IERC20MetadataInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - allowance: TypedContractMethod< - [owner: AddressLike, spender: AddressLike], - [bigint], - "view" - >; - - approve: TypedContractMethod< - [spender: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - - balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">; - - decimals: TypedContractMethod<[], [bigint], "view">; - - name: TypedContractMethod<[], [string], "view">; - - symbol: TypedContractMethod<[], [string], "view">; - - totalSupply: TypedContractMethod<[], [bigint], "view">; - - transfer: TypedContractMethod< - [to: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - - transferFrom: TypedContractMethod< - [from: AddressLike, to: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - - getFunction( - key: string | FunctionFragment, - ): T; - - getFunction( - nameOrSignature: "allowance", - ): TypedContractMethod< - [owner: AddressLike, spender: AddressLike], - [bigint], - "view" - >; - getFunction( - nameOrSignature: "approve", - ): TypedContractMethod< - [spender: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - getFunction( - nameOrSignature: "balanceOf", - ): TypedContractMethod<[account: AddressLike], [bigint], "view">; - getFunction( - nameOrSignature: "decimals", - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "name", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "symbol", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "totalSupply", - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "transfer", - ): TypedContractMethod< - [to: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - getFunction( - nameOrSignature: "transferFrom", - ): TypedContractMethod< - [from: AddressLike, to: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - - getEvent( - key: "Approval", - ): TypedContractEvent< - ApprovalEvent.InputTuple, - ApprovalEvent.OutputTuple, - ApprovalEvent.OutputObject - >; - getEvent( - key: "Transfer", - ): TypedContractEvent< - TransferEvent.InputTuple, - TransferEvent.OutputTuple, - TransferEvent.OutputObject - >; - - filters: { - "Approval(address,address,uint256)": TypedContractEvent< - ApprovalEvent.InputTuple, - ApprovalEvent.OutputTuple, - ApprovalEvent.OutputObject - >; - Approval: TypedContractEvent< - ApprovalEvent.InputTuple, - ApprovalEvent.OutputTuple, - ApprovalEvent.OutputObject - >; - - "Transfer(address,address,uint256)": TypedContractEvent< - TransferEvent.InputTuple, - TransferEvent.OutputTuple, - TransferEvent.OutputObject - >; - Transfer: TypedContractEvent< - TransferEvent.InputTuple, - TransferEvent.OutputTuple, - TransferEvent.OutputObject - >; - }; -} diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.ts deleted file mode 100644 index 13ad1be..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.ts +++ /dev/null @@ -1,143 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, - TypedContractMethod, -} from "../../../../../common"; - -export interface IERC20PermitInterface extends Interface { - getFunction( - nameOrSignature: "DOMAIN_SEPARATOR" | "nonces" | "permit", - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "DOMAIN_SEPARATOR", - values?: undefined, - ): string; - encodeFunctionData(functionFragment: "nonces", values: [AddressLike]): string; - encodeFunctionData( - functionFragment: "permit", - values: [ - AddressLike, - AddressLike, - BigNumberish, - BigNumberish, - BigNumberish, - BytesLike, - BytesLike, - ], - ): string; - - decodeFunctionResult( - functionFragment: "DOMAIN_SEPARATOR", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "nonces", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "permit", data: BytesLike): Result; -} - -export interface IERC20Permit extends BaseContract { - connect(runner?: ContractRunner | null): IERC20Permit; - waitForDeployment(): Promise; - - interface: IERC20PermitInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - DOMAIN_SEPARATOR: TypedContractMethod<[], [string], "view">; - - nonces: TypedContractMethod<[owner: AddressLike], [bigint], "view">; - - permit: TypedContractMethod< - [ - owner: AddressLike, - spender: AddressLike, - value: BigNumberish, - deadline: BigNumberish, - v: BigNumberish, - r: BytesLike, - s: BytesLike, - ], - [void], - "nonpayable" - >; - - getFunction( - key: string | FunctionFragment, - ): T; - - getFunction( - nameOrSignature: "DOMAIN_SEPARATOR", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "nonces", - ): TypedContractMethod<[owner: AddressLike], [bigint], "view">; - getFunction( - nameOrSignature: "permit", - ): TypedContractMethod< - [ - owner: AddressLike, - spender: AddressLike, - value: BigNumberish, - deadline: BigNumberish, - v: BigNumberish, - r: BytesLike, - s: BytesLike, - ], - [void], - "nonpayable" - >; - - filters: {}; -} diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/index.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/index.ts deleted file mode 100644 index e8184b6..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { IERC20Metadata } from "./IERC20Metadata"; -export type { IERC20Permit } from "./IERC20Permit"; diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/index.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/index.ts deleted file mode 100644 index 588dd9b..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as extensions from "./extensions"; -export type { extensions }; -import type * as utils from "./utils"; -export type { utils }; -export type { ERC20 } from "./ERC20"; -export type { IERC20 } from "./IERC20"; diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.ts deleted file mode 100644 index 97d60db..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - FunctionFragment, - Interface, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, -} from "../../../../../common"; - -export interface SafeERC20Interface extends Interface {} - -export interface SafeERC20 extends BaseContract { - connect(runner?: ContractRunner | null): SafeERC20; - waitForDeployment(): Promise; - - interface: SafeERC20Interface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - getFunction( - key: string | FunctionFragment, - ): T; - - filters: {}; -} diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/utils/index.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/utils/index.ts deleted file mode 100644 index 915f5b8..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/ERC20/utils/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { SafeERC20 } from "./SafeERC20"; diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/index.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/index.ts deleted file mode 100644 index 5c4062a..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/token/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as erc20 from "./ERC20"; -export type { erc20 }; diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/Address.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/Address.ts deleted file mode 100644 index e8e2305..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/Address.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - FunctionFragment, - Interface, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, -} from "../../../common"; - -export interface AddressInterface extends Interface {} - -export interface Address extends BaseContract { - connect(runner?: ContractRunner | null): Address; - waitForDeployment(): Promise; - - interface: AddressInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - getFunction( - key: string | FunctionFragment, - ): T; - - filters: {}; -} diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/Pausable.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/Pausable.ts deleted file mode 100644 index ea0e592..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/Pausable.ts +++ /dev/null @@ -1,150 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "../../../common"; - -export interface PausableInterface extends Interface { - getFunction(nameOrSignature: "paused"): FunctionFragment; - - getEvent(nameOrSignatureOrTopic: "Paused" | "Unpaused"): EventFragment; - - encodeFunctionData(functionFragment: "paused", values?: undefined): string; - - decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result; -} - -export namespace PausedEvent { - export type InputTuple = [account: AddressLike]; - export type OutputTuple = [account: string]; - export interface OutputObject { - account: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace UnpausedEvent { - export type InputTuple = [account: AddressLike]; - export type OutputTuple = [account: string]; - export interface OutputObject { - account: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface Pausable extends BaseContract { - connect(runner?: ContractRunner | null): Pausable; - waitForDeployment(): Promise; - - interface: PausableInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - paused: TypedContractMethod<[], [boolean], "view">; - - getFunction( - key: string | FunctionFragment, - ): T; - - getFunction( - nameOrSignature: "paused", - ): TypedContractMethod<[], [boolean], "view">; - - getEvent( - key: "Paused", - ): TypedContractEvent< - PausedEvent.InputTuple, - PausedEvent.OutputTuple, - PausedEvent.OutputObject - >; - getEvent( - key: "Unpaused", - ): TypedContractEvent< - UnpausedEvent.InputTuple, - UnpausedEvent.OutputTuple, - UnpausedEvent.OutputObject - >; - - filters: { - "Paused(address)": TypedContractEvent< - PausedEvent.InputTuple, - PausedEvent.OutputTuple, - PausedEvent.OutputObject - >; - Paused: TypedContractEvent< - PausedEvent.InputTuple, - PausedEvent.OutputTuple, - PausedEvent.OutputObject - >; - - "Unpaused(address)": TypedContractEvent< - UnpausedEvent.InputTuple, - UnpausedEvent.OutputTuple, - UnpausedEvent.OutputObject - >; - Unpaused: TypedContractEvent< - UnpausedEvent.InputTuple, - UnpausedEvent.OutputTuple, - UnpausedEvent.OutputObject - >; - }; -} diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/ReentrancyGuard.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/ReentrancyGuard.ts deleted file mode 100644 index b269872..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/ReentrancyGuard.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - FunctionFragment, - Interface, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, -} from "../../../common"; - -export interface ReentrancyGuardInterface extends Interface {} - -export interface ReentrancyGuard extends BaseContract { - connect(runner?: ContractRunner | null): ReentrancyGuard; - waitForDeployment(): Promise; - - interface: ReentrancyGuardInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - getFunction( - key: string | FunctionFragment, - ): T; - - filters: {}; -} diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/index.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/index.ts deleted file mode 100644 index 96bebd8..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as introspection from "./introspection"; -export type { introspection }; -export type { Address } from "./Address"; -export type { Pausable } from "./Pausable"; -export type { ReentrancyGuard } from "./ReentrancyGuard"; diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/introspection/ERC165.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/introspection/ERC165.ts deleted file mode 100644 index 5789f9d..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/introspection/ERC165.ts +++ /dev/null @@ -1,94 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BytesLike, - FunctionFragment, - Result, - Interface, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, - TypedContractMethod, -} from "../../../../common"; - -export interface ERC165Interface extends Interface { - getFunction(nameOrSignature: "supportsInterface"): FunctionFragment; - - encodeFunctionData( - functionFragment: "supportsInterface", - values: [BytesLike], - ): string; - - decodeFunctionResult( - functionFragment: "supportsInterface", - data: BytesLike, - ): Result; -} - -export interface ERC165 extends BaseContract { - connect(runner?: ContractRunner | null): ERC165; - waitForDeployment(): Promise; - - interface: ERC165Interface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - supportsInterface: TypedContractMethod< - [interfaceId: BytesLike], - [boolean], - "view" - >; - - getFunction( - key: string | FunctionFragment, - ): T; - - getFunction( - nameOrSignature: "supportsInterface", - ): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">; - - filters: {}; -} diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/introspection/IERC165.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/introspection/IERC165.ts deleted file mode 100644 index f0f19ef..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/introspection/IERC165.ts +++ /dev/null @@ -1,94 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BytesLike, - FunctionFragment, - Result, - Interface, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, - TypedContractMethod, -} from "../../../../common"; - -export interface IERC165Interface extends Interface { - getFunction(nameOrSignature: "supportsInterface"): FunctionFragment; - - encodeFunctionData( - functionFragment: "supportsInterface", - values: [BytesLike], - ): string; - - decodeFunctionResult( - functionFragment: "supportsInterface", - data: BytesLike, - ): Result; -} - -export interface IERC165 extends BaseContract { - connect(runner?: ContractRunner | null): IERC165; - waitForDeployment(): Promise; - - interface: IERC165Interface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - supportsInterface: TypedContractMethod< - [interfaceId: BytesLike], - [boolean], - "view" - >; - - getFunction( - key: string | FunctionFragment, - ): T; - - getFunction( - nameOrSignature: "supportsInterface", - ): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">; - - filters: {}; -} diff --git a/src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/introspection/index.ts b/src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/introspection/index.ts deleted file mode 100644 index d7fccec..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/contracts/utils/introspection/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ERC165 } from "./ERC165"; -export type { IERC165 } from "./IERC165"; diff --git a/src/contracts/evm/typechain-types/@openzeppelin/index.ts b/src/contracts/evm/typechain-types/@openzeppelin/index.ts deleted file mode 100644 index a11e4ca..0000000 --- a/src/contracts/evm/typechain-types/@openzeppelin/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as contracts from "./contracts"; -export type { contracts }; diff --git a/src/contracts/evm/typechain-types/common.ts b/src/contracts/evm/typechain-types/common.ts deleted file mode 100644 index d8d9573..0000000 --- a/src/contracts/evm/typechain-types/common.ts +++ /dev/null @@ -1,135 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - FunctionFragment, - Typed, - EventFragment, - ContractTransaction, - ContractTransactionResponse, - DeferredTopicFilter, - EventLog, - TransactionRequest, - LogDescription, -} from "ethers"; - -export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> - extends DeferredTopicFilter {} - -export interface TypedContractEvent< - InputTuple extends Array = any, - OutputTuple extends Array = any, - OutputObject = any, -> { - ( - ...args: Partial - ): TypedDeferredTopicFilter< - TypedContractEvent - >; - name: string; - fragment: EventFragment; - getFragment(...args: Partial): EventFragment; -} - -type __TypechainAOutputTuple = T extends TypedContractEvent< - infer _U, - infer W -> - ? W - : never; -type __TypechainOutputObject = T extends TypedContractEvent< - infer _U, - infer _W, - infer V -> - ? V - : never; - -export interface TypedEventLog - extends Omit { - args: __TypechainAOutputTuple & __TypechainOutputObject; -} - -export interface TypedLogDescription - extends Omit { - args: __TypechainAOutputTuple & __TypechainOutputObject; -} - -export type TypedListener = ( - ...listenerArg: [ - ...__TypechainAOutputTuple, - TypedEventLog, - ...undefined[], - ] -) => void; - -export type MinEthersFactory = { - deploy(...a: ARGS[]): Promise; -}; - -export type GetContractTypeFromFactory = F extends MinEthersFactory< - infer C, - any -> - ? C - : never; -export type GetARGsTypeFromFactory = F extends MinEthersFactory - ? Parameters - : never; - -export type StateMutability = "nonpayable" | "payable" | "view"; - -export type BaseOverrides = Omit; -export type NonPayableOverrides = Omit< - BaseOverrides, - "value" | "blockTag" | "enableCcipRead" ->; -export type PayableOverrides = Omit< - BaseOverrides, - "blockTag" | "enableCcipRead" ->; -export type ViewOverrides = Omit; -export type Overrides = S extends "nonpayable" - ? NonPayableOverrides - : S extends "payable" - ? PayableOverrides - : ViewOverrides; - -export type PostfixOverrides, S extends StateMutability> = - | A - | [...A, Overrides]; -export type ContractMethodArgs< - A extends Array, - S extends StateMutability, -> = PostfixOverrides<{ [I in keyof A]-?: A[I] | Typed }, S>; - -export type DefaultReturnType = R extends Array ? R[0] : R; - -// export interface ContractMethod = Array, R = any, D extends R | ContractTransactionResponse = R | ContractTransactionResponse> { -export interface TypedContractMethod< - A extends Array = Array, - R = any, - S extends StateMutability = "payable", -> { - ( - ...args: ContractMethodArgs - ): S extends "view" - ? Promise> - : Promise; - - name: string; - - fragment: FunctionFragment; - - getFragment(...args: ContractMethodArgs): FunctionFragment; - - populateTransaction( - ...args: ContractMethodArgs - ): Promise; - staticCall( - ...args: ContractMethodArgs - ): Promise>; - send(...args: ContractMethodArgs): Promise; - estimateGas(...args: ContractMethodArgs): Promise; - staticCallResult(...args: ContractMethodArgs): Promise; -} diff --git a/src/contracts/evm/typechain-types/contracts/BridgeComponents/BridgeSecurity.ts b/src/contracts/evm/typechain-types/contracts/BridgeComponents/BridgeSecurity.ts deleted file mode 100644 index 50cdcf1..0000000 --- a/src/contracts/evm/typechain-types/contracts/BridgeComponents/BridgeSecurity.ts +++ /dev/null @@ -1,505 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "../../common"; - -export interface BridgeSecurityInterface extends Interface { - getFunction( - nameOrSignature: - | "BRIDGE_VALIDATOR_ROLE" - | "DEFAULT_ADMIN_ROLE" - | "MAPPING_ADMIN_ROLE" - | "PAUSER_ROLE" - | "WITHDRAWER_ROLE" - | "addValidator" - | "getRoleAdmin" - | "grantRole" - | "hasRole" - | "pause" - | "paused" - | "removeValidator" - | "renounceRole" - | "revokeRole" - | "supportsInterface" - | "unpause", - ): FunctionFragment; - - getEvent( - nameOrSignatureOrTopic: - | "Paused" - | "RoleAdminChanged" - | "RoleGranted" - | "RoleRevoked" - | "Unpaused", - ): EventFragment; - - encodeFunctionData( - functionFragment: "BRIDGE_VALIDATOR_ROLE", - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: "DEFAULT_ADMIN_ROLE", - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: "MAPPING_ADMIN_ROLE", - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: "PAUSER_ROLE", - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: "WITHDRAWER_ROLE", - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: "addValidator", - values: [AddressLike], - ): string; - encodeFunctionData( - functionFragment: "getRoleAdmin", - values: [BytesLike], - ): string; - encodeFunctionData( - functionFragment: "grantRole", - values: [BytesLike, AddressLike], - ): string; - encodeFunctionData( - functionFragment: "hasRole", - values: [BytesLike, AddressLike], - ): string; - encodeFunctionData(functionFragment: "pause", values?: undefined): string; - encodeFunctionData(functionFragment: "paused", values?: undefined): string; - encodeFunctionData( - functionFragment: "removeValidator", - values: [AddressLike], - ): string; - encodeFunctionData( - functionFragment: "renounceRole", - values: [BytesLike, AddressLike], - ): string; - encodeFunctionData( - functionFragment: "revokeRole", - values: [BytesLike, AddressLike], - ): string; - encodeFunctionData( - functionFragment: "supportsInterface", - values: [BytesLike], - ): string; - encodeFunctionData(functionFragment: "unpause", values?: undefined): string; - - decodeFunctionResult( - functionFragment: "BRIDGE_VALIDATOR_ROLE", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "DEFAULT_ADMIN_ROLE", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "MAPPING_ADMIN_ROLE", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "PAUSER_ROLE", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "WITHDRAWER_ROLE", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "addValidator", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "getRoleAdmin", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "removeValidator", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "renounceRole", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "supportsInterface", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result; -} - -export namespace PausedEvent { - export type InputTuple = [account: AddressLike]; - export type OutputTuple = [account: string]; - export interface OutputObject { - account: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace RoleAdminChangedEvent { - export type InputTuple = [ - role: BytesLike, - previousAdminRole: BytesLike, - newAdminRole: BytesLike, - ]; - export type OutputTuple = [ - role: string, - previousAdminRole: string, - newAdminRole: string, - ]; - export interface OutputObject { - role: string; - previousAdminRole: string; - newAdminRole: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace RoleGrantedEvent { - export type InputTuple = [ - role: BytesLike, - account: AddressLike, - sender: AddressLike, - ]; - export type OutputTuple = [role: string, account: string, sender: string]; - export interface OutputObject { - role: string; - account: string; - sender: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace RoleRevokedEvent { - export type InputTuple = [ - role: BytesLike, - account: AddressLike, - sender: AddressLike, - ]; - export type OutputTuple = [role: string, account: string, sender: string]; - export interface OutputObject { - role: string; - account: string; - sender: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace UnpausedEvent { - export type InputTuple = [account: AddressLike]; - export type OutputTuple = [account: string]; - export interface OutputObject { - account: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface BridgeSecurity extends BaseContract { - connect(runner?: ContractRunner | null): BridgeSecurity; - waitForDeployment(): Promise; - - interface: BridgeSecurityInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - BRIDGE_VALIDATOR_ROLE: TypedContractMethod<[], [string], "view">; - - DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">; - - MAPPING_ADMIN_ROLE: TypedContractMethod<[], [string], "view">; - - PAUSER_ROLE: TypedContractMethod<[], [string], "view">; - - WITHDRAWER_ROLE: TypedContractMethod<[], [string], "view">; - - addValidator: TypedContractMethod< - [_validator: AddressLike], - [void], - "nonpayable" - >; - - getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">; - - grantRole: TypedContractMethod< - [role: BytesLike, account: AddressLike], - [void], - "nonpayable" - >; - - hasRole: TypedContractMethod< - [role: BytesLike, account: AddressLike], - [boolean], - "view" - >; - - pause: TypedContractMethod<[], [void], "nonpayable">; - - paused: TypedContractMethod<[], [boolean], "view">; - - removeValidator: TypedContractMethod< - [_validator: AddressLike], - [void], - "nonpayable" - >; - - renounceRole: TypedContractMethod< - [role: BytesLike, callerConfirmation: AddressLike], - [void], - "nonpayable" - >; - - revokeRole: TypedContractMethod< - [role: BytesLike, account: AddressLike], - [void], - "nonpayable" - >; - - supportsInterface: TypedContractMethod< - [interfaceId: BytesLike], - [boolean], - "view" - >; - - unpause: TypedContractMethod<[], [void], "nonpayable">; - - getFunction( - key: string | FunctionFragment, - ): T; - - getFunction( - nameOrSignature: "BRIDGE_VALIDATOR_ROLE", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "DEFAULT_ADMIN_ROLE", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "MAPPING_ADMIN_ROLE", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "PAUSER_ROLE", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "WITHDRAWER_ROLE", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "addValidator", - ): TypedContractMethod<[_validator: AddressLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "getRoleAdmin", - ): TypedContractMethod<[role: BytesLike], [string], "view">; - getFunction( - nameOrSignature: "grantRole", - ): TypedContractMethod< - [role: BytesLike, account: AddressLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "hasRole", - ): TypedContractMethod< - [role: BytesLike, account: AddressLike], - [boolean], - "view" - >; - getFunction( - nameOrSignature: "pause", - ): TypedContractMethod<[], [void], "nonpayable">; - getFunction( - nameOrSignature: "paused", - ): TypedContractMethod<[], [boolean], "view">; - getFunction( - nameOrSignature: "removeValidator", - ): TypedContractMethod<[_validator: AddressLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "renounceRole", - ): TypedContractMethod< - [role: BytesLike, callerConfirmation: AddressLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "revokeRole", - ): TypedContractMethod< - [role: BytesLike, account: AddressLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "supportsInterface", - ): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">; - getFunction( - nameOrSignature: "unpause", - ): TypedContractMethod<[], [void], "nonpayable">; - - getEvent( - key: "Paused", - ): TypedContractEvent< - PausedEvent.InputTuple, - PausedEvent.OutputTuple, - PausedEvent.OutputObject - >; - getEvent( - key: "RoleAdminChanged", - ): TypedContractEvent< - RoleAdminChangedEvent.InputTuple, - RoleAdminChangedEvent.OutputTuple, - RoleAdminChangedEvent.OutputObject - >; - getEvent( - key: "RoleGranted", - ): TypedContractEvent< - RoleGrantedEvent.InputTuple, - RoleGrantedEvent.OutputTuple, - RoleGrantedEvent.OutputObject - >; - getEvent( - key: "RoleRevoked", - ): TypedContractEvent< - RoleRevokedEvent.InputTuple, - RoleRevokedEvent.OutputTuple, - RoleRevokedEvent.OutputObject - >; - getEvent( - key: "Unpaused", - ): TypedContractEvent< - UnpausedEvent.InputTuple, - UnpausedEvent.OutputTuple, - UnpausedEvent.OutputObject - >; - - filters: { - "Paused(address)": TypedContractEvent< - PausedEvent.InputTuple, - PausedEvent.OutputTuple, - PausedEvent.OutputObject - >; - Paused: TypedContractEvent< - PausedEvent.InputTuple, - PausedEvent.OutputTuple, - PausedEvent.OutputObject - >; - - "RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent< - RoleAdminChangedEvent.InputTuple, - RoleAdminChangedEvent.OutputTuple, - RoleAdminChangedEvent.OutputObject - >; - RoleAdminChanged: TypedContractEvent< - RoleAdminChangedEvent.InputTuple, - RoleAdminChangedEvent.OutputTuple, - RoleAdminChangedEvent.OutputObject - >; - - "RoleGranted(bytes32,address,address)": TypedContractEvent< - RoleGrantedEvent.InputTuple, - RoleGrantedEvent.OutputTuple, - RoleGrantedEvent.OutputObject - >; - RoleGranted: TypedContractEvent< - RoleGrantedEvent.InputTuple, - RoleGrantedEvent.OutputTuple, - RoleGrantedEvent.OutputObject - >; - - "RoleRevoked(bytes32,address,address)": TypedContractEvent< - RoleRevokedEvent.InputTuple, - RoleRevokedEvent.OutputTuple, - RoleRevokedEvent.OutputObject - >; - RoleRevoked: TypedContractEvent< - RoleRevokedEvent.InputTuple, - RoleRevokedEvent.OutputTuple, - RoleRevokedEvent.OutputObject - >; - - "Unpaused(address)": TypedContractEvent< - UnpausedEvent.InputTuple, - UnpausedEvent.OutputTuple, - UnpausedEvent.OutputObject - >; - Unpaused: TypedContractEvent< - UnpausedEvent.InputTuple, - UnpausedEvent.OutputTuple, - UnpausedEvent.OutputObject - >; - }; -} diff --git a/src/contracts/evm/typechain-types/contracts/BridgeComponents/BridgeStorage.ts b/src/contracts/evm/typechain-types/contracts/BridgeComponents/BridgeStorage.ts deleted file mode 100644 index a8a743e..0000000 --- a/src/contracts/evm/typechain-types/contracts/BridgeComponents/BridgeStorage.ts +++ /dev/null @@ -1,246 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, - TypedContractMethod, -} from "../../common"; - -export interface BridgeStorageInterface extends Interface { - getFunction( - nameOrSignature: - | "TVL" - | "actionId" - | "fees" - | "incomming" - | "nativeChainId" - | "nativeCoin" - | "nativeTokens" - | "outgoing" - | "supportedChains" - | "wrappedTokens", - ): FunctionFragment; - - encodeFunctionData(functionFragment: "TVL", values?: undefined): string; - encodeFunctionData(functionFragment: "actionId", values?: undefined): string; - encodeFunctionData(functionFragment: "fees", values?: undefined): string; - encodeFunctionData( - functionFragment: "incomming", - values: [BytesLike], - ): string; - encodeFunctionData( - functionFragment: "nativeChainId", - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: "nativeCoin", - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: "nativeTokens", - values: [string], - ): string; - encodeFunctionData(functionFragment: "outgoing", values: [BytesLike]): string; - encodeFunctionData( - functionFragment: "supportedChains", - values: [BigNumberish], - ): string; - encodeFunctionData( - functionFragment: "wrappedTokens", - values: [string], - ): string; - - decodeFunctionResult(functionFragment: "TVL", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "actionId", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "fees", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "incomming", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "nativeChainId", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "nativeCoin", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "nativeTokens", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "outgoing", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "supportedChains", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "wrappedTokens", - data: BytesLike, - ): Result; -} - -export interface BridgeStorage extends BaseContract { - connect(runner?: ContractRunner | null): BridgeStorage; - waitForDeployment(): Promise; - - interface: BridgeStorageInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - TVL: TypedContractMethod<[], [bigint], "view">; - - actionId: TypedContractMethod<[], [bigint], "view">; - - fees: TypedContractMethod<[], [bigint], "view">; - - incomming: TypedContractMethod< - [arg0: BytesLike], - [ - [bigint, bigint, string, string] & { - amount: bigint; - chainId: bigint; - tokenSymbol: string; - destinationAddress: string; - }, - ], - "view" - >; - - nativeChainId: TypedContractMethod<[], [bigint], "view">; - - nativeCoin: TypedContractMethod<[], [string], "view">; - - nativeTokens: TypedContractMethod< - [arg0: string], - [[string, bigint] & { constractAddress: string; decimals: bigint }], - "view" - >; - - outgoing: TypedContractMethod< - [arg0: BytesLike], - [ - [bigint, bigint, string, string] & { - amount: bigint; - chainId: bigint; - tokenSymbol: string; - destinationAddress: string; - }, - ], - "view" - >; - - supportedChains: TypedContractMethod<[arg0: BigNumberish], [string], "view">; - - wrappedTokens: TypedContractMethod< - [arg0: string], - [[string, bigint] & { constractAddress: string; decimals: bigint }], - "view" - >; - - getFunction( - key: string | FunctionFragment, - ): T; - - getFunction( - nameOrSignature: "TVL", - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "actionId", - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "fees", - ): TypedContractMethod<[], [bigint], "view">; - getFunction(nameOrSignature: "incomming"): TypedContractMethod< - [arg0: BytesLike], - [ - [bigint, bigint, string, string] & { - amount: bigint; - chainId: bigint; - tokenSymbol: string; - destinationAddress: string; - }, - ], - "view" - >; - getFunction( - nameOrSignature: "nativeChainId", - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "nativeCoin", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "nativeTokens", - ): TypedContractMethod< - [arg0: string], - [[string, bigint] & { constractAddress: string; decimals: bigint }], - "view" - >; - getFunction(nameOrSignature: "outgoing"): TypedContractMethod< - [arg0: BytesLike], - [ - [bigint, bigint, string, string] & { - amount: bigint; - chainId: bigint; - tokenSymbol: string; - destinationAddress: string; - }, - ], - "view" - >; - getFunction( - nameOrSignature: "supportedChains", - ): TypedContractMethod<[arg0: BigNumberish], [string], "view">; - getFunction( - nameOrSignature: "wrappedTokens", - ): TypedContractMethod< - [arg0: string], - [[string, bigint] & { constractAddress: string; decimals: bigint }], - "view" - >; - - filters: {}; -} diff --git a/src/contracts/evm/typechain-types/contracts/BridgeComponents/BridgeUtils.ts b/src/contracts/evm/typechain-types/contracts/BridgeComponents/BridgeUtils.ts deleted file mode 100644 index 43fc70a..0000000 --- a/src/contracts/evm/typechain-types/contracts/BridgeComponents/BridgeUtils.ts +++ /dev/null @@ -1,264 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, - TypedContractMethod, -} from "../../common"; - -export interface BridgeUtilsInterface extends Interface { - getFunction( - nameOrSignature: - | "TVL" - | "actionId" - | "areStringsEqual" - | "fees" - | "incomming" - | "nativeChainId" - | "nativeCoin" - | "nativeTokens" - | "outgoing" - | "supportedChains" - | "wrappedTokens", - ): FunctionFragment; - - encodeFunctionData(functionFragment: "TVL", values?: undefined): string; - encodeFunctionData(functionFragment: "actionId", values?: undefined): string; - encodeFunctionData( - functionFragment: "areStringsEqual", - values: [string, string], - ): string; - encodeFunctionData(functionFragment: "fees", values?: undefined): string; - encodeFunctionData( - functionFragment: "incomming", - values: [BytesLike], - ): string; - encodeFunctionData( - functionFragment: "nativeChainId", - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: "nativeCoin", - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: "nativeTokens", - values: [string], - ): string; - encodeFunctionData(functionFragment: "outgoing", values: [BytesLike]): string; - encodeFunctionData( - functionFragment: "supportedChains", - values: [BigNumberish], - ): string; - encodeFunctionData( - functionFragment: "wrappedTokens", - values: [string], - ): string; - - decodeFunctionResult(functionFragment: "TVL", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "actionId", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "areStringsEqual", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "fees", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "incomming", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "nativeChainId", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "nativeCoin", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "nativeTokens", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "outgoing", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "supportedChains", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "wrappedTokens", - data: BytesLike, - ): Result; -} - -export interface BridgeUtils extends BaseContract { - connect(runner?: ContractRunner | null): BridgeUtils; - waitForDeployment(): Promise; - - interface: BridgeUtilsInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - TVL: TypedContractMethod<[], [bigint], "view">; - - actionId: TypedContractMethod<[], [bigint], "view">; - - areStringsEqual: TypedContractMethod< - [first: string, second: string], - [boolean], - "view" - >; - - fees: TypedContractMethod<[], [bigint], "view">; - - incomming: TypedContractMethod< - [arg0: BytesLike], - [ - [bigint, bigint, string, string] & { - amount: bigint; - chainId: bigint; - tokenSymbol: string; - destinationAddress: string; - }, - ], - "view" - >; - - nativeChainId: TypedContractMethod<[], [bigint], "view">; - - nativeCoin: TypedContractMethod<[], [string], "view">; - - nativeTokens: TypedContractMethod< - [arg0: string], - [[string, bigint] & { constractAddress: string; decimals: bigint }], - "view" - >; - - outgoing: TypedContractMethod< - [arg0: BytesLike], - [ - [bigint, bigint, string, string] & { - amount: bigint; - chainId: bigint; - tokenSymbol: string; - destinationAddress: string; - }, - ], - "view" - >; - - supportedChains: TypedContractMethod<[arg0: BigNumberish], [string], "view">; - - wrappedTokens: TypedContractMethod< - [arg0: string], - [[string, bigint] & { constractAddress: string; decimals: bigint }], - "view" - >; - - getFunction( - key: string | FunctionFragment, - ): T; - - getFunction( - nameOrSignature: "TVL", - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "actionId", - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "areStringsEqual", - ): TypedContractMethod<[first: string, second: string], [boolean], "view">; - getFunction( - nameOrSignature: "fees", - ): TypedContractMethod<[], [bigint], "view">; - getFunction(nameOrSignature: "incomming"): TypedContractMethod< - [arg0: BytesLike], - [ - [bigint, bigint, string, string] & { - amount: bigint; - chainId: bigint; - tokenSymbol: string; - destinationAddress: string; - }, - ], - "view" - >; - getFunction( - nameOrSignature: "nativeChainId", - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "nativeCoin", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "nativeTokens", - ): TypedContractMethod< - [arg0: string], - [[string, bigint] & { constractAddress: string; decimals: bigint }], - "view" - >; - getFunction(nameOrSignature: "outgoing"): TypedContractMethod< - [arg0: BytesLike], - [ - [bigint, bigint, string, string] & { - amount: bigint; - chainId: bigint; - tokenSymbol: string; - destinationAddress: string; - }, - ], - "view" - >; - getFunction( - nameOrSignature: "supportedChains", - ): TypedContractMethod<[arg0: BigNumberish], [string], "view">; - getFunction( - nameOrSignature: "wrappedTokens", - ): TypedContractMethod< - [arg0: string], - [[string, bigint] & { constractAddress: string; decimals: bigint }], - "view" - >; - - filters: {}; -} diff --git a/src/contracts/evm/typechain-types/contracts/BridgeComponents/IBridgeContract.ts b/src/contracts/evm/typechain-types/contracts/BridgeComponents/IBridgeContract.ts deleted file mode 100644 index d39641a..0000000 --- a/src/contracts/evm/typechain-types/contracts/BridgeComponents/IBridgeContract.ts +++ /dev/null @@ -1,268 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "../../common"; - -export declare namespace BridgeStorage { - export type InstallmentInStruct = { - amount: BigNumberish; - chainId: BigNumberish; - tokenSymbol: string; - destinationAddress: AddressLike; - }; - - export type InstallmentInStructOutput = [ - amount: bigint, - chainId: bigint, - tokenSymbol: string, - destinationAddress: string, - ] & { - amount: bigint; - chainId: bigint; - tokenSymbol: string; - destinationAddress: string; - }; - - export type InstallmentOutStruct = { - amount: BigNumberish; - chainId: BigNumberish; - tokenSymbol: string; - destinationAddress: string; - }; - - export type InstallmentOutStructOutput = [ - amount: bigint, - chainId: bigint, - tokenSymbol: string, - destinationAddress: string, - ] & { - amount: bigint; - chainId: bigint; - tokenSymbol: string; - destinationAddress: string; - }; -} - -export interface IBridgeContractInterface extends Interface { - getFunction( - nameOrSignature: "receiveInstallment" | "sendInstallment", - ): FunctionFragment; - - getEvent( - nameOrSignatureOrTopic: "ReceivedInstallment" | "SendInstallment", - ): EventFragment; - - encodeFunctionData( - functionFragment: "receiveInstallment", - values: [BytesLike, BridgeStorage.InstallmentInStruct], - ): string; - encodeFunctionData( - functionFragment: "sendInstallment", - values: [BridgeStorage.InstallmentOutStruct], - ): string; - - decodeFunctionResult( - functionFragment: "receiveInstallment", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "sendInstallment", - data: BytesLike, - ): Result; -} - -export namespace ReceivedInstallmentEvent { - export type InputTuple = [ - amount: BigNumberish, - txId: BytesLike, - fromChain: BigNumberish, - toChain: BigNumberish, - tokenSymbol: string, - toAddress: AddressLike, - ]; - export type OutputTuple = [ - amount: bigint, - txId: string, - fromChain: bigint, - toChain: bigint, - tokenSymbol: string, - toAddress: string, - ]; - export interface OutputObject { - amount: bigint; - txId: string; - fromChain: bigint; - toChain: bigint; - tokenSymbol: string; - toAddress: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace SendInstallmentEvent { - export type InputTuple = [ - amount: BigNumberish, - txId: BytesLike, - fromChain: BigNumberish, - toChain: BigNumberish, - tokenSymbol: string, - toAddress: string, - ]; - export type OutputTuple = [ - amount: bigint, - txId: string, - fromChain: bigint, - toChain: bigint, - tokenSymbol: string, - toAddress: string, - ]; - export interface OutputObject { - amount: bigint; - txId: string; - fromChain: bigint; - toChain: bigint; - tokenSymbol: string; - toAddress: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface IBridgeContract extends BaseContract { - connect(runner?: ContractRunner | null): IBridgeContract; - waitForDeployment(): Promise; - - interface: IBridgeContractInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - receiveInstallment: TypedContractMethod< - [txId: BytesLike, params: BridgeStorage.InstallmentInStruct], - [void], - "payable" - >; - - sendInstallment: TypedContractMethod< - [params: BridgeStorage.InstallmentOutStruct], - [void], - "payable" - >; - - getFunction( - key: string | FunctionFragment, - ): T; - - getFunction( - nameOrSignature: "receiveInstallment", - ): TypedContractMethod< - [txId: BytesLike, params: BridgeStorage.InstallmentInStruct], - [void], - "payable" - >; - getFunction( - nameOrSignature: "sendInstallment", - ): TypedContractMethod< - [params: BridgeStorage.InstallmentOutStruct], - [void], - "payable" - >; - - getEvent( - key: "ReceivedInstallment", - ): TypedContractEvent< - ReceivedInstallmentEvent.InputTuple, - ReceivedInstallmentEvent.OutputTuple, - ReceivedInstallmentEvent.OutputObject - >; - getEvent( - key: "SendInstallment", - ): TypedContractEvent< - SendInstallmentEvent.InputTuple, - SendInstallmentEvent.OutputTuple, - SendInstallmentEvent.OutputObject - >; - - filters: { - "ReceivedInstallment(uint256,bytes32,uint16,uint16,string,address)": TypedContractEvent< - ReceivedInstallmentEvent.InputTuple, - ReceivedInstallmentEvent.OutputTuple, - ReceivedInstallmentEvent.OutputObject - >; - ReceivedInstallment: TypedContractEvent< - ReceivedInstallmentEvent.InputTuple, - ReceivedInstallmentEvent.OutputTuple, - ReceivedInstallmentEvent.OutputObject - >; - - "SendInstallment(uint256,bytes32,uint16,uint16,string,string)": TypedContractEvent< - SendInstallmentEvent.InputTuple, - SendInstallmentEvent.OutputTuple, - SendInstallmentEvent.OutputObject - >; - SendInstallment: TypedContractEvent< - SendInstallmentEvent.InputTuple, - SendInstallmentEvent.OutputTuple, - SendInstallmentEvent.OutputObject - >; - }; -} diff --git a/src/contracts/evm/typechain-types/contracts/BridgeComponents/IERC20MinterBurner.ts b/src/contracts/evm/typechain-types/contracts/BridgeComponents/IERC20MinterBurner.ts deleted file mode 100644 index 32c1776..0000000 --- a/src/contracts/evm/typechain-types/contracts/BridgeComponents/IERC20MinterBurner.ts +++ /dev/null @@ -1,115 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, - TypedContractMethod, -} from "../../common"; - -export interface IERC20MinterBurnerInterface extends Interface { - getFunction(nameOrSignature: "burnFrom" | "mint"): FunctionFragment; - - encodeFunctionData( - functionFragment: "burnFrom", - values: [AddressLike, BigNumberish], - ): string; - encodeFunctionData( - functionFragment: "mint", - values: [AddressLike, BigNumberish], - ): string; - - decodeFunctionResult(functionFragment: "burnFrom", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result; -} - -export interface IERC20MinterBurner extends BaseContract { - connect(runner?: ContractRunner | null): IERC20MinterBurner; - waitForDeployment(): Promise; - - interface: IERC20MinterBurnerInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - burnFrom: TypedContractMethod< - [from: AddressLike, value: BigNumberish], - [void], - "nonpayable" - >; - - mint: TypedContractMethod< - [to: AddressLike, amount: BigNumberish], - [void], - "nonpayable" - >; - - getFunction( - key: string | FunctionFragment, - ): T; - - getFunction( - nameOrSignature: "burnFrom", - ): TypedContractMethod< - [from: AddressLike, value: BigNumberish], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "mint", - ): TypedContractMethod< - [to: AddressLike, amount: BigNumberish], - [void], - "nonpayable" - >; - - filters: {}; -} diff --git a/src/contracts/evm/typechain-types/contracts/BridgeComponents/IMappingAdmin.ts b/src/contracts/evm/typechain-types/contracts/BridgeComponents/IMappingAdmin.ts deleted file mode 100644 index 0d7bf70..0000000 --- a/src/contracts/evm/typechain-types/contracts/BridgeComponents/IMappingAdmin.ts +++ /dev/null @@ -1,166 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, - TypedContractMethod, -} from "../../common"; - -export interface IMappingAdminInterface extends Interface { - getFunction( - nameOrSignature: - | "addChain" - | "mapNativeContract" - | "mapWrappedContract" - | "updateChain", - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "addChain", - values: [BigNumberish, string], - ): string; - encodeFunctionData( - functionFragment: "mapNativeContract", - values: [string, AddressLike, BigNumberish], - ): string; - encodeFunctionData( - functionFragment: "mapWrappedContract", - values: [string, AddressLike, BigNumberish], - ): string; - encodeFunctionData( - functionFragment: "updateChain", - values: [BigNumberish, string], - ): string; - - decodeFunctionResult(functionFragment: "addChain", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "mapNativeContract", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "mapWrappedContract", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "updateChain", - data: BytesLike, - ): Result; -} - -export interface IMappingAdmin extends BaseContract { - connect(runner?: ContractRunner | null): IMappingAdmin; - waitForDeployment(): Promise; - - interface: IMappingAdminInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - addChain: TypedContractMethod< - [_chainId: BigNumberish, _chainName: string], - [void], - "nonpayable" - >; - - mapNativeContract: TypedContractMethod< - [_symbol: string, _contract: AddressLike, _decimals: BigNumberish], - [void], - "nonpayable" - >; - - mapWrappedContract: TypedContractMethod< - [_symbol: string, _contract: AddressLike, _decimals: BigNumberish], - [void], - "nonpayable" - >; - - updateChain: TypedContractMethod< - [_chainId: BigNumberish, _chainName: string], - [void], - "nonpayable" - >; - - getFunction( - key: string | FunctionFragment, - ): T; - - getFunction( - nameOrSignature: "addChain", - ): TypedContractMethod< - [_chainId: BigNumberish, _chainName: string], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "mapNativeContract", - ): TypedContractMethod< - [_symbol: string, _contract: AddressLike, _decimals: BigNumberish], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "mapWrappedContract", - ): TypedContractMethod< - [_symbol: string, _contract: AddressLike, _decimals: BigNumberish], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "updateChain", - ): TypedContractMethod< - [_chainId: BigNumberish, _chainName: string], - [void], - "nonpayable" - >; - - filters: {}; -} diff --git a/src/contracts/evm/typechain-types/contracts/BridgeComponents/WrappedERC20.ts b/src/contracts/evm/typechain-types/contracts/BridgeComponents/WrappedERC20.ts deleted file mode 100644 index c25c559..0000000 --- a/src/contracts/evm/typechain-types/contracts/BridgeComponents/WrappedERC20.ts +++ /dev/null @@ -1,600 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "../../common"; - -export interface WrappedERC20Interface extends Interface { - getFunction( - nameOrSignature: - | "BRIDGE_ROLE" - | "DEFAULT_ADMIN_ROLE" - | "allowance" - | "approve" - | "balanceOf" - | "burnFrom" - | "decimals" - | "getRoleAdmin" - | "grantRole" - | "hasRole" - | "mint" - | "name" - | "renounceRole" - | "revokeRole" - | "supportsInterface" - | "symbol" - | "totalSupply" - | "transfer" - | "transferFrom" - | "updateDecimals", - ): FunctionFragment; - - getEvent( - nameOrSignatureOrTopic: - | "Approval" - | "RoleAdminChanged" - | "RoleGranted" - | "RoleRevoked" - | "Transfer", - ): EventFragment; - - encodeFunctionData( - functionFragment: "BRIDGE_ROLE", - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: "DEFAULT_ADMIN_ROLE", - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: "allowance", - values: [AddressLike, AddressLike], - ): string; - encodeFunctionData( - functionFragment: "approve", - values: [AddressLike, BigNumberish], - ): string; - encodeFunctionData( - functionFragment: "balanceOf", - values: [AddressLike], - ): string; - encodeFunctionData( - functionFragment: "burnFrom", - values: [AddressLike, BigNumberish], - ): string; - encodeFunctionData(functionFragment: "decimals", values?: undefined): string; - encodeFunctionData( - functionFragment: "getRoleAdmin", - values: [BytesLike], - ): string; - encodeFunctionData( - functionFragment: "grantRole", - values: [BytesLike, AddressLike], - ): string; - encodeFunctionData( - functionFragment: "hasRole", - values: [BytesLike, AddressLike], - ): string; - encodeFunctionData( - functionFragment: "mint", - values: [AddressLike, BigNumberish], - ): string; - encodeFunctionData(functionFragment: "name", values?: undefined): string; - encodeFunctionData( - functionFragment: "renounceRole", - values: [BytesLike, AddressLike], - ): string; - encodeFunctionData( - functionFragment: "revokeRole", - values: [BytesLike, AddressLike], - ): string; - encodeFunctionData( - functionFragment: "supportsInterface", - values: [BytesLike], - ): string; - encodeFunctionData(functionFragment: "symbol", values?: undefined): string; - encodeFunctionData( - functionFragment: "totalSupply", - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: "transfer", - values: [AddressLike, BigNumberish], - ): string; - encodeFunctionData( - functionFragment: "transferFrom", - values: [AddressLike, AddressLike, BigNumberish], - ): string; - encodeFunctionData( - functionFragment: "updateDecimals", - values: [BigNumberish], - ): string; - - decodeFunctionResult( - functionFragment: "BRIDGE_ROLE", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "DEFAULT_ADMIN_ROLE", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "burnFrom", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getRoleAdmin", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "renounceRole", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "supportsInterface", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "totalSupply", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "transferFrom", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "updateDecimals", - data: BytesLike, - ): Result; -} - -export namespace ApprovalEvent { - export type InputTuple = [ - owner: AddressLike, - spender: AddressLike, - value: BigNumberish, - ]; - export type OutputTuple = [owner: string, spender: string, value: bigint]; - export interface OutputObject { - owner: string; - spender: string; - value: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace RoleAdminChangedEvent { - export type InputTuple = [ - role: BytesLike, - previousAdminRole: BytesLike, - newAdminRole: BytesLike, - ]; - export type OutputTuple = [ - role: string, - previousAdminRole: string, - newAdminRole: string, - ]; - export interface OutputObject { - role: string; - previousAdminRole: string; - newAdminRole: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace RoleGrantedEvent { - export type InputTuple = [ - role: BytesLike, - account: AddressLike, - sender: AddressLike, - ]; - export type OutputTuple = [role: string, account: string, sender: string]; - export interface OutputObject { - role: string; - account: string; - sender: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace RoleRevokedEvent { - export type InputTuple = [ - role: BytesLike, - account: AddressLike, - sender: AddressLike, - ]; - export type OutputTuple = [role: string, account: string, sender: string]; - export interface OutputObject { - role: string; - account: string; - sender: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace TransferEvent { - export type InputTuple = [ - from: AddressLike, - to: AddressLike, - value: BigNumberish, - ]; - export type OutputTuple = [from: string, to: string, value: bigint]; - export interface OutputObject { - from: string; - to: string; - value: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface WrappedERC20 extends BaseContract { - connect(runner?: ContractRunner | null): WrappedERC20; - waitForDeployment(): Promise; - - interface: WrappedERC20Interface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - BRIDGE_ROLE: TypedContractMethod<[], [string], "view">; - - DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">; - - allowance: TypedContractMethod< - [owner: AddressLike, spender: AddressLike], - [bigint], - "view" - >; - - approve: TypedContractMethod< - [spender: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - - balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">; - - burnFrom: TypedContractMethod< - [account: AddressLike, amount: BigNumberish], - [void], - "nonpayable" - >; - - decimals: TypedContractMethod<[], [bigint], "view">; - - getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">; - - grantRole: TypedContractMethod< - [role: BytesLike, account: AddressLike], - [void], - "nonpayable" - >; - - hasRole: TypedContractMethod< - [role: BytesLike, account: AddressLike], - [boolean], - "view" - >; - - mint: TypedContractMethod< - [to: AddressLike, amount: BigNumberish], - [void], - "nonpayable" - >; - - name: TypedContractMethod<[], [string], "view">; - - renounceRole: TypedContractMethod< - [role: BytesLike, callerConfirmation: AddressLike], - [void], - "nonpayable" - >; - - revokeRole: TypedContractMethod< - [role: BytesLike, account: AddressLike], - [void], - "nonpayable" - >; - - supportsInterface: TypedContractMethod< - [interfaceId: BytesLike], - [boolean], - "view" - >; - - symbol: TypedContractMethod<[], [string], "view">; - - totalSupply: TypedContractMethod<[], [bigint], "view">; - - transfer: TypedContractMethod< - [to: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - - transferFrom: TypedContractMethod< - [from: AddressLike, to: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - - updateDecimals: TypedContractMethod< - [newDecimals: BigNumberish], - [void], - "nonpayable" - >; - - getFunction( - key: string | FunctionFragment, - ): T; - - getFunction( - nameOrSignature: "BRIDGE_ROLE", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "DEFAULT_ADMIN_ROLE", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "allowance", - ): TypedContractMethod< - [owner: AddressLike, spender: AddressLike], - [bigint], - "view" - >; - getFunction( - nameOrSignature: "approve", - ): TypedContractMethod< - [spender: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - getFunction( - nameOrSignature: "balanceOf", - ): TypedContractMethod<[account: AddressLike], [bigint], "view">; - getFunction( - nameOrSignature: "burnFrom", - ): TypedContractMethod< - [account: AddressLike, amount: BigNumberish], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "decimals", - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "getRoleAdmin", - ): TypedContractMethod<[role: BytesLike], [string], "view">; - getFunction( - nameOrSignature: "grantRole", - ): TypedContractMethod< - [role: BytesLike, account: AddressLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "hasRole", - ): TypedContractMethod< - [role: BytesLike, account: AddressLike], - [boolean], - "view" - >; - getFunction( - nameOrSignature: "mint", - ): TypedContractMethod< - [to: AddressLike, amount: BigNumberish], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "name", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "renounceRole", - ): TypedContractMethod< - [role: BytesLike, callerConfirmation: AddressLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "revokeRole", - ): TypedContractMethod< - [role: BytesLike, account: AddressLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "supportsInterface", - ): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">; - getFunction( - nameOrSignature: "symbol", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "totalSupply", - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "transfer", - ): TypedContractMethod< - [to: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - getFunction( - nameOrSignature: "transferFrom", - ): TypedContractMethod< - [from: AddressLike, to: AddressLike, value: BigNumberish], - [boolean], - "nonpayable" - >; - getFunction( - nameOrSignature: "updateDecimals", - ): TypedContractMethod<[newDecimals: BigNumberish], [void], "nonpayable">; - - getEvent( - key: "Approval", - ): TypedContractEvent< - ApprovalEvent.InputTuple, - ApprovalEvent.OutputTuple, - ApprovalEvent.OutputObject - >; - getEvent( - key: "RoleAdminChanged", - ): TypedContractEvent< - RoleAdminChangedEvent.InputTuple, - RoleAdminChangedEvent.OutputTuple, - RoleAdminChangedEvent.OutputObject - >; - getEvent( - key: "RoleGranted", - ): TypedContractEvent< - RoleGrantedEvent.InputTuple, - RoleGrantedEvent.OutputTuple, - RoleGrantedEvent.OutputObject - >; - getEvent( - key: "RoleRevoked", - ): TypedContractEvent< - RoleRevokedEvent.InputTuple, - RoleRevokedEvent.OutputTuple, - RoleRevokedEvent.OutputObject - >; - getEvent( - key: "Transfer", - ): TypedContractEvent< - TransferEvent.InputTuple, - TransferEvent.OutputTuple, - TransferEvent.OutputObject - >; - - filters: { - "Approval(address,address,uint256)": TypedContractEvent< - ApprovalEvent.InputTuple, - ApprovalEvent.OutputTuple, - ApprovalEvent.OutputObject - >; - Approval: TypedContractEvent< - ApprovalEvent.InputTuple, - ApprovalEvent.OutputTuple, - ApprovalEvent.OutputObject - >; - - "RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent< - RoleAdminChangedEvent.InputTuple, - RoleAdminChangedEvent.OutputTuple, - RoleAdminChangedEvent.OutputObject - >; - RoleAdminChanged: TypedContractEvent< - RoleAdminChangedEvent.InputTuple, - RoleAdminChangedEvent.OutputTuple, - RoleAdminChangedEvent.OutputObject - >; - - "RoleGranted(bytes32,address,address)": TypedContractEvent< - RoleGrantedEvent.InputTuple, - RoleGrantedEvent.OutputTuple, - RoleGrantedEvent.OutputObject - >; - RoleGranted: TypedContractEvent< - RoleGrantedEvent.InputTuple, - RoleGrantedEvent.OutputTuple, - RoleGrantedEvent.OutputObject - >; - - "RoleRevoked(bytes32,address,address)": TypedContractEvent< - RoleRevokedEvent.InputTuple, - RoleRevokedEvent.OutputTuple, - RoleRevokedEvent.OutputObject - >; - RoleRevoked: TypedContractEvent< - RoleRevokedEvent.InputTuple, - RoleRevokedEvent.OutputTuple, - RoleRevokedEvent.OutputObject - >; - - "Transfer(address,address,uint256)": TypedContractEvent< - TransferEvent.InputTuple, - TransferEvent.OutputTuple, - TransferEvent.OutputObject - >; - Transfer: TypedContractEvent< - TransferEvent.InputTuple, - TransferEvent.OutputTuple, - TransferEvent.OutputObject - >; - }; -} diff --git a/src/contracts/evm/typechain-types/contracts/BridgeComponents/index.ts b/src/contracts/evm/typechain-types/contracts/BridgeComponents/index.ts deleted file mode 100644 index cad1ac3..0000000 --- a/src/contracts/evm/typechain-types/contracts/BridgeComponents/index.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { BridgeSecurity } from "./BridgeSecurity"; -export type { BridgeStorage } from "./BridgeStorage"; -export type { BridgeUtils } from "./BridgeUtils"; -export type { IBridgeContract } from "./IBridgeContract"; -export type { IERC20MinterBurner } from "./IERC20MinterBurner"; -export type { IMappingAdmin } from "./IMappingAdmin"; -export type { WrappedERC20 } from "./WrappedERC20"; diff --git a/src/contracts/evm/typechain-types/contracts/FTBridge.ts b/src/contracts/evm/typechain-types/contracts/FTBridge.ts deleted file mode 100644 index 44cfc52..0000000 --- a/src/contracts/evm/typechain-types/contracts/FTBridge.ts +++ /dev/null @@ -1,973 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "../common"; - -export declare namespace BridgeStorage { - export type InstallmentInStruct = { - amount: BigNumberish; - chainId: BigNumberish; - tokenSymbol: string; - destinationAddress: AddressLike; - }; - - export type InstallmentInStructOutput = [ - amount: bigint, - chainId: bigint, - tokenSymbol: string, - destinationAddress: string, - ] & { - amount: bigint; - chainId: bigint; - tokenSymbol: string; - destinationAddress: string; - }; - - export type InstallmentOutStruct = { - amount: BigNumberish; - chainId: BigNumberish; - tokenSymbol: string; - destinationAddress: string; - }; - - export type InstallmentOutStructOutput = [ - amount: bigint, - chainId: bigint, - tokenSymbol: string, - destinationAddress: string, - ] & { - amount: bigint; - chainId: bigint; - tokenSymbol: string; - destinationAddress: string; - }; -} - -export interface FTBridgeInterface extends Interface { - getFunction( - nameOrSignature: - | "BRIDGE_VALIDATOR_ROLE" - | "DEFAULT_ADMIN_ROLE" - | "MAPPING_ADMIN_ROLE" - | "PAUSER_ROLE" - | "TVL" - | "WITHDRAWER_ROLE" - | "actionId" - | "addChain" - | "addValidator" - | "areStringsEqual" - | "fees" - | "getRoleAdmin" - | "grantRole" - | "hasRole" - | "incomming" - | "mapNativeContract" - | "mapWrappedContract" - | "nativeChainId" - | "nativeCoin" - | "nativeTokens" - | "outgoing" - | "pause" - | "paused" - | "receiveInstallment" - | "removeValidator" - | "renounceRole" - | "revokeRole" - | "sendInstallment" - | "supportedChains" - | "supportsInterface" - | "unpause" - | "updateChain" - | "withdrawFees" - | "wrappedTokens", - ): FunctionFragment; - - getEvent( - nameOrSignatureOrTopic: - | "Paused" - | "ReceivedInstallment" - | "RoleAdminChanged" - | "RoleGranted" - | "RoleRevoked" - | "SendInstallment" - | "Unpaused", - ): EventFragment; - - encodeFunctionData( - functionFragment: "BRIDGE_VALIDATOR_ROLE", - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: "DEFAULT_ADMIN_ROLE", - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: "MAPPING_ADMIN_ROLE", - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: "PAUSER_ROLE", - values?: undefined, - ): string; - encodeFunctionData(functionFragment: "TVL", values?: undefined): string; - encodeFunctionData( - functionFragment: "WITHDRAWER_ROLE", - values?: undefined, - ): string; - encodeFunctionData(functionFragment: "actionId", values?: undefined): string; - encodeFunctionData( - functionFragment: "addChain", - values: [BigNumberish, string], - ): string; - encodeFunctionData( - functionFragment: "addValidator", - values: [AddressLike], - ): string; - encodeFunctionData( - functionFragment: "areStringsEqual", - values: [string, string], - ): string; - encodeFunctionData(functionFragment: "fees", values?: undefined): string; - encodeFunctionData( - functionFragment: "getRoleAdmin", - values: [BytesLike], - ): string; - encodeFunctionData( - functionFragment: "grantRole", - values: [BytesLike, AddressLike], - ): string; - encodeFunctionData( - functionFragment: "hasRole", - values: [BytesLike, AddressLike], - ): string; - encodeFunctionData( - functionFragment: "incomming", - values: [BytesLike], - ): string; - encodeFunctionData( - functionFragment: "mapNativeContract", - values: [string, AddressLike, BigNumberish], - ): string; - encodeFunctionData( - functionFragment: "mapWrappedContract", - values: [string, AddressLike, BigNumberish], - ): string; - encodeFunctionData( - functionFragment: "nativeChainId", - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: "nativeCoin", - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: "nativeTokens", - values: [string], - ): string; - encodeFunctionData(functionFragment: "outgoing", values: [BytesLike]): string; - encodeFunctionData(functionFragment: "pause", values?: undefined): string; - encodeFunctionData(functionFragment: "paused", values?: undefined): string; - encodeFunctionData( - functionFragment: "receiveInstallment", - values: [BytesLike, BridgeStorage.InstallmentInStruct], - ): string; - encodeFunctionData( - functionFragment: "removeValidator", - values: [AddressLike], - ): string; - encodeFunctionData( - functionFragment: "renounceRole", - values: [BytesLike, AddressLike], - ): string; - encodeFunctionData( - functionFragment: "revokeRole", - values: [BytesLike, AddressLike], - ): string; - encodeFunctionData( - functionFragment: "sendInstallment", - values: [BridgeStorage.InstallmentOutStruct], - ): string; - encodeFunctionData( - functionFragment: "supportedChains", - values: [BigNumberish], - ): string; - encodeFunctionData( - functionFragment: "supportsInterface", - values: [BytesLike], - ): string; - encodeFunctionData(functionFragment: "unpause", values?: undefined): string; - encodeFunctionData( - functionFragment: "updateChain", - values: [BigNumberish, string], - ): string; - encodeFunctionData( - functionFragment: "withdrawFees", - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: "wrappedTokens", - values: [string], - ): string; - - decodeFunctionResult( - functionFragment: "BRIDGE_VALIDATOR_ROLE", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "DEFAULT_ADMIN_ROLE", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "MAPPING_ADMIN_ROLE", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "PAUSER_ROLE", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "TVL", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "WITHDRAWER_ROLE", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "actionId", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "addChain", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "addValidator", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "areStringsEqual", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "fees", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getRoleAdmin", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "incomming", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "mapNativeContract", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "mapWrappedContract", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "nativeChainId", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "nativeCoin", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "nativeTokens", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "outgoing", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "receiveInstallment", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "removeValidator", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "renounceRole", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "sendInstallment", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "supportedChains", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "supportsInterface", - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "updateChain", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "withdrawFees", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "wrappedTokens", - data: BytesLike, - ): Result; -} - -export namespace PausedEvent { - export type InputTuple = [account: AddressLike]; - export type OutputTuple = [account: string]; - export interface OutputObject { - account: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace ReceivedInstallmentEvent { - export type InputTuple = [ - amount: BigNumberish, - txId: BytesLike, - fromChain: BigNumberish, - toChain: BigNumberish, - tokenSymbol: string, - toAddress: AddressLike, - ]; - export type OutputTuple = [ - amount: bigint, - txId: string, - fromChain: bigint, - toChain: bigint, - tokenSymbol: string, - toAddress: string, - ]; - export interface OutputObject { - amount: bigint; - txId: string; - fromChain: bigint; - toChain: bigint; - tokenSymbol: string; - toAddress: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace RoleAdminChangedEvent { - export type InputTuple = [ - role: BytesLike, - previousAdminRole: BytesLike, - newAdminRole: BytesLike, - ]; - export type OutputTuple = [ - role: string, - previousAdminRole: string, - newAdminRole: string, - ]; - export interface OutputObject { - role: string; - previousAdminRole: string; - newAdminRole: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace RoleGrantedEvent { - export type InputTuple = [ - role: BytesLike, - account: AddressLike, - sender: AddressLike, - ]; - export type OutputTuple = [role: string, account: string, sender: string]; - export interface OutputObject { - role: string; - account: string; - sender: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace RoleRevokedEvent { - export type InputTuple = [ - role: BytesLike, - account: AddressLike, - sender: AddressLike, - ]; - export type OutputTuple = [role: string, account: string, sender: string]; - export interface OutputObject { - role: string; - account: string; - sender: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace SendInstallmentEvent { - export type InputTuple = [ - amount: BigNumberish, - txId: BytesLike, - fromChain: BigNumberish, - toChain: BigNumberish, - tokenSymbol: string, - toAddress: string, - ]; - export type OutputTuple = [ - amount: bigint, - txId: string, - fromChain: bigint, - toChain: bigint, - tokenSymbol: string, - toAddress: string, - ]; - export interface OutputObject { - amount: bigint; - txId: string; - fromChain: bigint; - toChain: bigint; - tokenSymbol: string; - toAddress: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace UnpausedEvent { - export type InputTuple = [account: AddressLike]; - export type OutputTuple = [account: string]; - export interface OutputObject { - account: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface FTBridge extends BaseContract { - connect(runner?: ContractRunner | null): FTBridge; - waitForDeployment(): Promise; - - interface: FTBridgeInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener, - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - once( - event: TCEvent, - listener: TypedListener, - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener, - ): Promise; - - listeners( - event: TCEvent, - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent, - ): Promise; - - BRIDGE_VALIDATOR_ROLE: TypedContractMethod<[], [string], "view">; - - DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">; - - MAPPING_ADMIN_ROLE: TypedContractMethod<[], [string], "view">; - - PAUSER_ROLE: TypedContractMethod<[], [string], "view">; - - TVL: TypedContractMethod<[], [bigint], "view">; - - WITHDRAWER_ROLE: TypedContractMethod<[], [string], "view">; - - actionId: TypedContractMethod<[], [bigint], "view">; - - addChain: TypedContractMethod< - [_chainId: BigNumberish, _chainName: string], - [void], - "nonpayable" - >; - - addValidator: TypedContractMethod< - [_validator: AddressLike], - [void], - "nonpayable" - >; - - areStringsEqual: TypedContractMethod< - [first: string, second: string], - [boolean], - "view" - >; - - fees: TypedContractMethod<[], [bigint], "view">; - - getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">; - - grantRole: TypedContractMethod< - [role: BytesLike, account: AddressLike], - [void], - "nonpayable" - >; - - hasRole: TypedContractMethod< - [role: BytesLike, account: AddressLike], - [boolean], - "view" - >; - - incomming: TypedContractMethod< - [arg0: BytesLike], - [ - [bigint, bigint, string, string] & { - amount: bigint; - chainId: bigint; - tokenSymbol: string; - destinationAddress: string; - }, - ], - "view" - >; - - mapNativeContract: TypedContractMethod< - [_symbol: string, _contract: AddressLike, _decimals: BigNumberish], - [void], - "nonpayable" - >; - - mapWrappedContract: TypedContractMethod< - [_symbol: string, _contract: AddressLike, _decimals: BigNumberish], - [void], - "nonpayable" - >; - - nativeChainId: TypedContractMethod<[], [bigint], "view">; - - nativeCoin: TypedContractMethod<[], [string], "view">; - - nativeTokens: TypedContractMethod< - [arg0: string], - [[string, bigint] & { constractAddress: string; decimals: bigint }], - "view" - >; - - outgoing: TypedContractMethod< - [arg0: BytesLike], - [ - [bigint, bigint, string, string] & { - amount: bigint; - chainId: bigint; - tokenSymbol: string; - destinationAddress: string; - }, - ], - "view" - >; - - pause: TypedContractMethod<[], [void], "nonpayable">; - - paused: TypedContractMethod<[], [boolean], "view">; - - receiveInstallment: TypedContractMethod< - [txId: BytesLike, params: BridgeStorage.InstallmentInStruct], - [void], - "payable" - >; - - removeValidator: TypedContractMethod< - [_validator: AddressLike], - [void], - "nonpayable" - >; - - renounceRole: TypedContractMethod< - [role: BytesLike, callerConfirmation: AddressLike], - [void], - "nonpayable" - >; - - revokeRole: TypedContractMethod< - [role: BytesLike, account: AddressLike], - [void], - "nonpayable" - >; - - sendInstallment: TypedContractMethod< - [params: BridgeStorage.InstallmentOutStruct], - [void], - "payable" - >; - - supportedChains: TypedContractMethod<[arg0: BigNumberish], [string], "view">; - - supportsInterface: TypedContractMethod< - [interfaceId: BytesLike], - [boolean], - "view" - >; - - unpause: TypedContractMethod<[], [void], "nonpayable">; - - updateChain: TypedContractMethod< - [_chainId: BigNumberish, _chainName: string], - [void], - "nonpayable" - >; - - withdrawFees: TypedContractMethod<[], [void], "nonpayable">; - - wrappedTokens: TypedContractMethod< - [arg0: string], - [[string, bigint] & { constractAddress: string; decimals: bigint }], - "view" - >; - - getFunction( - key: string | FunctionFragment, - ): T; - - getFunction( - nameOrSignature: "BRIDGE_VALIDATOR_ROLE", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "DEFAULT_ADMIN_ROLE", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "MAPPING_ADMIN_ROLE", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "PAUSER_ROLE", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "TVL", - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "WITHDRAWER_ROLE", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "actionId", - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "addChain", - ): TypedContractMethod< - [_chainId: BigNumberish, _chainName: string], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "addValidator", - ): TypedContractMethod<[_validator: AddressLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "areStringsEqual", - ): TypedContractMethod<[first: string, second: string], [boolean], "view">; - getFunction( - nameOrSignature: "fees", - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "getRoleAdmin", - ): TypedContractMethod<[role: BytesLike], [string], "view">; - getFunction( - nameOrSignature: "grantRole", - ): TypedContractMethod< - [role: BytesLike, account: AddressLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "hasRole", - ): TypedContractMethod< - [role: BytesLike, account: AddressLike], - [boolean], - "view" - >; - getFunction(nameOrSignature: "incomming"): TypedContractMethod< - [arg0: BytesLike], - [ - [bigint, bigint, string, string] & { - amount: bigint; - chainId: bigint; - tokenSymbol: string; - destinationAddress: string; - }, - ], - "view" - >; - getFunction( - nameOrSignature: "mapNativeContract", - ): TypedContractMethod< - [_symbol: string, _contract: AddressLike, _decimals: BigNumberish], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "mapWrappedContract", - ): TypedContractMethod< - [_symbol: string, _contract: AddressLike, _decimals: BigNumberish], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "nativeChainId", - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "nativeCoin", - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "nativeTokens", - ): TypedContractMethod< - [arg0: string], - [[string, bigint] & { constractAddress: string; decimals: bigint }], - "view" - >; - getFunction(nameOrSignature: "outgoing"): TypedContractMethod< - [arg0: BytesLike], - [ - [bigint, bigint, string, string] & { - amount: bigint; - chainId: bigint; - tokenSymbol: string; - destinationAddress: string; - }, - ], - "view" - >; - getFunction( - nameOrSignature: "pause", - ): TypedContractMethod<[], [void], "nonpayable">; - getFunction( - nameOrSignature: "paused", - ): TypedContractMethod<[], [boolean], "view">; - getFunction( - nameOrSignature: "receiveInstallment", - ): TypedContractMethod< - [txId: BytesLike, params: BridgeStorage.InstallmentInStruct], - [void], - "payable" - >; - getFunction( - nameOrSignature: "removeValidator", - ): TypedContractMethod<[_validator: AddressLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "renounceRole", - ): TypedContractMethod< - [role: BytesLike, callerConfirmation: AddressLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "revokeRole", - ): TypedContractMethod< - [role: BytesLike, account: AddressLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "sendInstallment", - ): TypedContractMethod< - [params: BridgeStorage.InstallmentOutStruct], - [void], - "payable" - >; - getFunction( - nameOrSignature: "supportedChains", - ): TypedContractMethod<[arg0: BigNumberish], [string], "view">; - getFunction( - nameOrSignature: "supportsInterface", - ): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">; - getFunction( - nameOrSignature: "unpause", - ): TypedContractMethod<[], [void], "nonpayable">; - getFunction( - nameOrSignature: "updateChain", - ): TypedContractMethod< - [_chainId: BigNumberish, _chainName: string], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "withdrawFees", - ): TypedContractMethod<[], [void], "nonpayable">; - getFunction( - nameOrSignature: "wrappedTokens", - ): TypedContractMethod< - [arg0: string], - [[string, bigint] & { constractAddress: string; decimals: bigint }], - "view" - >; - - getEvent( - key: "Paused", - ): TypedContractEvent< - PausedEvent.InputTuple, - PausedEvent.OutputTuple, - PausedEvent.OutputObject - >; - getEvent( - key: "ReceivedInstallment", - ): TypedContractEvent< - ReceivedInstallmentEvent.InputTuple, - ReceivedInstallmentEvent.OutputTuple, - ReceivedInstallmentEvent.OutputObject - >; - getEvent( - key: "RoleAdminChanged", - ): TypedContractEvent< - RoleAdminChangedEvent.InputTuple, - RoleAdminChangedEvent.OutputTuple, - RoleAdminChangedEvent.OutputObject - >; - getEvent( - key: "RoleGranted", - ): TypedContractEvent< - RoleGrantedEvent.InputTuple, - RoleGrantedEvent.OutputTuple, - RoleGrantedEvent.OutputObject - >; - getEvent( - key: "RoleRevoked", - ): TypedContractEvent< - RoleRevokedEvent.InputTuple, - RoleRevokedEvent.OutputTuple, - RoleRevokedEvent.OutputObject - >; - getEvent( - key: "SendInstallment", - ): TypedContractEvent< - SendInstallmentEvent.InputTuple, - SendInstallmentEvent.OutputTuple, - SendInstallmentEvent.OutputObject - >; - getEvent( - key: "Unpaused", - ): TypedContractEvent< - UnpausedEvent.InputTuple, - UnpausedEvent.OutputTuple, - UnpausedEvent.OutputObject - >; - - filters: { - "Paused(address)": TypedContractEvent< - PausedEvent.InputTuple, - PausedEvent.OutputTuple, - PausedEvent.OutputObject - >; - Paused: TypedContractEvent< - PausedEvent.InputTuple, - PausedEvent.OutputTuple, - PausedEvent.OutputObject - >; - - "ReceivedInstallment(uint256,bytes32,uint16,uint16,string,address)": TypedContractEvent< - ReceivedInstallmentEvent.InputTuple, - ReceivedInstallmentEvent.OutputTuple, - ReceivedInstallmentEvent.OutputObject - >; - ReceivedInstallment: TypedContractEvent< - ReceivedInstallmentEvent.InputTuple, - ReceivedInstallmentEvent.OutputTuple, - ReceivedInstallmentEvent.OutputObject - >; - - "RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent< - RoleAdminChangedEvent.InputTuple, - RoleAdminChangedEvent.OutputTuple, - RoleAdminChangedEvent.OutputObject - >; - RoleAdminChanged: TypedContractEvent< - RoleAdminChangedEvent.InputTuple, - RoleAdminChangedEvent.OutputTuple, - RoleAdminChangedEvent.OutputObject - >; - - "RoleGranted(bytes32,address,address)": TypedContractEvent< - RoleGrantedEvent.InputTuple, - RoleGrantedEvent.OutputTuple, - RoleGrantedEvent.OutputObject - >; - RoleGranted: TypedContractEvent< - RoleGrantedEvent.InputTuple, - RoleGrantedEvent.OutputTuple, - RoleGrantedEvent.OutputObject - >; - - "RoleRevoked(bytes32,address,address)": TypedContractEvent< - RoleRevokedEvent.InputTuple, - RoleRevokedEvent.OutputTuple, - RoleRevokedEvent.OutputObject - >; - RoleRevoked: TypedContractEvent< - RoleRevokedEvent.InputTuple, - RoleRevokedEvent.OutputTuple, - RoleRevokedEvent.OutputObject - >; - - "SendInstallment(uint256,bytes32,uint16,uint16,string,string)": TypedContractEvent< - SendInstallmentEvent.InputTuple, - SendInstallmentEvent.OutputTuple, - SendInstallmentEvent.OutputObject - >; - SendInstallment: TypedContractEvent< - SendInstallmentEvent.InputTuple, - SendInstallmentEvent.OutputTuple, - SendInstallmentEvent.OutputObject - >; - - "Unpaused(address)": TypedContractEvent< - UnpausedEvent.InputTuple, - UnpausedEvent.OutputTuple, - UnpausedEvent.OutputObject - >; - Unpaused: TypedContractEvent< - UnpausedEvent.InputTuple, - UnpausedEvent.OutputTuple, - UnpausedEvent.OutputObject - >; - }; -} diff --git a/src/contracts/evm/typechain-types/contracts/PriceOracle/ChainLinkPriceFeeds.ts b/src/contracts/evm/typechain-types/contracts/PriceOracle/ChainLinkPriceFeeds.ts deleted file mode 100644 index c7dc8ab..0000000 --- a/src/contracts/evm/typechain-types/contracts/PriceOracle/ChainLinkPriceFeeds.ts +++ /dev/null @@ -1,331 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "../../common"; - -export interface ChainLinkPriceFeedsInterface extends Interface { - getFunction( - nameOrSignature: - | "addDataFeed" - | "deleteDataFeed" - | "getAssetPrice" - | "getAssetPriceDecimals" - | "getDataFeedAddress" - | "updateAdmin" - | "updateDataFeed" - ): FunctionFragment; - - getEvent( - nameOrSignatureOrTopic: - | "AdminChanged" - | "AssetDataFeedCreated" - | "AssetDataFeedDeleted" - | "AssetDataFeedUpdated" - ): EventFragment; - - encodeFunctionData( - functionFragment: "addDataFeed", - values: [string, AddressLike] - ): string; - encodeFunctionData( - functionFragment: "deleteDataFeed", - values: [string] - ): string; - encodeFunctionData( - functionFragment: "getAssetPrice", - values: [string] - ): string; - encodeFunctionData( - functionFragment: "getAssetPriceDecimals", - values: [string] - ): string; - encodeFunctionData( - functionFragment: "getDataFeedAddress", - values: [string] - ): string; - encodeFunctionData( - functionFragment: "updateAdmin", - values: [AddressLike] - ): string; - encodeFunctionData( - functionFragment: "updateDataFeed", - values: [string, AddressLike] - ): string; - - decodeFunctionResult( - functionFragment: "addDataFeed", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "deleteDataFeed", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getAssetPrice", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getAssetPriceDecimals", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getDataFeedAddress", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateAdmin", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateDataFeed", - data: BytesLike - ): Result; -} - -export namespace AdminChangedEvent { - export type InputTuple = [newAdmin: AddressLike]; - export type OutputTuple = [newAdmin: string]; - export interface OutputObject { - newAdmin: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace AssetDataFeedCreatedEvent { - export type InputTuple = [asset: string, dataFeed: AddressLike]; - export type OutputTuple = [asset: string, dataFeed: string]; - export interface OutputObject { - asset: string; - dataFeed: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace AssetDataFeedDeletedEvent { - export type InputTuple = [asset: string]; - export type OutputTuple = [asset: string]; - export interface OutputObject { - asset: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace AssetDataFeedUpdatedEvent { - export type InputTuple = [asset: string, dataFeed: AddressLike]; - export type OutputTuple = [asset: string, dataFeed: string]; - export interface OutputObject { - asset: string; - dataFeed: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface ChainLinkPriceFeeds extends BaseContract { - connect(runner?: ContractRunner | null): ChainLinkPriceFeeds; - waitForDeployment(): Promise; - - interface: ChainLinkPriceFeedsInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - addDataFeed: TypedContractMethod< - [asset: string, dataFeed: AddressLike], - [void], - "nonpayable" - >; - - deleteDataFeed: TypedContractMethod<[asset: string], [void], "nonpayable">; - - getAssetPrice: TypedContractMethod<[asset: string], [bigint], "view">; - - getAssetPriceDecimals: TypedContractMethod<[asset: string], [bigint], "view">; - - getDataFeedAddress: TypedContractMethod<[asset: string], [string], "view">; - - updateAdmin: TypedContractMethod< - [newAdmin: AddressLike], - [void], - "nonpayable" - >; - - updateDataFeed: TypedContractMethod< - [asset: string, dataFeed: AddressLike], - [void], - "nonpayable" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "addDataFeed" - ): TypedContractMethod< - [asset: string, dataFeed: AddressLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "deleteDataFeed" - ): TypedContractMethod<[asset: string], [void], "nonpayable">; - getFunction( - nameOrSignature: "getAssetPrice" - ): TypedContractMethod<[asset: string], [bigint], "view">; - getFunction( - nameOrSignature: "getAssetPriceDecimals" - ): TypedContractMethod<[asset: string], [bigint], "view">; - getFunction( - nameOrSignature: "getDataFeedAddress" - ): TypedContractMethod<[asset: string], [string], "view">; - getFunction( - nameOrSignature: "updateAdmin" - ): TypedContractMethod<[newAdmin: AddressLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "updateDataFeed" - ): TypedContractMethod< - [asset: string, dataFeed: AddressLike], - [void], - "nonpayable" - >; - - getEvent( - key: "AdminChanged" - ): TypedContractEvent< - AdminChangedEvent.InputTuple, - AdminChangedEvent.OutputTuple, - AdminChangedEvent.OutputObject - >; - getEvent( - key: "AssetDataFeedCreated" - ): TypedContractEvent< - AssetDataFeedCreatedEvent.InputTuple, - AssetDataFeedCreatedEvent.OutputTuple, - AssetDataFeedCreatedEvent.OutputObject - >; - getEvent( - key: "AssetDataFeedDeleted" - ): TypedContractEvent< - AssetDataFeedDeletedEvent.InputTuple, - AssetDataFeedDeletedEvent.OutputTuple, - AssetDataFeedDeletedEvent.OutputObject - >; - getEvent( - key: "AssetDataFeedUpdated" - ): TypedContractEvent< - AssetDataFeedUpdatedEvent.InputTuple, - AssetDataFeedUpdatedEvent.OutputTuple, - AssetDataFeedUpdatedEvent.OutputObject - >; - - filters: { - "AdminChanged(address)": TypedContractEvent< - AdminChangedEvent.InputTuple, - AdminChangedEvent.OutputTuple, - AdminChangedEvent.OutputObject - >; - AdminChanged: TypedContractEvent< - AdminChangedEvent.InputTuple, - AdminChangedEvent.OutputTuple, - AdminChangedEvent.OutputObject - >; - - "AssetDataFeedCreated(string,address)": TypedContractEvent< - AssetDataFeedCreatedEvent.InputTuple, - AssetDataFeedCreatedEvent.OutputTuple, - AssetDataFeedCreatedEvent.OutputObject - >; - AssetDataFeedCreated: TypedContractEvent< - AssetDataFeedCreatedEvent.InputTuple, - AssetDataFeedCreatedEvent.OutputTuple, - AssetDataFeedCreatedEvent.OutputObject - >; - - "AssetDataFeedDeleted(string)": TypedContractEvent< - AssetDataFeedDeletedEvent.InputTuple, - AssetDataFeedDeletedEvent.OutputTuple, - AssetDataFeedDeletedEvent.OutputObject - >; - AssetDataFeedDeleted: TypedContractEvent< - AssetDataFeedDeletedEvent.InputTuple, - AssetDataFeedDeletedEvent.OutputTuple, - AssetDataFeedDeletedEvent.OutputObject - >; - - "AssetDataFeedUpdated(string,address)": TypedContractEvent< - AssetDataFeedUpdatedEvent.InputTuple, - AssetDataFeedUpdatedEvent.OutputTuple, - AssetDataFeedUpdatedEvent.OutputObject - >; - AssetDataFeedUpdated: TypedContractEvent< - AssetDataFeedUpdatedEvent.InputTuple, - AssetDataFeedUpdatedEvent.OutputTuple, - AssetDataFeedUpdatedEvent.OutputObject - >; - }; -} diff --git a/src/contracts/evm/typechain-types/contracts/PriceOracle/EmmetFeeOracle.ts b/src/contracts/evm/typechain-types/contracts/PriceOracle/EmmetFeeOracle.ts deleted file mode 100644 index 9f99b1e..0000000 --- a/src/contracts/evm/typechain-types/contracts/PriceOracle/EmmetFeeOracle.ts +++ /dev/null @@ -1,502 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "../../common"; - -export declare namespace IEmmetFeeOracle { - export type ChainStruct = { - chainId: BigNumberish; - domain: BigNumberish; - txFee: BigNumberish; - nativeCoin: BytesLike; - }; - - export type ChainStructOutput = [ - chainId: bigint, - domain: bigint, - txFee: bigint, - nativeCoin: string - ] & { chainId: bigint; domain: bigint; txFee: bigint; nativeCoin: string }; - - export type CoinFeeStruct = { - minimum: BigNumberish; - percentage: BigNumberish; - }; - - export type CoinFeeStructOutput = [minimum: bigint, percentage: bigint] & { - minimum: bigint; - percentage: bigint; - }; -} - -export interface EmmetFeeOracleInterface extends Interface { - getFunction( - nameOrSignature: - | "calculateCoinFees" - | "calculateTransactionFee" - | "getChainByname" - | "getChainFee" - | "getChainNameByDomain" - | "getChainNameById" - | "getCoinFee" - | "getCoinPrice" - | "priceOracle" - | "protocolFeeDivisor" - | "selfChainId" - | "selfCoin" - | "supportsInterface" - | "updateAdmin" - | "updateChain" - | "updateCoinFee" - | "updateProtocolFeeDivisor" - | "updateTxMinimalFee" - ): FunctionFragment; - - getEvent( - nameOrSignatureOrTopic: "AdminChanged" | "MinimalFeeChanged" - ): EventFragment; - - encodeFunctionData( - functionFragment: "calculateCoinFees", - values: [string, BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "calculateTransactionFee", - values: [string] - ): string; - encodeFunctionData( - functionFragment: "getChainByname", - values: [string] - ): string; - encodeFunctionData( - functionFragment: "getChainFee", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "getChainNameByDomain", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "getChainNameById", - values: [BigNumberish] - ): string; - encodeFunctionData(functionFragment: "getCoinFee", values: [string]): string; - encodeFunctionData( - functionFragment: "getCoinPrice", - values: [string] - ): string; - encodeFunctionData( - functionFragment: "priceOracle", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "protocolFeeDivisor", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "selfChainId", - values?: undefined - ): string; - encodeFunctionData(functionFragment: "selfCoin", values?: undefined): string; - encodeFunctionData( - functionFragment: "supportsInterface", - values: [BytesLike] - ): string; - encodeFunctionData( - functionFragment: "updateAdmin", - values: [AddressLike] - ): string; - encodeFunctionData( - functionFragment: "updateChain", - values: [string, BigNumberish, BigNumberish, BigNumberish, string] - ): string; - encodeFunctionData( - functionFragment: "updateCoinFee", - values: [string, IEmmetFeeOracle.CoinFeeStruct] - ): string; - encodeFunctionData( - functionFragment: "updateProtocolFeeDivisor", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "updateTxMinimalFee", - values: [BigNumberish] - ): string; - - decodeFunctionResult( - functionFragment: "calculateCoinFees", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "calculateTransactionFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getChainByname", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getChainFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getChainNameByDomain", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getChainNameById", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "getCoinFee", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getCoinPrice", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "priceOracle", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "protocolFeeDivisor", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "selfChainId", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "selfCoin", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "supportsInterface", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateAdmin", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateChain", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateCoinFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateProtocolFeeDivisor", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateTxMinimalFee", - data: BytesLike - ): Result; -} - -export namespace AdminChangedEvent { - export type InputTuple = [newAdmin: AddressLike]; - export type OutputTuple = [newAdmin: string]; - export interface OutputObject { - newAdmin: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace MinimalFeeChangedEvent { - export type InputTuple = [newFee: BigNumberish]; - export type OutputTuple = [newFee: bigint]; - export interface OutputObject { - newFee: bigint; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface EmmetFeeOracle extends BaseContract { - connect(runner?: ContractRunner | null): EmmetFeeOracle; - waitForDeployment(): Promise; - - interface: EmmetFeeOracleInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - calculateCoinFees: TypedContractMethod< - [coinName_: string, amount_: BigNumberish], - [bigint], - "view" - >; - - calculateTransactionFee: TypedContractMethod< - [destChainName_: string], - [bigint], - "view" - >; - - getChainByname: TypedContractMethod< - [chainName_: string], - [IEmmetFeeOracle.ChainStructOutput], - "view" - >; - - getChainFee: TypedContractMethod< - [destDomain_: BigNumberish], - [bigint], - "view" - >; - - getChainNameByDomain: TypedContractMethod< - [destDomain_: BigNumberish], - [string], - "view" - >; - - getChainNameById: TypedContractMethod< - [chainId_: BigNumberish], - [string], - "view" - >; - - getCoinFee: TypedContractMethod< - [coinName_: string], - [IEmmetFeeOracle.CoinFeeStructOutput], - "view" - >; - - getCoinPrice: TypedContractMethod<[coinName: string], [bigint], "view">; - - priceOracle: TypedContractMethod<[], [string], "view">; - - protocolFeeDivisor: TypedContractMethod<[], [bigint], "view">; - - selfChainId: TypedContractMethod<[], [bigint], "view">; - - selfCoin: TypedContractMethod<[], [string], "view">; - - supportsInterface: TypedContractMethod< - [interfaceId: BytesLike], - [boolean], - "view" - >; - - updateAdmin: TypedContractMethod< - [newAdmin: AddressLike], - [void], - "nonpayable" - >; - - updateChain: TypedContractMethod< - [ - chainName: string, - chainId_: BigNumberish, - domain_: BigNumberish, - txFee_: BigNumberish, - nativeCoin_: string - ], - [void], - "nonpayable" - >; - - updateCoinFee: TypedContractMethod< - [coinName_: string, coinFee_: IEmmetFeeOracle.CoinFeeStruct], - [void], - "nonpayable" - >; - - updateProtocolFeeDivisor: TypedContractMethod< - [protocolFeeDivisor_: BigNumberish], - [void], - "nonpayable" - >; - - updateTxMinimalFee: TypedContractMethod< - [txMinimumFee_: BigNumberish], - [void], - "nonpayable" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "calculateCoinFees" - ): TypedContractMethod< - [coinName_: string, amount_: BigNumberish], - [bigint], - "view" - >; - getFunction( - nameOrSignature: "calculateTransactionFee" - ): TypedContractMethod<[destChainName_: string], [bigint], "view">; - getFunction( - nameOrSignature: "getChainByname" - ): TypedContractMethod< - [chainName_: string], - [IEmmetFeeOracle.ChainStructOutput], - "view" - >; - getFunction( - nameOrSignature: "getChainFee" - ): TypedContractMethod<[destDomain_: BigNumberish], [bigint], "view">; - getFunction( - nameOrSignature: "getChainNameByDomain" - ): TypedContractMethod<[destDomain_: BigNumberish], [string], "view">; - getFunction( - nameOrSignature: "getChainNameById" - ): TypedContractMethod<[chainId_: BigNumberish], [string], "view">; - getFunction( - nameOrSignature: "getCoinFee" - ): TypedContractMethod< - [coinName_: string], - [IEmmetFeeOracle.CoinFeeStructOutput], - "view" - >; - getFunction( - nameOrSignature: "getCoinPrice" - ): TypedContractMethod<[coinName: string], [bigint], "view">; - getFunction( - nameOrSignature: "priceOracle" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "protocolFeeDivisor" - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "selfChainId" - ): TypedContractMethod<[], [bigint], "view">; - getFunction( - nameOrSignature: "selfCoin" - ): TypedContractMethod<[], [string], "view">; - getFunction( - nameOrSignature: "supportsInterface" - ): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">; - getFunction( - nameOrSignature: "updateAdmin" - ): TypedContractMethod<[newAdmin: AddressLike], [void], "nonpayable">; - getFunction( - nameOrSignature: "updateChain" - ): TypedContractMethod< - [ - chainName: string, - chainId_: BigNumberish, - domain_: BigNumberish, - txFee_: BigNumberish, - nativeCoin_: string - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "updateCoinFee" - ): TypedContractMethod< - [coinName_: string, coinFee_: IEmmetFeeOracle.CoinFeeStruct], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "updateProtocolFeeDivisor" - ): TypedContractMethod< - [protocolFeeDivisor_: BigNumberish], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "updateTxMinimalFee" - ): TypedContractMethod<[txMinimumFee_: BigNumberish], [void], "nonpayable">; - - getEvent( - key: "AdminChanged" - ): TypedContractEvent< - AdminChangedEvent.InputTuple, - AdminChangedEvent.OutputTuple, - AdminChangedEvent.OutputObject - >; - getEvent( - key: "MinimalFeeChanged" - ): TypedContractEvent< - MinimalFeeChangedEvent.InputTuple, - MinimalFeeChangedEvent.OutputTuple, - MinimalFeeChangedEvent.OutputObject - >; - - filters: { - "AdminChanged(address)": TypedContractEvent< - AdminChangedEvent.InputTuple, - AdminChangedEvent.OutputTuple, - AdminChangedEvent.OutputObject - >; - AdminChanged: TypedContractEvent< - AdminChangedEvent.InputTuple, - AdminChangedEvent.OutputTuple, - AdminChangedEvent.OutputObject - >; - - "MinimalFeeChanged(uint256)": TypedContractEvent< - MinimalFeeChangedEvent.InputTuple, - MinimalFeeChangedEvent.OutputTuple, - MinimalFeeChangedEvent.OutputObject - >; - MinimalFeeChanged: TypedContractEvent< - MinimalFeeChangedEvent.InputTuple, - MinimalFeeChangedEvent.OutputTuple, - MinimalFeeChangedEvent.OutputObject - >; - }; -} diff --git a/src/contracts/evm/typechain-types/contracts/PriceOracle/IChainLinkPriceFeeds.ts b/src/contracts/evm/typechain-types/contracts/PriceOracle/IChainLinkPriceFeeds.ts deleted file mode 100644 index e323131..0000000 --- a/src/contracts/evm/typechain-types/contracts/PriceOracle/IChainLinkPriceFeeds.ts +++ /dev/null @@ -1,121 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BytesLike, - FunctionFragment, - Result, - Interface, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, - TypedContractMethod, -} from "../../common"; - -export interface IChainLinkPriceFeedsInterface extends Interface { - getFunction( - nameOrSignature: - | "getAssetPrice" - | "getAssetPriceDecimals" - | "getDataFeedAddress" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "getAssetPrice", - values: [string] - ): string; - encodeFunctionData( - functionFragment: "getAssetPriceDecimals", - values: [string] - ): string; - encodeFunctionData( - functionFragment: "getDataFeedAddress", - values: [string] - ): string; - - decodeFunctionResult( - functionFragment: "getAssetPrice", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getAssetPriceDecimals", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getDataFeedAddress", - data: BytesLike - ): Result; -} - -export interface IChainLinkPriceFeeds extends BaseContract { - connect(runner?: ContractRunner | null): IChainLinkPriceFeeds; - waitForDeployment(): Promise; - - interface: IChainLinkPriceFeedsInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - getAssetPrice: TypedContractMethod<[asset: string], [bigint], "view">; - - getAssetPriceDecimals: TypedContractMethod<[asset: string], [bigint], "view">; - - getDataFeedAddress: TypedContractMethod<[asset: string], [string], "view">; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "getAssetPrice" - ): TypedContractMethod<[asset: string], [bigint], "view">; - getFunction( - nameOrSignature: "getAssetPriceDecimals" - ): TypedContractMethod<[asset: string], [bigint], "view">; - getFunction( - nameOrSignature: "getDataFeedAddress" - ): TypedContractMethod<[asset: string], [string], "view">; - - filters: {}; -} diff --git a/src/contracts/evm/typechain-types/contracts/PriceOracle/IChainLinkPriceFeedsAdmin.ts b/src/contracts/evm/typechain-types/contracts/PriceOracle/IChainLinkPriceFeedsAdmin.ts deleted file mode 100644 index 8e83871..0000000 --- a/src/contracts/evm/typechain-types/contracts/PriceOracle/IChainLinkPriceFeedsAdmin.ts +++ /dev/null @@ -1,237 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BytesLike, - FunctionFragment, - Result, - Interface, - EventFragment, - AddressLike, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedLogDescription, - TypedListener, - TypedContractMethod, -} from "../../common"; - -export interface IChainLinkPriceFeedsAdminInterface extends Interface { - getFunction( - nameOrSignature: "addDataFeed" | "deleteDataFeed" | "updateDataFeed" - ): FunctionFragment; - - getEvent( - nameOrSignatureOrTopic: - | "AssetDataFeedCreated" - | "AssetDataFeedDeleted" - | "AssetDataFeedUpdated" - ): EventFragment; - - encodeFunctionData( - functionFragment: "addDataFeed", - values: [string, AddressLike] - ): string; - encodeFunctionData( - functionFragment: "deleteDataFeed", - values: [string] - ): string; - encodeFunctionData( - functionFragment: "updateDataFeed", - values: [string, AddressLike] - ): string; - - decodeFunctionResult( - functionFragment: "addDataFeed", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "deleteDataFeed", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateDataFeed", - data: BytesLike - ): Result; -} - -export namespace AssetDataFeedCreatedEvent { - export type InputTuple = [asset: string, dataFeed: AddressLike]; - export type OutputTuple = [asset: string, dataFeed: string]; - export interface OutputObject { - asset: string; - dataFeed: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace AssetDataFeedDeletedEvent { - export type InputTuple = [asset: string]; - export type OutputTuple = [asset: string]; - export interface OutputObject { - asset: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export namespace AssetDataFeedUpdatedEvent { - export type InputTuple = [asset: string, dataFeed: AddressLike]; - export type OutputTuple = [asset: string, dataFeed: string]; - export interface OutputObject { - asset: string; - dataFeed: string; - } - export type Event = TypedContractEvent; - export type Filter = TypedDeferredTopicFilter; - export type Log = TypedEventLog; - export type LogDescription = TypedLogDescription; -} - -export interface IChainLinkPriceFeedsAdmin extends BaseContract { - connect(runner?: ContractRunner | null): IChainLinkPriceFeedsAdmin; - waitForDeployment(): Promise; - - interface: IChainLinkPriceFeedsAdminInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - addDataFeed: TypedContractMethod< - [asset: string, dataFeed: AddressLike], - [void], - "nonpayable" - >; - - deleteDataFeed: TypedContractMethod<[asset: string], [void], "nonpayable">; - - updateDataFeed: TypedContractMethod< - [asset: string, dataFeed: AddressLike], - [void], - "nonpayable" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "addDataFeed" - ): TypedContractMethod< - [asset: string, dataFeed: AddressLike], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "deleteDataFeed" - ): TypedContractMethod<[asset: string], [void], "nonpayable">; - getFunction( - nameOrSignature: "updateDataFeed" - ): TypedContractMethod< - [asset: string, dataFeed: AddressLike], - [void], - "nonpayable" - >; - - getEvent( - key: "AssetDataFeedCreated" - ): TypedContractEvent< - AssetDataFeedCreatedEvent.InputTuple, - AssetDataFeedCreatedEvent.OutputTuple, - AssetDataFeedCreatedEvent.OutputObject - >; - getEvent( - key: "AssetDataFeedDeleted" - ): TypedContractEvent< - AssetDataFeedDeletedEvent.InputTuple, - AssetDataFeedDeletedEvent.OutputTuple, - AssetDataFeedDeletedEvent.OutputObject - >; - getEvent( - key: "AssetDataFeedUpdated" - ): TypedContractEvent< - AssetDataFeedUpdatedEvent.InputTuple, - AssetDataFeedUpdatedEvent.OutputTuple, - AssetDataFeedUpdatedEvent.OutputObject - >; - - filters: { - "AssetDataFeedCreated(string,address)": TypedContractEvent< - AssetDataFeedCreatedEvent.InputTuple, - AssetDataFeedCreatedEvent.OutputTuple, - AssetDataFeedCreatedEvent.OutputObject - >; - AssetDataFeedCreated: TypedContractEvent< - AssetDataFeedCreatedEvent.InputTuple, - AssetDataFeedCreatedEvent.OutputTuple, - AssetDataFeedCreatedEvent.OutputObject - >; - - "AssetDataFeedDeleted(string)": TypedContractEvent< - AssetDataFeedDeletedEvent.InputTuple, - AssetDataFeedDeletedEvent.OutputTuple, - AssetDataFeedDeletedEvent.OutputObject - >; - AssetDataFeedDeleted: TypedContractEvent< - AssetDataFeedDeletedEvent.InputTuple, - AssetDataFeedDeletedEvent.OutputTuple, - AssetDataFeedDeletedEvent.OutputObject - >; - - "AssetDataFeedUpdated(string,address)": TypedContractEvent< - AssetDataFeedUpdatedEvent.InputTuple, - AssetDataFeedUpdatedEvent.OutputTuple, - AssetDataFeedUpdatedEvent.OutputObject - >; - AssetDataFeedUpdated: TypedContractEvent< - AssetDataFeedUpdatedEvent.InputTuple, - AssetDataFeedUpdatedEvent.OutputTuple, - AssetDataFeedUpdatedEvent.OutputObject - >; - }; -} diff --git a/src/contracts/evm/typechain-types/contracts/PriceOracle/IEmmetFeeOracle.ts b/src/contracts/evm/typechain-types/contracts/PriceOracle/IEmmetFeeOracle.ts deleted file mode 100644 index bc83942..0000000 --- a/src/contracts/evm/typechain-types/contracts/PriceOracle/IEmmetFeeOracle.ts +++ /dev/null @@ -1,260 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, - TypedContractMethod, -} from "../../common"; - -export declare namespace IEmmetFeeOracle { - export type ChainStruct = { - chainId: BigNumberish; - domain: BigNumberish; - txFee: BigNumberish; - nativeCoin: BytesLike; - }; - - export type ChainStructOutput = [ - chainId: bigint, - domain: bigint, - txFee: bigint, - nativeCoin: string - ] & { chainId: bigint; domain: bigint; txFee: bigint; nativeCoin: string }; - - export type CoinFeeStruct = { - minimum: BigNumberish; - percentage: BigNumberish; - }; - - export type CoinFeeStructOutput = [minimum: bigint, percentage: bigint] & { - minimum: bigint; - percentage: bigint; - }; -} - -export interface IEmmetFeeOracleInterface extends Interface { - getFunction( - nameOrSignature: - | "calculateCoinFees" - | "calculateTransactionFee" - | "getChainByname" - | "getChainFee" - | "getChainNameByDomain" - | "getChainNameById" - | "getCoinFee" - | "getCoinPrice" - | "selfCoin" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "calculateCoinFees", - values: [string, BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "calculateTransactionFee", - values: [string] - ): string; - encodeFunctionData( - functionFragment: "getChainByname", - values: [string] - ): string; - encodeFunctionData( - functionFragment: "getChainFee", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "getChainNameByDomain", - values: [BigNumberish] - ): string; - encodeFunctionData( - functionFragment: "getChainNameById", - values: [BigNumberish] - ): string; - encodeFunctionData(functionFragment: "getCoinFee", values: [string]): string; - encodeFunctionData( - functionFragment: "getCoinPrice", - values: [string] - ): string; - encodeFunctionData(functionFragment: "selfCoin", values?: undefined): string; - - decodeFunctionResult( - functionFragment: "calculateCoinFees", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "calculateTransactionFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getChainByname", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getChainFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getChainNameByDomain", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getChainNameById", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "getCoinFee", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getCoinPrice", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "selfCoin", data: BytesLike): Result; -} - -export interface IEmmetFeeOracle extends BaseContract { - connect(runner?: ContractRunner | null): IEmmetFeeOracle; - waitForDeployment(): Promise; - - interface: IEmmetFeeOracleInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - calculateCoinFees: TypedContractMethod< - [coinName_: string, amount_: BigNumberish], - [bigint], - "view" - >; - - calculateTransactionFee: TypedContractMethod< - [destChainName_: string], - [bigint], - "view" - >; - - getChainByname: TypedContractMethod< - [chainName_: string], - [IEmmetFeeOracle.ChainStructOutput], - "view" - >; - - getChainFee: TypedContractMethod< - [destDomain_: BigNumberish], - [bigint], - "view" - >; - - getChainNameByDomain: TypedContractMethod< - [destDomain_: BigNumberish], - [string], - "view" - >; - - getChainNameById: TypedContractMethod< - [chainId_: BigNumberish], - [string], - "view" - >; - - getCoinFee: TypedContractMethod< - [coinName_: string], - [IEmmetFeeOracle.CoinFeeStructOutput], - "view" - >; - - getCoinPrice: TypedContractMethod<[coinName: string], [bigint], "view">; - - selfCoin: TypedContractMethod<[], [string], "view">; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "calculateCoinFees" - ): TypedContractMethod< - [coinName_: string, amount_: BigNumberish], - [bigint], - "view" - >; - getFunction( - nameOrSignature: "calculateTransactionFee" - ): TypedContractMethod<[destChainName_: string], [bigint], "view">; - getFunction( - nameOrSignature: "getChainByname" - ): TypedContractMethod< - [chainName_: string], - [IEmmetFeeOracle.ChainStructOutput], - "view" - >; - getFunction( - nameOrSignature: "getChainFee" - ): TypedContractMethod<[destDomain_: BigNumberish], [bigint], "view">; - getFunction( - nameOrSignature: "getChainNameByDomain" - ): TypedContractMethod<[destDomain_: BigNumberish], [string], "view">; - getFunction( - nameOrSignature: "getChainNameById" - ): TypedContractMethod<[chainId_: BigNumberish], [string], "view">; - getFunction( - nameOrSignature: "getCoinFee" - ): TypedContractMethod< - [coinName_: string], - [IEmmetFeeOracle.CoinFeeStructOutput], - "view" - >; - getFunction( - nameOrSignature: "getCoinPrice" - ): TypedContractMethod<[coinName: string], [bigint], "view">; - getFunction( - nameOrSignature: "selfCoin" - ): TypedContractMethod<[], [string], "view">; - - filters: {}; -} diff --git a/src/contracts/evm/typechain-types/contracts/PriceOracle/IEmmetFeeOracleAdmin.ts b/src/contracts/evm/typechain-types/contracts/PriceOracle/IEmmetFeeOracleAdmin.ts deleted file mode 100644 index 81b33c2..0000000 --- a/src/contracts/evm/typechain-types/contracts/PriceOracle/IEmmetFeeOracleAdmin.ts +++ /dev/null @@ -1,170 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumberish, - BytesLike, - FunctionFragment, - Result, - Interface, - ContractRunner, - ContractMethod, - Listener, -} from "ethers"; -import type { - TypedContractEvent, - TypedDeferredTopicFilter, - TypedEventLog, - TypedListener, - TypedContractMethod, -} from "../../common"; - -export declare namespace IEmmetFeeOracle { - export type CoinFeeStruct = { - minimum: BigNumberish; - percentage: BigNumberish; - }; - - export type CoinFeeStructOutput = [minimum: bigint, percentage: bigint] & { - minimum: bigint; - percentage: bigint; - }; -} - -export interface IEmmetFeeOracleAdminInterface extends Interface { - getFunction( - nameOrSignature: - | "updateChain" - | "updateCoinFee" - | "updateProtocolFeeDivisor" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "updateChain", - values: [string, BigNumberish, BigNumberish, BigNumberish, string] - ): string; - encodeFunctionData( - functionFragment: "updateCoinFee", - values: [string, IEmmetFeeOracle.CoinFeeStruct] - ): string; - encodeFunctionData( - functionFragment: "updateProtocolFeeDivisor", - values: [BigNumberish] - ): string; - - decodeFunctionResult( - functionFragment: "updateChain", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateCoinFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateProtocolFeeDivisor", - data: BytesLike - ): Result; -} - -export interface IEmmetFeeOracleAdmin extends BaseContract { - connect(runner?: ContractRunner | null): IEmmetFeeOracleAdmin; - waitForDeployment(): Promise; - - interface: IEmmetFeeOracleAdminInterface; - - queryFilter( - event: TCEvent, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - queryFilter( - filter: TypedDeferredTopicFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>>; - - on( - event: TCEvent, - listener: TypedListener - ): Promise; - on( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - once( - event: TCEvent, - listener: TypedListener - ): Promise; - once( - filter: TypedDeferredTopicFilter, - listener: TypedListener - ): Promise; - - listeners( - event: TCEvent - ): Promise>>; - listeners(eventName?: string): Promise>; - removeAllListeners( - event?: TCEvent - ): Promise; - - updateChain: TypedContractMethod< - [ - chainName: string, - chainId_: BigNumberish, - domain_: BigNumberish, - txFee_: BigNumberish, - nativeCoin_: string - ], - [void], - "nonpayable" - >; - - updateCoinFee: TypedContractMethod< - [coinName_: string, coinFee_: IEmmetFeeOracle.CoinFeeStruct], - [void], - "nonpayable" - >; - - updateProtocolFeeDivisor: TypedContractMethod< - [protocolFeeDivisor_: BigNumberish], - [void], - "nonpayable" - >; - - getFunction( - key: string | FunctionFragment - ): T; - - getFunction( - nameOrSignature: "updateChain" - ): TypedContractMethod< - [ - chainName: string, - chainId_: BigNumberish, - domain_: BigNumberish, - txFee_: BigNumberish, - nativeCoin_: string - ], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "updateCoinFee" - ): TypedContractMethod< - [coinName_: string, coinFee_: IEmmetFeeOracle.CoinFeeStruct], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "updateProtocolFeeDivisor" - ): TypedContractMethod< - [protocolFeeDivisor_: BigNumberish], - [void], - "nonpayable" - >; - - filters: {}; -} diff --git a/src/contracts/evm/typechain-types/contracts/PriceOracle/index.ts b/src/contracts/evm/typechain-types/contracts/PriceOracle/index.ts deleted file mode 100644 index e62b2b7..0000000 --- a/src/contracts/evm/typechain-types/contracts/PriceOracle/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ChainLinkPriceFeeds } from "./ChainLinkPriceFeeds"; -export type { EmmetFeeOracle } from "./EmmetFeeOracle"; -export type { IChainLinkPriceFeeds } from "./IChainLinkPriceFeeds"; -export type { IChainLinkPriceFeedsAdmin } from "./IChainLinkPriceFeedsAdmin"; -export type { IEmmetFeeOracle } from "./IEmmetFeeOracle"; -export type { IEmmetFeeOracleAdmin } from "./IEmmetFeeOracleAdmin"; diff --git a/src/contracts/evm/typechain-types/contracts/index.ts b/src/contracts/evm/typechain-types/contracts/index.ts deleted file mode 100644 index 23c18d7..0000000 --- a/src/contracts/evm/typechain-types/contracts/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as bridgeComponents from "./BridgeComponents"; -export type { bridgeComponents }; -export type { FTBridge } from "./FTBridge"; diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/access/AccessControl__factory.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/access/AccessControl__factory.ts deleted file mode 100644 index b3c58ae..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/access/AccessControl__factory.ts +++ /dev/null @@ -1,250 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - AccessControl, - AccessControlInterface, -} from "../../../../@openzeppelin/contracts/access/AccessControl"; - -const _abi = [ - { - inputs: [], - name: "AccessControlBadConfirmation", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - { - internalType: "bytes32", - name: "neededRole", - type: "bytes32", - }, - ], - name: "AccessControlUnauthorizedAccount", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "previousAdminRole", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "newAdminRole", - type: "bytes32", - }, - ], - name: "RoleAdminChanged", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleGranted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleRevoked", - type: "event", - }, - { - inputs: [], - name: "DEFAULT_ADMIN_ROLE", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - ], - name: "getRoleAdmin", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "grantRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "hasRole", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "callerConfirmation", - type: "address", - }, - ], - name: "renounceRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "revokeRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes4", - name: "interfaceId", - type: "bytes4", - }, - ], - name: "supportsInterface", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class AccessControl__factory { - static readonly abi = _abi; - static createInterface(): AccessControlInterface { - return new Interface(_abi) as AccessControlInterface; - } - static connect( - address: string, - runner?: ContractRunner | null, - ): AccessControl { - return new Contract(address, _abi, runner) as unknown as AccessControl; - } -} diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/access/IAccessControl__factory.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/access/IAccessControl__factory.ts deleted file mode 100644 index fc32769..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/access/IAccessControl__factory.ts +++ /dev/null @@ -1,218 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - IAccessControl, - IAccessControlInterface, -} from "../../../../@openzeppelin/contracts/access/IAccessControl"; - -const _abi = [ - { - inputs: [], - name: "AccessControlBadConfirmation", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - { - internalType: "bytes32", - name: "neededRole", - type: "bytes32", - }, - ], - name: "AccessControlUnauthorizedAccount", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "previousAdminRole", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "newAdminRole", - type: "bytes32", - }, - ], - name: "RoleAdminChanged", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleGranted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleRevoked", - type: "event", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - ], - name: "getRoleAdmin", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "grantRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "hasRole", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "callerConfirmation", - type: "address", - }, - ], - name: "renounceRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "revokeRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IAccessControl__factory { - static readonly abi = _abi; - static createInterface(): IAccessControlInterface { - return new Interface(_abi) as IAccessControlInterface; - } - static connect( - address: string, - runner?: ContractRunner | null, - ): IAccessControl { - return new Contract(address, _abi, runner) as unknown as IAccessControl; - } -} diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/access/index.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/access/index.ts deleted file mode 100644 index b42435d..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/access/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { AccessControl__factory } from "./AccessControl__factory"; -export { IAccessControl__factory } from "./IAccessControl__factory"; diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/index.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/index.ts deleted file mode 100644 index d81ac1a..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as access from "./access"; -export * as interfaces from "./interfaces"; -export * as token from "./token"; -export * as utils from "./utils"; diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.ts deleted file mode 100644 index ee1b1ec..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.ts +++ /dev/null @@ -1,127 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - IERC1155Errors, - IERC1155ErrorsInterface, -} from "../../../../../@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "sender", - type: "address", - }, - { - internalType: "uint256", - name: "balance", - type: "uint256", - }, - { - internalType: "uint256", - name: "needed", - type: "uint256", - }, - { - internalType: "uint256", - name: "tokenId", - type: "uint256", - }, - ], - name: "ERC1155InsufficientBalance", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "approver", - type: "address", - }, - ], - name: "ERC1155InvalidApprover", - type: "error", - }, - { - inputs: [ - { - internalType: "uint256", - name: "idsLength", - type: "uint256", - }, - { - internalType: "uint256", - name: "valuesLength", - type: "uint256", - }, - ], - name: "ERC1155InvalidArrayLength", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "operator", - type: "address", - }, - ], - name: "ERC1155InvalidOperator", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "receiver", - type: "address", - }, - ], - name: "ERC1155InvalidReceiver", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "ERC1155InvalidSender", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "operator", - type: "address", - }, - { - internalType: "address", - name: "owner", - type: "address", - }, - ], - name: "ERC1155MissingApprovalForAll", - type: "error", - }, -] as const; - -export class IERC1155Errors__factory { - static readonly abi = _abi; - static createInterface(): IERC1155ErrorsInterface { - return new Interface(_abi) as IERC1155ErrorsInterface; - } - static connect( - address: string, - runner?: ContractRunner | null, - ): IERC1155Errors { - return new Contract(address, _abi, runner) as unknown as IERC1155Errors; - } -} diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.ts deleted file mode 100644 index 0d09033..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - IERC20Errors, - IERC20ErrorsInterface, -} from "../../../../../@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "allowance", - type: "uint256", - }, - { - internalType: "uint256", - name: "needed", - type: "uint256", - }, - ], - name: "ERC20InsufficientAllowance", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "sender", - type: "address", - }, - { - internalType: "uint256", - name: "balance", - type: "uint256", - }, - { - internalType: "uint256", - name: "needed", - type: "uint256", - }, - ], - name: "ERC20InsufficientBalance", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "approver", - type: "address", - }, - ], - name: "ERC20InvalidApprover", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "receiver", - type: "address", - }, - ], - name: "ERC20InvalidReceiver", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "ERC20InvalidSender", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - ], - name: "ERC20InvalidSpender", - type: "error", - }, -] as const; - -export class IERC20Errors__factory { - static readonly abi = _abi; - static createInterface(): IERC20ErrorsInterface { - return new Interface(_abi) as IERC20ErrorsInterface; - } - static connect( - address: string, - runner?: ContractRunner | null, - ): IERC20Errors { - return new Contract(address, _abi, runner) as unknown as IERC20Errors; - } -} diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.ts deleted file mode 100644 index 23ef9cc..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.ts +++ /dev/null @@ -1,128 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - IERC721Errors, - IERC721ErrorsInterface, -} from "../../../../../@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "sender", - type: "address", - }, - { - internalType: "uint256", - name: "tokenId", - type: "uint256", - }, - { - internalType: "address", - name: "owner", - type: "address", - }, - ], - name: "ERC721IncorrectOwner", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "operator", - type: "address", - }, - { - internalType: "uint256", - name: "tokenId", - type: "uint256", - }, - ], - name: "ERC721InsufficientApproval", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "approver", - type: "address", - }, - ], - name: "ERC721InvalidApprover", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "operator", - type: "address", - }, - ], - name: "ERC721InvalidOperator", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - ], - name: "ERC721InvalidOwner", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "receiver", - type: "address", - }, - ], - name: "ERC721InvalidReceiver", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "ERC721InvalidSender", - type: "error", - }, - { - inputs: [ - { - internalType: "uint256", - name: "tokenId", - type: "uint256", - }, - ], - name: "ERC721NonexistentToken", - type: "error", - }, -] as const; - -export class IERC721Errors__factory { - static readonly abi = _abi; - static createInterface(): IERC721ErrorsInterface { - return new Interface(_abi) as IERC721ErrorsInterface; - } - static connect( - address: string, - runner?: ContractRunner | null, - ): IERC721Errors { - return new Contract(address, _abi, runner) as unknown as IERC721Errors; - } -} diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts deleted file mode 100644 index 571330e..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { IERC1155Errors__factory } from "./IERC1155Errors__factory"; -export { IERC20Errors__factory } from "./IERC20Errors__factory"; -export { IERC721Errors__factory } from "./IERC721Errors__factory"; diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/interfaces/index.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/interfaces/index.ts deleted file mode 100644 index 82d047e..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/interfaces/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as draftIerc6093Sol from "./draft-IERC6093.sol"; diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts deleted file mode 100644 index 5d8981a..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts +++ /dev/null @@ -1,330 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - ERC20, - ERC20Interface, -} from "../../../../../@openzeppelin/contracts/token/ERC20/ERC20"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "allowance", - type: "uint256", - }, - { - internalType: "uint256", - name: "needed", - type: "uint256", - }, - ], - name: "ERC20InsufficientAllowance", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "sender", - type: "address", - }, - { - internalType: "uint256", - name: "balance", - type: "uint256", - }, - { - internalType: "uint256", - name: "needed", - type: "uint256", - }, - ], - name: "ERC20InsufficientBalance", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "approver", - type: "address", - }, - ], - name: "ERC20InvalidApprover", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "receiver", - type: "address", - }, - ], - name: "ERC20InvalidReceiver", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "ERC20InvalidSender", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - ], - name: "ERC20InvalidSpender", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "owner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "spender", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Approval", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "from", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Transfer", - type: "event", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - { - internalType: "address", - name: "spender", - type: "address", - }, - ], - name: "allowance", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "balanceOf", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "decimals", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "name", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "symbol", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "totalSupply", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "transfer", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "from", - type: "address", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "transferFrom", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class ERC20__factory { - static readonly abi = _abi; - static createInterface(): ERC20Interface { - return new Interface(_abi) as ERC20Interface; - } - static connect(address: string, runner?: ContractRunner | null): ERC20 { - return new Contract(address, _abi, runner) as unknown as ERC20; - } -} diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts deleted file mode 100644 index 6768448..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts +++ /dev/null @@ -1,205 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - IERC20, - IERC20Interface, -} from "../../../../../@openzeppelin/contracts/token/ERC20/IERC20"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "owner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "spender", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Approval", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "from", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Transfer", - type: "event", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - { - internalType: "address", - name: "spender", - type: "address", - }, - ], - name: "allowance", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "balanceOf", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "totalSupply", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "transfer", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "from", - type: "address", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "transferFrom", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IERC20__factory { - static readonly abi = _abi; - static createInterface(): IERC20Interface { - return new Interface(_abi) as IERC20Interface; - } - static connect(address: string, runner?: ContractRunner | null): IERC20 { - return new Contract(address, _abi, runner) as unknown as IERC20; - } -} diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts deleted file mode 100644 index f3e72f7..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts +++ /dev/null @@ -1,247 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - IERC20Metadata, - IERC20MetadataInterface, -} from "../../../../../../@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "owner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "spender", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Approval", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "from", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Transfer", - type: "event", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - { - internalType: "address", - name: "spender", - type: "address", - }, - ], - name: "allowance", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "balanceOf", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "decimals", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "name", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "symbol", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "totalSupply", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "transfer", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "from", - type: "address", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "transferFrom", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IERC20Metadata__factory { - static readonly abi = _abi; - static createInterface(): IERC20MetadataInterface { - return new Interface(_abi) as IERC20MetadataInterface; - } - static connect( - address: string, - runner?: ContractRunner | null, - ): IERC20Metadata { - return new Contract(address, _abi, runner) as unknown as IERC20Metadata; - } -} diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit__factory.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit__factory.ts deleted file mode 100644 index 912a909..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit__factory.ts +++ /dev/null @@ -1,100 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - IERC20Permit, - IERC20PermitInterface, -} from "../../../../../../@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit"; - -const _abi = [ - { - inputs: [], - name: "DOMAIN_SEPARATOR", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - ], - name: "nonces", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - { - internalType: "uint8", - name: "v", - type: "uint8", - }, - { - internalType: "bytes32", - name: "r", - type: "bytes32", - }, - { - internalType: "bytes32", - name: "s", - type: "bytes32", - }, - ], - name: "permit", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IERC20Permit__factory { - static readonly abi = _abi; - static createInterface(): IERC20PermitInterface { - return new Interface(_abi) as IERC20PermitInterface; - } - static connect( - address: string, - runner?: ContractRunner | null, - ): IERC20Permit { - return new Contract(address, _abi, runner) as unknown as IERC20Permit; - } -} diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts deleted file mode 100644 index 6380f16..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { IERC20Metadata__factory } from "./IERC20Metadata__factory"; -export { IERC20Permit__factory } from "./IERC20Permit__factory"; diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.ts deleted file mode 100644 index d187f96..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as extensions from "./extensions"; -export * as utils from "./utils"; -export { ERC20__factory } from "./ERC20__factory"; -export { IERC20__factory } from "./IERC20__factory"; diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.ts deleted file mode 100644 index 4f39214..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.ts +++ /dev/null @@ -1,96 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"; -import type { NonPayableOverrides } from "../../../../../../common"; -import type { - SafeERC20, - SafeERC20Interface, -} from "../../../../../../@openzeppelin/contracts/token/ERC20/utils/SafeERC20"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "currentAllowance", - type: "uint256", - }, - { - internalType: "uint256", - name: "requestedDecrease", - type: "uint256", - }, - ], - name: "SafeERC20FailedDecreaseAllowance", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - ], - name: "SafeERC20FailedOperation", - type: "error", - }, -] as const; - -const _bytecode = - "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220dc0c1c87e408c4e55dc6229db728f4ce7c7bcde319cf505b5daf94e2df764f5264736f6c63430008140033"; - -type SafeERC20ConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: SafeERC20ConstructorParams, -): xs is ConstructorParameters => xs.length > 1; - -export class SafeERC20__factory extends ContractFactory { - constructor(...args: SafeERC20ConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - overrides?: NonPayableOverrides & { from?: string }, - ): Promise { - return super.getDeployTransaction(overrides || {}); - } - override deploy(overrides?: NonPayableOverrides & { from?: string }) { - return super.deploy(overrides || {}) as Promise< - SafeERC20 & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect(runner: ContractRunner | null): SafeERC20__factory { - return super.connect(runner) as SafeERC20__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): SafeERC20Interface { - return new Interface(_abi) as SafeERC20Interface; - } - static connect(address: string, runner?: ContractRunner | null): SafeERC20 { - return new Contract(address, _abi, runner) as unknown as SafeERC20; - } -} diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/index.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/index.ts deleted file mode 100644 index 56fb056..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { SafeERC20__factory } from "./SafeERC20__factory"; diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/index.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/index.ts deleted file mode 100644 index da1e061..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/token/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as erc20 from "./ERC20"; diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/Address__factory.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/Address__factory.ts deleted file mode 100644 index 6175dff..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/Address__factory.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"; -import type { NonPayableOverrides } from "../../../../common"; -import type { - Address, - AddressInterface, -} from "../../../../@openzeppelin/contracts/utils/Address"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "target", - type: "address", - }, - ], - name: "AddressEmptyCode", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "AddressInsufficientBalance", - type: "error", - }, - { - inputs: [], - name: "FailedInnerCall", - type: "error", - }, -] as const; - -const _bytecode = - "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212200908ee0e285fdd44fae74fa9282842baf1fd72afaf3a262c17132766ecb61d5564736f6c63430008140033"; - -type AddressConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: AddressConstructorParams, -): xs is ConstructorParameters => xs.length > 1; - -export class Address__factory extends ContractFactory { - constructor(...args: AddressConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - overrides?: NonPayableOverrides & { from?: string }, - ): Promise { - return super.getDeployTransaction(overrides || {}); - } - override deploy(overrides?: NonPayableOverrides & { from?: string }) { - return super.deploy(overrides || {}) as Promise< - Address & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect(runner: ContractRunner | null): Address__factory { - return super.connect(runner) as Address__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): AddressInterface { - return new Interface(_abi) as AddressInterface; - } - static connect(address: string, runner?: ContractRunner | null): Address { - return new Contract(address, _abi, runner) as unknown as Address; - } -} diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/Pausable__factory.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/Pausable__factory.ts deleted file mode 100644 index b2d2b63..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/Pausable__factory.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - Pausable, - PausableInterface, -} from "../../../../@openzeppelin/contracts/utils/Pausable"; - -const _abi = [ - { - inputs: [], - name: "EnforcedPause", - type: "error", - }, - { - inputs: [], - name: "ExpectedPause", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "Paused", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "Unpaused", - type: "event", - }, - { - inputs: [], - name: "paused", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class Pausable__factory { - static readonly abi = _abi; - static createInterface(): PausableInterface { - return new Interface(_abi) as PausableInterface; - } - static connect(address: string, runner?: ContractRunner | null): Pausable { - return new Contract(address, _abi, runner) as unknown as Pausable; - } -} diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/ReentrancyGuard__factory.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/ReentrancyGuard__factory.ts deleted file mode 100644 index e876eb8..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/ReentrancyGuard__factory.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - ReentrancyGuard, - ReentrancyGuardInterface, -} from "../../../../@openzeppelin/contracts/utils/ReentrancyGuard"; - -const _abi = [ - { - inputs: [], - name: "ReentrancyGuardReentrantCall", - type: "error", - }, -] as const; - -export class ReentrancyGuard__factory { - static readonly abi = _abi; - static createInterface(): ReentrancyGuardInterface { - return new Interface(_abi) as ReentrancyGuardInterface; - } - static connect( - address: string, - runner?: ContractRunner | null, - ): ReentrancyGuard { - return new Contract(address, _abi, runner) as unknown as ReentrancyGuard; - } -} diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/index.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/index.ts deleted file mode 100644 index 0af384d..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as introspection from "./introspection"; -export { Address__factory } from "./Address__factory"; -export { Pausable__factory } from "./Pausable__factory"; -export { ReentrancyGuard__factory } from "./ReentrancyGuard__factory"; diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/introspection/ERC165__factory.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/introspection/ERC165__factory.ts deleted file mode 100644 index 8388afb..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/introspection/ERC165__factory.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - ERC165, - ERC165Interface, -} from "../../../../../@openzeppelin/contracts/utils/introspection/ERC165"; - -const _abi = [ - { - inputs: [ - { - internalType: "bytes4", - name: "interfaceId", - type: "bytes4", - }, - ], - name: "supportsInterface", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class ERC165__factory { - static readonly abi = _abi; - static createInterface(): ERC165Interface { - return new Interface(_abi) as ERC165Interface; - } - static connect(address: string, runner?: ContractRunner | null): ERC165 { - return new Contract(address, _abi, runner) as unknown as ERC165; - } -} diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.ts deleted file mode 100644 index 5cc0394..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - IERC165, - IERC165Interface, -} from "../../../../../@openzeppelin/contracts/utils/introspection/IERC165"; - -const _abi = [ - { - inputs: [ - { - internalType: "bytes4", - name: "interfaceId", - type: "bytes4", - }, - ], - name: "supportsInterface", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class IERC165__factory { - static readonly abi = _abi; - static createInterface(): IERC165Interface { - return new Interface(_abi) as IERC165Interface; - } - static connect(address: string, runner?: ContractRunner | null): IERC165 { - return new Contract(address, _abi, runner) as unknown as IERC165; - } -} diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/introspection/index.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/introspection/index.ts deleted file mode 100644 index 8523e0a..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/contracts/utils/introspection/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ERC165__factory } from "./ERC165__factory"; -export { IERC165__factory } from "./IERC165__factory"; diff --git a/src/contracts/evm/typechain-types/factories/@openzeppelin/index.ts b/src/contracts/evm/typechain-types/factories/@openzeppelin/index.ts deleted file mode 100644 index 6397da0..0000000 --- a/src/contracts/evm/typechain-types/factories/@openzeppelin/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as contracts from "./contracts"; diff --git a/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/BridgeSecurity__factory.ts b/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/BridgeSecurity__factory.ts deleted file mode 100644 index a7f1a19..0000000 --- a/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/BridgeSecurity__factory.ts +++ /dev/null @@ -1,451 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"; -import type { NonPayableOverrides } from "../../../common"; -import type { - BridgeSecurity, - BridgeSecurityInterface, -} from "../../../contracts/BridgeComponents/BridgeSecurity"; - -const _abi = [ - { - inputs: [], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "AccessControlBadConfirmation", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - { - internalType: "bytes32", - name: "neededRole", - type: "bytes32", - }, - ], - name: "AccessControlUnauthorizedAccount", - type: "error", - }, - { - inputs: [], - name: "EnforcedPause", - type: "error", - }, - { - inputs: [], - name: "ExpectedPause", - type: "error", - }, - { - inputs: [], - name: "ReentrancyGuardReentrantCall", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "Paused", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "previousAdminRole", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "newAdminRole", - type: "bytes32", - }, - ], - name: "RoleAdminChanged", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleGranted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleRevoked", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "Unpaused", - type: "event", - }, - { - stateMutability: "payable", - type: "fallback", - }, - { - inputs: [], - name: "BRIDGE_VALIDATOR_ROLE", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "DEFAULT_ADMIN_ROLE", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "MAPPING_ADMIN_ROLE", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "PAUSER_ROLE", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "WITHDRAWER_ROLE", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_validator", - type: "address", - }, - ], - name: "addValidator", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - ], - name: "getRoleAdmin", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "grantRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "hasRole", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "pause", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "paused", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_validator", - type: "address", - }, - ], - name: "removeValidator", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "callerConfirmation", - type: "address", - }, - ], - name: "renounceRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "revokeRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes4", - name: "interfaceId", - type: "bytes4", - }, - ], - name: "supportsInterface", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "unpause", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - stateMutability: "payable", - type: "receive", - }, -] as const; - -const _bytecode = - "0x60806040523480156200001157600080fd5b506000600160006101000a81548160ff0219169083151502179055506001600281905550620000596000801b6200004d6200012660201b60201c565b6200012e60201b60201c565b506200009b7f91254af6ef471a2b22aab0d27dac912f65156059964a7fe1f3f45622a2a502c36200008f6200012660201b60201c565b6200012e60201b60201c565b50620000dd7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a620000d16200012660201b60201c565b6200012e60201b60201c565b506200011f7f10dac8c06a04bec0b551627dad28bc00d6516b0caacd1c7b345fcdb5211334e4620001136200012660201b60201c565b6200012e60201b60201c565b506200029b565b600033905090565b60006200014283836200023160201b60201c565b6200022657600160008085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620001c26200012660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4600190506200022b565b600090505b92915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b610da580620002ab6000396000f3fe6080604052600436106100f75760003560e01c80634d238c8e1161008a57806391d148541161005957806391d14854146102f8578063a217fddf14610335578063d547741f14610360578063e63ab1e914610389576100fe565b80634d238c8e146102625780635c975abb1461028b5780638456cb59146102b657806385f438c1146102cd576100fe565b806336568abe116100c657806336568abe146101ce5780633f4ba83a146101f757806340a141ff1461020e5780634247836814610237576100fe565b806301ffc9a714610100578063248a9ca31461013d5780632db63e1d1461017a5780632f2ff15d146101a5576100fe565b366100fe57005b005b34801561010c57600080fd5b5061012760048036038101906101229190610b61565b6103b4565b6040516101349190610ba9565b60405180910390f35b34801561014957600080fd5b50610164600480360381019061015f9190610bfa565b61042e565b6040516101719190610c36565b60405180910390f35b34801561018657600080fd5b5061018f61044d565b60405161019c9190610c36565b60405180910390f35b3480156101b157600080fd5b506101cc60048036038101906101c79190610caf565b610471565b005b3480156101da57600080fd5b506101f560048036038101906101f09190610caf565b610493565b005b34801561020357600080fd5b5061020c61050e565b005b34801561021a57600080fd5b5061023560048036038101906102309190610cef565b610543565b005b34801561024357600080fd5b5061024c61057e565b6040516102599190610c36565b60405180910390f35b34801561026e57600080fd5b5061028960048036038101906102849190610cef565b6105a2565b005b34801561029757600080fd5b506102a06105dd565b6040516102ad9190610ba9565b60405180910390f35b3480156102c257600080fd5b506102cb6105f4565b005b3480156102d957600080fd5b506102e2610629565b6040516102ef9190610c36565b60405180910390f35b34801561030457600080fd5b5061031f600480360381019061031a9190610caf565b61064d565b60405161032c9190610ba9565b60405180910390f35b34801561034157600080fd5b5061034a6106b7565b6040516103579190610c36565b60405180910390f35b34801561036c57600080fd5b5061038760048036038101906103829190610caf565b6106be565b005b34801561039557600080fd5b5061039e6106e0565b6040516103ab9190610c36565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610427575061042682610704565b5b9050919050565b6000806000838152602001908152602001600020600101549050919050565b7f91254af6ef471a2b22aab0d27dac912f65156059964a7fe1f3f45622a2a502c381565b61047a8261042e565b6104838161076e565b61048d8383610782565b50505050565b61049b610873565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146104ff576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610509828261087b565b505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6105388161076e565b61054061096d565b50565b6000801b6105508161076e565b61057a7f4b9166b2e998c2955a9bb028c99665e792fb350659767827c9ca91a745a16e7c836106be565b5050565b7f4b9166b2e998c2955a9bb028c99665e792fb350659767827c9ca91a745a16e7c81565b6000801b6105af8161076e565b6105d97f4b9166b2e998c2955a9bb028c99665e792fb350659767827c9ca91a745a16e7c83610471565b5050565b6000600160009054906101000a900460ff16905090565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a61061e8161076e565b6106266109d0565b50565b7f10dac8c06a04bec0b551627dad28bc00d6516b0caacd1c7b345fcdb5211334e481565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b6106c78261042e565b6106d08161076e565b6106da838361087b565b50505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61077f8161077a610873565b610a32565b50565b600061078e838361064d565b61086857600160008085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610805610873565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a46001905061086d565b600090505b92915050565b600033905090565b6000610887838361064d565b1561096257600080600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506108ff610873565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050610967565b600090505b92915050565b610975610a83565b6000600160006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6109b9610873565b6040516109c69190610d2b565b60405180910390a1565b6109d8610ac3565b60018060006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610a1b610873565b604051610a289190610d2b565b60405180910390a1565b610a3c828261064d565b610a7f5780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401610a76929190610d46565b60405180910390fd5b5050565b610a8b6105dd565b610ac1576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b610acb6105dd565b15610b02576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b610b3e81610b09565b8114610b4957600080fd5b50565b600081359050610b5b81610b35565b92915050565b600060208284031215610b7757610b76610b04565b5b6000610b8584828501610b4c565b91505092915050565b60008115159050919050565b610ba381610b8e565b82525050565b6000602082019050610bbe6000830184610b9a565b92915050565b6000819050919050565b610bd781610bc4565b8114610be257600080fd5b50565b600081359050610bf481610bce565b92915050565b600060208284031215610c1057610c0f610b04565b5b6000610c1e84828501610be5565b91505092915050565b610c3081610bc4565b82525050565b6000602082019050610c4b6000830184610c27565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610c7c82610c51565b9050919050565b610c8c81610c71565b8114610c9757600080fd5b50565b600081359050610ca981610c83565b92915050565b60008060408385031215610cc657610cc5610b04565b5b6000610cd485828601610be5565b9250506020610ce585828601610c9a565b9150509250929050565b600060208284031215610d0557610d04610b04565b5b6000610d1384828501610c9a565b91505092915050565b610d2581610c71565b82525050565b6000602082019050610d406000830184610d1c565b92915050565b6000604082019050610d5b6000830185610d1c565b610d686020830184610c27565b939250505056fea2646970667358221220cd70bede6336aad76aac1f34f68efe0cff2a7c7d21622794405a85194135ff0464736f6c63430008140033"; - -type BridgeSecurityConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: BridgeSecurityConstructorParams, -): xs is ConstructorParameters => xs.length > 1; - -export class BridgeSecurity__factory extends ContractFactory { - constructor(...args: BridgeSecurityConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - overrides?: NonPayableOverrides & { from?: string }, - ): Promise { - return super.getDeployTransaction(overrides || {}); - } - override deploy(overrides?: NonPayableOverrides & { from?: string }) { - return super.deploy(overrides || {}) as Promise< - BridgeSecurity & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect(runner: ContractRunner | null): BridgeSecurity__factory { - return super.connect(runner) as BridgeSecurity__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): BridgeSecurityInterface { - return new Interface(_abi) as BridgeSecurityInterface; - } - static connect( - address: string, - runner?: ContractRunner | null, - ): BridgeSecurity { - return new Contract(address, _abi, runner) as unknown as BridgeSecurity; - } -} diff --git a/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/BridgeStorage__factory.ts b/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/BridgeStorage__factory.ts deleted file mode 100644 index 18c5067..0000000 --- a/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/BridgeStorage__factory.ts +++ /dev/null @@ -1,302 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { - Signer, - BigNumberish, - ContractDeployTransaction, - ContractRunner, -} from "ethers"; -import type { NonPayableOverrides } from "../../../common"; -import type { - BridgeStorage, - BridgeStorageInterface, -} from "../../../contracts/BridgeComponents/BridgeStorage"; - -const _abi = [ - { - inputs: [ - { - internalType: "string", - name: "_nativeCoin", - type: "string", - }, - { - internalType: "uint16", - name: "_nativeChainId", - type: "uint16", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "TVL", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "actionId", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "fees", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - name: "incomming", - outputs: [ - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - internalType: "uint16", - name: "chainId", - type: "uint16", - }, - { - internalType: "string", - name: "tokenSymbol", - type: "string", - }, - { - internalType: "address payable", - name: "destinationAddress", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "nativeChainId", - outputs: [ - { - internalType: "uint16", - name: "", - type: "uint16", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "nativeCoin", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - name: "nativeTokens", - outputs: [ - { - internalType: "address", - name: "constractAddress", - type: "address", - }, - { - internalType: "uint8", - name: "decimals", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - name: "outgoing", - outputs: [ - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - internalType: "uint16", - name: "chainId", - type: "uint16", - }, - { - internalType: "string", - name: "tokenSymbol", - type: "string", - }, - { - internalType: "string", - name: "destinationAddress", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint16", - name: "", - type: "uint16", - }, - ], - name: "supportedChains", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - name: "wrappedTokens", - outputs: [ - { - internalType: "address", - name: "constractAddress", - type: "address", - }, - { - internalType: "uint8", - name: "decimals", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -const _bytecode = - "0x60806040523480156200001157600080fd5b50604051620011ce380380620011ce833981810160405281019062000037919062000257565b600080819055506000600181905550600060028190555081600390816200005f919062000508565b5080600460006101000a81548161ffff021916908361ffff1602179055505050620005ef565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620000ee82620000a3565b810181811067ffffffffffffffff8211171562000110576200010f620000b4565b5b80604052505050565b60006200012562000085565b9050620001338282620000e3565b919050565b600067ffffffffffffffff821115620001565762000155620000b4565b5b6200016182620000a3565b9050602081019050919050565b60005b838110156200018e57808201518184015260208101905062000171565b60008484015250505050565b6000620001b1620001ab8462000138565b62000119565b905082815260208101848484011115620001d057620001cf6200009e565b5b620001dd8482856200016e565b509392505050565b600082601f830112620001fd57620001fc62000099565b5b81516200020f8482602086016200019a565b91505092915050565b600061ffff82169050919050565b620002318162000218565b81146200023d57600080fd5b50565b600081519050620002518162000226565b92915050565b600080604083850312156200027157620002706200008f565b5b600083015167ffffffffffffffff81111562000292576200029162000094565b5b620002a085828601620001e5565b9250506020620002b38582860162000240565b9150509250929050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200031057607f821691505b602082108103620003265762000325620002c8565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620003907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000351565b6200039c868362000351565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620003e9620003e3620003dd84620003b4565b620003be565b620003b4565b9050919050565b6000819050919050565b6200040583620003c8565b6200041d6200041482620003f0565b8484546200035e565b825550505050565b600090565b6200043462000425565b62000441818484620003fa565b505050565b5b8181101562000469576200045d6000826200042a565b60018101905062000447565b5050565b601f821115620004b85762000482816200032c565b6200048d8462000341565b810160208510156200049d578190505b620004b5620004ac8562000341565b83018262000446565b50505b505050565b600082821c905092915050565b6000620004dd60001984600802620004bd565b1980831691505092915050565b6000620004f88383620004ca565b9150826002028217905092915050565b6200051382620002bd565b67ffffffffffffffff8111156200052f576200052e620000b4565b5b6200053b8254620002f7565b620005488282856200046d565b600060209050601f8311600181146200058057600084156200056b578287015190505b620005778582620004ea565b865550620005e7565b601f19841662000590866200032c565b60005b82811015620005ba5784890151825560018201915060208501945060208101905062000593565b86831015620005da5784890151620005d6601f891682620004ca565b8355505b6001600288020188555050505b505050505050565b610bcf80620005ff6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063aa810c4211610066578063aa810c421461015e578063c1a68b3814610191578063cb3f217d146101af578063d174cb2b146101e0578063edaf2d2e146102135761009e565b806310d58783146100a357806312afda25146100d3578063167b78cd1461010457806336b6e82b146101225780639af1d35a14610140575b600080fd5b6100bd60048036038101906100b891906106d5565b610231565b6040516100ca9190610792565b60405180910390f35b6100ed60048036038101906100e891906108e9565b6102d1565b6040516100fb92919061098f565b60405180910390f35b61010c610338565b6040516101199190610792565b60405180910390f35b61012a6103c6565b60405161013791906109d1565b60405180910390f35b6101486103cc565b60405161015591906109d1565b60405180910390f35b61017860048036038101906101739190610a22565b6103d2565b6040516101889493929190610a5e565b60405180910390f35b610199610520565b6040516101a69190610ab1565b60405180910390f35b6101c960048036038101906101c491906108e9565b610534565b6040516101d792919061098f565b60405180910390f35b6101fa60048036038101906101f59190610a22565b61059b565b60405161020a9493929190610aed565b60405180910390f35b61021b610681565b60405161022891906109d1565b60405180910390f35b6009602052806000526040600020600091509050805461025090610b68565b80601f016020809104026020016040519081016040528092919081815260200182805461027c90610b68565b80156102c95780601f1061029e576101008083540402835291602001916102c9565b820191906000526020600020905b8154815290600101906020018083116102ac57829003601f168201915b505050505081565b6007818051602081018201805184825260208301602085012081835280955050505050506000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060000160149054906101000a900460ff16905082565b6003805461034590610b68565b80601f016020809104026020016040519081016040528092919081815260200182805461037190610b68565b80156103be5780601f10610393576101008083540402835291602001916103be565b820191906000526020600020905b8154815290600101906020018083116103a157829003601f168201915b505050505081565b60005481565b60025481565b60066020528060005260406000206000915090508060000154908060010160009054906101000a900461ffff169080600201805461040f90610b68565b80601f016020809104026020016040519081016040528092919081815260200182805461043b90610b68565b80156104885780601f1061045d57610100808354040283529160200191610488565b820191906000526020600020905b81548152906001019060200180831161046b57829003601f168201915b50505050509080600301805461049d90610b68565b80601f01602080910402602001604051908101604052809291908181526020018280546104c990610b68565b80156105165780601f106104eb57610100808354040283529160200191610516565b820191906000526020600020905b8154815290600101906020018083116104f957829003601f168201915b5050505050905084565b600460009054906101000a900461ffff1681565b6008818051602081018201805184825260208301602085012081835280955050505050506000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060000160149054906101000a900460ff16905082565b60056020528060005260406000206000915090508060000154908060010160009054906101000a900461ffff16908060020180546105d890610b68565b80601f016020809104026020016040519081016040528092919081815260200182805461060490610b68565b80156106515780601f1061062657610100808354040283529160200191610651565b820191906000526020600020905b81548152906001019060200180831161063457829003601f168201915b5050505050908060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905084565b60015481565b6000604051905090565b600080fd5b600080fd5b600061ffff82169050919050565b6106b28161069b565b81146106bd57600080fd5b50565b6000813590506106cf816106a9565b92915050565b6000602082840312156106eb576106ea610691565b5b60006106f9848285016106c0565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561073c578082015181840152602081019050610721565b60008484015250505050565b6000601f19601f8301169050919050565b600061076482610702565b61076e818561070d565b935061077e81856020860161071e565b61078781610748565b840191505092915050565b600060208201905081810360008301526107ac8184610759565b905092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6107f682610748565b810181811067ffffffffffffffff82111715610815576108146107be565b5b80604052505050565b6000610828610687565b905061083482826107ed565b919050565b600067ffffffffffffffff821115610854576108536107be565b5b61085d82610748565b9050602081019050919050565b82818337600083830152505050565b600061088c61088784610839565b61081e565b9050828152602081018484840111156108a8576108a76107b9565b5b6108b384828561086a565b509392505050565b600082601f8301126108d0576108cf6107b4565b5b81356108e0848260208601610879565b91505092915050565b6000602082840312156108ff576108fe610691565b5b600082013567ffffffffffffffff81111561091d5761091c610696565b5b610929848285016108bb565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061095d82610932565b9050919050565b61096d81610952565b82525050565b600060ff82169050919050565b61098981610973565b82525050565b60006040820190506109a46000830185610964565b6109b16020830184610980565b9392505050565b6000819050919050565b6109cb816109b8565b82525050565b60006020820190506109e660008301846109c2565b92915050565b6000819050919050565b6109ff816109ec565b8114610a0a57600080fd5b50565b600081359050610a1c816109f6565b92915050565b600060208284031215610a3857610a37610691565b5b6000610a4684828501610a0d565b91505092915050565b610a588161069b565b82525050565b6000608082019050610a7360008301876109c2565b610a806020830186610a4f565b8181036040830152610a928185610759565b90508181036060830152610aa68184610759565b905095945050505050565b6000602082019050610ac66000830184610a4f565b92915050565b6000610ad782610932565b9050919050565b610ae781610acc565b82525050565b6000608082019050610b0260008301876109c2565b610b0f6020830186610a4f565b8181036040830152610b218185610759565b9050610b306060830184610ade565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680610b8057607f821691505b602082108103610b9357610b92610b39565b5b5091905056fea2646970667358221220ead483ff462677d13e7d09238390794b68ab8bd7f4d925523d3ba8b3bfa8641f64736f6c63430008140033"; - -type BridgeStorageConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: BridgeStorageConstructorParams, -): xs is ConstructorParameters => xs.length > 1; - -export class BridgeStorage__factory extends ContractFactory { - constructor(...args: BridgeStorageConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - _nativeCoin: string, - _nativeChainId: BigNumberish, - overrides?: NonPayableOverrides & { from?: string }, - ): Promise { - return super.getDeployTransaction( - _nativeCoin, - _nativeChainId, - overrides || {}, - ); - } - override deploy( - _nativeCoin: string, - _nativeChainId: BigNumberish, - overrides?: NonPayableOverrides & { from?: string }, - ) { - return super.deploy( - _nativeCoin, - _nativeChainId, - overrides || {}, - ) as Promise< - BridgeStorage & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect(runner: ContractRunner | null): BridgeStorage__factory { - return super.connect(runner) as BridgeStorage__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): BridgeStorageInterface { - return new Interface(_abi) as BridgeStorageInterface; - } - static connect( - address: string, - runner?: ContractRunner | null, - ): BridgeStorage { - return new Contract(address, _abi, runner) as unknown as BridgeStorage; - } -} diff --git a/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/BridgeUtils__factory.ts b/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/BridgeUtils__factory.ts deleted file mode 100644 index c8d0178..0000000 --- a/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/BridgeUtils__factory.ts +++ /dev/null @@ -1,360 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { - Signer, - BigNumberish, - ContractDeployTransaction, - ContractRunner, -} from "ethers"; -import type { NonPayableOverrides } from "../../../common"; -import type { - BridgeUtils, - BridgeUtilsInterface, -} from "../../../contracts/BridgeComponents/BridgeUtils"; - -const _abi = [ - { - inputs: [ - { - internalType: "string", - name: "_nativeCoin", - type: "string", - }, - { - internalType: "uint16", - name: "_nativeChainId", - type: "uint16", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [ - { - internalType: "uint256", - name: "required", - type: "uint256", - }, - { - internalType: "uint256", - name: "approved", - type: "uint256", - }, - ], - name: "InsufficientApproval", - type: "error", - }, - { - inputs: [ - { - internalType: "uint256", - name: "declared", - type: "uint256", - }, - { - internalType: "uint256", - name: "provided", - type: "uint256", - }, - ], - name: "InsufficientFunds", - type: "error", - }, - { - inputs: [], - name: "UnsupportedToken", - type: "error", - }, - { - inputs: [], - name: "TVL", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "actionId", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "first", - type: "string", - }, - { - internalType: "string", - name: "second", - type: "string", - }, - ], - name: "areStringsEqual", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [], - name: "fees", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - name: "incomming", - outputs: [ - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - internalType: "uint16", - name: "chainId", - type: "uint16", - }, - { - internalType: "string", - name: "tokenSymbol", - type: "string", - }, - { - internalType: "address payable", - name: "destinationAddress", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "nativeChainId", - outputs: [ - { - internalType: "uint16", - name: "", - type: "uint16", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "nativeCoin", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - name: "nativeTokens", - outputs: [ - { - internalType: "address", - name: "constractAddress", - type: "address", - }, - { - internalType: "uint8", - name: "decimals", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - name: "outgoing", - outputs: [ - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - internalType: "uint16", - name: "chainId", - type: "uint16", - }, - { - internalType: "string", - name: "tokenSymbol", - type: "string", - }, - { - internalType: "string", - name: "destinationAddress", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint16", - name: "", - type: "uint16", - }, - ], - name: "supportedChains", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - name: "wrappedTokens", - outputs: [ - { - internalType: "address", - name: "constractAddress", - type: "address", - }, - { - internalType: "uint8", - name: "decimals", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -const _bytecode = - "0x60806040523480156200001157600080fd5b50604051620013673803806200136783398181016040528101906200003791906200025b565b8181600080819055506000600181905550600060028190555081600390816200006191906200050c565b5080600460006101000a81548161ffff021916908361ffff16021790555050505050620005f3565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620000f282620000a7565b810181811067ffffffffffffffff82111715620001145762000113620000b8565b5b80604052505050565b60006200012962000089565b9050620001378282620000e7565b919050565b600067ffffffffffffffff8211156200015a5762000159620000b8565b5b6200016582620000a7565b9050602081019050919050565b60005b838110156200019257808201518184015260208101905062000175565b60008484015250505050565b6000620001b5620001af846200013c565b6200011d565b905082815260208101848484011115620001d457620001d3620000a2565b5b620001e184828562000172565b509392505050565b600082601f8301126200020157620002006200009d565b5b8151620002138482602086016200019e565b91505092915050565b600061ffff82169050919050565b62000235816200021c565b81146200024157600080fd5b50565b60008151905062000255816200022a565b92915050565b6000806040838503121562000275576200027462000093565b5b600083015167ffffffffffffffff81111562000296576200029562000098565b5b620002a485828601620001e9565b9250506020620002b78582860162000244565b9150509250929050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200031457607f821691505b6020821081036200032a5762000329620002cc565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620003947fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000355565b620003a0868362000355565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620003ed620003e7620003e184620003b8565b620003c2565b620003b8565b9050919050565b6000819050919050565b6200040983620003cc565b620004216200041882620003f4565b84845462000362565b825550505050565b600090565b6200043862000429565b62000445818484620003fe565b505050565b5b818110156200046d57620004616000826200042e565b6001810190506200044b565b5050565b601f821115620004bc57620004868162000330565b620004918462000345565b81016020851015620004a1578190505b620004b9620004b08562000345565b8301826200044a565b50505b505050565b600082821c905092915050565b6000620004e160001984600802620004c1565b1980831691505092915050565b6000620004fc8383620004ce565b9150826002028217905092915050565b6200051782620002c1565b67ffffffffffffffff811115620005335762000532620000b8565b5b6200053f8254620002fb565b6200054c82828562000471565b600060209050601f8311600181146200058457600084156200056f578287015190505b6200057b8582620004ee565b865550620005eb565b601f198416620005948662000330565b60005b82811015620005be5784890151825560018201915060208501945060208101905062000597565b86831015620005de5784890151620005da601f891682620004ce565b8355505b6001600288020188555050505b505050505050565b610d6480620006036000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063aa810c4211610071578063aa810c4214610169578063b1496cd41461019c578063c1a68b38146101cc578063cb3f217d146101ea578063d174cb2b1461021b578063edaf2d2e1461024e576100a9565b806310d58783146100ae57806312afda25146100de578063167b78cd1461010f57806336b6e82b1461012d5780639af1d35a1461014b575b600080fd5b6100c860048036038101906100c39190610769565b61026c565b6040516100d59190610826565b60405180910390f35b6100f860048036038101906100f3919061097d565b61030c565b604051610106929190610a23565b60405180910390f35b610117610373565b6040516101249190610826565b60405180910390f35b610135610401565b6040516101429190610a65565b60405180910390f35b610153610407565b6040516101609190610a65565b60405180910390f35b610183600480360381019061017e9190610ab6565b61040d565b6040516101939493929190610af2565b60405180910390f35b6101b660048036038101906101b19190610b45565b61055b565b6040516101c39190610bd8565b60405180910390f35b6101d46105b4565b6040516101e19190610bf3565b60405180910390f35b61020460048036038101906101ff919061097d565b6105c8565b604051610212929190610a23565b60405180910390f35b61023560048036038101906102309190610ab6565b61062f565b6040516102459493929190610c2f565b60405180910390f35b610256610715565b6040516102639190610a65565b60405180910390f35b6009602052806000526040600020600091509050805461028b90610caa565b80601f01602080910402602001604051908101604052809291908181526020018280546102b790610caa565b80156103045780601f106102d957610100808354040283529160200191610304565b820191906000526020600020905b8154815290600101906020018083116102e757829003601f168201915b505050505081565b6007818051602081018201805184825260208301602085012081835280955050505050506000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060000160149054906101000a900460ff16905082565b6003805461038090610caa565b80601f01602080910402602001604051908101604052809291908181526020018280546103ac90610caa565b80156103f95780601f106103ce576101008083540402835291602001916103f9565b820191906000526020600020905b8154815290600101906020018083116103dc57829003601f168201915b505050505081565b60005481565b60025481565b60066020528060005260406000206000915090508060000154908060010160009054906101000a900461ffff169080600201805461044a90610caa565b80601f016020809104026020016040519081016040528092919081815260200182805461047690610caa565b80156104c35780601f10610498576101008083540402835291602001916104c3565b820191906000526020600020905b8154815290600101906020018083116104a657829003601f168201915b5050505050908060030180546104d890610caa565b80601f016020809104026020016040519081016040528092919081815260200182805461050490610caa565b80156105515780601f1061052657610100808354040283529160200191610551565b820191906000526020600020905b81548152906001019060200180831161053457829003601f168201915b5050505050905084565b60008160405160200161056e9190610d17565b60405160208183030381529060405280519060200120836040516020016105959190610d17565b6040516020818303038152906040528051906020012014905092915050565b600460009054906101000a900461ffff1681565b6008818051602081018201805184825260208301602085012081835280955050505050506000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060000160149054906101000a900460ff16905082565b60056020528060005260406000206000915090508060000154908060010160009054906101000a900461ffff169080600201805461066c90610caa565b80601f016020809104026020016040519081016040528092919081815260200182805461069890610caa565b80156106e55780601f106106ba576101008083540402835291602001916106e5565b820191906000526020600020905b8154815290600101906020018083116106c857829003601f168201915b5050505050908060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905084565b60015481565b6000604051905090565b600080fd5b600080fd5b600061ffff82169050919050565b6107468161072f565b811461075157600080fd5b50565b6000813590506107638161073d565b92915050565b60006020828403121561077f5761077e610725565b5b600061078d84828501610754565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156107d05780820151818401526020810190506107b5565b60008484015250505050565b6000601f19601f8301169050919050565b60006107f882610796565b61080281856107a1565b93506108128185602086016107b2565b61081b816107dc565b840191505092915050565b6000602082019050818103600083015261084081846107ed565b905092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61088a826107dc565b810181811067ffffffffffffffff821117156108a9576108a8610852565b5b80604052505050565b60006108bc61071b565b90506108c88282610881565b919050565b600067ffffffffffffffff8211156108e8576108e7610852565b5b6108f1826107dc565b9050602081019050919050565b82818337600083830152505050565b600061092061091b846108cd565b6108b2565b90508281526020810184848401111561093c5761093b61084d565b5b6109478482856108fe565b509392505050565b600082601f83011261096457610963610848565b5b813561097484826020860161090d565b91505092915050565b60006020828403121561099357610992610725565b5b600082013567ffffffffffffffff8111156109b1576109b061072a565b5b6109bd8482850161094f565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006109f1826109c6565b9050919050565b610a01816109e6565b82525050565b600060ff82169050919050565b610a1d81610a07565b82525050565b6000604082019050610a3860008301856109f8565b610a456020830184610a14565b9392505050565b6000819050919050565b610a5f81610a4c565b82525050565b6000602082019050610a7a6000830184610a56565b92915050565b6000819050919050565b610a9381610a80565b8114610a9e57600080fd5b50565b600081359050610ab081610a8a565b92915050565b600060208284031215610acc57610acb610725565b5b6000610ada84828501610aa1565b91505092915050565b610aec8161072f565b82525050565b6000608082019050610b076000830187610a56565b610b146020830186610ae3565b8181036040830152610b2681856107ed565b90508181036060830152610b3a81846107ed565b905095945050505050565b60008060408385031215610b5c57610b5b610725565b5b600083013567ffffffffffffffff811115610b7a57610b7961072a565b5b610b868582860161094f565b925050602083013567ffffffffffffffff811115610ba757610ba661072a565b5b610bb38582860161094f565b9150509250929050565b60008115159050919050565b610bd281610bbd565b82525050565b6000602082019050610bed6000830184610bc9565b92915050565b6000602082019050610c086000830184610ae3565b92915050565b6000610c19826109c6565b9050919050565b610c2981610c0e565b82525050565b6000608082019050610c446000830187610a56565b610c516020830186610ae3565b8181036040830152610c6381856107ed565b9050610c726060830184610c20565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680610cc257607f821691505b602082108103610cd557610cd4610c7b565b5b50919050565b600081905092915050565b6000610cf182610796565b610cfb8185610cdb565b9350610d0b8185602086016107b2565b80840191505092915050565b6000610d238284610ce6565b91508190509291505056fea2646970667358221220fed27c3840b3b5a54800f1020a55f3b492565a5286e5111838237ab4ce49cd3864736f6c63430008140033"; - -type BridgeUtilsConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: BridgeUtilsConstructorParams, -): xs is ConstructorParameters => xs.length > 1; - -export class BridgeUtils__factory extends ContractFactory { - constructor(...args: BridgeUtilsConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - _nativeCoin: string, - _nativeChainId: BigNumberish, - overrides?: NonPayableOverrides & { from?: string }, - ): Promise { - return super.getDeployTransaction( - _nativeCoin, - _nativeChainId, - overrides || {}, - ); - } - override deploy( - _nativeCoin: string, - _nativeChainId: BigNumberish, - overrides?: NonPayableOverrides & { from?: string }, - ) { - return super.deploy( - _nativeCoin, - _nativeChainId, - overrides || {}, - ) as Promise< - BridgeUtils & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect(runner: ContractRunner | null): BridgeUtils__factory { - return super.connect(runner) as BridgeUtils__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): BridgeUtilsInterface { - return new Interface(_abi) as BridgeUtilsInterface; - } - static connect(address: string, runner?: ContractRunner | null): BridgeUtils { - return new Contract(address, _abi, runner) as unknown as BridgeUtils; - } -} diff --git a/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/IBridgeContract__factory.ts b/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/IBridgeContract__factory.ts deleted file mode 100644 index fc9079c..0000000 --- a/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/IBridgeContract__factory.ts +++ /dev/null @@ -1,186 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - IBridgeContract, - IBridgeContractInterface, -} from "../../../contracts/BridgeComponents/IBridgeContract"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes32", - name: "txId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint16", - name: "fromChain", - type: "uint16", - }, - { - indexed: false, - internalType: "uint16", - name: "toChain", - type: "uint16", - }, - { - indexed: false, - internalType: "string", - name: "tokenSymbol", - type: "string", - }, - { - indexed: false, - internalType: "address", - name: "toAddress", - type: "address", - }, - ], - name: "ReceivedInstallment", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes32", - name: "txId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint16", - name: "fromChain", - type: "uint16", - }, - { - indexed: false, - internalType: "uint16", - name: "toChain", - type: "uint16", - }, - { - indexed: false, - internalType: "string", - name: "tokenSymbol", - type: "string", - }, - { - indexed: false, - internalType: "string", - name: "toAddress", - type: "string", - }, - ], - name: "SendInstallment", - type: "event", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "txId", - type: "bytes32", - }, - { - components: [ - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - internalType: "uint16", - name: "chainId", - type: "uint16", - }, - { - internalType: "string", - name: "tokenSymbol", - type: "string", - }, - { - internalType: "address payable", - name: "destinationAddress", - type: "address", - }, - ], - internalType: "struct BridgeStorage.InstallmentIn", - name: "params", - type: "tuple", - }, - ], - name: "receiveInstallment", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - internalType: "uint16", - name: "chainId", - type: "uint16", - }, - { - internalType: "string", - name: "tokenSymbol", - type: "string", - }, - { - internalType: "string", - name: "destinationAddress", - type: "string", - }, - ], - internalType: "struct BridgeStorage.InstallmentOut", - name: "params", - type: "tuple", - }, - ], - name: "sendInstallment", - outputs: [], - stateMutability: "payable", - type: "function", - }, -] as const; - -export class IBridgeContract__factory { - static readonly abi = _abi; - static createInterface(): IBridgeContractInterface { - return new Interface(_abi) as IBridgeContractInterface; - } - static connect( - address: string, - runner?: ContractRunner | null, - ): IBridgeContract { - return new Contract(address, _abi, runner) as unknown as IBridgeContract; - } -} diff --git a/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/IERC20MinterBurner__factory.ts b/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/IERC20MinterBurner__factory.ts deleted file mode 100644 index 2b11b64..0000000 --- a/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/IERC20MinterBurner__factory.ts +++ /dev/null @@ -1,61 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - IERC20MinterBurner, - IERC20MinterBurnerInterface, -} from "../../../contracts/BridgeComponents/IERC20MinterBurner"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "from", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "burnFrom", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "mint", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IERC20MinterBurner__factory { - static readonly abi = _abi; - static createInterface(): IERC20MinterBurnerInterface { - return new Interface(_abi) as IERC20MinterBurnerInterface; - } - static connect( - address: string, - runner?: ContractRunner | null, - ): IERC20MinterBurner { - return new Contract(address, _abi, runner) as unknown as IERC20MinterBurner; - } -} diff --git a/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/IMappingAdmin__factory.ts b/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/IMappingAdmin__factory.ts deleted file mode 100644 index 5e69b0d..0000000 --- a/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/IMappingAdmin__factory.ts +++ /dev/null @@ -1,107 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - IMappingAdmin, - IMappingAdminInterface, -} from "../../../contracts/BridgeComponents/IMappingAdmin"; - -const _abi = [ - { - inputs: [ - { - internalType: "uint16", - name: "_chainId", - type: "uint16", - }, - { - internalType: "string", - name: "_chainName", - type: "string", - }, - ], - name: "addChain", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "_symbol", - type: "string", - }, - { - internalType: "address", - name: "_contract", - type: "address", - }, - { - internalType: "uint8", - name: "_decimals", - type: "uint8", - }, - ], - name: "mapNativeContract", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "_symbol", - type: "string", - }, - { - internalType: "address", - name: "_contract", - type: "address", - }, - { - internalType: "uint8", - name: "_decimals", - type: "uint8", - }, - ], - name: "mapWrappedContract", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint16", - name: "_chainId", - type: "uint16", - }, - { - internalType: "string", - name: "_chainName", - type: "string", - }, - ], - name: "updateChain", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IMappingAdmin__factory { - static readonly abi = _abi; - static createInterface(): IMappingAdminInterface { - return new Interface(_abi) as IMappingAdminInterface; - } - static connect( - address: string, - runner?: ContractRunner | null, - ): IMappingAdmin { - return new Contract(address, _abi, runner) as unknown as IMappingAdmin; - } -} diff --git a/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/WrappedERC20__factory.ts b/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/WrappedERC20__factory.ts deleted file mode 100644 index 5e1ba22..0000000 --- a/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/WrappedERC20__factory.ts +++ /dev/null @@ -1,707 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { - Signer, - BigNumberish, - AddressLike, - ContractDeployTransaction, - ContractRunner, -} from "ethers"; -import type { NonPayableOverrides } from "../../../common"; -import type { - WrappedERC20, - WrappedERC20Interface, -} from "../../../contracts/BridgeComponents/WrappedERC20"; - -const _abi = [ - { - inputs: [ - { - internalType: "string", - name: "symbol_", - type: "string", - }, - { - internalType: "address", - name: "_bridge", - type: "address", - }, - { - internalType: "uint8", - name: "decimals_", - type: "uint8", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "AccessControlBadConfirmation", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - { - internalType: "bytes32", - name: "neededRole", - type: "bytes32", - }, - ], - name: "AccessControlUnauthorizedAccount", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "allowance", - type: "uint256", - }, - { - internalType: "uint256", - name: "needed", - type: "uint256", - }, - ], - name: "ERC20InsufficientAllowance", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "sender", - type: "address", - }, - { - internalType: "uint256", - name: "balance", - type: "uint256", - }, - { - internalType: "uint256", - name: "needed", - type: "uint256", - }, - ], - name: "ERC20InsufficientBalance", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "approver", - type: "address", - }, - ], - name: "ERC20InvalidApprover", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "receiver", - type: "address", - }, - ], - name: "ERC20InvalidReceiver", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "ERC20InvalidSender", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - ], - name: "ERC20InvalidSpender", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "owner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "spender", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Approval", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "previousAdminRole", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "newAdminRole", - type: "bytes32", - }, - ], - name: "RoleAdminChanged", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleGranted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleRevoked", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "from", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Transfer", - type: "event", - }, - { - inputs: [], - name: "BRIDGE_ROLE", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "DEFAULT_ADMIN_ROLE", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - { - internalType: "address", - name: "spender", - type: "address", - }, - ], - name: "allowance", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "balanceOf", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "burnFrom", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "decimals", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - ], - name: "getRoleAdmin", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "grantRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "hasRole", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "mint", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "name", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "callerConfirmation", - type: "address", - }, - ], - name: "renounceRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "revokeRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes4", - name: "interfaceId", - type: "bytes4", - }, - ], - name: "supportsInterface", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "symbol", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "totalSupply", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "transfer", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "from", - type: "address", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "transferFrom", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint8", - name: "newDecimals", - type: "uint8", - }, - ], - name: "updateDecimals", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -const _bytecode = - "0x60806040523480156200001157600080fd5b50604051620025b0380380620025b0833981810160405281019062000037919062000484565b826040516020016200004a919062000572565b6040516020818303038152906040528381600390816200006b9190620007dc565b5080600490816200007d9190620007dc565b505050620000b27f52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5f83620000d760201b60201c565b5080600660006101000a81548160ff021916908360ff160217905550505050620008c3565b6000620000eb8383620001db60201b60201c565b620001d05760016005600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200016c6200024660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050620001d5565b600090505b92915050565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620002b7826200026c565b810181811067ffffffffffffffff82111715620002d957620002d86200027d565b5b80604052505050565b6000620002ee6200024e565b9050620002fc8282620002ac565b919050565b600067ffffffffffffffff8211156200031f576200031e6200027d565b5b6200032a826200026c565b9050602081019050919050565b60005b83811015620003575780820151818401526020810190506200033a565b60008484015250505050565b60006200037a620003748462000301565b620002e2565b90508281526020810184848401111562000399576200039862000267565b5b620003a684828562000337565b509392505050565b600082601f830112620003c657620003c562000262565b5b8151620003d884826020860162000363565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200040e82620003e1565b9050919050565b620004208162000401565b81146200042c57600080fd5b50565b600081519050620004408162000415565b92915050565b600060ff82169050919050565b6200045e8162000446565b81146200046a57600080fd5b50565b6000815190506200047e8162000453565b92915050565b600080600060608486031215620004a0576200049f62000258565b5b600084015167ffffffffffffffff811115620004c157620004c06200025d565b5b620004cf86828701620003ae565b9350506020620004e2868287016200042f565b9250506040620004f5868287016200046d565b9150509250925092565b7f656d2e0000000000000000000000000000000000000000000000000000000000815250565b600081519050919050565b600081905092915050565b6000620005488262000525565b62000554818562000530565b93506200056681856020860162000337565b80840191505092915050565b60006200057f82620004ff565b6003820191506200059182846200053b565b915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620005e457607f821691505b602082108103620005fa57620005f96200059c565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006647fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000625565b62000670868362000625565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620006bd620006b7620006b18462000688565b62000692565b62000688565b9050919050565b6000819050919050565b620006d9836200069c565b620006f1620006e882620006c4565b84845462000632565b825550505050565b600090565b62000708620006f9565b62000715818484620006ce565b505050565b5b818110156200073d5762000731600082620006fe565b6001810190506200071b565b5050565b601f8211156200078c57620007568162000600565b620007618462000615565b8101602085101562000771578190505b62000789620007808562000615565b8301826200071a565b50505b505050565b600082821c905092915050565b6000620007b16000198460080262000791565b1980831691505092915050565b6000620007cc83836200079e565b9150826002028217905092915050565b620007e78262000525565b67ffffffffffffffff8111156200080357620008026200027d565b5b6200080f8254620005cb565b6200081c82828562000741565b600060209050601f8311600181146200085457600084156200083f578287015190505b6200084b8582620007be565b865550620008bb565b601f198416620008648662000600565b60005b828110156200088e5784890151825560018201915060208501945060208101905062000867565b86831015620008ae5784890151620008aa601f8916826200079e565b8355505b6001600288020188555050505b505050505050565b611cdd80620008d36000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c806340c10f19116100ad578063a217fddf11610071578063a217fddf14610355578063a9059cbb14610373578063b5bfddea146103a3578063d547741f146103c1578063dd62ed3e146103dd5761012c565b806340c10f191461029f57806370a08231146102bb57806379cc6790146102eb57806391d148541461030757806395d89b41146103375761012c565b806323b872dd116100f457806323b872dd146101e9578063248a9ca3146102195780632f2ff15d14610249578063313ce5671461026557806336568abe146102835761012c565b806301ffc9a71461013157806306fdde0314610161578063095ea7b31461017f5780630ce83a61146101af57806318160ddd146101cb575b600080fd5b61014b6004803603810190610146919061150e565b61040d565b6040516101589190611556565b60405180910390f35b610169610487565b6040516101769190611601565b60405180910390f35b610199600480360381019061019491906116b7565b610519565b6040516101a69190611556565b60405180910390f35b6101c960048036038101906101c49190611730565b61053c565b005b6101d3610621565b6040516101e0919061176c565b60405180910390f35b61020360048036038101906101fe9190611787565b61062b565b6040516102109190611556565b60405180910390f35b610233600480360381019061022e9190611810565b61065a565b604051610240919061184c565b60405180910390f35b610263600480360381019061025e9190611867565b61067a565b005b61026d61069c565b60405161027a91906118b6565b60405180910390f35b61029d60048036038101906102989190611867565b6106b3565b005b6102b960048036038101906102b491906116b7565b61072e565b005b6102d560048036038101906102d091906118d1565b61085e565b6040516102e2919061176c565b60405180910390f35b610305600480360381019061030091906116b7565b6108a6565b005b610321600480360381019061031c9190611867565b610967565b60405161032e9190611556565b60405180910390f35b61033f6109d2565b60405161034c9190611601565b60405180910390f35b61035d610a64565b60405161036a919061184c565b60405180910390f35b61038d600480360381019061038891906116b7565b610a6b565b60405161039a9190611556565b60405180910390f35b6103ab610a8e565b6040516103b8919061184c565b60405180910390f35b6103db60048036038101906103d69190611867565b610ab2565b005b6103f760048036038101906103f291906118fe565b610ad4565b604051610404919061176c565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610480575061047f82610b5b565b5b9050919050565b6060600380546104969061196d565b80601f01602080910402602001604051908101604052809291908181526020018280546104c29061196d565b801561050f5780601f106104e45761010080835404028352916020019161050f565b820191906000526020600020905b8154815290600101906020018083116104f257829003601f168201915b5050505050905090565b600080610524610bc5565b9050610531818585610bcd565b600191505092915050565b61056d7f52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5f610568610bc5565b610967565b6105ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105a3906119ea565b60405180910390fd5b8060ff166000111580156105c4575060128160ff1611155b610603576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105fa90611a56565b60405180910390fd5b80600660006101000a81548160ff021916908360ff16021790555050565b6000600254905090565b600080610636610bc5565b9050610643858285610bdf565b61064e858585610c73565b60019150509392505050565b600060056000838152602001908152602001600020600101549050919050565b6106838261065a565b61068c81610d67565b6106968383610d7b565b50505050565b6000600660009054906101000a900460ff16905090565b6106bb610bc5565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461071f576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107298282610e6d565b505050565b61075f7f52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5f61075a610bc5565b610967565b61079e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610795906119ea565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361080d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080490611ac2565b60405180910390fd5b60008111610850576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084790611b2e565b60405180910390fd5b61085a8282610f60565b5050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6108d77f52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5f6108d2610bc5565b610967565b610916576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090d906119ea565b60405180910390fd5b60008111610959576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095090611b9a565b60405180910390fd5b6109638282610fe2565b5050565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600480546109e19061196d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0d9061196d565b8015610a5a5780601f10610a2f57610100808354040283529160200191610a5a565b820191906000526020600020905b815481529060010190602001808311610a3d57829003601f168201915b5050505050905090565b6000801b81565b600080610a76610bc5565b9050610a83818585610c73565b600191505092915050565b7f52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5f81565b610abb8261065a565b610ac481610d67565b610ace8383610e6d565b50505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b610bda8383836001611064565b505050565b6000610beb8484610ad4565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610c6d5781811015610c5d578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610c5493929190611bc9565b60405180910390fd5b610c6c84848484036000611064565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ce55760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610cdc9190611c00565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d575760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610d4e9190611c00565b60405180910390fd5b610d6283838361123b565b505050565b610d7881610d73610bc5565b611460565b50565b6000610d878383610967565b610e625760016005600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610dff610bc5565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050610e67565b600090505b92915050565b6000610e798383610967565b15610f555760006005600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610ef2610bc5565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050610f5a565b600090505b92915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610fd25760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610fc99190611c00565b60405180910390fd5b610fde6000838361123b565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110545760006040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260040161104b9190611c00565b60405180910390fd5b6110608260008361123b565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036110d65760006040517fe602df050000000000000000000000000000000000000000000000000000000081526004016110cd9190611c00565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036111485760006040517f94280d6200000000000000000000000000000000000000000000000000000000815260040161113f9190611c00565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508015611235578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161122c919061176c565b60405180910390a35b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361128d5780600260008282546112819190611c4a565b92505081905550611360565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611319578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161131093929190611bc9565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113a957806002600082825403925050819055506113f6565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611453919061176c565b60405180910390a3505050565b61146a8282610967565b6114ad5780826040517fe2517d3f0000000000000000000000000000000000000000000000000000000081526004016114a4929190611c7e565b60405180910390fd5b5050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6114eb816114b6565b81146114f657600080fd5b50565b600081359050611508816114e2565b92915050565b600060208284031215611524576115236114b1565b5b6000611532848285016114f9565b91505092915050565b60008115159050919050565b6115508161153b565b82525050565b600060208201905061156b6000830184611547565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156115ab578082015181840152602081019050611590565b60008484015250505050565b6000601f19601f8301169050919050565b60006115d382611571565b6115dd818561157c565b93506115ed81856020860161158d565b6115f6816115b7565b840191505092915050565b6000602082019050818103600083015261161b81846115c8565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061164e82611623565b9050919050565b61165e81611643565b811461166957600080fd5b50565b60008135905061167b81611655565b92915050565b6000819050919050565b61169481611681565b811461169f57600080fd5b50565b6000813590506116b18161168b565b92915050565b600080604083850312156116ce576116cd6114b1565b5b60006116dc8582860161166c565b92505060206116ed858286016116a2565b9150509250929050565b600060ff82169050919050565b61170d816116f7565b811461171857600080fd5b50565b60008135905061172a81611704565b92915050565b600060208284031215611746576117456114b1565b5b60006117548482850161171b565b91505092915050565b61176681611681565b82525050565b6000602082019050611781600083018461175d565b92915050565b6000806000606084860312156117a05761179f6114b1565b5b60006117ae8682870161166c565b93505060206117bf8682870161166c565b92505060406117d0868287016116a2565b9150509250925092565b6000819050919050565b6117ed816117da565b81146117f857600080fd5b50565b60008135905061180a816117e4565b92915050565b600060208284031215611826576118256114b1565b5b6000611834848285016117fb565b91505092915050565b611846816117da565b82525050565b6000602082019050611861600083018461183d565b92915050565b6000806040838503121561187e5761187d6114b1565b5b600061188c858286016117fb565b925050602061189d8582860161166c565b9150509250929050565b6118b0816116f7565b82525050565b60006020820190506118cb60008301846118a7565b92915050565b6000602082840312156118e7576118e66114b1565b5b60006118f58482850161166c565b91505092915050565b60008060408385031215611915576119146114b1565b5b60006119238582860161166c565b92505060206119348582860161166c565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061198557607f821691505b6020821081036119985761199761193e565b5b50919050565b7f556e617574686f72697365642063616c6c000000000000000000000000000000600082015250565b60006119d460118361157c565b91506119df8261199e565b602082019050919050565b60006020820190508181036000830152611a03816119c7565b9050919050565b7f52657175697265643a2030203c3d206e6577446563696d616c73203c3d203138600082015250565b6000611a4060208361157c565b9150611a4b82611a0a565b602082019050919050565b60006020820190508181036000830152611a6f81611a33565b9050919050565b7f4d696e74696e6720617474656d707420746f2061646472657373207a65726f00600082015250565b6000611aac601f8361157c565b9150611ab782611a76565b602082019050919050565b60006020820190508181036000830152611adb81611a9f565b9050919050565b7f417474656d707420746f206d696e74207a65726f20746f6b656e730000000000600082015250565b6000611b18601b8361157c565b9150611b2382611ae2565b602082019050919050565b60006020820190508181036000830152611b4781611b0b565b9050919050565b7f417474656d707420746f206275726e207a65726f20746f6b656e730000000000600082015250565b6000611b84601b8361157c565b9150611b8f82611b4e565b602082019050919050565b60006020820190508181036000830152611bb381611b77565b9050919050565b611bc381611643565b82525050565b6000606082019050611bde6000830186611bba565b611beb602083018561175d565b611bf8604083018461175d565b949350505050565b6000602082019050611c156000830184611bba565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611c5582611681565b9150611c6083611681565b9250828201905080821115611c7857611c77611c1b565b5b92915050565b6000604082019050611c936000830185611bba565b611ca0602083018461183d565b939250505056fea26469706673582212207e9ea31bfc5e2a61b97d666b221eb29929b8aec1a21b14cc8fd80eb7c4aa35fd64736f6c63430008140033"; - -type WrappedERC20ConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: WrappedERC20ConstructorParams, -): xs is ConstructorParameters => xs.length > 1; - -export class WrappedERC20__factory extends ContractFactory { - constructor(...args: WrappedERC20ConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - symbol_: string, - _bridge: AddressLike, - decimals_: BigNumberish, - overrides?: NonPayableOverrides & { from?: string }, - ): Promise { - return super.getDeployTransaction( - symbol_, - _bridge, - decimals_, - overrides || {}, - ); - } - override deploy( - symbol_: string, - _bridge: AddressLike, - decimals_: BigNumberish, - overrides?: NonPayableOverrides & { from?: string }, - ) { - return super.deploy( - symbol_, - _bridge, - decimals_, - overrides || {}, - ) as Promise< - WrappedERC20 & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect(runner: ContractRunner | null): WrappedERC20__factory { - return super.connect(runner) as WrappedERC20__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): WrappedERC20Interface { - return new Interface(_abi) as WrappedERC20Interface; - } - static connect( - address: string, - runner?: ContractRunner | null, - ): WrappedERC20 { - return new Contract(address, _abi, runner) as unknown as WrappedERC20; - } -} diff --git a/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/index.ts b/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/index.ts deleted file mode 100644 index 167d46e..0000000 --- a/src/contracts/evm/typechain-types/factories/contracts/BridgeComponents/index.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { BridgeSecurity__factory } from "./BridgeSecurity__factory"; -export { BridgeStorage__factory } from "./BridgeStorage__factory"; -export { BridgeUtils__factory } from "./BridgeUtils__factory"; -export { IBridgeContract__factory } from "./IBridgeContract__factory"; -export { IERC20MinterBurner__factory } from "./IERC20MinterBurner__factory"; -export { IMappingAdmin__factory } from "./IMappingAdmin__factory"; -export { WrappedERC20__factory } from "./WrappedERC20__factory"; diff --git a/src/contracts/evm/typechain-types/factories/contracts/FTBridge__factory.ts b/src/contracts/evm/typechain-types/factories/contracts/FTBridge__factory.ts deleted file mode 100644 index f657efc..0000000 --- a/src/contracts/evm/typechain-types/factories/contracts/FTBridge__factory.ts +++ /dev/null @@ -1,1024 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { - Signer, - BigNumberish, - ContractDeployTransaction, - ContractRunner, -} from "ethers"; -import type { NonPayableOverrides } from "../../common"; -import type { FTBridge, FTBridgeInterface } from "../../contracts/FTBridge"; - -const _abi = [ - { - inputs: [ - { - internalType: "string", - name: "_nativeCoin", - type: "string", - }, - { - internalType: "uint16", - name: "_nativeChainId", - type: "uint16", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "AccessControlBadConfirmation", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - { - internalType: "bytes32", - name: "neededRole", - type: "bytes32", - }, - ], - name: "AccessControlUnauthorizedAccount", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "target", - type: "address", - }, - ], - name: "AddressEmptyCode", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "AddressInsufficientBalance", - type: "error", - }, - { - inputs: [], - name: "EnforcedPause", - type: "error", - }, - { - inputs: [], - name: "ExpectedPause", - type: "error", - }, - { - inputs: [], - name: "FailedInnerCall", - type: "error", - }, - { - inputs: [ - { - internalType: "uint256", - name: "required", - type: "uint256", - }, - { - internalType: "uint256", - name: "approved", - type: "uint256", - }, - ], - name: "InsufficientApproval", - type: "error", - }, - { - inputs: [ - { - internalType: "uint256", - name: "declared", - type: "uint256", - }, - { - internalType: "uint256", - name: "provided", - type: "uint256", - }, - ], - name: "InsufficientFunds", - type: "error", - }, - { - inputs: [], - name: "ReentrancyGuardReentrantCall", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - ], - name: "SafeERC20FailedOperation", - type: "error", - }, - { - inputs: [], - name: "UnsupportedToken", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "Paused", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes32", - name: "txId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint16", - name: "fromChain", - type: "uint16", - }, - { - indexed: false, - internalType: "uint16", - name: "toChain", - type: "uint16", - }, - { - indexed: false, - internalType: "string", - name: "tokenSymbol", - type: "string", - }, - { - indexed: false, - internalType: "address", - name: "toAddress", - type: "address", - }, - ], - name: "ReceivedInstallment", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "previousAdminRole", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "newAdminRole", - type: "bytes32", - }, - ], - name: "RoleAdminChanged", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleGranted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleRevoked", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes32", - name: "txId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint16", - name: "fromChain", - type: "uint16", - }, - { - indexed: false, - internalType: "uint16", - name: "toChain", - type: "uint16", - }, - { - indexed: false, - internalType: "string", - name: "tokenSymbol", - type: "string", - }, - { - indexed: false, - internalType: "string", - name: "toAddress", - type: "string", - }, - ], - name: "SendInstallment", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "Unpaused", - type: "event", - }, - { - stateMutability: "payable", - type: "fallback", - }, - { - inputs: [], - name: "BRIDGE_VALIDATOR_ROLE", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "DEFAULT_ADMIN_ROLE", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "MAPPING_ADMIN_ROLE", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "PAUSER_ROLE", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "TVL", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "WITHDRAWER_ROLE", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "actionId", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint16", - name: "_chainId", - type: "uint16", - }, - { - internalType: "string", - name: "_chainName", - type: "string", - }, - ], - name: "addChain", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_validator", - type: "address", - }, - ], - name: "addValidator", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "first", - type: "string", - }, - { - internalType: "string", - name: "second", - type: "string", - }, - ], - name: "areStringsEqual", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [], - name: "fees", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - ], - name: "getRoleAdmin", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "grantRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "hasRole", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - name: "incomming", - outputs: [ - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - internalType: "uint16", - name: "chainId", - type: "uint16", - }, - { - internalType: "string", - name: "tokenSymbol", - type: "string", - }, - { - internalType: "address payable", - name: "destinationAddress", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "_symbol", - type: "string", - }, - { - internalType: "address", - name: "_contract", - type: "address", - }, - { - internalType: "uint8", - name: "_decimals", - type: "uint8", - }, - ], - name: "mapNativeContract", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "_symbol", - type: "string", - }, - { - internalType: "address", - name: "_contract", - type: "address", - }, - { - internalType: "uint8", - name: "_decimals", - type: "uint8", - }, - ], - name: "mapWrappedContract", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "nativeChainId", - outputs: [ - { - internalType: "uint16", - name: "", - type: "uint16", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "nativeCoin", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - name: "nativeTokens", - outputs: [ - { - internalType: "address", - name: "constractAddress", - type: "address", - }, - { - internalType: "uint8", - name: "decimals", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - name: "outgoing", - outputs: [ - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - internalType: "uint16", - name: "chainId", - type: "uint16", - }, - { - internalType: "string", - name: "tokenSymbol", - type: "string", - }, - { - internalType: "string", - name: "destinationAddress", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "pause", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "paused", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "txId", - type: "bytes32", - }, - { - components: [ - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - internalType: "uint16", - name: "chainId", - type: "uint16", - }, - { - internalType: "string", - name: "tokenSymbol", - type: "string", - }, - { - internalType: "address payable", - name: "destinationAddress", - type: "address", - }, - ], - internalType: "struct BridgeStorage.InstallmentIn", - name: "params", - type: "tuple", - }, - ], - name: "receiveInstallment", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_validator", - type: "address", - }, - ], - name: "removeValidator", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "callerConfirmation", - type: "address", - }, - ], - name: "renounceRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "revokeRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - internalType: "uint16", - name: "chainId", - type: "uint16", - }, - { - internalType: "string", - name: "tokenSymbol", - type: "string", - }, - { - internalType: "string", - name: "destinationAddress", - type: "string", - }, - ], - internalType: "struct BridgeStorage.InstallmentOut", - name: "params", - type: "tuple", - }, - ], - name: "sendInstallment", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint16", - name: "", - type: "uint16", - }, - ], - name: "supportedChains", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes4", - name: "interfaceId", - type: "bytes4", - }, - ], - name: "supportsInterface", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "unpause", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint16", - name: "_chainId", - type: "uint16", - }, - { - internalType: "string", - name: "_chainName", - type: "string", - }, - ], - name: "updateChain", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "withdrawFees", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - name: "wrappedTokens", - outputs: [ - { - internalType: "address", - name: "constractAddress", - type: "address", - }, - { - internalType: "uint8", - name: "decimals", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - stateMutability: "payable", - type: "receive", - }, -] as const; - -const _bytecode = - "0x60806040523480156200001157600080fd5b5060405162007949380380620079498339818101604052810190620000379190620004e4565b818181816000808190555060006001819055506000600281905550816003908162000063919062000795565b5080600460006101000a81548161ffff021916908361ffff160217905550505050506000600b60006101000a81548160ff0219169083151502179055506001600c81905550620000cc6000801b620000c06200019b60201b60201c565b620001a360201b60201c565b506200010e7f91254af6ef471a2b22aab0d27dac912f65156059964a7fe1f3f45622a2a502c3620001026200019b60201b60201c565b620001a360201b60201c565b50620001507f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a620001446200019b60201b60201c565b620001a360201b60201c565b50620001927f10dac8c06a04bec0b551627dad28bc00d6516b0caacd1c7b345fcdb5211334e4620001866200019b60201b60201c565b620001a360201b60201c565b5050506200087c565b600033905090565b6000620001b78383620002a760201b60201c565b6200029c576001600a600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620002386200019b60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050620002a1565b600090505b92915050565b6000600a600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200037b8262000330565b810181811067ffffffffffffffff821117156200039d576200039c62000341565b5b80604052505050565b6000620003b262000312565b9050620003c0828262000370565b919050565b600067ffffffffffffffff821115620003e357620003e262000341565b5b620003ee8262000330565b9050602081019050919050565b60005b838110156200041b578082015181840152602081019050620003fe565b60008484015250505050565b60006200043e6200043884620003c5565b620003a6565b9050828152602081018484840111156200045d576200045c6200032b565b5b6200046a848285620003fb565b509392505050565b600082601f8301126200048a576200048962000326565b5b81516200049c84826020860162000427565b91505092915050565b600061ffff82169050919050565b620004be81620004a5565b8114620004ca57600080fd5b50565b600081519050620004de81620004b3565b92915050565b60008060408385031215620004fe57620004fd6200031c565b5b600083015167ffffffffffffffff8111156200051f576200051e62000321565b5b6200052d8582860162000472565b92505060206200054085828601620004cd565b9150509250929050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200059d57607f821691505b602082108103620005b357620005b262000555565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200061d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620005de565b620006298683620005de565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000676620006706200066a8462000641565b6200064b565b62000641565b9050919050565b6000819050919050565b620006928362000655565b620006aa620006a1826200067d565b848454620005eb565b825550505050565b600090565b620006c1620006b2565b620006ce81848462000687565b505050565b5b81811015620006f657620006ea600082620006b7565b600181019050620006d4565b5050565b601f82111562000745576200070f81620005b9565b6200071a84620005ce565b810160208510156200072a578190505b620007426200073985620005ce565b830182620006d3565b50505b505050565b600082821c905092915050565b60006200076a600019846008026200074a565b1980831691505092915050565b600062000785838362000757565b9150826002028217905092915050565b620007a0826200054a565b67ffffffffffffffff811115620007bc57620007bb62000341565b5b620007c8825462000584565b620007d5828285620006fa565b600060209050601f8311600181146200080d5760008415620007f8578287015190505b62000804858262000777565b86555062000874565b601f1984166200081d86620005b9565b60005b82811015620008475784890151825560018201915060208501945060208101905062000820565b8683101562000867578489015162000863601f89168262000757565b8355505b6001600288020188555050505b505050505050565b6170bd806200088c6000396000f3fe6080604052600436106200022f5760003560e01c8063476343ee1162000127578063aa810c4211620000af578063d174cb2b1162000079578063d174cb2b14620007ec578063d547741f1462000833578063e63ab1e91462000861578063edaf2d2e1462000891578063f53eedd914620008c15762000237565b8063aa810c4214620006ec578063b1496cd41462000733578063c1a68b381462000777578063cb3f217d14620007a75762000237565b806385f438c111620000f157806385f438c1146200061857806391d1485414620006485780639af1d35a146200068c578063a217fddf14620006bc5762000237565b8063476343ee14620005865780634d238c8e14620005a05780635c975abb14620005ce5780638456cb5914620005fe5762000237565b80631d2f4ef711620001b757806336568abe116200018157806336568abe14620004b057806336b6e82b14620004de5780633f4ba83a146200050e57806340a141ff14620005285780634247836814620005565762000237565b80631d2f4ef714620003e0578063248a9ca3146200040e5780632db63e1d14620004525780632f2ff15d14620004825762000237565b80631252189611620001f957806312521896146200030f57806312afda25146200033d578063143251bc1462000382578063167b78cd14620003b05762000237565b806301ffc9a714620002395780630bd819d9146200027d5780630e6cc43a14620002ab57806310d5878314620002cb5762000237565b366200023757005b005b3480156200024657600080fd5b506200026560048036038101906200025f9190620030f7565b620008e1565b60405162000274919062003146565b60405180910390f35b3480156200028a57600080fd5b50620002a96004803603810190620002a3919062003304565b6200095e565b005b620002c96004803603810190620002c3919062003472565b6200099b565b005b348015620002d857600080fd5b50620002f76004803603810190620002f19190620034c3565b62000b1c565b6040516200030691906200357e565b60405180910390f35b3480156200031c57600080fd5b506200033b600480360381019062000335919062003645565b62000bc4565b005b3480156200034a57600080fd5b50620003696004803603810190620003639190620036c0565b62000c03565b6040516200037992919062003733565b60405180910390f35b3480156200038f57600080fd5b50620003ae6004803603810190620003a8919062003304565b62000c6a565b005b348015620003bd57600080fd5b50620003c862000ca7565b604051620003d791906200357e565b60405180910390f35b348015620003ed57600080fd5b506200040c600480360381019062000406919062003645565b62000d3d565b005b3480156200041b57600080fd5b506200043a60048036038101906200043491906200379b565b62000d7c565b604051620004499190620037de565b60405180910390f35b3480156200045f57600080fd5b506200046a62000d9c565b604051620004799190620037de565b60405180910390f35b3480156200048f57600080fd5b50620004ae6004803603810190620004a89190620037fb565b62000dc0565b005b348015620004bd57600080fd5b50620004dc6004803603810190620004d69190620037fb565b62000de8565b005b348015620004eb57600080fd5b50620004f662000e68565b60405162000505919062003853565b60405180910390f35b3480156200051b57600080fd5b506200052662000e6e565b005b3480156200053557600080fd5b506200055460048036038101906200054e919062003870565b62000ea7565b005b3480156200056357600080fd5b506200056e62000ee6565b6040516200057d9190620037de565b60405180910390f35b3480156200059357600080fd5b506200059e62000f0a565b005b348015620005ad57600080fd5b50620005cc6004803603810190620005c6919062003870565b62000f43565b005b348015620005db57600080fd5b50620005e662000f82565b604051620005f5919062003146565b60405180910390f35b3480156200060b57600080fd5b506200061662000f99565b005b3480156200062557600080fd5b506200063062000fd2565b6040516200063f9190620037de565b60405180910390f35b3480156200065557600080fd5b506200067460048036038101906200066e9190620037fb565b62000ff6565b60405162000683919062003146565b60405180910390f35b3480156200069957600080fd5b50620006a462001061565b604051620006b3919062003853565b60405180910390f35b348015620006c957600080fd5b50620006d462001067565b604051620006e39190620037de565b60405180910390f35b348015620006f957600080fd5b506200071860048036038101906200071291906200379b565b6200106e565b6040516200072a9493929190620038b3565b60405180910390f35b3480156200074057600080fd5b506200075f60048036038101906200075991906200390e565b620011cc565b6040516200076e919062003146565b60405180910390f35b3480156200078457600080fd5b506200078f62001229565b6040516200079e919062003993565b60405180910390f35b348015620007b457600080fd5b50620007d36004803603810190620007cd9190620036c0565b6200123d565b604051620007e392919062003733565b60405180910390f35b348015620007f957600080fd5b506200081860048036038101906200081291906200379b565b620012a4565b6040516200082a9493929190620039d5565b60405180910390f35b3480156200084057600080fd5b506200085f6004803603810190620008599190620037fb565b62001392565b005b3480156200086e57600080fd5b5062000879620013ba565b604051620008889190620037de565b60405180910390f35b3480156200089e57600080fd5b50620008a9620013de565b604051620008b8919062003853565b60405180910390f35b620008df6004803603810190620008d9919062003afe565b620013e4565b005b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480620009575750620009568262001562565b5b9050919050565b7f91254af6ef471a2b22aab0d27dac912f65156059964a7fe1f3f45622a2a502c36200098a81620015cc565b620009968383620015e4565b505050565b620009a562001660565b620009af620016a4565b620009c381600001518260200151620016eb565b6000806000620009d7846040015162001782565b92509250925082158015620009ea575081155b8015620009f5575080155b1562000a2d576040517f6a17288200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b821562000a445762000a4384600001516200194c565b5b811562000a605762000a5f84604001518560000151620019f2565b5b801562000a7c5762000a7b8460400151856000015162001bb3565b5b60008081548092919062000a909062003b93565b9190505550600062000aa6856020015162001dd7565b90507f9fc6f5dd9d96555725c0424efb1caac520680e0a3ec858a4ec8dcfcb24409e60856000015182600460009054906101000a900461ffff16886020015189604001518a6060015160405162000b039695949392919062003be0565b60405180910390a15050505062000b1962001e8f565b50565b6009602052806000526040600020600091509050805462000b3d9062003c8a565b80601f016020809104026020016040519081016040528092919081815260200182805462000b6b9062003c8a565b801562000bbc5780601f1062000b905761010080835404028352916020019162000bbc565b820191906000526020600020905b81548152906001019060200180831162000b9e57829003601f168201915b505050505081565b7f91254af6ef471a2b22aab0d27dac912f65156059964a7fe1f3f45622a2a502c362000bf081620015cc565b62000bfd84848462001e99565b50505050565b6007818051602081018201805184825260208301602085012081835280955050505050506000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060000160149054906101000a900460ff16905082565b7f91254af6ef471a2b22aab0d27dac912f65156059964a7fe1f3f45622a2a502c362000c9681620015cc565b62000ca2838362001f3c565b505050565b6003805462000cb69062003c8a565b80601f016020809104026020016040519081016040528092919081815260200182805462000ce49062003c8a565b801562000d355780601f1062000d095761010080835404028352916020019162000d35565b820191906000526020600020905b81548152906001019060200180831162000d1757829003601f168201915b505050505081565b7f91254af6ef471a2b22aab0d27dac912f65156059964a7fe1f3f45622a2a502c362000d6981620015cc565b62000d7684848462001fb9565b50505050565b6000600a6000838152602001908152602001600020600101549050919050565b7f91254af6ef471a2b22aab0d27dac912f65156059964a7fe1f3f45622a2a502c381565b62000dcb8262000d7c565b62000dd681620015cc565b62000de283836200205f565b50505050565b62000df262002157565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161462000e57576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b62000e6382826200215f565b505050565b60005481565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a62000e9a81620015cc565b62000ea462002258565b50565b6000801b62000eb681620015cc565b62000ee27f4b9166b2e998c2955a9bb028c99665e792fb350659767827c9ca91a745a16e7c8362001392565b5050565b7f4b9166b2e998c2955a9bb028c99665e792fb350659767827c9ca91a745a16e7c81565b7f10dac8c06a04bec0b551627dad28bc00d6516b0caacd1c7b345fcdb5211334e462000f3681620015cc565b62000f40620022c1565b50565b6000801b62000f5281620015cc565b62000f7e7f4b9166b2e998c2955a9bb028c99665e792fb350659767827c9ca91a745a16e7c8362000dc0565b5050565b6000600b60009054906101000a900460ff16905090565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a62000fc581620015cc565b62000fcf6200235d565b50565b7f10dac8c06a04bec0b551627dad28bc00d6516b0caacd1c7b345fcdb5211334e481565b6000600a600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60025481565b6000801b81565b60066020528060005260406000206000915090508060000154908060010160009054906101000a900461ffff1690806002018054620010ad9062003c8a565b80601f0160208091040260200160405190810160405280929190818152602001828054620010db9062003c8a565b80156200112c5780601f1062001100576101008083540402835291602001916200112c565b820191906000526020600020905b8154815290600101906020018083116200110e57829003601f168201915b505050505090806003018054620011439062003c8a565b80601f0160208091040260200160405190810160405280929190818152602001828054620011719062003c8a565b8015620011c25780601f106200119657610100808354040283529160200191620011c2565b820191906000526020600020905b815481529060010190602001808311620011a457829003601f168201915b5050505050905084565b600081604051602001620011e1919062003d01565b60405160208183030381529060405280519060200120836040516020016200120a919062003d01565b6040516020818303038152906040528051906020012014905092915050565b600460009054906101000a900461ffff1681565b6008818051602081018201805184825260208301602085012081835280955050505050506000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060000160149054906101000a900460ff16905082565b60056020528060005260406000206000915090508060000154908060010160009054906101000a900461ffff1690806002018054620012e39062003c8a565b80601f0160208091040260200160405190810160405280929190818152602001828054620013119062003c8a565b8015620013625780601f10620013365761010080835404028352916020019162001362565b820191906000526020600020905b8154815290600101906020018083116200134457829003601f168201915b5050505050908060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905084565b6200139d8262000d7c565b620013a881620015cc565b620013b483836200215f565b50505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b60015481565b620013ee62001660565b7f4b9166b2e998c2955a9bb028c99665e792fb350659767827c9ca91a745a16e7c6200141a81620015cc565b62001424620016a4565b6200142f83620023c6565b6200144382600001518360200151620016eb565b600080600062001457856040015162001782565b925092509250821580156200146a575081155b801562001475575080155b156200148f576200148a8560400151620024ab565b600190505b8215620014ab57620014aa8560600151866000015162002590565b5b8115620014cc57620014cb856040015186606001518760000151620026ad565b5b8015620014ed57620014ec85604001518660600151876000015162002931565b5b7f674a3192439bcaf5150bde54021c42ee80f6829255e96749c2ff645e9855f6ba8560000151878760200151600460009054906101000a900461ffff1689604001518a60600151604051620015489695949392919062003d85565b60405180910390a15050506200155d62001e8f565b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b620015e181620015db62002157565b62002b4a565b50565b620015ef8262002ba0565b62001631576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620016289062003e6f565b60405180910390fd5b80600960008461ffff1661ffff16815260200190815260200160002090816200165b919062004059565b505050565b6200166a62000f82565b15620016a2576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b6002600c5403620016e1576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600c81905550565b6000821162001731576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200172890620041b6565b60405180910390fd5b6200173c8162002ba0565b6200177e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620017759062004228565b60405180910390fd5b5050565b6000806000806200182685600380546200179c9062003c8a565b80601f0160208091040260200160405190810160405280929190818152602001828054620017ca9062003c8a565b80156200181b5780601f10620017ef576101008083540402835291602001916200181b565b820191906000526020600020905b815481529060010190602001808311620017fd57829003601f168201915b5050505050620011cc565b9050600081158015620018a95750600073ffffffffffffffffffffffffffffffffffffffff166007876040516200185e919062003d01565b908152602001604051809103902060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b9050600082158015620018ba575081155b8015620019375750600073ffffffffffffffffffffffffffffffffffffffff16600888604051620018ec919062003d01565b908152602001604051809103902060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b90508282829550955095505050509193909250565b803410806200196a575047816001546200196791906200424a565b11155b15620019b15780346040517f03eb8b54000000000000000000000000000000000000000000000000000000008152600401620019a892919062004285565b60405180910390fd5b8060016000828254620019c591906200424a565b925050819055508034600254620019dd91906200424a565b620019e99190620042b2565b60028190555050565b600060078360405162001a06919062003d01565b908152602001604051809103902060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905062001a46818362002c70565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040162001a839190620042ed565b602060405180830381865afa15801562001aa1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001ac7919062004321565b905062001ad78233308662002d44565b60008273ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040162001b149190620042ed565b602060405180830381865afa15801562001b32573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001b58919062004321565b905080848362001b699190620042b2565b1462001bac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162001ba390620043a3565b60405180910390fd5b5050505050565b600060088360405162001bc7919062003d01565b908152602001604051809103902060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905062001c07818362002c70565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040162001c449190620042ed565b602060405180830381865afa15801562001c62573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001c88919062004321565b90508173ffffffffffffffffffffffffffffffffffffffff166379cc679033856040518363ffffffff1660e01b815260040162001cc7929190620043c5565b600060405180830381600087803b15801562001ce257600080fd5b505af115801562001cf7573d6000803e3d6000fd5b5050505060008273ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040162001d389190620042ed565b602060405180830381865afa15801562001d56573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001d7c919062004321565b905080848362001d8d9190620042b2565b1462001dd0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162001dc79062004442565b60405180910390fd5b5050505050565b6000600460009054906101000a900461ffff1661ffff168261ffff161415801562001e07575060008261ffff1614155b62001e49576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162001e4090620044da565b60405180910390fd5b600460009054906101000a900461ffff168260005460405160200162001e7293929190620045ad565b604051602081830303815290604052805190602001209050919050565b6001600c81905550565b8160078460405162001eac919062003d01565b908152602001604051809103902060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060078460405162001f0e919062003d01565b908152602001604051809103902060000160146101000a81548160ff021916908360ff160217905550505050565b62001f478262002ba0565b1562001f8a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162001f819062004680565b60405180910390fd5b80600960008461ffff1661ffff168152602001908152602001600020908162001fb4919062004059565b505050565b8160088460405162001fcc919062003d01565b908152602001604051809103902060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550806008846040516200202e919062003d01565b908152602001604051809103902060000160149054906101000a900460ff16620020599190620046a2565b50505050565b60006200206d838362000ff6565b6200214c576001600a600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620020e862002157565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a46001905062002151565b600090505b92915050565b600033905090565b60006200216d838362000ff6565b156200224d576000600a600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620021e962002157565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a46001905062002252565b600090505b92915050565b6200226262002dca565b6000600b60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa620022a862002157565b604051620022b79190620042ed565b60405180910390a1565b60006002541162002309576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162002300906200472e565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc6002549081150290604051600060405180830381858888f1935050505015801562002352573d6000803e3d6000fd5b506000600281905550565b6200236762001660565b6001600b60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620023ad62002157565b604051620023bc9190620042ed565b60405180910390a1565b6000600560008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614801562002442575060008160000154145b801562002465575060008160010160009054906101000a900461ffff1661ffff16145b620024a7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200249e90620047c6565b60405180910390fd5b5050565b600081306012604051620024bf9062003078565b620024cd93929190620047e8565b604051809103906000f080158015620024ea573d6000803e3d6000fd5b5090508060088360405162002500919062003d01565b908152602001604051809103902060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550601260088360405162002563919062003d01565b908152602001604051809103902060000160146101000a81548160ff021916908360ff1602179055505050565b80471015620025da5780476040517f03eb8b54000000000000000000000000000000000000000000000000000000008152600401620025d192919062004285565b60405180910390fd5b8060016000828254620025ee9190620042b2565b9250508190555060008273ffffffffffffffffffffffffffffffffffffffff16346040516200261d9062004887565b60006040518083038185875af1925050503d80600081146200265c576040519150601f19603f3d011682016040523d82523d6000602084013e62002661565b606091505b5050905080620026a8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200269f90620048ee565b60405180910390fd5b505050565b6000600784604051620026c1919062003d01565b908152602001604051809103902060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401620027329190620042ed565b602060405180830381865afa15801562002750573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002776919062004321565b905082811015620027c25782816040517f03eb8b54000000000000000000000000000000000000000000000000000000008152600401620027b992919062004285565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b8152600401620027ff9190620042ed565b602060405180830381865afa1580156200281d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002843919062004321565b9050620028538330878762002d44565b60008373ffffffffffffffffffffffffffffffffffffffff166370a08231876040518263ffffffff1660e01b8152600401620028909190620042ed565b602060405180830381865afa158015620028ae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620028d4919062004321565b9050808583620028e59190620042b2565b1462002928576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200291f90620043a3565b60405180910390fd5b50505050505050565b600060088460405162002945919062003d01565b908152602001604051809103902060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b8152600401620029b69190620042ed565b602060405180830381865afa158015620029d4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620029fa919062004321565b90508173ffffffffffffffffffffffffffffffffffffffff166340c10f1985856040518363ffffffff1660e01b815260040162002a39929190620043c5565b600060405180830381600087803b15801562002a5457600080fd5b505af115801562002a69573d6000803e3d6000fd5b5050505060008273ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b815260040162002aaa9190620042ed565b602060405180830381865afa15801562002ac8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002aee919062004321565b905080848362002aff91906200424a565b1462002b42576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162002b399062004960565b60405180910390fd5b505050505050565b62002b56828262000ff6565b62002b9c5780826040517fe2517d3f00000000000000000000000000000000000000000000000000000000815260040162002b9392919062004982565b60405180910390fd5b5050565b600062002c68600960008461ffff1661ffff168152602001908152602001600020805462002bce9062003c8a565b80601f016020809104026020016040519081016040528092919081815260200182805462002bfc9062003c8a565b801562002c4d5780601f1062002c215761010080835404028352916020019162002c4d565b820191906000526020600020905b81548152906001019060200180831162002c2f57829003601f168201915b505050505060405180602001604052806000815250620011cc565b159050919050565b60008273ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e33306040518363ffffffff1660e01b815260040162002caf929190620049af565b602060405180830381865afa15801562002ccd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002cf3919062004321565b90508181101562002d3f5781816040517f758131a200000000000000000000000000000000000000000000000000000000815260040162002d3692919062004285565b60405180910390fd5b505050565b62002dc4848573ffffffffffffffffffffffffffffffffffffffff166323b872dd86868660405160240162002d7c93929190620049dc565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505062002e0d565b50505050565b62002dd462000f82565b62002e0b576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b600062002e3a828473ffffffffffffffffffffffffffffffffffffffff1662002eac90919063ffffffff16565b9050600081511415801562002e6257508080602001905181019062002e60919062004a4a565b155b1562002ea757826040517f5274afe700000000000000000000000000000000000000000000000000000000815260040162002e9e9190620042ed565b60405180910390fd5b505050565b606062002ebc8383600062002ec4565b905092915050565b60608147101562002f0e57306040517fcd78605900000000000000000000000000000000000000000000000000000000815260040162002f059190620042ed565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff16848660405162002f39919062004abe565b60006040518083038185875af1925050503d806000811462002f78576040519150601f19603f3d011682016040523d82523d6000602084013e62002f7d565b606091505b509150915062002f8f86838362002f9a565b925050509392505050565b60608262002fb35762002fad8262003032565b6200302a565b6000825114801562002fdc575060008473ffffffffffffffffffffffffffffffffffffffff163b145b156200302157836040517f9996b315000000000000000000000000000000000000000000000000000000008152600401620030189190620042ed565b60405180910390fd5b8190506200302b565b5b9392505050565b600081511115620030465780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6125b08062004ad883390190565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b620030d1816200309a565b8114620030dd57600080fd5b50565b600081359050620030f181620030c6565b92915050565b60006020828403121562003110576200310f62003090565b5b60006200312084828501620030e0565b91505092915050565b60008115159050919050565b620031408162003129565b82525050565b60006020820190506200315d600083018462003135565b92915050565b600061ffff82169050919050565b6200317c8162003163565b81146200318857600080fd5b50565b6000813590506200319c8162003171565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620031f782620031ac565b810181811067ffffffffffffffff82111715620032195762003218620031bd565b5b80604052505050565b60006200322e62003086565b90506200323c8282620031ec565b919050565b600067ffffffffffffffff8211156200325f576200325e620031bd565b5b6200326a82620031ac565b9050602081019050919050565b82818337600083830152505050565b60006200329d620032978462003241565b62003222565b905082815260208101848484011115620032bc57620032bb620031a7565b5b620032c984828562003277565b509392505050565b600082601f830112620032e957620032e8620031a2565b5b8135620032fb84826020860162003286565b91505092915050565b600080604083850312156200331e576200331d62003090565b5b60006200332e858286016200318b565b925050602083013567ffffffffffffffff81111562003352576200335162003095565b5b6200336085828601620032d1565b9150509250929050565b600080fd5b600080fd5b6000819050919050565b620033898162003374565b81146200339557600080fd5b50565b600081359050620033a9816200337e565b92915050565b600060808284031215620033c857620033c76200336a565b5b620033d4608062003222565b90506000620033e68482850162003398565b6000830152506020620033fc848285016200318b565b602083015250604082013567ffffffffffffffff8111156200342357620034226200336f565b5b6200343184828501620032d1565b604083015250606082013567ffffffffffffffff8111156200345857620034576200336f565b5b6200346684828501620032d1565b60608301525092915050565b6000602082840312156200348b576200348a62003090565b5b600082013567ffffffffffffffff811115620034ac57620034ab62003095565b5b620034ba84828501620033af565b91505092915050565b600060208284031215620034dc57620034db62003090565b5b6000620034ec848285016200318b565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156200353157808201518184015260208101905062003514565b60008484015250505050565b60006200354a82620034f5565b62003556818562003500565b93506200356881856020860162003511565b6200357381620031ac565b840191505092915050565b600060208201905081810360008301526200359a81846200353d565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620035cf82620035a2565b9050919050565b620035e181620035c2565b8114620035ed57600080fd5b50565b6000813590506200360181620035d6565b92915050565b600060ff82169050919050565b6200361f8162003607565b81146200362b57600080fd5b50565b6000813590506200363f8162003614565b92915050565b60008060006060848603121562003661576200366062003090565b5b600084013567ffffffffffffffff81111562003682576200368162003095565b5b6200369086828701620032d1565b9350506020620036a386828701620035f0565b9250506040620036b6868287016200362e565b9150509250925092565b600060208284031215620036d957620036d862003090565b5b600082013567ffffffffffffffff811115620036fa57620036f962003095565b5b6200370884828501620032d1565b91505092915050565b6200371c81620035c2565b82525050565b6200372d8162003607565b82525050565b60006040820190506200374a600083018562003711565b62003759602083018462003722565b9392505050565b6000819050919050565b620037758162003760565b81146200378157600080fd5b50565b60008135905062003795816200376a565b92915050565b600060208284031215620037b457620037b362003090565b5b6000620037c48482850162003784565b91505092915050565b620037d88162003760565b82525050565b6000602082019050620037f56000830184620037cd565b92915050565b6000806040838503121562003815576200381462003090565b5b6000620038258582860162003784565b92505060206200383885828601620035f0565b9150509250929050565b6200384d8162003374565b82525050565b60006020820190506200386a600083018462003842565b92915050565b60006020828403121562003889576200388862003090565b5b60006200389984828501620035f0565b91505092915050565b620038ad8162003163565b82525050565b6000608082019050620038ca600083018762003842565b620038d96020830186620038a2565b8181036040830152620038ed81856200353d565b905081810360608301526200390381846200353d565b905095945050505050565b6000806040838503121562003928576200392762003090565b5b600083013567ffffffffffffffff81111562003949576200394862003095565b5b6200395785828601620032d1565b925050602083013567ffffffffffffffff8111156200397b576200397a62003095565b5b6200398985828601620032d1565b9150509250929050565b6000602082019050620039aa6000830184620038a2565b92915050565b6000620039bd82620035a2565b9050919050565b620039cf81620039b0565b82525050565b6000608082019050620039ec600083018762003842565b620039fb6020830186620038a2565b818103604083015262003a0f81856200353d565b905062003a206060830184620039c4565b95945050505050565b62003a3481620039b0565b811462003a4057600080fd5b50565b60008135905062003a548162003a29565b92915050565b60006080828403121562003a735762003a726200336a565b5b62003a7f608062003222565b9050600062003a918482850162003398565b600083015250602062003aa7848285016200318b565b602083015250604082013567ffffffffffffffff81111562003ace5762003acd6200336f565b5b62003adc84828501620032d1565b604083015250606062003af28482850162003a43565b60608301525092915050565b6000806040838503121562003b185762003b1762003090565b5b600062003b288582860162003784565b925050602083013567ffffffffffffffff81111562003b4c5762003b4b62003095565b5b62003b5a8582860162003a5a565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062003ba08262003374565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820362003bd55762003bd462003b64565b5b600182019050919050565b600060c08201905062003bf7600083018962003842565b62003c066020830188620037cd565b62003c156040830187620038a2565b62003c246060830186620038a2565b818103608083015262003c3881856200353d565b905081810360a083015262003c4e81846200353d565b9050979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062003ca357607f821691505b60208210810362003cb95762003cb862003c5b565b5b50919050565b600081905092915050565b600062003cd782620034f5565b62003ce3818562003cbf565b935062003cf581856020860162003511565b80840191505092915050565b600062003d0f828462003cca565b915081905092915050565b6000819050919050565b600062003d4562003d3f62003d3984620035a2565b62003d1a565b620035a2565b9050919050565b600062003d598262003d24565b9050919050565b600062003d6d8262003d4c565b9050919050565b62003d7f8162003d60565b82525050565b600060c08201905062003d9c600083018962003842565b62003dab6020830188620037cd565b62003dba6040830187620038a2565b62003dc96060830186620038a2565b818103608083015262003ddd81856200353d565b905062003dee60a083018462003d74565b979650505050505050565b7f50726576696f75736c7920756e737570706f7274656420636861696e2e20557360008201527f652041646420696e73746561642e000000000000000000000000000000000000602082015250565b600062003e57602e8362003500565b915062003e648262003df9565b604082019050919050565b6000602082019050818103600083015262003e8a8162003e48565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830262003ef57fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262003eb6565b62003f01868362003eb6565b95508019841693508086168417925050509392505050565b600062003f3a62003f3462003f2e8462003374565b62003d1a565b62003374565b9050919050565b6000819050919050565b62003f568362003f19565b62003f6e62003f658262003f41565b84845462003ec3565b825550505050565b600090565b62003f8562003f76565b62003f9281848462003f4b565b505050565b5b8181101562003fba5762003fae60008262003f7b565b60018101905062003f98565b5050565b601f821115620040095762003fd38162003e91565b62003fde8462003ea6565b8101602085101562003fee578190505b6200400662003ffd8562003ea6565b83018262003f97565b50505b505050565b600082821c905092915050565b60006200402e600019846008026200400e565b1980831691505092915050565b60006200404983836200401b565b9150826002028217905092915050565b6200406482620034f5565b67ffffffffffffffff81111562004080576200407f620031bd565b5b6200408c825462003c8a565b6200409982828562003fbe565b600060209050601f831160018114620040d15760008415620040bc578287015190505b620040c885826200403b565b86555062004138565b601f198416620040e18662003e91565b60005b828110156200410b57848901518255600182019150602085019450602081019050620040e4565b868310156200412b578489015162004127601f8916826200401b565b8355505b6001600288020188555050505b505050505050565b7f54686520616d6f756e74206d7573742062652030203c20616d6f756e74203c2060008201527f325e323536000000000000000000000000000000000000000000000000000000602082015250565b60006200419e60258362003500565b9150620041ab8262004140565b604082019050919050565b60006020820190508181036000830152620041d1816200418f565b9050919050565b7f556e737570706f7274656420636861696e204944000000000000000000000000600082015250565b60006200421060148362003500565b91506200421d82620041d8565b602082019050919050565b60006020820190508181036000830152620042438162004201565b9050919050565b6000620042578262003374565b9150620042648362003374565b92508282019050808211156200427f576200427e62003b64565b5b92915050565b60006040820190506200429c600083018562003842565b620042ab602083018462003842565b9392505050565b6000620042bf8262003374565b9150620042cc8362003374565b9250828203905081811115620042e757620042e662003b64565b5b92915050565b600060208201905062004304600083018462003711565b92915050565b6000815190506200431b816200337e565b92915050565b6000602082840312156200433a576200433962003090565b5b60006200434a848285016200430a565b91505092915050565b7f536166654552433230205472616e73666572204661696c656400000000000000600082015250565b60006200438b60198362003500565b9150620043988262004353565b602082019050919050565b60006020820190508181036000830152620043be816200437c565b9050919050565b6000604082019050620043dc600083018562003711565b620043eb602083018462003842565b9392505050565b7f5772617070656420746f6b656e73206275726e206661696c6564000000000000600082015250565b60006200442a601a8362003500565b91506200443782620043f2565b602082019050919050565b600060208201905081810360008301526200445d816200441b565b9050919050565b7f54617267657420636861696e49642063616e6e6f7420657175616c206e61746960008201527f7665206f72207a65726f00000000000000000000000000000000000000000000602082015250565b6000620044c2602a8362003500565b9150620044cf8262004464565b604082019050919050565b60006020820190508181036000830152620044f581620044b3565b9050919050565b60008160f01b9050919050565b60006200451682620044fc565b9050919050565b620045326200452c8262003163565b62004509565b82525050565b7f2d00000000000000000000000000000000000000000000000000000000000000600082015250565b60006200457060018362003cbf565b91506200457d8262004538565b600182019050919050565b6000819050919050565b620045a7620045a18262003374565b62004588565b82525050565b6000620045bb82866200451d565b600282019150620045cc8262004561565b9150620045da82856200451d565b600282019150620045eb8262004561565b9150620045f9828462004592565b602082019150819050949350505050565b7f4f76657277726974696e6720616e206578697374696e6720636861696e2e205560008201527f73652055706461746520696e73746561642e0000000000000000000000000000602082015250565b60006200466860328362003500565b915062004675826200460a565b604082019050919050565b600060208201905081810360008301526200469b8162004659565b9050919050565b6000620046af8262003607565b9150620046bc8362003607565b9250828203905060ff811115620046d857620046d762003b64565b5b92915050565b7f4e6f206665657320746f2077697468647261772e000000000000000000000000600082015250565b60006200471660148362003500565b91506200472382620046de565b602082019050919050565b60006020820190508181036000830152620047498162004707565b9050919050565b7f50726576696f75736c792070726f636573736564207472616e73616374696f6e60008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000620047ae60218362003500565b9150620047bb8262004750565b604082019050919050565b60006020820190508181036000830152620047e1816200479f565b9050919050565b600060608201905081810360008301526200480481866200353d565b905062004815602083018562003711565b62004824604083018462003722565b949350505050565b600081905092915050565b7f46726f6d20456d6d65742e46696e616e63652042726964676500000000000000600082015250565b60006200486f6019836200482c565b91506200487c8262004837565b601982019050919050565b6000620048948262004860565b9150819050919050565b7f4661696c656420746f207472616e73666572206e617469766520636f696e7300600082015250565b6000620048d6601f8362003500565b9150620048e3826200489e565b602082019050919050565b600060208201905081810360008301526200490981620048c7565b9050919050565b7f4d696e74696e67207772617070656420746f6b656e73204661696c6564000000600082015250565b600062004948601d8362003500565b9150620049558262004910565b602082019050919050565b600060208201905081810360008301526200497b8162004939565b9050919050565b600060408201905062004999600083018562003711565b620049a86020830184620037cd565b9392505050565b6000604082019050620049c6600083018562003711565b620049d5602083018462003711565b9392505050565b6000606082019050620049f3600083018662003711565b62004a02602083018562003711565b62004a11604083018462003842565b949350505050565b62004a248162003129565b811462004a3057600080fd5b50565b60008151905062004a448162004a19565b92915050565b60006020828403121562004a635762004a6262003090565b5b600062004a738482850162004a33565b91505092915050565b600081519050919050565b600062004a948262004a7c565b62004aa081856200482c565b935062004ab281856020860162003511565b80840191505092915050565b600062004acc828462004a87565b91508190509291505056fe60806040523480156200001157600080fd5b50604051620025b0380380620025b0833981810160405281019062000037919062000484565b826040516020016200004a919062000572565b6040516020818303038152906040528381600390816200006b9190620007dc565b5080600490816200007d9190620007dc565b505050620000b27f52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5f83620000d760201b60201c565b5080600660006101000a81548160ff021916908360ff160217905550505050620008c3565b6000620000eb8383620001db60201b60201c565b620001d05760016005600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200016c6200024660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050620001d5565b600090505b92915050565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620002b7826200026c565b810181811067ffffffffffffffff82111715620002d957620002d86200027d565b5b80604052505050565b6000620002ee6200024e565b9050620002fc8282620002ac565b919050565b600067ffffffffffffffff8211156200031f576200031e6200027d565b5b6200032a826200026c565b9050602081019050919050565b60005b83811015620003575780820151818401526020810190506200033a565b60008484015250505050565b60006200037a620003748462000301565b620002e2565b90508281526020810184848401111562000399576200039862000267565b5b620003a684828562000337565b509392505050565b600082601f830112620003c657620003c562000262565b5b8151620003d884826020860162000363565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200040e82620003e1565b9050919050565b620004208162000401565b81146200042c57600080fd5b50565b600081519050620004408162000415565b92915050565b600060ff82169050919050565b6200045e8162000446565b81146200046a57600080fd5b50565b6000815190506200047e8162000453565b92915050565b600080600060608486031215620004a0576200049f62000258565b5b600084015167ffffffffffffffff811115620004c157620004c06200025d565b5b620004cf86828701620003ae565b9350506020620004e2868287016200042f565b9250506040620004f5868287016200046d565b9150509250925092565b7f656d2e0000000000000000000000000000000000000000000000000000000000815250565b600081519050919050565b600081905092915050565b6000620005488262000525565b62000554818562000530565b93506200056681856020860162000337565b80840191505092915050565b60006200057f82620004ff565b6003820191506200059182846200053b565b915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620005e457607f821691505b602082108103620005fa57620005f96200059c565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006647fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000625565b62000670868362000625565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620006bd620006b7620006b18462000688565b62000692565b62000688565b9050919050565b6000819050919050565b620006d9836200069c565b620006f1620006e882620006c4565b84845462000632565b825550505050565b600090565b62000708620006f9565b62000715818484620006ce565b505050565b5b818110156200073d5762000731600082620006fe565b6001810190506200071b565b5050565b601f8211156200078c57620007568162000600565b620007618462000615565b8101602085101562000771578190505b62000789620007808562000615565b8301826200071a565b50505b505050565b600082821c905092915050565b6000620007b16000198460080262000791565b1980831691505092915050565b6000620007cc83836200079e565b9150826002028217905092915050565b620007e78262000525565b67ffffffffffffffff8111156200080357620008026200027d565b5b6200080f8254620005cb565b6200081c82828562000741565b600060209050601f8311600181146200085457600084156200083f578287015190505b6200084b8582620007be565b865550620008bb565b601f198416620008648662000600565b60005b828110156200088e5784890151825560018201915060208501945060208101905062000867565b86831015620008ae5784890151620008aa601f8916826200079e565b8355505b6001600288020188555050505b505050505050565b611cdd80620008d36000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c806340c10f19116100ad578063a217fddf11610071578063a217fddf14610355578063a9059cbb14610373578063b5bfddea146103a3578063d547741f146103c1578063dd62ed3e146103dd5761012c565b806340c10f191461029f57806370a08231146102bb57806379cc6790146102eb57806391d148541461030757806395d89b41146103375761012c565b806323b872dd116100f457806323b872dd146101e9578063248a9ca3146102195780632f2ff15d14610249578063313ce5671461026557806336568abe146102835761012c565b806301ffc9a71461013157806306fdde0314610161578063095ea7b31461017f5780630ce83a61146101af57806318160ddd146101cb575b600080fd5b61014b6004803603810190610146919061150e565b61040d565b6040516101589190611556565b60405180910390f35b610169610487565b6040516101769190611601565b60405180910390f35b610199600480360381019061019491906116b7565b610519565b6040516101a69190611556565b60405180910390f35b6101c960048036038101906101c49190611730565b61053c565b005b6101d3610621565b6040516101e0919061176c565b60405180910390f35b61020360048036038101906101fe9190611787565b61062b565b6040516102109190611556565b60405180910390f35b610233600480360381019061022e9190611810565b61065a565b604051610240919061184c565b60405180910390f35b610263600480360381019061025e9190611867565b61067a565b005b61026d61069c565b60405161027a91906118b6565b60405180910390f35b61029d60048036038101906102989190611867565b6106b3565b005b6102b960048036038101906102b491906116b7565b61072e565b005b6102d560048036038101906102d091906118d1565b61085e565b6040516102e2919061176c565b60405180910390f35b610305600480360381019061030091906116b7565b6108a6565b005b610321600480360381019061031c9190611867565b610967565b60405161032e9190611556565b60405180910390f35b61033f6109d2565b60405161034c9190611601565b60405180910390f35b61035d610a64565b60405161036a919061184c565b60405180910390f35b61038d600480360381019061038891906116b7565b610a6b565b60405161039a9190611556565b60405180910390f35b6103ab610a8e565b6040516103b8919061184c565b60405180910390f35b6103db60048036038101906103d69190611867565b610ab2565b005b6103f760048036038101906103f291906118fe565b610ad4565b604051610404919061176c565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610480575061047f82610b5b565b5b9050919050565b6060600380546104969061196d565b80601f01602080910402602001604051908101604052809291908181526020018280546104c29061196d565b801561050f5780601f106104e45761010080835404028352916020019161050f565b820191906000526020600020905b8154815290600101906020018083116104f257829003601f168201915b5050505050905090565b600080610524610bc5565b9050610531818585610bcd565b600191505092915050565b61056d7f52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5f610568610bc5565b610967565b6105ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105a3906119ea565b60405180910390fd5b8060ff166000111580156105c4575060128160ff1611155b610603576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105fa90611a56565b60405180910390fd5b80600660006101000a81548160ff021916908360ff16021790555050565b6000600254905090565b600080610636610bc5565b9050610643858285610bdf565b61064e858585610c73565b60019150509392505050565b600060056000838152602001908152602001600020600101549050919050565b6106838261065a565b61068c81610d67565b6106968383610d7b565b50505050565b6000600660009054906101000a900460ff16905090565b6106bb610bc5565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461071f576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107298282610e6d565b505050565b61075f7f52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5f61075a610bc5565b610967565b61079e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610795906119ea565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361080d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080490611ac2565b60405180910390fd5b60008111610850576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084790611b2e565b60405180910390fd5b61085a8282610f60565b5050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6108d77f52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5f6108d2610bc5565b610967565b610916576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090d906119ea565b60405180910390fd5b60008111610959576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095090611b9a565b60405180910390fd5b6109638282610fe2565b5050565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600480546109e19061196d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0d9061196d565b8015610a5a5780601f10610a2f57610100808354040283529160200191610a5a565b820191906000526020600020905b815481529060010190602001808311610a3d57829003601f168201915b5050505050905090565b6000801b81565b600080610a76610bc5565b9050610a83818585610c73565b600191505092915050565b7f52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5f81565b610abb8261065a565b610ac481610d67565b610ace8383610e6d565b50505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b610bda8383836001611064565b505050565b6000610beb8484610ad4565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610c6d5781811015610c5d578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610c5493929190611bc9565b60405180910390fd5b610c6c84848484036000611064565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ce55760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610cdc9190611c00565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d575760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610d4e9190611c00565b60405180910390fd5b610d6283838361123b565b505050565b610d7881610d73610bc5565b611460565b50565b6000610d878383610967565b610e625760016005600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610dff610bc5565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050610e67565b600090505b92915050565b6000610e798383610967565b15610f555760006005600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610ef2610bc5565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050610f5a565b600090505b92915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610fd25760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610fc99190611c00565b60405180910390fd5b610fde6000838361123b565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110545760006040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260040161104b9190611c00565b60405180910390fd5b6110608260008361123b565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036110d65760006040517fe602df050000000000000000000000000000000000000000000000000000000081526004016110cd9190611c00565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036111485760006040517f94280d6200000000000000000000000000000000000000000000000000000000815260040161113f9190611c00565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508015611235578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161122c919061176c565b60405180910390a35b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361128d5780600260008282546112819190611c4a565b92505081905550611360565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611319578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161131093929190611bc9565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113a957806002600082825403925050819055506113f6565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611453919061176c565b60405180910390a3505050565b61146a8282610967565b6114ad5780826040517fe2517d3f0000000000000000000000000000000000000000000000000000000081526004016114a4929190611c7e565b60405180910390fd5b5050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6114eb816114b6565b81146114f657600080fd5b50565b600081359050611508816114e2565b92915050565b600060208284031215611524576115236114b1565b5b6000611532848285016114f9565b91505092915050565b60008115159050919050565b6115508161153b565b82525050565b600060208201905061156b6000830184611547565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156115ab578082015181840152602081019050611590565b60008484015250505050565b6000601f19601f8301169050919050565b60006115d382611571565b6115dd818561157c565b93506115ed81856020860161158d565b6115f6816115b7565b840191505092915050565b6000602082019050818103600083015261161b81846115c8565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061164e82611623565b9050919050565b61165e81611643565b811461166957600080fd5b50565b60008135905061167b81611655565b92915050565b6000819050919050565b61169481611681565b811461169f57600080fd5b50565b6000813590506116b18161168b565b92915050565b600080604083850312156116ce576116cd6114b1565b5b60006116dc8582860161166c565b92505060206116ed858286016116a2565b9150509250929050565b600060ff82169050919050565b61170d816116f7565b811461171857600080fd5b50565b60008135905061172a81611704565b92915050565b600060208284031215611746576117456114b1565b5b60006117548482850161171b565b91505092915050565b61176681611681565b82525050565b6000602082019050611781600083018461175d565b92915050565b6000806000606084860312156117a05761179f6114b1565b5b60006117ae8682870161166c565b93505060206117bf8682870161166c565b92505060406117d0868287016116a2565b9150509250925092565b6000819050919050565b6117ed816117da565b81146117f857600080fd5b50565b60008135905061180a816117e4565b92915050565b600060208284031215611826576118256114b1565b5b6000611834848285016117fb565b91505092915050565b611846816117da565b82525050565b6000602082019050611861600083018461183d565b92915050565b6000806040838503121561187e5761187d6114b1565b5b600061188c858286016117fb565b925050602061189d8582860161166c565b9150509250929050565b6118b0816116f7565b82525050565b60006020820190506118cb60008301846118a7565b92915050565b6000602082840312156118e7576118e66114b1565b5b60006118f58482850161166c565b91505092915050565b60008060408385031215611915576119146114b1565b5b60006119238582860161166c565b92505060206119348582860161166c565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061198557607f821691505b6020821081036119985761199761193e565b5b50919050565b7f556e617574686f72697365642063616c6c000000000000000000000000000000600082015250565b60006119d460118361157c565b91506119df8261199e565b602082019050919050565b60006020820190508181036000830152611a03816119c7565b9050919050565b7f52657175697265643a2030203c3d206e6577446563696d616c73203c3d203138600082015250565b6000611a4060208361157c565b9150611a4b82611a0a565b602082019050919050565b60006020820190508181036000830152611a6f81611a33565b9050919050565b7f4d696e74696e6720617474656d707420746f2061646472657373207a65726f00600082015250565b6000611aac601f8361157c565b9150611ab782611a76565b602082019050919050565b60006020820190508181036000830152611adb81611a9f565b9050919050565b7f417474656d707420746f206d696e74207a65726f20746f6b656e730000000000600082015250565b6000611b18601b8361157c565b9150611b2382611ae2565b602082019050919050565b60006020820190508181036000830152611b4781611b0b565b9050919050565b7f417474656d707420746f206275726e207a65726f20746f6b656e730000000000600082015250565b6000611b84601b8361157c565b9150611b8f82611b4e565b602082019050919050565b60006020820190508181036000830152611bb381611b77565b9050919050565b611bc381611643565b82525050565b6000606082019050611bde6000830186611bba565b611beb602083018561175d565b611bf8604083018461175d565b949350505050565b6000602082019050611c156000830184611bba565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611c5582611681565b9150611c6083611681565b9250828201905080821115611c7857611c77611c1b565b5b92915050565b6000604082019050611c936000830185611bba565b611ca0602083018461183d565b939250505056fea26469706673582212207e9ea31bfc5e2a61b97d666b221eb29929b8aec1a21b14cc8fd80eb7c4aa35fd64736f6c63430008140033a2646970667358221220d9d413a28cbc298941fda5720a3076c83ebe8762bebdccf331675f1cd8dd162164736f6c63430008140033"; - -type FTBridgeConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: FTBridgeConstructorParams, -): xs is ConstructorParameters => xs.length > 1; - -export class FTBridge__factory extends ContractFactory { - constructor(...args: FTBridgeConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - _nativeCoin: string, - _nativeChainId: BigNumberish, - overrides?: NonPayableOverrides & { from?: string }, - ): Promise { - return super.getDeployTransaction( - _nativeCoin, - _nativeChainId, - overrides || {}, - ); - } - override deploy( - _nativeCoin: string, - _nativeChainId: BigNumberish, - overrides?: NonPayableOverrides & { from?: string }, - ) { - return super.deploy( - _nativeCoin, - _nativeChainId, - overrides || {}, - ) as Promise< - FTBridge & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect(runner: ContractRunner | null): FTBridge__factory { - return super.connect(runner) as FTBridge__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): FTBridgeInterface { - return new Interface(_abi) as FTBridgeInterface; - } - static connect(address: string, runner?: ContractRunner | null): FTBridge { - return new Contract(address, _abi, runner) as unknown as FTBridge; - } -} diff --git a/src/contracts/evm/typechain-types/factories/contracts/PriceOracle/ChainLinkPriceFeeds__factory.ts b/src/contracts/evm/typechain-types/factories/contracts/PriceOracle/ChainLinkPriceFeeds__factory.ts deleted file mode 100644 index c31f38b..0000000 --- a/src/contracts/evm/typechain-types/factories/contracts/PriceOracle/ChainLinkPriceFeeds__factory.ts +++ /dev/null @@ -1,277 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"; -import type { NonPayableOverrides } from "../../../common"; -import type { - ChainLinkPriceFeeds, - ChainLinkPriceFeedsInterface, -} from "../../../contracts/PriceOracle/ChainLinkPriceFeeds"; - -const _abi = [ - { - inputs: [], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [ - { - internalType: "int256", - name: "price", - type: "int256", - }, - ], - name: "NegativeTokenPrice", - type: "error", - }, - { - inputs: [], - name: "OutdatedPrice", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "newAdmin", - type: "address", - }, - ], - name: "AdminChanged", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "string", - name: "asset", - type: "string", - }, - { - indexed: false, - internalType: "address", - name: "dataFeed", - type: "address", - }, - ], - name: "AssetDataFeedCreated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "string", - name: "asset", - type: "string", - }, - ], - name: "AssetDataFeedDeleted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "string", - name: "asset", - type: "string", - }, - { - indexed: false, - internalType: "address", - name: "dataFeed", - type: "address", - }, - ], - name: "AssetDataFeedUpdated", - type: "event", - }, - { - inputs: [ - { - internalType: "string", - name: "asset", - type: "string", - }, - { - internalType: "address", - name: "dataFeed", - type: "address", - }, - ], - name: "addDataFeed", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "asset", - type: "string", - }, - ], - name: "deleteDataFeed", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "asset", - type: "string", - }, - ], - name: "getAssetPrice", - outputs: [ - { - internalType: "int256", - name: "", - type: "int256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "asset", - type: "string", - }, - ], - name: "getAssetPriceDecimals", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "asset", - type: "string", - }, - ], - name: "getDataFeedAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "newAdmin", - type: "address", - }, - ], - name: "updateAdmin", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "asset", - type: "string", - }, - { - internalType: "address", - name: "dataFeed", - type: "address", - }, - ], - name: "updateDataFeed", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -const _bytecode = - "0x608060405234801561001057600080fd5b50600080546001600160a01b0319163317905561090a806100326000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80632aedd0eb1161005b5780632aedd0eb146100bd578063a076c9c6146100e3578063b0e5fb011461010e578063e2f273bd1461013357600080fd5b806312e8c6411461008257806314e9a7e7146100975780632735ff6d146100aa575b600080fd5b6100956100903660046106b4565b610146565b005b6100956100a536600461070d565b6101b3565b6100956100b836600461070d565b6102b5565b6100d06100cb3660046106b4565b61032d565b6040519081526020015b60405180910390f35b6100f66100f13660046106b4565b610366565b6040516001600160a01b0390911681526020016100da565b61012161011c3660046106b4565b61040c565b60405160ff90911681526020016100da565b61009561014136600461075b565b61043f565b61014e610495565b60018160405161015e91906107a1565b90815260405190819003602001812080546001600160a01b03191690557f0587cfe822921ad5b807a80c43a6936e6da5f84019a10a25dc579a1900b9112c906101a89083906107e9565b60405180910390a150565b6101bb610495565b60006001600160a01b03166001836040516101d691906107a1565b908152604051908190036020019020546001600160a01b0316146102395760405162461bcd60e51b815260206004820152601560248201527420b9b9b2ba1030b63932b0b23c9032bc34b9ba399760591b60448201526064015b60405180910390fd5b8060018360405161024a91906107a1565b90815260405190819003602001812080546001600160a01b03939093166001600160a01b0319909316929092179091557f6edc9948780b58433e42f3dbe45d12fce3d09f79c020d34faed3d5fbbdc6350e906102a990849084906107fc565b60405180910390a15050565b6102bd610495565b806001836040516102ce91906107a1565b90815260405190819003602001812080546001600160a01b03939093166001600160a01b0319909316929092179091557f88c8a615dff55216530aae4e5b4f37fd2d6ee9252870ecd985e2a9a23efa0362906102a990849084906107fc565b600061036060018360405161034291906107a1565b908152604051908190036020019020546001600160a01b03166104e6565b92915050565b6000806001600160a01b031660018360405161038291906107a1565b908152604051908190036020019020546001600160a01b0316036103dd5760405162461bcd60e51b81526020600482015260126024820152712ab739bab83837b93a32b21030b9b9b2ba1760711b6044820152606401610230565b6001826040516103ed91906107a1565b908152604051908190036020019020546001600160a01b031692915050565b600061036060018360405161042191906107a1565b908152604051908190036020019020546001600160a01b03166105ad565b610447610495565b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f7ce7ec0b50378fb6c0186ffb5f48325f6593fcb4ca4386f21861af3129188f5c906020016101a8565b6000546001600160a01b031633146104e45760405162461bcd60e51b81526020600482015260126024820152712ab730baba3437b934b9b2b21031b0b6361760711b6044820152606401610230565b565b6000806000836001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610529573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054d9190610840565b5093505092505060008212156105795760405163990664bb60e01b815260048101839052602401610230565b620151806105878242610890565b11156105a6576040516319d053db60e11b815260040160405180910390fd5b5092915050565b6000816001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061036091906108b1565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261063857600080fd5b813567ffffffffffffffff8082111561065357610653610611565b604051601f8301601f19908116603f0116810190828211818310171561067b5761067b610611565b8160405283815286602085880101111561069457600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000602082840312156106c657600080fd5b813567ffffffffffffffff8111156106dd57600080fd5b6106e984828501610627565b949350505050565b80356001600160a01b038116811461070857600080fd5b919050565b6000806040838503121561072057600080fd5b823567ffffffffffffffff81111561073757600080fd5b61074385828601610627565b925050610752602084016106f1565b90509250929050565b60006020828403121561076d57600080fd5b610776826106f1565b9392505050565b60005b83811015610798578181015183820152602001610780565b50506000910152565b600082516107b381846020870161077d565b9190910192915050565b600081518084526107d581602086016020860161077d565b601f01601f19169290920160200192915050565b60208152600061077660208301846107bd565b60408152600061080f60408301856107bd565b905060018060a01b03831660208301529392505050565b805169ffffffffffffffffffff8116811461070857600080fd5b600080600080600060a0868803121561085857600080fd5b61086186610826565b945060208601519350604086015192506060860151915061088460808701610826565b90509295509295909350565b8181038181111561036057634e487b7160e01b600052601160045260246000fd5b6000602082840312156108c357600080fd5b815160ff8116811461077657600080fdfea2646970667358221220f3c9fcc71d0df85cfc28d4ddcb04620e40027f2edbe5396557ad0bcafc6b3b7964736f6c63430008140033"; - -type ChainLinkPriceFeedsConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ChainLinkPriceFeedsConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ChainLinkPriceFeeds__factory extends ContractFactory { - constructor(...args: ChainLinkPriceFeedsConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - overrides?: NonPayableOverrides & { from?: string } - ): Promise { - return super.getDeployTransaction(overrides || {}); - } - override deploy(overrides?: NonPayableOverrides & { from?: string }) { - return super.deploy(overrides || {}) as Promise< - ChainLinkPriceFeeds & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect( - runner: ContractRunner | null - ): ChainLinkPriceFeeds__factory { - return super.connect(runner) as ChainLinkPriceFeeds__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ChainLinkPriceFeedsInterface { - return new Interface(_abi) as ChainLinkPriceFeedsInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): ChainLinkPriceFeeds { - return new Contract( - address, - _abi, - runner - ) as unknown as ChainLinkPriceFeeds; - } -} diff --git a/src/contracts/evm/typechain-types/factories/contracts/PriceOracle/EmmetFeeOracle__factory.ts b/src/contracts/evm/typechain-types/factories/contracts/PriceOracle/EmmetFeeOracle__factory.ts deleted file mode 100644 index 7dc1810..0000000 --- a/src/contracts/evm/typechain-types/factories/contracts/PriceOracle/EmmetFeeOracle__factory.ts +++ /dev/null @@ -1,556 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { - Signer, - BigNumberish, - AddressLike, - ContractDeployTransaction, - ContractRunner, -} from "ethers"; -import type { NonPayableOverrides } from "../../../common"; -import type { - EmmetFeeOracle, - EmmetFeeOracleInterface, -} from "../../../contracts/PriceOracle/EmmetFeeOracle"; - -const _abi = [ - { - inputs: [ - { - internalType: "string", - name: "selfCoin_", - type: "string", - }, - { - internalType: "uint256", - name: "txMinimumFee_", - type: "uint256", - }, - { - internalType: "address", - name: "priceOracle_", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [ - { - internalType: "string", - name: "description", - type: "string", - }, - ], - name: "AddressZerro", - type: "error", - }, - { - inputs: [ - { - internalType: "uint128", - name: "value", - type: "uint128", - }, - ], - name: "ValueExceedsOneHundredPercent", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "newAdmin", - type: "address", - }, - ], - name: "AdminChanged", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "newFee", - type: "uint256", - }, - ], - name: "MinimalFeeChanged", - type: "event", - }, - { - inputs: [ - { - internalType: "string", - name: "coinName_", - type: "string", - }, - { - internalType: "uint256", - name: "amount_", - type: "uint256", - }, - ], - name: "calculateCoinFees", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "destChainName_", - type: "string", - }, - ], - name: "calculateTransactionFee", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "chainName_", - type: "string", - }, - ], - name: "getChainByname", - outputs: [ - { - components: [ - { - internalType: "uint64", - name: "chainId", - type: "uint64", - }, - { - internalType: "uint64", - name: "domain", - type: "uint64", - }, - { - internalType: "uint64", - name: "txFee", - type: "uint64", - }, - { - internalType: "bytes14", - name: "nativeCoin", - type: "bytes14", - }, - ], - internalType: "struct IEmmetFeeOracle.Chain", - name: "", - type: "tuple", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint64", - name: "destDomain_", - type: "uint64", - }, - ], - name: "getChainFee", - outputs: [ - { - internalType: "uint64", - name: "", - type: "uint64", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint64", - name: "destDomain_", - type: "uint64", - }, - ], - name: "getChainNameByDomain", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint64", - name: "chainId_", - type: "uint64", - }, - ], - name: "getChainNameById", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "coinName_", - type: "string", - }, - ], - name: "getCoinFee", - outputs: [ - { - components: [ - { - internalType: "uint128", - name: "minimum", - type: "uint128", - }, - { - internalType: "uint128", - name: "percentage", - type: "uint128", - }, - ], - internalType: "struct IEmmetFeeOracle.CoinFee", - name: "", - type: "tuple", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "coinName", - type: "string", - }, - ], - name: "getCoinPrice", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "priceOracle", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "protocolFeeDivisor", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "selfChainId", - outputs: [ - { - internalType: "uint64", - name: "", - type: "uint64", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "selfCoin", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes4", - name: "interfaceId", - type: "bytes4", - }, - ], - name: "supportsInterface", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "newAdmin", - type: "address", - }, - ], - name: "updateAdmin", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "chainName", - type: "string", - }, - { - internalType: "uint64", - name: "chainId_", - type: "uint64", - }, - { - internalType: "uint64", - name: "domain_", - type: "uint64", - }, - { - internalType: "uint64", - name: "txFee_", - type: "uint64", - }, - { - internalType: "string", - name: "nativeCoin_", - type: "string", - }, - ], - name: "updateChain", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "coinName_", - type: "string", - }, - { - components: [ - { - internalType: "uint128", - name: "minimum", - type: "uint128", - }, - { - internalType: "uint128", - name: "percentage", - type: "uint128", - }, - ], - internalType: "struct IEmmetFeeOracle.CoinFee", - name: "coinFee_", - type: "tuple", - }, - ], - name: "updateCoinFee", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "protocolFeeDivisor_", - type: "uint256", - }, - ], - name: "updateProtocolFeeDivisor", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "txMinimumFee_", - type: "uint256", - }, - ], - name: "updateTxMinimalFee", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -const _bytecode = - "0x60c060405260016003553480156200001657600080fd5b5060405162001c2c38038062001c2c8339810160408190526200003991620000fe565b600080546001600160a01b031916331790556001600160401b03461660805260016200006684826200027e565b5060028290556001600160a01b038116620000b6576040516349ac169d60e11b815260206004820152600b60248201526a70726963654f7261636c6560a81b604482015260640160405180910390fd5b6001600160a01b031660a052506200034a9050565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b0381168114620000f957600080fd5b919050565b6000806000606084860312156200011457600080fd5b83516001600160401b03808211156200012c57600080fd5b818601915086601f8301126200014157600080fd5b815181811115620001565762000156620000cb565b604051601f8201601f19908116603f01168101908382118183101715620001815762000181620000cb565b816040528281526020935089848487010111156200019e57600080fd5b600091505b82821015620001c25784820184015181830185015290830190620001a3565b60008484830101528097505050508086015193505050620001e660408501620000e1565b90509250925092565b600181811c908216806200020457607f821691505b6020821081036200022557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200027957600081815260208120601f850160051c81016020861015620002545750805b601f850160051c820191505b81811015620002755782815560010162000260565b5050505b505050565b81516001600160401b038111156200029a576200029a620000cb565b620002b281620002ab8454620001ef565b846200022b565b602080601f831160018114620002ea5760008415620002d15750858301515b600019600386901b1c1916600185901b17855562000275565b600085815260208120601f198616915b828110156200031b57888601518255948401946001909101908401620002fa565b50858210156200033a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a051611899620003936000396000818161015d0152818161077f015281816107fb0152818161088d015281816109210152610b4d015260006102c901526118996000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063a9d524e3116100a2578063dd1a338e11610071578063dd1a338e14610303578063dfa9124e14610316578063e2f273bd14610329578063ed1c4a121461033c578063f6626c951461034457600080fd5b8063a9d524e31461027e578063b356fa3d14610291578063c9912366146102b1578063cc9e3e89146102c457600080fd5b80634c5140dd116100e95780634c5140dd146101ae5780634d0d6103146101c15780637074dad2146101fb5780637e8e805f1461020e578063a643b7751461022157600080fd5b806301ffc9a71461011b57806325c94d31146101435780632630c12f146101585780633b46a6e714610197575b600080fd5b61012e6101293660046110a6565b610357565b60405190151581526020015b60405180910390f35b6101566101513660046111af565b61038e565b005b61017f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161013a565b6101a060035481565b60405190815260200161013a565b6101566101bc36600461125e565b6104b4565b6101d46101cf3660046112f3565b610549565b6040805182516001600160801b03908116825260209384015116928101929092520161013a565b6101a061020936600461132f565b610616565b6101a061021c3660046112f3565b610688565b61023461022f3660046112f3565b610a54565b6040805182516001600160401b0390811682526020808501518216908301528383015116918101919091526060918201516001600160901b0319169181019190915260800161013a565b6101a061028c3660046112f3565b610b33565b6102a461029f366004611373565b610bc3565b60405161013a91906113de565b6101566102bf3660046113f1565b610c6f565b6102eb7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160401b03909116815260200161013a565b6102a4610311366004611373565b610c7c565b6101566103243660046113f1565b610ca3565b61015661033736600461140a565b610ce7565b6102a4610d3d565b6102eb610352366004611373565b610dcf565b60006301ffc9a760e01b6001600160e01b03198316148061038857506001600160e01b03198216630e54d1cb60e21b145b92915050565b610396610ef3565b620f42406001600160801b031681602001516001600160801b031611156103e65760208101516040516316a9098b60e01b81526001600160801b0390911660048201526024015b60405180910390fd5b80600001516001600160801b03166005836040516104049190611433565b908152604051908190036020019020546001600160801b0316141580610467575080602001516001600160801b03166005836040516104439190611433565b908152604051908190036020019020546001600160801b03600160801b9091041614155b156104b0578060058360405161047d9190611433565b908152604051908190036020908101909120825192909101516001600160801b03908116600160801b0292169190911790555b5050565b6104bc610ef3565b610542858585858573__$da45e8fac203693ea6f365c15770158faa$__63053f3a2f90916040518263ffffffff1660e01b81526004016104fc91906113de565b602060405180830381865af4158015610519573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053d919061144f565b610f44565b5050505050565b6040805180820190915260008082526020820152600060058360405161056f9190611433565b90815260405190819003602001902080549091506001600160801b03161515806105a957508054600160801b90046001600160801b031615155b6105e95760405162461bcd60e51b81526020600482015260116024820152702ab739bab83837b93a32b21031b7b4b71760791b60448201526064016103dd565b6040805180820190915290546001600160801b038082168352600160801b90910416602082015292915050565b60008061062284610549565b9050600081602001516001600160801b03168461063f919061148f565b82519091506001600160801b031661065a620f4240836114a6565b11156106765761066d620f4240826114a6565b92505050610388565b50516001600160801b03169392505050565b60008060068360405161069b9190611433565b90815260405160209181900391909101812060010154636b73898560e11b825260901b6001600160901b031916600482015273__$da45e8fac203693ea6f365c15770158faa$__9063d6e7130a90602401600060405180830381865af4158015610709573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261073191908101906114c8565b905060006006846040516107459190611433565b90815260405190819003602001812054632aedd0eb60e01b82526001600160401b03600160801b9091041691506000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690632aedd0eb906107b49086906004016113de565b602060405180830381865afa1580156107d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f5919061153e565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632aedd0eb60016040518263ffffffff1660e01b81526004016108469190611591565b602060405180830381865afa158015610863573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610887919061153e565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b0e5fb01866040518263ffffffff1660e01b81526004016108d791906113de565b602060405180830381865afa1580156108f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610918919061161c565b60ff16905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b0e5fb0160016040518263ffffffff1660e01b815260040161096c9190611591565b602060405180830381865afa158015610989573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ad919061161c565b60ff16905060006109be8383611064565b9050818311156109d9576109d2818561148f565b93506109e6565b6109e3818661148f565b94505b6000846001816109f6898b61148f565b610a00919061163f565b610a0a9190611652565b610a1491906114a6565b9050600060035482610a2691906114a6565b90506002548111610a3957600254610a3b565b805b610a45908361163f565b9b9a5050505050505050505050565b6040805160808101825260008082526020820181905291810182905260608101919091526000825111610abe5760405162461bcd60e51b81526020600482015260126024820152712ab739bab83837b93a32b2103237b6b0b4b760711b60448201526064016103dd565b600682604051610ace9190611433565b908152604080516020928190038301812060808201835280546001600160401b038082168452600160401b8204811695840195909552600160801b90049093169181019190915260019091015460901b6001600160901b031916606082015292915050565b604051632aedd0eb60e01b81526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690632aedd0eb90610b829085906004016113de565b602060405180830381865afa158015610b9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610388919061153e565b6001600160401b0381166000908152600460205260409020805460609190610bea90611557565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1690611557565b8015610c635780601f10610c3857610100808354040283529160200191610c63565b820191906000526020600020905b815481529060010190602001808311610c4657829003601f168201915b50505050509050919050565b610c77610ef3565b600355565b6001600160401b0381166000908152600760205260409020805460609190610bea90611557565b610cab610ef3565b60028190556040518181527f076b69250f26f40827dee6a9be68dc3d524f057fb8a34a42ac6ee26fb97f302b906020015b60405180910390a150565b610cef610ef3565b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f7ce7ec0b50378fb6c0186ffb5f48325f6593fcb4ca4386f21861af3129188f5c90602001610cdc565b606060018054610d4c90611557565b80601f0160208091040260200160405190810160405280929190818152602001828054610d7890611557565b8015610dc55780601f10610d9a57610100808354040283529160200191610dc5565b820191906000526020600020905b815481529060010190602001808311610da857829003601f168201915b5050505050905090565b6001600160401b03811660009081526004602052604081208054829190610df590611557565b80601f0160208091040260200160405190810160405280929190818152602001828054610e2190611557565b8015610e6e5780601f10610e4357610100808354040283529160200191610e6e565b820191906000526020600020905b815481529060010190602001808311610e5157829003601f168201915b505050505090506000815111610ebb5760405162461bcd60e51b81526020600482015260126024820152712ab739bab83837b93a32b2103237b6b0b4b760711b60448201526064016103dd565b600681604051610ecb9190611433565b908152604051908190036020019020546001600160401b03600160801b909104169392505050565b6000546001600160a01b03163314610f425760405162461bcd60e51b81526020600482015260126024820152712ab730baba3437b934b9b2b21031b0b6361760711b60448201526064016103dd565b565b604080516080810182526001600160401b03808716825285811660208301528416818301526001600160901b03198316606082015290518190600690610f8b908990611433565b90815260408051602092819003830190208351815485850151868501516001600160401b039384166fffffffffffffffffffffffffffffffff1990931692909217600160401b918416919091021767ffffffffffffffff60801b1916600160801b91831691909102178255606090940151600190910180546dffffffffffffffffffffffffffff191660909290921c919091179055918616600090815260049091522061103887826116b4565b506001600160401b038516600090815260076020526040902061105b87826116b4565b50505050505050565b60008183111561108a576110788284611652565b61108390600a611857565b9050610388565b6110948383611652565b61109f90600a611857565b9392505050565b6000602082840312156110b857600080fd5b81356001600160e01b03198116811461109f57600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561110e5761110e6110d0565b604052919050565b60006001600160401b0382111561112f5761112f6110d0565b50601f01601f191660200190565b600082601f83011261114e57600080fd5b813561116161115c82611116565b6110e6565b81815284602083860101111561117657600080fd5b816020850160208301376000918101602001919091529392505050565b80356001600160801b03811681146111aa57600080fd5b919050565b60008082840360608112156111c357600080fd5b83356001600160401b03808211156111da57600080fd5b6111e68783880161113d565b94506040601f19840112156111fa57600080fd5b60405192506040830191508282108183111715611219576112196110d0565b5060405261122960208501611193565b815261123760408501611193565b6020820152809150509250929050565b80356001600160401b03811681146111aa57600080fd5b600080600080600060a0868803121561127657600080fd5b85356001600160401b038082111561128d57600080fd5b61129989838a0161113d565b96506112a760208901611247565b95506112b560408901611247565b94506112c360608901611247565b935060808801359150808211156112d957600080fd5b506112e68882890161113d565b9150509295509295909350565b60006020828403121561130557600080fd5b81356001600160401b0381111561131b57600080fd5b6113278482850161113d565b949350505050565b6000806040838503121561134257600080fd5b82356001600160401b0381111561135857600080fd5b6113648582860161113d565b95602094909401359450505050565b60006020828403121561138557600080fd5b61109f82611247565b60005b838110156113a9578181015183820152602001611391565b50506000910152565b600081518084526113ca81602086016020860161138e565b601f01601f19169290920160200192915050565b60208152600061109f60208301846113b2565b60006020828403121561140357600080fd5b5035919050565b60006020828403121561141c57600080fd5b81356001600160a01b038116811461109f57600080fd5b6000825161144581846020870161138e565b9190910192915050565b60006020828403121561146157600080fd5b81516001600160901b03198116811461109f57600080fd5b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761038857610388611479565b6000826114c357634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156114da57600080fd5b81516001600160401b038111156114f057600080fd5b8201601f8101841361150157600080fd5b805161150f61115c82611116565b81815285602083850101111561152457600080fd5b61153582602083016020860161138e565b95945050505050565b60006020828403121561155057600080fd5b5051919050565b600181811c9082168061156b57607f821691505b60208210810361158b57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020808352600084546115a581611557565b808487015260406001808416600081146115c657600181146115e05761160e565b60ff1985168984015283151560051b89018301955061160e565b896000528660002060005b858110156116065781548b82018601529083019088016115eb565b8a0184019650505b509398975050505050505050565b60006020828403121561162e57600080fd5b815160ff8116811461109f57600080fd5b8082018082111561038857610388611479565b8181038181111561038857610388611479565b601f8211156116af57600081815260208120601f850160051c8101602086101561168c5750805b601f850160051c820191505b818110156116ab57828155600101611698565b5050505b505050565b81516001600160401b038111156116cd576116cd6110d0565b6116e1816116db8454611557565b84611665565b602080601f83116001811461171657600084156116fe5750858301515b600019600386901b1c1916600185901b1785556116ab565b600085815260208120601f198616915b8281101561174557888601518255948401946001909101908401611726565b50858210156117635787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600181815b808511156117ae57816000190482111561179457611794611479565b808516156117a157918102915b93841c9390800290611778565b509250929050565b6000826117c557506001610388565b816117d257506000610388565b81600181146117e857600281146117f25761180e565b6001915050610388565b60ff84111561180357611803611479565b50506001821b610388565b5060208310610133831016604e8410600b8410161715611831575081810a610388565b61183b8383611773565b806000190482111561184f5761184f611479565b029392505050565b600061109f83836117b656fea26469706673582212204c39fe30653bd617636b3b2cc23ef8b0e929bc0328c53ecbb3dfe62274f711bf64736f6c63430008140033"; - -type EmmetFeeOracleConstructorParams = - | [linkLibraryAddresses: EmmetFeeOracleLibraryAddresses, signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: EmmetFeeOracleConstructorParams -): xs is ConstructorParameters => { - return ( - typeof xs[0] === "string" || - (Array.isArray as (arg: any) => arg is readonly any[])(xs[0]) || - "_isInterface" in xs[0] - ); -}; - -export class EmmetFeeOracle__factory extends ContractFactory { - constructor(...args: EmmetFeeOracleConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - const [linkLibraryAddresses, signer] = args; - super( - _abi, - EmmetFeeOracle__factory.linkBytecode(linkLibraryAddresses), - signer - ); - } - } - - static linkBytecode( - linkLibraryAddresses: EmmetFeeOracleLibraryAddresses - ): string { - let linkedBytecode = _bytecode; - - linkedBytecode = linkedBytecode.replace( - new RegExp("__\\$da45e8fac203693ea6f365c15770158faa\\$__", "g"), - linkLibraryAddresses[ - "contracts/libs/StringToFixedBytes.sol:StringToFixedBytes" - ] - .replace(/^0x/, "") - .toLowerCase() - ); - - return linkedBytecode; - } - - override getDeployTransaction( - selfCoin_: string, - txMinimumFee_: BigNumberish, - priceOracle_: AddressLike, - overrides?: NonPayableOverrides & { from?: string } - ): Promise { - return super.getDeployTransaction( - selfCoin_, - txMinimumFee_, - priceOracle_, - overrides || {} - ); - } - override deploy( - selfCoin_: string, - txMinimumFee_: BigNumberish, - priceOracle_: AddressLike, - overrides?: NonPayableOverrides & { from?: string } - ) { - return super.deploy( - selfCoin_, - txMinimumFee_, - priceOracle_, - overrides || {} - ) as Promise< - EmmetFeeOracle & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect(runner: ContractRunner | null): EmmetFeeOracle__factory { - return super.connect(runner) as EmmetFeeOracle__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): EmmetFeeOracleInterface { - return new Interface(_abi) as EmmetFeeOracleInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): EmmetFeeOracle { - return new Contract(address, _abi, runner) as unknown as EmmetFeeOracle; - } -} - -export interface EmmetFeeOracleLibraryAddresses { - ["contracts/libs/StringToFixedBytes.sol:StringToFixedBytes"]: string; -} diff --git a/src/contracts/evm/typechain-types/factories/contracts/PriceOracle/IChainLinkPriceFeedsAdmin__factory.ts b/src/contracts/evm/typechain-types/factories/contracts/PriceOracle/IChainLinkPriceFeedsAdmin__factory.ts deleted file mode 100644 index 17319e1..0000000 --- a/src/contracts/evm/typechain-types/factories/contracts/PriceOracle/IChainLinkPriceFeedsAdmin__factory.ts +++ /dev/null @@ -1,129 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - IChainLinkPriceFeedsAdmin, - IChainLinkPriceFeedsAdminInterface, -} from "../../../contracts/PriceOracle/IChainLinkPriceFeedsAdmin"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "string", - name: "asset", - type: "string", - }, - { - indexed: false, - internalType: "address", - name: "dataFeed", - type: "address", - }, - ], - name: "AssetDataFeedCreated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "string", - name: "asset", - type: "string", - }, - ], - name: "AssetDataFeedDeleted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "string", - name: "asset", - type: "string", - }, - { - indexed: false, - internalType: "address", - name: "dataFeed", - type: "address", - }, - ], - name: "AssetDataFeedUpdated", - type: "event", - }, - { - inputs: [ - { - internalType: "string", - name: "asset", - type: "string", - }, - { - internalType: "address", - name: "dataFeed", - type: "address", - }, - ], - name: "addDataFeed", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "asset", - type: "string", - }, - ], - name: "deleteDataFeed", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "asset", - type: "string", - }, - { - internalType: "address", - name: "dataFeed", - type: "address", - }, - ], - name: "updateDataFeed", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IChainLinkPriceFeedsAdmin__factory { - static readonly abi = _abi; - static createInterface(): IChainLinkPriceFeedsAdminInterface { - return new Interface(_abi) as IChainLinkPriceFeedsAdminInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): IChainLinkPriceFeedsAdmin { - return new Contract( - address, - _abi, - runner - ) as unknown as IChainLinkPriceFeedsAdmin; - } -} diff --git a/src/contracts/evm/typechain-types/factories/contracts/PriceOracle/IChainLinkPriceFeeds__factory.ts b/src/contracts/evm/typechain-types/factories/contracts/PriceOracle/IChainLinkPriceFeeds__factory.ts deleted file mode 100644 index 019fb56..0000000 --- a/src/contracts/evm/typechain-types/factories/contracts/PriceOracle/IChainLinkPriceFeeds__factory.ts +++ /dev/null @@ -1,86 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - IChainLinkPriceFeeds, - IChainLinkPriceFeedsInterface, -} from "../../../contracts/PriceOracle/IChainLinkPriceFeeds"; - -const _abi = [ - { - inputs: [ - { - internalType: "string", - name: "asset", - type: "string", - }, - ], - name: "getAssetPrice", - outputs: [ - { - internalType: "int256", - name: "", - type: "int256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "asset", - type: "string", - }, - ], - name: "getAssetPriceDecimals", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "asset", - type: "string", - }, - ], - name: "getDataFeedAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class IChainLinkPriceFeeds__factory { - static readonly abi = _abi; - static createInterface(): IChainLinkPriceFeedsInterface { - return new Interface(_abi) as IChainLinkPriceFeedsInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): IChainLinkPriceFeeds { - return new Contract( - address, - _abi, - runner - ) as unknown as IChainLinkPriceFeeds; - } -} diff --git a/src/contracts/evm/typechain-types/factories/contracts/PriceOracle/IEmmetFeeOracleAdmin__factory.ts b/src/contracts/evm/typechain-types/factories/contracts/PriceOracle/IEmmetFeeOracleAdmin__factory.ts deleted file mode 100644 index 170491c..0000000 --- a/src/contracts/evm/typechain-types/factories/contracts/PriceOracle/IEmmetFeeOracleAdmin__factory.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - IEmmetFeeOracleAdmin, - IEmmetFeeOracleAdminInterface, -} from "../../../contracts/PriceOracle/IEmmetFeeOracleAdmin"; - -const _abi = [ - { - inputs: [ - { - internalType: "string", - name: "chainName", - type: "string", - }, - { - internalType: "uint64", - name: "chainId_", - type: "uint64", - }, - { - internalType: "uint64", - name: "domain_", - type: "uint64", - }, - { - internalType: "uint64", - name: "txFee_", - type: "uint64", - }, - { - internalType: "string", - name: "nativeCoin_", - type: "string", - }, - ], - name: "updateChain", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "coinName_", - type: "string", - }, - { - components: [ - { - internalType: "uint128", - name: "minimum", - type: "uint128", - }, - { - internalType: "uint128", - name: "percentage", - type: "uint128", - }, - ], - internalType: "struct IEmmetFeeOracle.CoinFee", - name: "coinFee_", - type: "tuple", - }, - ], - name: "updateCoinFee", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "protocolFeeDivisor_", - type: "uint256", - }, - ], - name: "updateProtocolFeeDivisor", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IEmmetFeeOracleAdmin__factory { - static readonly abi = _abi; - static createInterface(): IEmmetFeeOracleAdminInterface { - return new Interface(_abi) as IEmmetFeeOracleAdminInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): IEmmetFeeOracleAdmin { - return new Contract( - address, - _abi, - runner - ) as unknown as IEmmetFeeOracleAdmin; - } -} diff --git a/src/contracts/evm/typechain-types/factories/contracts/PriceOracle/IEmmetFeeOracle__factory.ts b/src/contracts/evm/typechain-types/factories/contracts/PriceOracle/IEmmetFeeOracle__factory.ts deleted file mode 100644 index 1ccfbeb..0000000 --- a/src/contracts/evm/typechain-types/factories/contracts/PriceOracle/IEmmetFeeOracle__factory.ts +++ /dev/null @@ -1,229 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Interface, type ContractRunner } from "ethers"; -import type { - IEmmetFeeOracle, - IEmmetFeeOracleInterface, -} from "../../../contracts/PriceOracle/IEmmetFeeOracle"; - -const _abi = [ - { - inputs: [ - { - internalType: "string", - name: "coinName_", - type: "string", - }, - { - internalType: "uint256", - name: "amount_", - type: "uint256", - }, - ], - name: "calculateCoinFees", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "destChainName_", - type: "string", - }, - ], - name: "calculateTransactionFee", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "chainName_", - type: "string", - }, - ], - name: "getChainByname", - outputs: [ - { - components: [ - { - internalType: "uint64", - name: "chainId", - type: "uint64", - }, - { - internalType: "uint64", - name: "domain", - type: "uint64", - }, - { - internalType: "uint64", - name: "txFee", - type: "uint64", - }, - { - internalType: "bytes14", - name: "nativeCoin", - type: "bytes14", - }, - ], - internalType: "struct IEmmetFeeOracle.Chain", - name: "", - type: "tuple", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint64", - name: "destDomain_", - type: "uint64", - }, - ], - name: "getChainFee", - outputs: [ - { - internalType: "uint64", - name: "", - type: "uint64", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint64", - name: "destDomain_", - type: "uint64", - }, - ], - name: "getChainNameByDomain", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint64", - name: "chainId_", - type: "uint64", - }, - ], - name: "getChainNameById", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "coinName_", - type: "string", - }, - ], - name: "getCoinFee", - outputs: [ - { - components: [ - { - internalType: "uint128", - name: "minimum", - type: "uint128", - }, - { - internalType: "uint128", - name: "percentage", - type: "uint128", - }, - ], - internalType: "struct IEmmetFeeOracle.CoinFee", - name: "", - type: "tuple", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "coinName", - type: "string", - }, - ], - name: "getCoinPrice", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "selfCoin", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class IEmmetFeeOracle__factory { - static readonly abi = _abi; - static createInterface(): IEmmetFeeOracleInterface { - return new Interface(_abi) as IEmmetFeeOracleInterface; - } - static connect( - address: string, - runner?: ContractRunner | null - ): IEmmetFeeOracle { - return new Contract(address, _abi, runner) as unknown as IEmmetFeeOracle; - } -} diff --git a/src/contracts/evm/typechain-types/factories/contracts/PriceOracle/index.ts b/src/contracts/evm/typechain-types/factories/contracts/PriceOracle/index.ts deleted file mode 100644 index 4ae762b..0000000 --- a/src/contracts/evm/typechain-types/factories/contracts/PriceOracle/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ChainLinkPriceFeeds__factory } from "./ChainLinkPriceFeeds__factory"; -export { EmmetFeeOracle__factory } from "./EmmetFeeOracle__factory"; -export { IChainLinkPriceFeeds__factory } from "./IChainLinkPriceFeeds__factory"; -export { IChainLinkPriceFeedsAdmin__factory } from "./IChainLinkPriceFeedsAdmin__factory"; -export { IEmmetFeeOracle__factory } from "./IEmmetFeeOracle__factory"; -export { IEmmetFeeOracleAdmin__factory } from "./IEmmetFeeOracleAdmin__factory"; diff --git a/src/contracts/evm/typechain-types/factories/contracts/index.ts b/src/contracts/evm/typechain-types/factories/contracts/index.ts deleted file mode 100644 index 771dcbb..0000000 --- a/src/contracts/evm/typechain-types/factories/contracts/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as bridgeComponents from "./BridgeComponents"; -export { FTBridge__factory } from "./FTBridge__factory"; diff --git a/src/contracts/evm/typechain-types/factories/index.ts b/src/contracts/evm/typechain-types/factories/index.ts deleted file mode 100644 index 6ff9ace..0000000 --- a/src/contracts/evm/typechain-types/factories/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as openzeppelin from "./@openzeppelin"; -export * as contracts from "./contracts"; diff --git a/src/contracts/evm/typechain-types/hardhat.d.ts b/src/contracts/evm/typechain-types/hardhat.d.ts deleted file mode 100644 index 9383dc9..0000000 --- a/src/contracts/evm/typechain-types/hardhat.d.ts +++ /dev/null @@ -1,459 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { ethers } from "ethers"; -import { - DeployContractOptions, - FactoryOptions, - HardhatEthersHelpers as HardhatEthersHelpersBase, -} from "@nomicfoundation/hardhat-ethers/types"; - -import * as Contracts from "."; - -declare module "hardhat/types/runtime" { - interface HardhatEthersHelpers extends HardhatEthersHelpersBase { - getContractFactory( - name: "AccessControl", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: "IAccessControl", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: "IERC1155Errors", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: "IERC20Errors", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: "IERC721Errors", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: "ERC20", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: "IERC20Metadata", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: "IERC20Permit", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: "IERC20", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: "SafeERC20", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: "Address", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: "ERC165", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: "IERC165", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: "Pausable", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: "ReentrancyGuard", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: "BridgeSecurity", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: "BridgeStorage", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: "BridgeUtils", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: "IBridgeContract", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: "IERC20MinterBurner", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: "IMappingAdmin", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: "WrappedERC20", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: "FTBridge", - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - - getContractAt( - name: "AccessControl", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: "IAccessControl", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: "IERC1155Errors", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: "IERC20Errors", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: "IERC721Errors", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: "ERC20", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: "IERC20Metadata", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: "IERC20Permit", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: "IERC20", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: "SafeERC20", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: "Address", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: "ERC165", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: "IERC165", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: "Pausable", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: "ReentrancyGuard", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: "BridgeSecurity", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: "BridgeStorage", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: "BridgeUtils", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: "IBridgeContract", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: "IERC20MinterBurner", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: "IMappingAdmin", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: "WrappedERC20", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: "FTBridge", - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - - deployContract( - name: "AccessControl", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "IAccessControl", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "IERC1155Errors", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "IERC20Errors", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "IERC721Errors", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "ERC20", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "IERC20Metadata", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "IERC20Permit", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "IERC20", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "SafeERC20", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "Address", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "ERC165", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "IERC165", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "Pausable", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "ReentrancyGuard", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "BridgeSecurity", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "BridgeStorage", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "BridgeUtils", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "IBridgeContract", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "IERC20MinterBurner", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "IMappingAdmin", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "WrappedERC20", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "FTBridge", - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - - deployContract( - name: "AccessControl", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "IAccessControl", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "IERC1155Errors", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "IERC20Errors", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "IERC721Errors", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "ERC20", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "IERC20Metadata", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "IERC20Permit", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "IERC20", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "SafeERC20", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "Address", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "ERC165", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "IERC165", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "Pausable", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "ReentrancyGuard", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "BridgeSecurity", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "BridgeStorage", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "BridgeUtils", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "IBridgeContract", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "IERC20MinterBurner", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "IMappingAdmin", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "WrappedERC20", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: "FTBridge", - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - - // default types - getContractFactory( - name: string, - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - abi: any[], - bytecode: ethers.BytesLike, - signer?: ethers.Signer, - ): Promise; - getContractAt( - nameOrAbi: string | any[], - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - deployContract( - name: string, - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: string, - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - } -} diff --git a/src/contracts/evm/typechain-types/index.ts b/src/contracts/evm/typechain-types/index.ts deleted file mode 100644 index fb73ddf..0000000 --- a/src/contracts/evm/typechain-types/index.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as openzeppelin from "./@openzeppelin"; -export type { openzeppelin }; -import type * as contracts from "./contracts"; -export type { contracts }; -export * as factories from "./factories"; -export type { AccessControl } from "./@openzeppelin/contracts/access/AccessControl"; -export { AccessControl__factory } from "./factories/@openzeppelin/contracts/access/AccessControl__factory"; -export type { IAccessControl } from "./@openzeppelin/contracts/access/IAccessControl"; -export { IAccessControl__factory } from "./factories/@openzeppelin/contracts/access/IAccessControl__factory"; -export type { IERC1155Errors } from "./@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors"; -export { IERC1155Errors__factory } from "./factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory"; -export type { IERC20Errors } from "./@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors"; -export { IERC20Errors__factory } from "./factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory"; -export type { IERC721Errors } from "./@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors"; -export { IERC721Errors__factory } from "./factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory"; -export type { ERC20 } from "./@openzeppelin/contracts/token/ERC20/ERC20"; -export { ERC20__factory } from "./factories/@openzeppelin/contracts/token/ERC20/ERC20__factory"; -export type { IERC20Metadata } from "./@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata"; -export { IERC20Metadata__factory } from "./factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory"; -export type { IERC20Permit } from "./@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit"; -export { IERC20Permit__factory } from "./factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit__factory"; -export type { IERC20 } from "./@openzeppelin/contracts/token/ERC20/IERC20"; -export { IERC20__factory } from "./factories/@openzeppelin/contracts/token/ERC20/IERC20__factory"; -export type { SafeERC20 } from "./@openzeppelin/contracts/token/ERC20/utils/SafeERC20"; -export { SafeERC20__factory } from "./factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory"; -export type { Address } from "./@openzeppelin/contracts/utils/Address"; -export { Address__factory } from "./factories/@openzeppelin/contracts/utils/Address__factory"; -export type { ERC165 } from "./@openzeppelin/contracts/utils/introspection/ERC165"; -export { ERC165__factory } from "./factories/@openzeppelin/contracts/utils/introspection/ERC165__factory"; -export type { IERC165 } from "./@openzeppelin/contracts/utils/introspection/IERC165"; -export { IERC165__factory } from "./factories/@openzeppelin/contracts/utils/introspection/IERC165__factory"; -export type { Pausable } from "./@openzeppelin/contracts/utils/Pausable"; -export { Pausable__factory } from "./factories/@openzeppelin/contracts/utils/Pausable__factory"; -export type { ReentrancyGuard } from "./@openzeppelin/contracts/utils/ReentrancyGuard"; -export { ReentrancyGuard__factory } from "./factories/@openzeppelin/contracts/utils/ReentrancyGuard__factory"; -export type { BridgeSecurity } from "./contracts/BridgeComponents/BridgeSecurity"; -export { BridgeSecurity__factory } from "./factories/contracts/BridgeComponents/BridgeSecurity__factory"; -export type { BridgeStorage } from "./contracts/BridgeComponents/BridgeStorage"; -export { BridgeStorage__factory } from "./factories/contracts/BridgeComponents/BridgeStorage__factory"; -export type { BridgeUtils } from "./contracts/BridgeComponents/BridgeUtils"; -export { BridgeUtils__factory } from "./factories/contracts/BridgeComponents/BridgeUtils__factory"; -export type { IBridgeContract } from "./contracts/BridgeComponents/IBridgeContract"; -export { IBridgeContract__factory } from "./factories/contracts/BridgeComponents/IBridgeContract__factory"; -export type { IERC20MinterBurner } from "./contracts/BridgeComponents/IERC20MinterBurner"; -export { IERC20MinterBurner__factory } from "./factories/contracts/BridgeComponents/IERC20MinterBurner__factory"; -export type { IMappingAdmin } from "./contracts/BridgeComponents/IMappingAdmin"; -export { IMappingAdmin__factory } from "./factories/contracts/BridgeComponents/IMappingAdmin__factory"; -export type { WrappedERC20 } from "./contracts/BridgeComponents/WrappedERC20"; -export { WrappedERC20__factory } from "./factories/contracts/BridgeComponents/WrappedERC20__factory"; -export type { FTBridge } from "./contracts/FTBridge"; -export { FTBridge__factory } from "./factories/contracts/FTBridge__factory"; diff --git a/src/contracts/index.ts b/src/contracts/index.ts index 31b990c..b5166a7 100644 --- a/src/contracts/index.ts +++ b/src/contracts/index.ts @@ -1,2 +1 @@ -export * from "./evm/typechain-types" export * from "./ton" \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 6a78498..f29ea0b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -63,9 +63,9 @@ "@emmet-contracts/web3@git+https://github.com/Emmet-Finance/emmet-types#web3": version "0.1.0" - resolved "git+https://github.com/Emmet-Finance/emmet-types#de1603360ae3848b9becce6088d09a0d75115643" + resolved "git+https://github.com/Emmet-Finance/emmet-types#5f450650af5fbfb4bf29f28d16c0a1d515e36bf6" dependencies: - ethers "^6.12.1" + ethers "=6.13.0" "@noble/curves@1.2.0": version "1.2.0" @@ -179,10 +179,10 @@ ethers-decode-error@^2.1.3: resolved "https://registry.yarnpkg.com/ethers-decode-error/-/ethers-decode-error-2.1.3.tgz#ed0c81a400e9b66bba8c3ce356a4e52eab878e3f" integrity sha512-x27u04XC/s8MRpuqiylIXbj4KMrt/5clYS2nle1b0bgbWFuoUZocDzjfXEfc5KzVmCQuITD9elqyO2VyxTGwdw== -ethers@^6.12.1: - version "6.12.1" - resolved "https://registry.yarnpkg.com/ethers/-/ethers-6.12.1.tgz#517ff6d66d4fd5433e38e903051da3e57c87ff37" - integrity sha512-j6wcVoZf06nqEcBbDWkKg8Fp895SS96dSnTCjiXT+8vt2o02raTn4Lo9ERUuIVU5bAjoPYeA+7ytQFexFmLuVw== +ethers@=6.13.0, ethers@^6.13: + version "6.13.0" + resolved "https://registry.yarnpkg.com/ethers/-/ethers-6.13.0.tgz#f342958d0f622cf06559f59fbccdc1d30fa64f50" + integrity sha512-+yyQQQWEntY5UVbCv++guA14RRVFm1rSnO1GoLFdrK7/XRWMoktNgyG9UjwxrQqGBfGyFKknNZ81YpUS2emCgg== dependencies: "@adraffy/ens-normalize" "1.10.1" "@noble/curves" "1.2.0"