@hyperlane-xyz/sdk 18.1.0 → 18.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/block-explorer/etherscan.d.ts +94 -2
- package/dist/block-explorer/etherscan.d.ts.map +1 -1
- package/dist/block-explorer/etherscan.js +129 -6
- package/dist/block-explorer/etherscan.js.map +1 -1
- package/dist/consts/multisigIsm.d.ts.map +1 -1
- package/dist/consts/multisigIsm.js +120 -208
- package/dist/consts/multisigIsm.js.map +1 -1
- package/dist/core/RadixCoreReader.d.ts +16 -0
- package/dist/core/RadixCoreReader.d.ts.map +1 -0
- package/dist/core/RadixCoreReader.js +31 -0
- package/dist/core/RadixCoreReader.js.map +1 -0
- package/dist/deploy/HyperlaneDeployer.d.ts.map +1 -1
- package/dist/deploy/HyperlaneDeployer.js +1 -1
- package/dist/deploy/HyperlaneDeployer.js.map +1 -1
- package/dist/deploy/verify/ContractVerifier.d.ts +4 -11
- package/dist/deploy/verify/ContractVerifier.d.ts.map +1 -1
- package/dist/deploy/verify/ContractVerifier.js +61 -157
- package/dist/deploy/verify/ContractVerifier.js.map +1 -1
- package/dist/deploy/verify/types.d.ts +1 -49
- package/dist/deploy/verify/types.d.ts.map +1 -1
- package/dist/deploy/verify/types.js +0 -42
- package/dist/deploy/verify/types.js.map +1 -1
- package/dist/deploy/warp.d.ts +2 -1
- package/dist/deploy/warp.d.ts.map +1 -1
- package/dist/deploy/warp.js +27 -10
- package/dist/deploy/warp.js.map +1 -1
- package/dist/fork/types.d.ts +15 -15
- package/dist/gas/utils.d.ts.map +1 -1
- package/dist/gas/utils.js +4 -2
- package/dist/gas/utils.js.map +1 -1
- package/dist/hook/CosmosNativeHookReader.d.ts +3 -2
- package/dist/hook/CosmosNativeHookReader.d.ts.map +1 -1
- package/dist/hook/CosmosNativeHookReader.js +6 -1
- package/dist/hook/CosmosNativeHookReader.js.map +1 -1
- package/dist/hook/RadixHookModule.d.ts +49 -0
- package/dist/hook/RadixHookModule.d.ts.map +1 -0
- package/dist/hook/RadixHookModule.js +182 -0
- package/dist/hook/RadixHookModule.js.map +1 -0
- package/dist/hook/RadixHookReader.d.ts +14 -0
- package/dist/hook/RadixHookReader.d.ts.map +1 -0
- package/dist/hook/RadixHookReader.js +64 -0
- package/dist/hook/RadixHookReader.js.map +1 -0
- package/dist/index.d.ts +12 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/ism/CosmosNativeIsmModule.d.ts.map +1 -1
- package/dist/ism/CosmosNativeIsmModule.js +7 -0
- package/dist/ism/CosmosNativeIsmModule.js.map +1 -1
- package/dist/ism/CosmosNativeIsmReader.d.ts +3 -2
- package/dist/ism/CosmosNativeIsmReader.d.ts.map +1 -1
- package/dist/ism/CosmosNativeIsmReader.js +14 -1
- package/dist/ism/CosmosNativeIsmReader.js.map +1 -1
- package/dist/ism/RadixIsmModule.d.ts +50 -0
- package/dist/ism/RadixIsmModule.d.ts.map +1 -0
- package/dist/ism/RadixIsmModule.js +208 -0
- package/dist/ism/RadixIsmModule.js.map +1 -0
- package/dist/ism/RadixIsmReader.d.ts +16 -0
- package/dist/ism/RadixIsmReader.d.ts.map +1 -0
- package/dist/ism/RadixIsmReader.js +79 -0
- package/dist/ism/RadixIsmReader.js.map +1 -0
- package/dist/metadata/ChainMetadataManager.test.d.ts +2 -0
- package/dist/metadata/ChainMetadataManager.test.d.ts.map +1 -0
- package/dist/metadata/ChainMetadataManager.test.js +119 -0
- package/dist/metadata/ChainMetadataManager.test.js.map +1 -0
- package/dist/metadata/agentConfig.d.ts +910 -910
- package/dist/metadata/chainMetadataTypes.d.ts +6 -6
- package/dist/middleware/account/InterchainAccount.d.ts +4 -4
- package/dist/middleware/account/types.d.ts +4 -4
- package/dist/providers/ProviderType.d.ts +10 -9
- package/dist/providers/ProviderType.d.ts.map +1 -1
- package/dist/providers/ProviderType.js.map +1 -1
- package/dist/providers/transactions/submitter/IcaTxSubmitter.d.ts +2 -2
- package/dist/providers/transactions/submitter/IcaTxSubmitter.d.ts.map +1 -1
- package/dist/providers/transactions/submitter/IcaTxSubmitter.js +9 -7
- package/dist/providers/transactions/submitter/IcaTxSubmitter.js.map +1 -1
- package/dist/providers/transactions/submitter/builder/types.d.ts +32 -6
- package/dist/providers/transactions/submitter/builder/types.d.ts.map +1 -1
- package/dist/providers/transactions/submitter/cosmosnative/CosmosNativeJsonRpcTxSubmitter.d.ts +23 -0
- package/dist/providers/transactions/submitter/cosmosnative/CosmosNativeJsonRpcTxSubmitter.d.ts.map +1 -0
- package/dist/providers/transactions/submitter/cosmosnative/CosmosNativeJsonRpcTxSubmitter.js +23 -0
- package/dist/providers/transactions/submitter/cosmosnative/CosmosNativeJsonRpcTxSubmitter.js.map +1 -0
- package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxBuilder.d.ts +1 -0
- package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxBuilder.d.ts.map +1 -1
- package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxBuilder.js +6 -0
- package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxBuilder.js.map +1 -1
- package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.d.ts +1 -0
- package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.d.ts.map +1 -1
- package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.js +4 -1
- package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.js.map +1 -1
- package/dist/providers/transactions/submitter/ethersV5/EV5TimelockSubmitter.d.ts +2 -2
- package/dist/providers/transactions/submitter/ethersV5/EV5TimelockSubmitter.d.ts.map +1 -1
- package/dist/providers/transactions/submitter/ethersV5/EV5TimelockSubmitter.js +2 -2
- package/dist/providers/transactions/submitter/ethersV5/EV5TimelockSubmitter.js.map +1 -1
- package/dist/providers/transactions/submitter/ethersV5/types.d.ts +20 -2
- package/dist/providers/transactions/submitter/ethersV5/types.d.ts.map +1 -1
- package/dist/providers/transactions/submitter/ethersV5/types.js +3 -0
- package/dist/providers/transactions/submitter/ethersV5/types.js.map +1 -1
- package/dist/providers/transactions/submitter/submitterBuilderGetter.d.ts +6 -5
- package/dist/providers/transactions/submitter/submitterBuilderGetter.d.ts.map +1 -1
- package/dist/providers/transactions/submitter/submitterBuilderGetter.js +48 -17
- package/dist/providers/transactions/submitter/submitterBuilderGetter.js.map +1 -1
- package/dist/providers/transactions/submitter/types.d.ts +7 -1
- package/dist/providers/transactions/submitter/types.d.ts.map +1 -1
- package/dist/providers/transactions/types.d.ts +2 -2
- package/dist/signers/cosmos/cosmjs.d.ts +16 -0
- package/dist/signers/cosmos/cosmjs.d.ts.map +1 -0
- package/dist/signers/cosmos/cosmjs.js +39 -0
- package/dist/signers/cosmos/cosmjs.js.map +1 -0
- package/dist/signers/evm/ethersv5.d.ts +13 -0
- package/dist/signers/evm/ethersv5.d.ts.map +1 -0
- package/dist/signers/evm/ethersv5.js +27 -0
- package/dist/signers/evm/ethersv5.js.map +1 -0
- package/dist/signers/radix/radix-toolkit.d.ts +15 -0
- package/dist/signers/radix/radix-toolkit.d.ts.map +1 -0
- package/dist/signers/radix/radix-toolkit.js +44 -0
- package/dist/signers/radix/radix-toolkit.js.map +1 -0
- package/dist/signers/signers.d.ts +17 -0
- package/dist/signers/signers.d.ts.map +1 -0
- package/dist/signers/signers.js +24 -0
- package/dist/signers/signers.js.map +1 -0
- package/dist/signers/starknet/starknetjs.d.ts +13 -0
- package/dist/signers/starknet/starknetjs.d.ts.map +1 -0
- package/dist/signers/starknet/starknetjs.js +34 -0
- package/dist/signers/starknet/starknetjs.js.map +1 -0
- package/dist/signers/svm/solana-web3js.d.ts +18 -0
- package/dist/signers/svm/solana-web3js.d.ts.map +1 -0
- package/dist/signers/svm/solana-web3js.js +44 -0
- package/dist/signers/svm/solana-web3js.js.map +1 -0
- package/dist/signers/types.d.ts +7 -0
- package/dist/signers/types.d.ts.map +1 -0
- package/dist/signers/types.js +2 -0
- package/dist/signers/types.js.map +1 -0
- package/dist/token/CosmosNativeWarpModule.d.ts.map +1 -1
- package/dist/token/CosmosNativeWarpModule.js +10 -4
- package/dist/token/CosmosNativeWarpModule.js.map +1 -1
- package/dist/token/EvmERC20WarpModule.d.ts.map +1 -1
- package/dist/token/EvmERC20WarpModule.js +1 -1
- package/dist/token/EvmERC20WarpModule.js.map +1 -1
- package/dist/token/EvmERC20WarpRouteReader.d.ts.map +1 -1
- package/dist/token/EvmERC20WarpRouteReader.js +2 -1
- package/dist/token/EvmERC20WarpRouteReader.js.map +1 -1
- package/dist/token/IToken.d.ts +1 -0
- package/dist/token/IToken.d.ts.map +1 -1
- package/dist/token/Token.d.ts +1 -0
- package/dist/token/Token.d.ts.map +1 -1
- package/dist/token/Token.js +6 -2
- package/dist/token/Token.js.map +1 -1
- package/dist/token/Token.test.js +103 -0
- package/dist/token/Token.test.js.map +1 -1
- package/dist/token/TokenStandard.d.ts +1 -0
- package/dist/token/TokenStandard.d.ts.map +1 -1
- package/dist/token/TokenStandard.js +9 -0
- package/dist/token/TokenStandard.js.map +1 -1
- package/dist/token/adapters/CosmosTokenAdapter.d.ts +4 -3
- package/dist/token/adapters/CosmosTokenAdapter.d.ts.map +1 -1
- package/dist/token/adapters/CosmosTokenAdapter.js +17 -2
- package/dist/token/adapters/CosmosTokenAdapter.js.map +1 -1
- package/dist/token/adapters/EvmTokenAdapter.d.ts +1 -0
- package/dist/token/adapters/EvmTokenAdapter.d.ts.map +1 -1
- package/dist/token/adapters/EvmTokenAdapter.js +4 -0
- package/dist/token/adapters/EvmTokenAdapter.js.map +1 -1
- package/dist/token/adapters/RadixTokenAdapter.d.ts.map +1 -1
- package/dist/token/adapters/RadixTokenAdapter.js +4 -2
- package/dist/token/adapters/RadixTokenAdapter.js.map +1 -1
- package/dist/token/configUtils.d.ts +2 -0
- package/dist/token/configUtils.d.ts.map +1 -1
- package/dist/token/configUtils.js +42 -15
- package/dist/token/configUtils.js.map +1 -1
- package/dist/token/cosmosnativeDeploy.d.ts.map +1 -1
- package/dist/token/cosmosnativeDeploy.js +10 -1
- package/dist/token/cosmosnativeDeploy.js.map +1 -1
- package/dist/token/types.d.ts +1 -1
- package/dist/token/types.d.ts.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/cosmos.d.ts +169 -519
- package/dist/utils/cosmos.d.ts.map +1 -1
- package/dist/utils/cosmos.js +20 -221
- package/dist/utils/cosmos.js.map +1 -1
- package/dist/utils/ism.d.ts +1 -1
- package/dist/utils/ism.d.ts.map +1 -1
- package/package.json +7 -6
|
@@ -1,10 +1,52 @@
|
|
|
1
1
|
import { Address, HexString } from '@hyperlane-xyz/utils';
|
|
2
|
+
import { SolidityStandardJsonInput } from '../deploy/verify/types.js';
|
|
2
3
|
import { GetEventLogsResponse } from '../rpc/evm/types.js';
|
|
4
|
+
export declare enum EtherscanLikeExplorerApiModule {
|
|
5
|
+
LOGS = "logs",
|
|
6
|
+
CONTRACT = "contract"
|
|
7
|
+
}
|
|
8
|
+
export declare enum EtherscanLikeExplorerApiAction {
|
|
9
|
+
GETSOURCECODE = "getsourcecode",
|
|
10
|
+
VERIFY_IMPLEMENTATION = "verifysourcecode",
|
|
11
|
+
VERIFY_PROXY = "verifyproxycontract",
|
|
12
|
+
CHECK_IMPLEMENTATION_STATUS = "checkverifystatus",
|
|
13
|
+
CHECK_PROXY_STATUS = "checkproxyverification",
|
|
14
|
+
GET_CONTRACT_CREATION_CODE = "getcontractcreation",
|
|
15
|
+
GET_LOGS = "getLogs"
|
|
16
|
+
}
|
|
17
|
+
export declare enum EtherscanLikeExplorerApiErrors {
|
|
18
|
+
ALREADY_VERIFIED = "Contract source code already verified",
|
|
19
|
+
ALREADY_VERIFIED_ALT = "Already Verified",
|
|
20
|
+
NOT_VERIFIED = "Contract source code not verified",
|
|
21
|
+
VERIFICATION_PENDING = "Pending in queue",
|
|
22
|
+
PROXY_FAILED = "A corresponding implementation contract was unfortunately not detected for the proxy address.",
|
|
23
|
+
BYTECODE_MISMATCH = "Fail - Unable to verify. Compiled contract deployment bytecode does NOT match the transaction deployment bytecode.",
|
|
24
|
+
UNABLE_TO_VERIFY = "Fail - Unable to verify",
|
|
25
|
+
UNKNOWN_UID = "Unknown UID",
|
|
26
|
+
NO_RECORD = "No records found",
|
|
27
|
+
NO_LOGS_FOUND = "No logs found"
|
|
28
|
+
}
|
|
29
|
+
export declare enum ExplorerLicenseType {
|
|
30
|
+
NO_LICENSE = "1",
|
|
31
|
+
UNLICENSED = "2",
|
|
32
|
+
MIT = "3",
|
|
33
|
+
GPL2 = "4",
|
|
34
|
+
GPL3 = "5",
|
|
35
|
+
LGPL2 = "6",
|
|
36
|
+
LGPL3 = "7",
|
|
37
|
+
BSD2 = "8",
|
|
38
|
+
BSD3 = "9",
|
|
39
|
+
MPL2 = "10",
|
|
40
|
+
OSL3 = "11",
|
|
41
|
+
APACHE2 = "12",
|
|
42
|
+
AGPL3 = "13",
|
|
43
|
+
BSL = "14"
|
|
44
|
+
}
|
|
3
45
|
interface EtherscanLikeAPIOptions {
|
|
4
46
|
apiKey?: string;
|
|
5
47
|
apiUrl: string;
|
|
6
48
|
}
|
|
7
|
-
interface BaseEtherscanLikeAPIParams<TModule extends
|
|
49
|
+
interface BaseEtherscanLikeAPIParams<TModule extends EtherscanLikeExplorerApiModule, TAction extends EtherscanLikeExplorerApiAction> {
|
|
8
50
|
module: TModule;
|
|
9
51
|
action: TAction;
|
|
10
52
|
}
|
|
@@ -19,12 +61,62 @@ export declare function tryGetContractDeploymentTransaction(explorerOptions: Eth
|
|
|
19
61
|
export declare function getContractDeploymentTransaction(explorerOptions: EtherscanLikeAPIOptions, requestOptions: {
|
|
20
62
|
contractAddress: Address;
|
|
21
63
|
}): Promise<GetContractDeploymentTransactionResponse>;
|
|
22
|
-
interface GetEventLogs extends BaseEtherscanLikeAPIParams<
|
|
64
|
+
interface GetEventLogs extends BaseEtherscanLikeAPIParams<EtherscanLikeExplorerApiModule.LOGS, EtherscanLikeExplorerApiAction.GET_LOGS> {
|
|
23
65
|
address: Address;
|
|
24
66
|
fromBlock: number;
|
|
25
67
|
toBlock: number;
|
|
26
68
|
topic0: string;
|
|
27
69
|
}
|
|
28
70
|
export declare function getLogsFromEtherscanLikeExplorerAPI({ apiUrl, apiKey: apikey }: EtherscanLikeAPIOptions, options: Omit<GetEventLogs, 'module' | 'action'>): Promise<Array<GetEventLogsResponse>>;
|
|
71
|
+
type GetContractSourceCodeResponse = {
|
|
72
|
+
SourceCode: string;
|
|
73
|
+
ContractName: string;
|
|
74
|
+
CompilerVersion: string;
|
|
75
|
+
OptimizationUsed: string;
|
|
76
|
+
Runs: string;
|
|
77
|
+
ConstructorArguments: string;
|
|
78
|
+
EVMVersion: string;
|
|
79
|
+
Library: string;
|
|
80
|
+
LicenseType: string;
|
|
81
|
+
Proxy: string;
|
|
82
|
+
Implementation: string;
|
|
83
|
+
SwarmSource: string;
|
|
84
|
+
SimilarMatch: string;
|
|
85
|
+
};
|
|
86
|
+
export declare function getContractSourceCode(explorerOptions: EtherscanLikeAPIOptions, { contractAddress }: {
|
|
87
|
+
contractAddress: Address;
|
|
88
|
+
}): Promise<GetContractSourceCodeResponse>;
|
|
89
|
+
type VerifyImplementationContractViaSolidityStandardJsonOptions = {
|
|
90
|
+
sourceCode: SolidityStandardJsonInput;
|
|
91
|
+
contractName: string;
|
|
92
|
+
contractAddress: Address;
|
|
93
|
+
compilerVersion: string;
|
|
94
|
+
zkCompilerVersion?: string;
|
|
95
|
+
licenseType?: ExplorerLicenseType;
|
|
96
|
+
constructorArguments?: HexString;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Wrapper function for the `https://api.etherscan.io/v2/api?chainid=1&module=contract&action=verifysourcecode&apikey=...`
|
|
100
|
+
* endpoint request with the `codeformat` option set to `solidity-standard-json-input`
|
|
101
|
+
*/
|
|
102
|
+
export declare function verifyContractSourceCodeViaStandardJsonInput(explorerOptions: EtherscanLikeAPIOptions, verificationOptions: VerifyImplementationContractViaSolidityStandardJsonOptions): Promise<string>;
|
|
103
|
+
type VerifyProxyContractOptions = {
|
|
104
|
+
contractAddress: Address;
|
|
105
|
+
implementationAddress: Address;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* Wrapper function for the `https://api.etherscan.io/v2/api?chainid=...&module=contract&action=verifyproxycontract&apikey=...`
|
|
109
|
+
*/
|
|
110
|
+
export declare function verifyProxyContract(explorerOptions: EtherscanLikeAPIOptions, { contractAddress, implementationAddress }: VerifyProxyContractOptions): Promise<string>;
|
|
111
|
+
/**
|
|
112
|
+
* Wrapper function for the
|
|
113
|
+
* `https://api.etherscan.io/v2/api?chainid=...&module=contract&action=...&guid=...&apikey=...`
|
|
114
|
+
* endpoint request with the `action` option set to `checkverifystatus` if `isProxy` is false
|
|
115
|
+
* or set to `checkproxyverification` if set to true.
|
|
116
|
+
*/
|
|
117
|
+
export declare function checkContractVerificationStatus(explorerOptions: EtherscanLikeAPIOptions, { isProxy, verificationId }: {
|
|
118
|
+
verificationId: string;
|
|
119
|
+
isProxy: boolean;
|
|
120
|
+
}): Promise<void>;
|
|
29
121
|
export {};
|
|
30
122
|
//# sourceMappingURL=etherscan.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"etherscan.d.ts","sourceRoot":"","sources":["../../src/block-explorer/etherscan.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"etherscan.d.ts","sourceRoot":"","sources":["../../src/block-explorer/etherscan.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,SAAS,EAIV,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,oBAAY,8BAA8B;IACxC,IAAI,SA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,yBAAyB,CAAC;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,oBAAoB,CAAC,EAAE,SAAS,CAAC;CAClC,CAAC;AAkBF;;;GAGG;AACH,wBAAsB,4CAA4C,CAChE,eAAe,EAAE,uBAAuB,EACxC,mBAAmB,EAAE,0DAA0D,GAC9E,OAAO,CAAC,MAAM,CAAC,CAyBjB;AAED,KAAK,0BAA0B,GAAG;IAChC,eAAe,EAAE,OAAO,CAAC;IACzB,qBAAqB,EAAE,OAAO,CAAC;CAChC,CAAC;AAWF;;GAEG;AACH,wBAAsB,mBAAmB,CACvC,eAAe,EAAE,uBAAuB,EACxC,EAAE,eAAe,EAAE,qBAAqB,EAAE,EAAE,0BAA0B,GACrE,OAAO,CAAC,MAAM,CAAC,CAcjB;AAWD;;;;;GAKG;AACH,wBAAsB,+BAA+B,CACnD,eAAe,EAAE,uBAAuB,EACxC,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE;IAAE,cAAc,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,GACxE,OAAO,CAAC,IAAI,CAAC,CAaf"}
|
|
@@ -1,3 +1,50 @@
|
|
|
1
|
+
import { isNullish, pick, strip0x, } from '@hyperlane-xyz/utils';
|
|
2
|
+
export var EtherscanLikeExplorerApiModule;
|
|
3
|
+
(function (EtherscanLikeExplorerApiModule) {
|
|
4
|
+
EtherscanLikeExplorerApiModule["LOGS"] = "logs";
|
|
5
|
+
EtherscanLikeExplorerApiModule["CONTRACT"] = "contract";
|
|
6
|
+
})(EtherscanLikeExplorerApiModule || (EtherscanLikeExplorerApiModule = {}));
|
|
7
|
+
export var EtherscanLikeExplorerApiAction;
|
|
8
|
+
(function (EtherscanLikeExplorerApiAction) {
|
|
9
|
+
EtherscanLikeExplorerApiAction["GETSOURCECODE"] = "getsourcecode";
|
|
10
|
+
EtherscanLikeExplorerApiAction["VERIFY_IMPLEMENTATION"] = "verifysourcecode";
|
|
11
|
+
EtherscanLikeExplorerApiAction["VERIFY_PROXY"] = "verifyproxycontract";
|
|
12
|
+
EtherscanLikeExplorerApiAction["CHECK_IMPLEMENTATION_STATUS"] = "checkverifystatus";
|
|
13
|
+
EtherscanLikeExplorerApiAction["CHECK_PROXY_STATUS"] = "checkproxyverification";
|
|
14
|
+
EtherscanLikeExplorerApiAction["GET_CONTRACT_CREATION_CODE"] = "getcontractcreation";
|
|
15
|
+
EtherscanLikeExplorerApiAction["GET_LOGS"] = "getLogs";
|
|
16
|
+
})(EtherscanLikeExplorerApiAction || (EtherscanLikeExplorerApiAction = {}));
|
|
17
|
+
export var EtherscanLikeExplorerApiErrors;
|
|
18
|
+
(function (EtherscanLikeExplorerApiErrors) {
|
|
19
|
+
EtherscanLikeExplorerApiErrors["ALREADY_VERIFIED"] = "Contract source code already verified";
|
|
20
|
+
EtherscanLikeExplorerApiErrors["ALREADY_VERIFIED_ALT"] = "Already Verified";
|
|
21
|
+
EtherscanLikeExplorerApiErrors["NOT_VERIFIED"] = "Contract source code not verified";
|
|
22
|
+
EtherscanLikeExplorerApiErrors["VERIFICATION_PENDING"] = "Pending in queue";
|
|
23
|
+
EtherscanLikeExplorerApiErrors["PROXY_FAILED"] = "A corresponding implementation contract was unfortunately not detected for the proxy address.";
|
|
24
|
+
EtherscanLikeExplorerApiErrors["BYTECODE_MISMATCH"] = "Fail - Unable to verify. Compiled contract deployment bytecode does NOT match the transaction deployment bytecode.";
|
|
25
|
+
EtherscanLikeExplorerApiErrors["UNABLE_TO_VERIFY"] = "Fail - Unable to verify";
|
|
26
|
+
EtherscanLikeExplorerApiErrors["UNKNOWN_UID"] = "Unknown UID";
|
|
27
|
+
EtherscanLikeExplorerApiErrors["NO_RECORD"] = "No records found";
|
|
28
|
+
EtherscanLikeExplorerApiErrors["NO_LOGS_FOUND"] = "No logs found";
|
|
29
|
+
})(EtherscanLikeExplorerApiErrors || (EtherscanLikeExplorerApiErrors = {}));
|
|
30
|
+
// see https://etherscan.io/contract-license-types
|
|
31
|
+
export var ExplorerLicenseType;
|
|
32
|
+
(function (ExplorerLicenseType) {
|
|
33
|
+
ExplorerLicenseType["NO_LICENSE"] = "1";
|
|
34
|
+
ExplorerLicenseType["UNLICENSED"] = "2";
|
|
35
|
+
ExplorerLicenseType["MIT"] = "3";
|
|
36
|
+
ExplorerLicenseType["GPL2"] = "4";
|
|
37
|
+
ExplorerLicenseType["GPL3"] = "5";
|
|
38
|
+
ExplorerLicenseType["LGPL2"] = "6";
|
|
39
|
+
ExplorerLicenseType["LGPL3"] = "7";
|
|
40
|
+
ExplorerLicenseType["BSD2"] = "8";
|
|
41
|
+
ExplorerLicenseType["BSD3"] = "9";
|
|
42
|
+
ExplorerLicenseType["MPL2"] = "10";
|
|
43
|
+
ExplorerLicenseType["OSL3"] = "11";
|
|
44
|
+
ExplorerLicenseType["APACHE2"] = "12";
|
|
45
|
+
ExplorerLicenseType["AGPL3"] = "13";
|
|
46
|
+
ExplorerLicenseType["BSL"] = "14";
|
|
47
|
+
})(ExplorerLicenseType || (ExplorerLicenseType = {}));
|
|
1
48
|
function formatExplorerUrl({ apiUrl, apiKey }, params) {
|
|
2
49
|
// hack for Blockscout API urls that in the explorer have the `eth-rpc` path set
|
|
3
50
|
// as it will cause requests to fail with a not found error
|
|
@@ -17,16 +64,24 @@ async function handleEtherscanResponse(response) {
|
|
|
17
64
|
const explorerUrl = new URL(response.url);
|
|
18
65
|
// Avoid throwing if no logs are found for the current address
|
|
19
66
|
if (body.status === '0' &&
|
|
20
|
-
body.message !==
|
|
21
|
-
body.message !==
|
|
67
|
+
body.message !== EtherscanLikeExplorerApiErrors.NO_RECORD &&
|
|
68
|
+
body.message !== EtherscanLikeExplorerApiErrors.NO_LOGS_FOUND) {
|
|
22
69
|
throw new Error(`Error while performing request to Etherscan like API at ${explorerUrl.host}: ${body.message} ${body.result}`);
|
|
23
70
|
}
|
|
24
71
|
return body.result;
|
|
25
72
|
}
|
|
73
|
+
function getFormPostRequestBody(input) {
|
|
74
|
+
const formParams = new URLSearchParams(Object.entries(input).filter(([_key, value]) => !isNullish(value)));
|
|
75
|
+
return {
|
|
76
|
+
method: 'POST',
|
|
77
|
+
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
|
78
|
+
body: formParams,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
26
81
|
export async function tryGetContractDeploymentTransaction(explorerOptions, { contractAddress }) {
|
|
27
82
|
const options = {
|
|
28
|
-
module:
|
|
29
|
-
action:
|
|
83
|
+
module: EtherscanLikeExplorerApiModule.CONTRACT,
|
|
84
|
+
action: EtherscanLikeExplorerApiAction.GET_CONTRACT_CREATION_CODE,
|
|
30
85
|
contractaddresses: contractAddress,
|
|
31
86
|
};
|
|
32
87
|
const requestUrl = formatExplorerUrl(explorerOptions, options);
|
|
@@ -43,8 +98,8 @@ export async function getContractDeploymentTransaction(explorerOptions, requestO
|
|
|
43
98
|
}
|
|
44
99
|
export async function getLogsFromEtherscanLikeExplorerAPI({ apiUrl, apiKey: apikey }, options) {
|
|
45
100
|
const data = {
|
|
46
|
-
module:
|
|
47
|
-
action:
|
|
101
|
+
module: EtherscanLikeExplorerApiModule.LOGS,
|
|
102
|
+
action: EtherscanLikeExplorerApiAction.GET_LOGS,
|
|
48
103
|
address: options.address,
|
|
49
104
|
fromBlock: options.fromBlock,
|
|
50
105
|
toBlock: options.toBlock,
|
|
@@ -63,4 +118,72 @@ export async function getLogsFromEtherscanLikeExplorerAPI({ apiUrl, apiKey: apik
|
|
|
63
118
|
transactionIndex: Number(rawLogs.transactionIndex),
|
|
64
119
|
}));
|
|
65
120
|
}
|
|
121
|
+
export async function getContractSourceCode(explorerOptions, { contractAddress }) {
|
|
122
|
+
const options = {
|
|
123
|
+
action: EtherscanLikeExplorerApiAction.GETSOURCECODE,
|
|
124
|
+
address: contractAddress,
|
|
125
|
+
module: EtherscanLikeExplorerApiModule.CONTRACT,
|
|
126
|
+
};
|
|
127
|
+
const requestUrl = formatExplorerUrl(explorerOptions, options);
|
|
128
|
+
const response = await fetch(requestUrl);
|
|
129
|
+
const [sourceCodeResults] = await handleEtherscanResponse(response);
|
|
130
|
+
return sourceCodeResults;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Wrapper function for the `https://api.etherscan.io/v2/api?chainid=1&module=contract&action=verifysourcecode&apikey=...`
|
|
134
|
+
* endpoint request with the `codeformat` option set to `solidity-standard-json-input`
|
|
135
|
+
*/
|
|
136
|
+
export async function verifyContractSourceCodeViaStandardJsonInput(explorerOptions, verificationOptions) {
|
|
137
|
+
const input = {
|
|
138
|
+
module: EtherscanLikeExplorerApiModule.CONTRACT,
|
|
139
|
+
action: EtherscanLikeExplorerApiAction.VERIFY_IMPLEMENTATION,
|
|
140
|
+
codeformat: 'solidity-standard-json-input',
|
|
141
|
+
compilerversion: verificationOptions.compilerVersion,
|
|
142
|
+
contractaddress: verificationOptions.contractAddress,
|
|
143
|
+
contractname: verificationOptions.contractName,
|
|
144
|
+
sourceCode: JSON.stringify(verificationOptions.sourceCode),
|
|
145
|
+
constructorArguements: strip0x(verificationOptions.constructorArguments ?? ''),
|
|
146
|
+
licenseType: verificationOptions.licenseType,
|
|
147
|
+
};
|
|
148
|
+
if (!isNullish(verificationOptions.zkCompilerVersion)) {
|
|
149
|
+
input.zksolcversion = verificationOptions.zkCompilerVersion;
|
|
150
|
+
}
|
|
151
|
+
const params = pick(input, ['action', 'module']);
|
|
152
|
+
const requestUrl = formatExplorerUrl(explorerOptions, params);
|
|
153
|
+
const response = await fetch(requestUrl, getFormPostRequestBody(input));
|
|
154
|
+
return handleEtherscanResponse(response);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Wrapper function for the `https://api.etherscan.io/v2/api?chainid=...&module=contract&action=verifyproxycontract&apikey=...`
|
|
158
|
+
*/
|
|
159
|
+
export async function verifyProxyContract(explorerOptions, { contractAddress, implementationAddress }) {
|
|
160
|
+
const input = {
|
|
161
|
+
action: EtherscanLikeExplorerApiAction.VERIFY_PROXY,
|
|
162
|
+
module: EtherscanLikeExplorerApiModule.CONTRACT,
|
|
163
|
+
address: contractAddress,
|
|
164
|
+
expectedimplementation: implementationAddress,
|
|
165
|
+
};
|
|
166
|
+
const params = pick(input, ['action', 'module']);
|
|
167
|
+
const requestUrl = formatExplorerUrl(explorerOptions, params);
|
|
168
|
+
const response = await fetch(requestUrl, getFormPostRequestBody(input));
|
|
169
|
+
return handleEtherscanResponse(response);
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Wrapper function for the
|
|
173
|
+
* `https://api.etherscan.io/v2/api?chainid=...&module=contract&action=...&guid=...&apikey=...`
|
|
174
|
+
* endpoint request with the `action` option set to `checkverifystatus` if `isProxy` is false
|
|
175
|
+
* or set to `checkproxyverification` if set to true.
|
|
176
|
+
*/
|
|
177
|
+
export async function checkContractVerificationStatus(explorerOptions, { isProxy, verificationId }) {
|
|
178
|
+
const input = {
|
|
179
|
+
action: isProxy
|
|
180
|
+
? EtherscanLikeExplorerApiAction.CHECK_PROXY_STATUS
|
|
181
|
+
: EtherscanLikeExplorerApiAction.CHECK_IMPLEMENTATION_STATUS,
|
|
182
|
+
guid: verificationId,
|
|
183
|
+
module: EtherscanLikeExplorerApiModule.CONTRACT,
|
|
184
|
+
};
|
|
185
|
+
const requestUrl = formatExplorerUrl(explorerOptions, input);
|
|
186
|
+
const response = await fetch(requestUrl);
|
|
187
|
+
await handleEtherscanResponse(response);
|
|
188
|
+
}
|
|
66
189
|
//# sourceMappingURL=etherscan.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"etherscan.js","sourceRoot":"","sources":["../../src/block-explorer/etherscan.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"etherscan.js","sourceRoot":"","sources":["../../src/block-explorer/etherscan.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AAE,eAAe;QACxB,sBAAsB,EAAE,qBAAqB;KAC9C,CAAC;IAEF,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEjD,MAAM,UAAU,GAAG,iBAAiB,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;IAC9D,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,UAAU,EAAE,sBAAsB,CAAC,KAAK,CAAC,CAAC,CAAC;IAExE,OAAO,uBAAuB,CAAC,QAAQ,CAAC,CAAC;AAC3C,CAAC;AAWD;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,+BAA+B,CACnD,eAAwC,EACxC,EAAE,OAAO,EAAE,cAAc,EAAgD;IAEzE,MAAM,KAAK,GAAqC;QAC9C,MAAM,EAAE,OAAO;YACb,CAAC,CAAC,8BAA8B,CAAC,kBAAkB;YACnD,CAAC,CAAC,8BAA8B,CAAC,2BAA2B;QAC9D,IAAI,EAAE,cAAc;QACpB,MAAM,EAAE,8BAA8B,CAAC,QAAQ;KAChD,CAAC;IAEF,MAAM,UAAU,GAAG,iBAAiB,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;IAC7D,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,UAAU,CAAC,CAAC;IAEzC,MAAM,uBAAuB,CAAC,QAAQ,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multisigIsm.d.ts","sourceRoot":"","sources":["../../src/consts/multisigIsm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAmB,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"multisigIsm.d.ts","sourceRoot":"","sources":["../../src/consts/multisigIsm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAmB,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;AAgCjD,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,cAAc,CAwgF3D,CAAC"}
|