@hyperlane-xyz/sdk 18.2.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 +113 -64
- 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 +9 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -1
- 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 +6 -6
- 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 +2 -2
- 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 +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/Token.d.ts.map +1 -1
- package/dist/token/Token.js +2 -1
- 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/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,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,oBAAY,8BAA8B;IACxC,aAAa,kBAAkB;IAC/B,qBAAqB,qBAAqB;IAC1C,YAAY,wBAAwB;IACpC,2BAA2B,sBAAsB;IACjD,kBAAkB,2BAA2B;IAC7C,0BAA0B,wBAAwB;IAClD,QAAQ,YAAY;CACrB;AAED,oBAAY,8BAA8B;IACxC,gBAAgB,0CAA0C;IAC1D,oBAAoB,qBAAqB;IACzC,YAAY,sCAAsC;IAClD,oBAAoB,qBAAqB;IACzC,YAAY,kGAAkG;IAC9G,iBAAiB,uHAAuH;IACxI,gBAAgB,4BAA4B;IAC5C,WAAW,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Ae,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.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,SAAS,EACT,IAAI,EACJ,OAAO,GACR,MAAM,sBAAsB,CAAC;AAK9B,MAAM,CAAN,IAAY,8BAGX;AAHD,WAAY,8BAA8B;IACxC,+CAAa,CAAA;IACb,uDAAqB,CAAA;AACvB,CAAC,EAHW,8BAA8B,KAA9B,8BAA8B,QAGzC;AAED,MAAM,CAAN,IAAY,8BAQX;AARD,WAAY,8BAA8B;IACxC,iEAA+B,CAAA;IAC/B,4EAA0C,CAAA;IAC1C,sEAAoC,CAAA;IACpC,mFAAiD,CAAA;IACjD,+EAA6C,CAAA;IAC7C,oFAAkD,C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C,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;AAgCjD,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,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"}
|
|
@@ -40,30 +40,6 @@ export const defaultMultisigConfigs = {
|
|
|
40
40
|
DEFAULT_MITOSIS_VALIDATOR,
|
|
41
41
|
],
|
|
42
42
|
},
|
|
43
|
-
// acala: {
|
|
44
|
-
// threshold: 1,
|
|
45
|
-
// validators: [
|
|
46
|
-
// {
|
|
47
|
-
// address: '0x3229bbeeab163c102d0b1fa15119b9ae0ed37cfa',
|
|
48
|
-
// alias: AW_VALIDATOR_ALIAS,
|
|
49
|
-
// },
|
|
50
|
-
// ],
|
|
51
|
-
// },
|
|
52
|
-
alephzeroevmmainnet: {
|
|
53
|
-
threshold: 3,
|
|
54
|
-
validators: [
|
|
55
|
-
{
|
|
56
|
-
address: '0x33f20e6e775747d60301c6ea1c50e51f0389740c',
|
|
57
|
-
alias: AW_VALIDATOR_ALIAS,
|
|
58
|
-
},
|
|
59
|
-
DEFAULT_MERKLY_VALIDATOR,
|
|
60
|
-
DEFAULT_MITOSIS_VALIDATOR,
|
|
61
|
-
{
|
|
62
|
-
address: '0xCbf382214825F8c2f347dd4f23F0aDFaFad55dAa',
|
|
63
|
-
alias: 'Aleph Zero',
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
},
|
|
67
43
|
ancient8: {
|
|
68
44
|
threshold: 2,
|
|
69
45
|
validators: [
|
|
@@ -421,6 +397,16 @@ export const defaultMultisigConfigs = {
|
|
|
421
397
|
DEFAULT_MITOSIS_VALIDATOR,
|
|
422
398
|
],
|
|
423
399
|
},
|
|
400
|
+
carrchain: {
|
|
401
|
+
threshold: 2,
|
|
402
|
+
validators: [
|
|
403
|
+
{
|
|
404
|
+
address: '0x7ed0a7582af75dc38ad82e7125b51e3eaa6ec33b',
|
|
405
|
+
alias: AW_VALIDATOR_ALIAS,
|
|
406
|
+
},
|
|
407
|
+
DEFAULT_MITOSIS_VALIDATOR,
|
|
408
|
+
],
|
|
409
|
+
},
|
|
424
410
|
carrchaintestnet: {
|
|
425
411
|
threshold: 1,
|
|
426
412
|
validators: [
|
|
@@ -761,12 +747,36 @@ export const defaultMultisigConfigs = {
|
|
|
761
747
|
DEFAULT_MITOSIS_VALIDATOR,
|
|
762
748
|
],
|
|
763
749
|
},
|
|
764
|
-
|
|
765
|
-
threshold:
|
|
750
|
+
forma: {
|
|
751
|
+
threshold: 5,
|
|
766
752
|
validators: [
|
|
767
753
|
{
|
|
768
|
-
address: '
|
|
769
|
-
alias:
|
|
754
|
+
address: '0x5B19F64F04f495D3958804Ec416c165F00f74898',
|
|
755
|
+
alias: 'Cosmostation',
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
address: '0x3f869C36110F00D10dC74cca3ac1FB133cf019ad',
|
|
759
|
+
alias: 'Polkachu',
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
address: '0xE74c7632aF1De54D208f1b9e18B22988dDc8C4CE',
|
|
763
|
+
alias: 'Imperator',
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
address: '0x38c7a4ca1273ead2e867d096adbcdd0e2acb21d8',
|
|
767
|
+
alias: 'Everstake',
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
address: '0x1734abc14f0e68cdaf64f072831f6a6c8f622c37',
|
|
771
|
+
alias: 'DSRV',
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
address: '0xb6536d1b52969d6c66bb85533b9ab04d886b3401',
|
|
775
|
+
alias: 'Engima',
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
address: '0x184Fc4899a8271783C962e4841BeE74F8526bC2c',
|
|
779
|
+
alias: 'Stakecito',
|
|
770
780
|
},
|
|
771
781
|
],
|
|
772
782
|
},
|
|
@@ -831,15 +841,13 @@ export const defaultMultisigConfigs = {
|
|
|
831
841
|
DEFAULT_MITOSIS_VALIDATOR,
|
|
832
842
|
],
|
|
833
843
|
},
|
|
834
|
-
|
|
835
|
-
threshold:
|
|
844
|
+
giwasepolia: {
|
|
845
|
+
threshold: 1,
|
|
836
846
|
validators: [
|
|
837
847
|
{
|
|
838
|
-
address: '
|
|
848
|
+
address: '0xc170bef56759e35740ac2d3d0fece33bd9acb90b',
|
|
839
849
|
alias: AW_VALIDATOR_ALIAS,
|
|
840
850
|
},
|
|
841
|
-
DEFAULT_MERKLY_VALIDATOR,
|
|
842
|
-
DEFAULT_MITOSIS_VALIDATOR,
|
|
843
851
|
],
|
|
844
852
|
},
|
|
845
853
|
gnosis: {
|
|
@@ -940,6 +948,16 @@ export const defaultMultisigConfigs = {
|
|
|
940
948
|
DEFAULT_MITOSIS_VALIDATOR,
|
|
941
949
|
],
|
|
942
950
|
},
|
|
951
|
+
incentiv: {
|
|
952
|
+
threshold: 2,
|
|
953
|
+
validators: [
|
|
954
|
+
{
|
|
955
|
+
address: '0x72669f47b6f119289f1a42641b02a9656cc8fecd',
|
|
956
|
+
alias: AW_VALIDATOR_ALIAS,
|
|
957
|
+
},
|
|
958
|
+
DEFAULT_MITOSIS_VALIDATOR,
|
|
959
|
+
],
|
|
960
|
+
},
|
|
943
961
|
incentivtestnet: {
|
|
944
962
|
threshold: 1,
|
|
945
963
|
validators: [
|
|
@@ -966,26 +984,6 @@ export const defaultMultisigConfigs = {
|
|
|
966
984
|
},
|
|
967
985
|
],
|
|
968
986
|
},
|
|
969
|
-
infinityvmmainnet: {
|
|
970
|
-
threshold: 2,
|
|
971
|
-
validators: [
|
|
972
|
-
{
|
|
973
|
-
address: '0x777c19c87aaa625486dff5aab0a479100f4249ad',
|
|
974
|
-
alias: AW_VALIDATOR_ALIAS,
|
|
975
|
-
},
|
|
976
|
-
DEFAULT_MERKLY_VALIDATOR,
|
|
977
|
-
DEFAULT_MITOSIS_VALIDATOR,
|
|
978
|
-
],
|
|
979
|
-
},
|
|
980
|
-
infinityvmmonza: {
|
|
981
|
-
threshold: 1,
|
|
982
|
-
validators: [
|
|
983
|
-
{
|
|
984
|
-
address: '0x635e1ad8646f80ac7bdcd0be9bb69b6f229a31bb',
|
|
985
|
-
alias: AW_VALIDATOR_ALIAS,
|
|
986
|
-
},
|
|
987
|
-
],
|
|
988
|
-
},
|
|
989
987
|
injective: {
|
|
990
988
|
threshold: 2,
|
|
991
989
|
validators: [
|
|
@@ -1114,6 +1112,16 @@ export const defaultMultisigConfigs = {
|
|
|
1114
1112
|
DEFAULT_ZEE_PRIME_VALIDATOR,
|
|
1115
1113
|
],
|
|
1116
1114
|
},
|
|
1115
|
+
litchain: {
|
|
1116
|
+
threshold: 2,
|
|
1117
|
+
validators: [
|
|
1118
|
+
{
|
|
1119
|
+
address: '0xde5509be55483aa525e9b5cce6fe64d3e68d068d',
|
|
1120
|
+
alias: AW_VALIDATOR_ALIAS,
|
|
1121
|
+
},
|
|
1122
|
+
DEFAULT_MITOSIS_VALIDATOR,
|
|
1123
|
+
],
|
|
1124
|
+
},
|
|
1117
1125
|
lukso: {
|
|
1118
1126
|
threshold: 2,
|
|
1119
1127
|
validators: [
|
|
@@ -1182,6 +1190,16 @@ export const defaultMultisigConfigs = {
|
|
|
1182
1190
|
},
|
|
1183
1191
|
],
|
|
1184
1192
|
},
|
|
1193
|
+
mantra: {
|
|
1194
|
+
threshold: 2,
|
|
1195
|
+
validators: [
|
|
1196
|
+
{
|
|
1197
|
+
address: '0x89b8064e29f125e896f6081ebb77090c46bca9cd',
|
|
1198
|
+
alias: AW_VALIDATOR_ALIAS,
|
|
1199
|
+
},
|
|
1200
|
+
DEFAULT_MITOSIS_VALIDATOR,
|
|
1201
|
+
],
|
|
1202
|
+
},
|
|
1185
1203
|
matchain: {
|
|
1186
1204
|
threshold: 2,
|
|
1187
1205
|
validators: [
|
|
@@ -1377,6 +1395,16 @@ export const defaultMultisigConfigs = {
|
|
|
1377
1395
|
DEFAULT_MITOSIS_VALIDATOR,
|
|
1378
1396
|
],
|
|
1379
1397
|
},
|
|
1398
|
+
monad: {
|
|
1399
|
+
threshold: 2,
|
|
1400
|
+
validators: [
|
|
1401
|
+
{
|
|
1402
|
+
address: '0xb4654795b2f1b17513ffde7d85c776e4cade366c',
|
|
1403
|
+
alias: AW_VALIDATOR_ALIAS,
|
|
1404
|
+
},
|
|
1405
|
+
DEFAULT_MITOSIS_VALIDATOR,
|
|
1406
|
+
],
|
|
1407
|
+
},
|
|
1380
1408
|
monadtestnet: {
|
|
1381
1409
|
threshold: 1,
|
|
1382
1410
|
validators: [
|
|
@@ -1566,6 +1594,11 @@ export const defaultMultisigConfigs = {
|
|
|
1566
1594
|
alias: AW_VALIDATOR_ALIAS,
|
|
1567
1595
|
},
|
|
1568
1596
|
DEFAULT_MITOSIS_VALIDATOR,
|
|
1597
|
+
// TODO: enroll once announced onchain
|
|
1598
|
+
// {
|
|
1599
|
+
// address: '0xc36fe08e2c06ca51f6c3523e54e33505b7aaba37',
|
|
1600
|
+
// alias: 'Luganodes',
|
|
1601
|
+
// },
|
|
1569
1602
|
],
|
|
1570
1603
|
},
|
|
1571
1604
|
paradexsepolia: {
|
|
@@ -1699,6 +1732,10 @@ export const defaultMultisigConfigs = {
|
|
|
1699
1732
|
alias: AW_VALIDATOR_ALIAS,
|
|
1700
1733
|
},
|
|
1701
1734
|
DEFAULT_MITOSIS_VALIDATOR,
|
|
1735
|
+
{
|
|
1736
|
+
address: '0xc61209c6b133791c729d0cbe49d6da96c30a515f',
|
|
1737
|
+
alias: 'Luganodes',
|
|
1738
|
+
},
|
|
1702
1739
|
],
|
|
1703
1740
|
},
|
|
1704
1741
|
radixtestnet: {
|
|
@@ -1829,17 +1866,6 @@ export const defaultMultisigConfigs = {
|
|
|
1829
1866
|
DEFAULT_MITOSIS_VALIDATOR,
|
|
1830
1867
|
],
|
|
1831
1868
|
},
|
|
1832
|
-
snaxchain: {
|
|
1833
|
-
threshold: 2,
|
|
1834
|
-
validators: [
|
|
1835
|
-
{
|
|
1836
|
-
address: '0x2c25829ae32a772d2a49f6c4b34f8b01fd03ef9e',
|
|
1837
|
-
alias: AW_VALIDATOR_ALIAS,
|
|
1838
|
-
},
|
|
1839
|
-
DEFAULT_MERKLY_VALIDATOR,
|
|
1840
|
-
DEFAULT_MITOSIS_VALIDATOR,
|
|
1841
|
-
],
|
|
1842
|
-
},
|
|
1843
1869
|
solanadevnet: {
|
|
1844
1870
|
threshold: 2,
|
|
1845
1871
|
validators: [
|
|
@@ -2308,6 +2334,29 @@ export const defaultMultisigConfigs = {
|
|
|
2308
2334
|
DEFAULT_MITOSIS_VALIDATOR,
|
|
2309
2335
|
],
|
|
2310
2336
|
},
|
|
2337
|
+
zerogravity: {
|
|
2338
|
+
threshold: 4,
|
|
2339
|
+
validators: [
|
|
2340
|
+
{
|
|
2341
|
+
address: '0xc37e7dad064c11d7ecfc75813a4d8d649d797275',
|
|
2342
|
+
alias: AW_VALIDATOR_ALIAS,
|
|
2343
|
+
},
|
|
2344
|
+
DEFAULT_MITOSIS_VALIDATOR,
|
|
2345
|
+
DEFAULT_ZEE_PRIME_VALIDATOR,
|
|
2346
|
+
{
|
|
2347
|
+
address: '0x25c5fc524ac7ef5e7868644fbe68793e5eb179ea',
|
|
2348
|
+
alias: 'Luganodes',
|
|
2349
|
+
},
|
|
2350
|
+
{
|
|
2351
|
+
address: '0x782ac2b5244b69779bd7214a2d60212fb35c3ae7',
|
|
2352
|
+
alias: 'Enigma',
|
|
2353
|
+
},
|
|
2354
|
+
{
|
|
2355
|
+
address: '0xd3e6a4e61b5d902a63df6dac9db5585d9f319b09',
|
|
2356
|
+
alias: 'Substance Labs',
|
|
2357
|
+
},
|
|
2358
|
+
],
|
|
2359
|
+
},
|
|
2311
2360
|
zeronetwork: {
|
|
2312
2361
|
threshold: 2,
|
|
2313
2362
|
validators: [
|