@gearbox-protocol/sdk 9.14.1 → 9.15.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/cjs/permissionless/bindings/address-provider.js +51 -0
- package/dist/cjs/permissionless/bindings/base-contract.js +173 -0
- package/dist/cjs/permissionless/bindings/bytecode-repository.js +526 -0
- package/dist/cjs/permissionless/bindings/compressors/index.js +24 -0
- package/dist/cjs/permissionless/bindings/compressors/token-compressor.js +110 -0
- package/dist/cjs/permissionless/bindings/compressors/withdrawal-compressor.js +60 -0
- package/dist/cjs/permissionless/bindings/cross-chain-multisig.js +355 -0
- package/dist/cjs/permissionless/bindings/factory/abstract-factory.js +52 -0
- package/dist/cjs/permissionless/bindings/factory/credit-factory.js +197 -0
- package/dist/cjs/permissionless/bindings/factory/pool-factory.js +69 -0
- package/dist/cjs/permissionless/bindings/factory/price-oracle-factory.js +47 -0
- package/dist/cjs/permissionless/bindings/governance/batches-chain.js +41 -0
- package/dist/cjs/permissionless/bindings/governance/governor.js +243 -0
- package/dist/cjs/permissionless/bindings/governance/index.js +26 -0
- package/dist/cjs/permissionless/bindings/governance/timelock.js +104 -0
- package/dist/cjs/permissionless/bindings/governance/types.js +16 -0
- package/dist/cjs/permissionless/bindings/index.js +48 -0
- package/dist/cjs/permissionless/bindings/instance-manager.js +244 -0
- package/dist/cjs/permissionless/bindings/market-configurator-factory.js +75 -0
- package/dist/cjs/permissionless/bindings/market-configurator.js +771 -0
- package/dist/cjs/permissionless/bindings/price-feed-store.js +395 -0
- package/dist/cjs/permissionless/bindings/pricefeeds/balancer-stable.js +63 -0
- package/dist/cjs/permissionless/bindings/pricefeeds/balancer-weighted.js +63 -0
- package/dist/cjs/permissionless/bindings/pricefeeds/bounded.js +47 -0
- package/dist/cjs/permissionless/bindings/pricefeeds/composite.js +43 -0
- package/dist/cjs/permissionless/bindings/pricefeeds/constant.js +42 -0
- package/dist/cjs/permissionless/bindings/pricefeeds/curve-crypto.js +67 -0
- package/dist/cjs/permissionless/bindings/pricefeeds/curve-stable.js +67 -0
- package/dist/cjs/permissionless/bindings/pricefeeds/curve-twap.js +70 -0
- package/dist/cjs/permissionless/bindings/pricefeeds/curve-usd.js +50 -0
- package/dist/cjs/permissionless/bindings/pricefeeds/erc4626.js +72 -0
- package/dist/cjs/permissionless/bindings/pricefeeds/external.js +38 -0
- package/dist/cjs/permissionless/bindings/pricefeeds/index.js +63 -0
- package/dist/cjs/permissionless/bindings/pricefeeds/kodiak.js +50 -0
- package/dist/cjs/permissionless/bindings/pricefeeds/mellow-lrt.js +122 -0
- package/dist/cjs/permissionless/bindings/pricefeeds/pendle-pt-twap.js +51 -0
- package/dist/cjs/permissionless/bindings/pricefeeds/pyth.js +65 -0
- package/dist/cjs/permissionless/bindings/pricefeeds/redstone.js +81 -0
- package/dist/cjs/permissionless/bindings/pricefeeds/wsteth.js +63 -0
- package/dist/cjs/permissionless/bindings/pricefeeds/zero.js +33 -0
- package/dist/cjs/permissionless/bindings/router/index.js +22 -0
- package/dist/cjs/permissionless/bindings/router/routing-manager.js +58 -0
- package/dist/cjs/permissionless/bindings/treasury-splitter.js +60 -0
- package/dist/cjs/permissionless/bindings/types.js +16 -0
- package/dist/cjs/permissionless/chains/archive-transport.js +274 -0
- package/dist/cjs/permissionless/core/auditor.js +16 -0
- package/dist/cjs/permissionless/core/bytecode.js +16 -0
- package/dist/cjs/permissionless/core/index.js +32 -0
- package/dist/cjs/permissionless/core/pricefeed-builder.js +16 -0
- package/dist/cjs/permissionless/core/pricefeed.js +16 -0
- package/dist/cjs/permissionless/core/proposal.js +16 -0
- package/dist/cjs/permissionless/core/raw-tx.js +38 -0
- package/dist/cjs/permissionless/deployment/addresses.js +35 -0
- package/dist/cjs/permissionless/deployment/mainnet.js +54 -0
- package/dist/cjs/permissionless/index.js +32 -0
- package/dist/cjs/permissionless/package.json +1 -0
- package/dist/cjs/permissionless/plugins/index.js +40 -0
- package/dist/cjs/permissionless/plugins/irm/constructor-params-abi.js +81 -0
- package/dist/cjs/permissionless/plugins/loss-policies/constructor-params-abi.js +79 -0
- package/dist/cjs/permissionless/plugins/rate-keepers/constructor-params-abi.js +89 -0
- package/dist/cjs/permissionless/utils/abi-decoder.js +72 -0
- package/dist/cjs/permissionless/utils/abi-encoder.js +89 -0
- package/dist/cjs/permissionless/utils/block-utils.js +55 -0
- package/dist/cjs/permissionless/utils/create2.js +113 -0
- package/dist/cjs/permissionless/utils/format.js +97 -0
- package/dist/cjs/permissionless/utils/governance/batch.js +114 -0
- package/dist/cjs/permissionless/utils/governance/index.js +26 -0
- package/dist/cjs/permissionless/utils/governance/timelock-txs.js +44 -0
- package/dist/cjs/permissionless/utils/governance/types.js +16 -0
- package/dist/cjs/permissionless/utils/index.js +38 -0
- package/dist/cjs/permissionless/utils/literals.js +46 -0
- package/dist/cjs/permissionless/utils/price-update/get-price-feeds.js +91 -0
- package/dist/cjs/permissionless/utils/price-update/get-price-update-tx.js +84 -0
- package/dist/cjs/permissionless/utils/price-update/get-prices.js +123 -0
- package/dist/cjs/permissionless/utils/price-update/get-updatable-feeds.js +52 -0
- package/dist/cjs/permissionless/utils/price-update/index.js +28 -0
- package/dist/cjs/permissionless/utils/signature.js +35 -0
- package/dist/esm/permissionless/bindings/address-provider.js +27 -0
- package/dist/esm/permissionless/bindings/base-contract.js +151 -0
- package/dist/esm/permissionless/bindings/bytecode-repository.js +508 -0
- package/dist/esm/permissionless/bindings/compressors/index.js +2 -0
- package/dist/esm/permissionless/bindings/compressors/token-compressor.js +89 -0
- package/dist/esm/permissionless/bindings/compressors/withdrawal-compressor.js +38 -0
- package/dist/esm/permissionless/bindings/cross-chain-multisig.js +336 -0
- package/dist/esm/permissionless/bindings/factory/abstract-factory.js +28 -0
- package/dist/esm/permissionless/bindings/factory/credit-factory.js +177 -0
- package/dist/esm/permissionless/bindings/factory/pool-factory.js +45 -0
- package/dist/esm/permissionless/bindings/factory/price-oracle-factory.js +23 -0
- package/dist/esm/permissionless/bindings/governance/batches-chain.js +17 -0
- package/dist/esm/permissionless/bindings/governance/governor.js +224 -0
- package/dist/esm/permissionless/bindings/governance/index.js +3 -0
- package/dist/esm/permissionless/bindings/governance/timelock.js +80 -0
- package/dist/esm/permissionless/bindings/governance/types.js +0 -0
- package/dist/esm/permissionless/bindings/index.js +14 -0
- package/dist/esm/permissionless/bindings/instance-manager.js +223 -0
- package/dist/esm/permissionless/bindings/market-configurator-factory.js +51 -0
- package/dist/esm/permissionless/bindings/market-configurator.js +765 -0
- package/dist/esm/permissionless/bindings/price-feed-store.js +376 -0
- package/dist/esm/permissionless/bindings/pricefeeds/balancer-stable.js +39 -0
- package/dist/esm/permissionless/bindings/pricefeeds/balancer-weighted.js +39 -0
- package/dist/esm/permissionless/bindings/pricefeeds/bounded.js +23 -0
- package/dist/esm/permissionless/bindings/pricefeeds/composite.js +19 -0
- package/dist/esm/permissionless/bindings/pricefeeds/constant.js +18 -0
- package/dist/esm/permissionless/bindings/pricefeeds/curve-crypto.js +43 -0
- package/dist/esm/permissionless/bindings/pricefeeds/curve-stable.js +43 -0
- package/dist/esm/permissionless/bindings/pricefeeds/curve-twap.js +46 -0
- package/dist/esm/permissionless/bindings/pricefeeds/curve-usd.js +26 -0
- package/dist/esm/permissionless/bindings/pricefeeds/erc4626.js +48 -0
- package/dist/esm/permissionless/bindings/pricefeeds/external.js +14 -0
- package/dist/esm/permissionless/bindings/pricefeeds/index.js +39 -0
- package/dist/esm/permissionless/bindings/pricefeeds/kodiak.js +26 -0
- package/dist/esm/permissionless/bindings/pricefeeds/mellow-lrt.js +98 -0
- package/dist/esm/permissionless/bindings/pricefeeds/pendle-pt-twap.js +27 -0
- package/dist/esm/permissionless/bindings/pricefeeds/pyth.js +41 -0
- package/dist/esm/permissionless/bindings/pricefeeds/redstone.js +57 -0
- package/dist/esm/permissionless/bindings/pricefeeds/wsteth.js +39 -0
- package/dist/esm/permissionless/bindings/pricefeeds/zero.js +9 -0
- package/dist/esm/permissionless/bindings/router/index.js +1 -0
- package/dist/esm/permissionless/bindings/router/routing-manager.js +36 -0
- package/dist/esm/permissionless/bindings/treasury-splitter.js +36 -0
- package/dist/esm/permissionless/bindings/types.js +0 -0
- package/dist/esm/permissionless/chains/archive-transport.js +250 -0
- package/dist/esm/permissionless/core/auditor.js +0 -0
- package/dist/esm/permissionless/core/bytecode.js +0 -0
- package/dist/esm/permissionless/core/index.js +6 -0
- package/dist/esm/permissionless/core/pricefeed-builder.js +0 -0
- package/dist/esm/permissionless/core/pricefeed.js +0 -0
- package/dist/esm/permissionless/core/proposal.js +0 -0
- package/dist/esm/permissionless/core/raw-tx.js +14 -0
- package/dist/esm/permissionless/deployment/addresses.js +11 -0
- package/dist/esm/permissionless/deployment/mainnet.js +27 -0
- package/dist/esm/permissionless/index.js +6 -0
- package/dist/esm/permissionless/package.json +1 -0
- package/dist/esm/permissionless/plugins/index.js +20 -0
- package/dist/esm/permissionless/plugins/irm/constructor-params-abi.js +52 -0
- package/dist/esm/permissionless/plugins/loss-policies/constructor-params-abi.js +50 -0
- package/dist/esm/permissionless/plugins/rate-keepers/constructor-params-abi.js +59 -0
- package/dist/esm/permissionless/utils/abi-decoder.js +50 -0
- package/dist/esm/permissionless/utils/abi-encoder.js +65 -0
- package/dist/esm/permissionless/utils/block-utils.js +31 -0
- package/dist/esm/permissionless/utils/create2.js +85 -0
- package/dist/esm/permissionless/utils/format.js +67 -0
- package/dist/esm/permissionless/utils/governance/batch.js +87 -0
- package/dist/esm/permissionless/utils/governance/index.js +3 -0
- package/dist/esm/permissionless/utils/governance/timelock-txs.js +20 -0
- package/dist/esm/permissionless/utils/governance/types.js +0 -0
- package/dist/esm/permissionless/utils/index.js +9 -0
- package/dist/esm/permissionless/utils/literals.js +16 -0
- package/dist/esm/permissionless/utils/price-update/get-price-feeds.js +65 -0
- package/dist/esm/permissionless/utils/price-update/get-price-update-tx.js +65 -0
- package/dist/esm/permissionless/utils/price-update/get-prices.js +103 -0
- package/dist/esm/permissionless/utils/price-update/get-updatable-feeds.js +31 -0
- package/dist/esm/permissionless/utils/price-update/index.js +4 -0
- package/dist/esm/permissionless/utils/signature.js +11 -0
- package/dist/types/permissionless/bindings/address-provider.d.ts +259 -0
- package/dist/types/permissionless/bindings/base-contract.d.ts +23 -0
- package/dist/types/permissionless/bindings/bytecode-repository.d.ts +1352 -0
- package/dist/types/permissionless/bindings/compressors/index.d.ts +2 -0
- package/dist/types/permissionless/bindings/compressors/token-compressor.d.ts +118 -0
- package/dist/types/permissionless/bindings/compressors/withdrawal-compressor.d.ts +331 -0
- package/dist/types/permissionless/bindings/cross-chain-multisig.d.ts +835 -0
- package/dist/types/permissionless/bindings/factory/abstract-factory.d.ts +17 -0
- package/dist/types/permissionless/bindings/factory/credit-factory.d.ts +224 -0
- package/dist/types/permissionless/bindings/factory/pool-factory.d.ts +86 -0
- package/dist/types/permissionless/bindings/factory/price-oracle-factory.d.ts +38 -0
- package/dist/types/permissionless/bindings/governance/batches-chain.d.ts +39 -0
- package/dist/types/permissionless/bindings/governance/governor.d.ts +615 -0
- package/dist/types/permissionless/bindings/governance/index.d.ts +3 -0
- package/dist/types/permissionless/bindings/governance/timelock.d.ts +10 -0
- package/dist/types/permissionless/bindings/governance/types.d.ts +42 -0
- package/dist/types/permissionless/bindings/index.d.ts +14 -0
- package/dist/types/permissionless/bindings/instance-manager.d.ts +361 -0
- package/dist/types/permissionless/bindings/market-configurator-factory.d.ts +244 -0
- package/dist/types/permissionless/bindings/market-configurator.d.ts +1656 -0
- package/dist/types/permissionless/bindings/price-feed-store.d.ts +605 -0
- package/dist/types/permissionless/bindings/pricefeeds/balancer-stable.d.ts +2 -0
- package/dist/types/permissionless/bindings/pricefeeds/balancer-weighted.d.ts +2 -0
- package/dist/types/permissionless/bindings/pricefeeds/bounded.d.ts +2 -0
- package/dist/types/permissionless/bindings/pricefeeds/composite.d.ts +2 -0
- package/dist/types/permissionless/bindings/pricefeeds/constant.d.ts +2 -0
- package/dist/types/permissionless/bindings/pricefeeds/curve-crypto.d.ts +2 -0
- package/dist/types/permissionless/bindings/pricefeeds/curve-stable.d.ts +2 -0
- package/dist/types/permissionless/bindings/pricefeeds/curve-twap.d.ts +2 -0
- package/dist/types/permissionless/bindings/pricefeeds/curve-usd.d.ts +2 -0
- package/dist/types/permissionless/bindings/pricefeeds/erc4626.d.ts +2 -0
- package/dist/types/permissionless/bindings/pricefeeds/external.d.ts +2 -0
- package/dist/types/permissionless/bindings/pricefeeds/index.d.ts +2 -0
- package/dist/types/permissionless/bindings/pricefeeds/kodiak.d.ts +2 -0
- package/dist/types/permissionless/bindings/pricefeeds/mellow-lrt.d.ts +2 -0
- package/dist/types/permissionless/bindings/pricefeeds/pendle-pt-twap.d.ts +2 -0
- package/dist/types/permissionless/bindings/pricefeeds/pyth.d.ts +2 -0
- package/dist/types/permissionless/bindings/pricefeeds/redstone.d.ts +2 -0
- package/dist/types/permissionless/bindings/pricefeeds/wsteth.d.ts +2 -0
- package/dist/types/permissionless/bindings/pricefeeds/zero.d.ts +2 -0
- package/dist/types/permissionless/bindings/router/index.d.ts +1 -0
- package/dist/types/permissionless/bindings/router/routing-manager.d.ts +502 -0
- package/dist/types/permissionless/bindings/treasury-splitter.d.ts +21 -0
- package/dist/types/permissionless/bindings/types.d.ts +65 -0
- package/dist/types/permissionless/chains/archive-transport.d.ts +49 -0
- package/dist/types/permissionless/core/auditor.d.ts +7 -0
- package/dist/types/permissionless/core/bytecode.d.ts +46 -0
- package/dist/types/permissionless/core/index.d.ts +6 -0
- package/dist/types/permissionless/core/pricefeed-builder.d.ts +59 -0
- package/dist/types/permissionless/core/pricefeed.d.ts +10 -0
- package/dist/types/permissionless/core/proposal.d.ts +33 -0
- package/dist/types/permissionless/core/raw-tx.d.ts +4 -0
- package/dist/types/permissionless/deployment/addresses.d.ts +7 -0
- package/dist/types/permissionless/deployment/mainnet.d.ts +10 -0
- package/dist/types/permissionless/index.d.ts +6 -0
- package/dist/types/permissionless/plugins/index.d.ts +3 -0
- package/dist/types/permissionless/plugins/irm/constructor-params-abi.d.ts +63 -0
- package/dist/types/permissionless/plugins/loss-policies/constructor-params-abi.d.ts +48 -0
- package/dist/types/permissionless/plugins/rate-keepers/constructor-params-abi.d.ts +55 -0
- package/dist/types/permissionless/utils/abi-decoder.d.ts +13 -0
- package/dist/types/permissionless/utils/abi-encoder.d.ts +7 -0
- package/dist/types/permissionless/utils/block-utils.d.ts +8 -0
- package/dist/types/permissionless/utils/create2.d.ts +17 -0
- package/dist/types/permissionless/utils/format.d.ts +7 -0
- package/dist/types/permissionless/utils/governance/batch.d.ts +17 -0
- package/dist/types/permissionless/utils/governance/index.d.ts +3 -0
- package/dist/types/permissionless/utils/governance/timelock-txs.d.ts +2 -0
- package/dist/types/permissionless/utils/governance/types.d.ts +16 -0
- package/dist/types/permissionless/utils/index.d.ts +9 -0
- package/dist/types/permissionless/utils/literals.d.ts +7 -0
- package/dist/types/permissionless/utils/price-update/get-price-feeds.d.ts +8 -0
- package/dist/types/permissionless/utils/price-update/get-price-update-tx.d.ts +9 -0
- package/dist/types/permissionless/utils/price-update/get-prices.d.ts +6 -0
- package/dist/types/permissionless/utils/price-update/get-updatable-feeds.d.ts +8 -0
- package/dist/types/permissionless/utils/price-update/index.d.ts +4 -0
- package/dist/types/permissionless/utils/signature.d.ts +2 -0
- package/package.json +11 -1
|
@@ -0,0 +1,1352 @@
|
|
|
1
|
+
import { type Address, type DecodeFunctionDataReturnType, type Hex, type Log, type PublicClient, type WalletClient } from "viem";
|
|
2
|
+
import type { RawTx } from "../../sdk/types/index.js";
|
|
3
|
+
import type { Auditor } from "../core/auditor";
|
|
4
|
+
import type { AuditEvent, Bytecode, DeploymentExtended } from "../core/bytecode";
|
|
5
|
+
import type { ParsedCall } from "../core/proposal";
|
|
6
|
+
import { BaseContract } from "./base-contract";
|
|
7
|
+
declare const abi: readonly [{
|
|
8
|
+
readonly type: "function";
|
|
9
|
+
readonly inputs: readonly [];
|
|
10
|
+
readonly name: "AUDIT_REPORT_TYPEHASH";
|
|
11
|
+
readonly outputs: readonly [{
|
|
12
|
+
readonly name: "";
|
|
13
|
+
readonly internalType: "bytes32";
|
|
14
|
+
readonly type: "bytes32";
|
|
15
|
+
}];
|
|
16
|
+
readonly stateMutability: "view";
|
|
17
|
+
}, {
|
|
18
|
+
readonly type: "function";
|
|
19
|
+
readonly inputs: readonly [];
|
|
20
|
+
readonly name: "BYTECODE_TYPEHASH";
|
|
21
|
+
readonly outputs: readonly [{
|
|
22
|
+
readonly name: "";
|
|
23
|
+
readonly internalType: "bytes32";
|
|
24
|
+
readonly type: "bytes32";
|
|
25
|
+
}];
|
|
26
|
+
readonly stateMutability: "view";
|
|
27
|
+
}, {
|
|
28
|
+
readonly type: "function";
|
|
29
|
+
readonly inputs: readonly [{
|
|
30
|
+
readonly name: "auditor";
|
|
31
|
+
readonly internalType: "address";
|
|
32
|
+
readonly type: "address";
|
|
33
|
+
}, {
|
|
34
|
+
readonly name: "name";
|
|
35
|
+
readonly internalType: "string";
|
|
36
|
+
readonly type: "string";
|
|
37
|
+
}];
|
|
38
|
+
readonly name: "addAuditor";
|
|
39
|
+
readonly outputs: readonly [];
|
|
40
|
+
readonly stateMutability: "nonpayable";
|
|
41
|
+
}, {
|
|
42
|
+
readonly type: "function";
|
|
43
|
+
readonly inputs: readonly [{
|
|
44
|
+
readonly name: "domain";
|
|
45
|
+
readonly internalType: "bytes32";
|
|
46
|
+
readonly type: "bytes32";
|
|
47
|
+
}];
|
|
48
|
+
readonly name: "addPublicDomain";
|
|
49
|
+
readonly outputs: readonly [];
|
|
50
|
+
readonly stateMutability: "nonpayable";
|
|
51
|
+
}, {
|
|
52
|
+
readonly type: "function";
|
|
53
|
+
readonly inputs: readonly [{
|
|
54
|
+
readonly name: "bytecodeHash";
|
|
55
|
+
readonly internalType: "bytes32";
|
|
56
|
+
readonly type: "bytes32";
|
|
57
|
+
}];
|
|
58
|
+
readonly name: "allowPublicContract";
|
|
59
|
+
readonly outputs: readonly [];
|
|
60
|
+
readonly stateMutability: "nonpayable";
|
|
61
|
+
}, {
|
|
62
|
+
readonly type: "function";
|
|
63
|
+
readonly inputs: readonly [{
|
|
64
|
+
readonly name: "bytecodeHash";
|
|
65
|
+
readonly internalType: "bytes32";
|
|
66
|
+
readonly type: "bytes32";
|
|
67
|
+
}];
|
|
68
|
+
readonly name: "allowSystemContract";
|
|
69
|
+
readonly outputs: readonly [];
|
|
70
|
+
readonly stateMutability: "nonpayable";
|
|
71
|
+
}, {
|
|
72
|
+
readonly type: "function";
|
|
73
|
+
readonly inputs: readonly [{
|
|
74
|
+
readonly name: "contractType";
|
|
75
|
+
readonly internalType: "bytes32";
|
|
76
|
+
readonly type: "bytes32";
|
|
77
|
+
}, {
|
|
78
|
+
readonly name: "version";
|
|
79
|
+
readonly internalType: "uint256";
|
|
80
|
+
readonly type: "uint256";
|
|
81
|
+
}, {
|
|
82
|
+
readonly name: "constructorParams";
|
|
83
|
+
readonly internalType: "bytes";
|
|
84
|
+
readonly type: "bytes";
|
|
85
|
+
}, {
|
|
86
|
+
readonly name: "salt";
|
|
87
|
+
readonly internalType: "bytes32";
|
|
88
|
+
readonly type: "bytes32";
|
|
89
|
+
}, {
|
|
90
|
+
readonly name: "deployer";
|
|
91
|
+
readonly internalType: "address";
|
|
92
|
+
readonly type: "address";
|
|
93
|
+
}];
|
|
94
|
+
readonly name: "computeAddress";
|
|
95
|
+
readonly outputs: readonly [{
|
|
96
|
+
readonly name: "";
|
|
97
|
+
readonly internalType: "address";
|
|
98
|
+
readonly type: "address";
|
|
99
|
+
}];
|
|
100
|
+
readonly stateMutability: "view";
|
|
101
|
+
}, {
|
|
102
|
+
readonly type: "function";
|
|
103
|
+
readonly inputs: readonly [{
|
|
104
|
+
readonly name: "bytecodeHash";
|
|
105
|
+
readonly internalType: "bytes32";
|
|
106
|
+
readonly type: "bytes32";
|
|
107
|
+
}, {
|
|
108
|
+
readonly name: "report";
|
|
109
|
+
readonly internalType: "struct AuditReport";
|
|
110
|
+
readonly type: "tuple";
|
|
111
|
+
readonly components: readonly [{
|
|
112
|
+
readonly name: "auditor";
|
|
113
|
+
readonly internalType: "address";
|
|
114
|
+
readonly type: "address";
|
|
115
|
+
}, {
|
|
116
|
+
readonly name: "reportUrl";
|
|
117
|
+
readonly internalType: "string";
|
|
118
|
+
readonly type: "string";
|
|
119
|
+
}, {
|
|
120
|
+
readonly name: "signature";
|
|
121
|
+
readonly internalType: "bytes";
|
|
122
|
+
readonly type: "bytes";
|
|
123
|
+
}];
|
|
124
|
+
}];
|
|
125
|
+
readonly name: "computeAuditReportHash";
|
|
126
|
+
readonly outputs: readonly [{
|
|
127
|
+
readonly name: "";
|
|
128
|
+
readonly internalType: "bytes32";
|
|
129
|
+
readonly type: "bytes32";
|
|
130
|
+
}];
|
|
131
|
+
readonly stateMutability: "view";
|
|
132
|
+
}, {
|
|
133
|
+
readonly type: "function";
|
|
134
|
+
readonly inputs: readonly [{
|
|
135
|
+
readonly name: "bytecode";
|
|
136
|
+
readonly internalType: "struct Bytecode";
|
|
137
|
+
readonly type: "tuple";
|
|
138
|
+
readonly components: readonly [{
|
|
139
|
+
readonly name: "contractType";
|
|
140
|
+
readonly internalType: "bytes32";
|
|
141
|
+
readonly type: "bytes32";
|
|
142
|
+
}, {
|
|
143
|
+
readonly name: "version";
|
|
144
|
+
readonly internalType: "uint256";
|
|
145
|
+
readonly type: "uint256";
|
|
146
|
+
}, {
|
|
147
|
+
readonly name: "initCode";
|
|
148
|
+
readonly internalType: "bytes";
|
|
149
|
+
readonly type: "bytes";
|
|
150
|
+
}, {
|
|
151
|
+
readonly name: "author";
|
|
152
|
+
readonly internalType: "address";
|
|
153
|
+
readonly type: "address";
|
|
154
|
+
}, {
|
|
155
|
+
readonly name: "source";
|
|
156
|
+
readonly internalType: "string";
|
|
157
|
+
readonly type: "string";
|
|
158
|
+
}, {
|
|
159
|
+
readonly name: "authorSignature";
|
|
160
|
+
readonly internalType: "bytes";
|
|
161
|
+
readonly type: "bytes";
|
|
162
|
+
}];
|
|
163
|
+
}];
|
|
164
|
+
readonly name: "computeBytecodeHash";
|
|
165
|
+
readonly outputs: readonly [{
|
|
166
|
+
readonly name: "";
|
|
167
|
+
readonly internalType: "bytes32";
|
|
168
|
+
readonly type: "bytes32";
|
|
169
|
+
}];
|
|
170
|
+
readonly stateMutability: "view";
|
|
171
|
+
}, {
|
|
172
|
+
readonly type: "function";
|
|
173
|
+
readonly inputs: readonly [];
|
|
174
|
+
readonly name: "contractType";
|
|
175
|
+
readonly outputs: readonly [{
|
|
176
|
+
readonly name: "";
|
|
177
|
+
readonly internalType: "bytes32";
|
|
178
|
+
readonly type: "bytes32";
|
|
179
|
+
}];
|
|
180
|
+
readonly stateMutability: "view";
|
|
181
|
+
}, {
|
|
182
|
+
readonly type: "function";
|
|
183
|
+
readonly inputs: readonly [{
|
|
184
|
+
readonly name: "contractType";
|
|
185
|
+
readonly internalType: "bytes32";
|
|
186
|
+
readonly type: "bytes32";
|
|
187
|
+
}, {
|
|
188
|
+
readonly name: "version";
|
|
189
|
+
readonly internalType: "uint256";
|
|
190
|
+
readonly type: "uint256";
|
|
191
|
+
}, {
|
|
192
|
+
readonly name: "constructorParams";
|
|
193
|
+
readonly internalType: "bytes";
|
|
194
|
+
readonly type: "bytes";
|
|
195
|
+
}, {
|
|
196
|
+
readonly name: "salt";
|
|
197
|
+
readonly internalType: "bytes32";
|
|
198
|
+
readonly type: "bytes32";
|
|
199
|
+
}];
|
|
200
|
+
readonly name: "deploy";
|
|
201
|
+
readonly outputs: readonly [{
|
|
202
|
+
readonly name: "";
|
|
203
|
+
readonly internalType: "address";
|
|
204
|
+
readonly type: "address";
|
|
205
|
+
}];
|
|
206
|
+
readonly stateMutability: "nonpayable";
|
|
207
|
+
}, {
|
|
208
|
+
readonly type: "function";
|
|
209
|
+
readonly inputs: readonly [];
|
|
210
|
+
readonly name: "domainSeparatorV4";
|
|
211
|
+
readonly outputs: readonly [{
|
|
212
|
+
readonly name: "";
|
|
213
|
+
readonly internalType: "bytes32";
|
|
214
|
+
readonly type: "bytes32";
|
|
215
|
+
}];
|
|
216
|
+
readonly stateMutability: "view";
|
|
217
|
+
}, {
|
|
218
|
+
readonly type: "function";
|
|
219
|
+
readonly inputs: readonly [{
|
|
220
|
+
readonly name: "initCodeHash";
|
|
221
|
+
readonly internalType: "bytes32";
|
|
222
|
+
readonly type: "bytes32";
|
|
223
|
+
}];
|
|
224
|
+
readonly name: "forbidInitCode";
|
|
225
|
+
readonly outputs: readonly [];
|
|
226
|
+
readonly stateMutability: "nonpayable";
|
|
227
|
+
}, {
|
|
228
|
+
readonly type: "function";
|
|
229
|
+
readonly inputs: readonly [{
|
|
230
|
+
readonly name: "contractType";
|
|
231
|
+
readonly internalType: "bytes32";
|
|
232
|
+
readonly type: "bytes32";
|
|
233
|
+
}, {
|
|
234
|
+
readonly name: "version";
|
|
235
|
+
readonly internalType: "uint256";
|
|
236
|
+
readonly type: "uint256";
|
|
237
|
+
}];
|
|
238
|
+
readonly name: "getAllowedBytecodeHash";
|
|
239
|
+
readonly outputs: readonly [{
|
|
240
|
+
readonly name: "";
|
|
241
|
+
readonly internalType: "bytes32";
|
|
242
|
+
readonly type: "bytes32";
|
|
243
|
+
}];
|
|
244
|
+
readonly stateMutability: "view";
|
|
245
|
+
}, {
|
|
246
|
+
readonly type: "function";
|
|
247
|
+
readonly inputs: readonly [{
|
|
248
|
+
readonly name: "bytecodeHash";
|
|
249
|
+
readonly internalType: "bytes32";
|
|
250
|
+
readonly type: "bytes32";
|
|
251
|
+
}, {
|
|
252
|
+
readonly name: "index";
|
|
253
|
+
readonly internalType: "uint256";
|
|
254
|
+
readonly type: "uint256";
|
|
255
|
+
}];
|
|
256
|
+
readonly name: "getAuditReport";
|
|
257
|
+
readonly outputs: readonly [{
|
|
258
|
+
readonly name: "";
|
|
259
|
+
readonly internalType: "struct AuditReport";
|
|
260
|
+
readonly type: "tuple";
|
|
261
|
+
readonly components: readonly [{
|
|
262
|
+
readonly name: "auditor";
|
|
263
|
+
readonly internalType: "address";
|
|
264
|
+
readonly type: "address";
|
|
265
|
+
}, {
|
|
266
|
+
readonly name: "reportUrl";
|
|
267
|
+
readonly internalType: "string";
|
|
268
|
+
readonly type: "string";
|
|
269
|
+
}, {
|
|
270
|
+
readonly name: "signature";
|
|
271
|
+
readonly internalType: "bytes";
|
|
272
|
+
readonly type: "bytes";
|
|
273
|
+
}];
|
|
274
|
+
}];
|
|
275
|
+
readonly stateMutability: "view";
|
|
276
|
+
}, {
|
|
277
|
+
readonly type: "function";
|
|
278
|
+
readonly inputs: readonly [{
|
|
279
|
+
readonly name: "bytecodeHash";
|
|
280
|
+
readonly internalType: "bytes32";
|
|
281
|
+
readonly type: "bytes32";
|
|
282
|
+
}];
|
|
283
|
+
readonly name: "getAuditReports";
|
|
284
|
+
readonly outputs: readonly [{
|
|
285
|
+
readonly name: "";
|
|
286
|
+
readonly internalType: "struct AuditReport[]";
|
|
287
|
+
readonly type: "tuple[]";
|
|
288
|
+
readonly components: readonly [{
|
|
289
|
+
readonly name: "auditor";
|
|
290
|
+
readonly internalType: "address";
|
|
291
|
+
readonly type: "address";
|
|
292
|
+
}, {
|
|
293
|
+
readonly name: "reportUrl";
|
|
294
|
+
readonly internalType: "string";
|
|
295
|
+
readonly type: "string";
|
|
296
|
+
}, {
|
|
297
|
+
readonly name: "signature";
|
|
298
|
+
readonly internalType: "bytes";
|
|
299
|
+
readonly type: "bytes";
|
|
300
|
+
}];
|
|
301
|
+
}];
|
|
302
|
+
readonly stateMutability: "view";
|
|
303
|
+
}, {
|
|
304
|
+
readonly type: "function";
|
|
305
|
+
readonly inputs: readonly [{
|
|
306
|
+
readonly name: "auditor";
|
|
307
|
+
readonly internalType: "address";
|
|
308
|
+
readonly type: "address";
|
|
309
|
+
}];
|
|
310
|
+
readonly name: "getAuditorName";
|
|
311
|
+
readonly outputs: readonly [{
|
|
312
|
+
readonly name: "";
|
|
313
|
+
readonly internalType: "string";
|
|
314
|
+
readonly type: "string";
|
|
315
|
+
}];
|
|
316
|
+
readonly stateMutability: "view";
|
|
317
|
+
}, {
|
|
318
|
+
readonly type: "function";
|
|
319
|
+
readonly inputs: readonly [];
|
|
320
|
+
readonly name: "getAuditors";
|
|
321
|
+
readonly outputs: readonly [{
|
|
322
|
+
readonly name: "";
|
|
323
|
+
readonly internalType: "address[]";
|
|
324
|
+
readonly type: "address[]";
|
|
325
|
+
}];
|
|
326
|
+
readonly stateMutability: "view";
|
|
327
|
+
}, {
|
|
328
|
+
readonly type: "function";
|
|
329
|
+
readonly inputs: readonly [{
|
|
330
|
+
readonly name: "bytecodeHash";
|
|
331
|
+
readonly internalType: "bytes32";
|
|
332
|
+
readonly type: "bytes32";
|
|
333
|
+
}];
|
|
334
|
+
readonly name: "getBytecode";
|
|
335
|
+
readonly outputs: readonly [{
|
|
336
|
+
readonly name: "";
|
|
337
|
+
readonly internalType: "struct Bytecode";
|
|
338
|
+
readonly type: "tuple";
|
|
339
|
+
readonly components: readonly [{
|
|
340
|
+
readonly name: "contractType";
|
|
341
|
+
readonly internalType: "bytes32";
|
|
342
|
+
readonly type: "bytes32";
|
|
343
|
+
}, {
|
|
344
|
+
readonly name: "version";
|
|
345
|
+
readonly internalType: "uint256";
|
|
346
|
+
readonly type: "uint256";
|
|
347
|
+
}, {
|
|
348
|
+
readonly name: "initCode";
|
|
349
|
+
readonly internalType: "bytes";
|
|
350
|
+
readonly type: "bytes";
|
|
351
|
+
}, {
|
|
352
|
+
readonly name: "author";
|
|
353
|
+
readonly internalType: "address";
|
|
354
|
+
readonly type: "address";
|
|
355
|
+
}, {
|
|
356
|
+
readonly name: "source";
|
|
357
|
+
readonly internalType: "string";
|
|
358
|
+
readonly type: "string";
|
|
359
|
+
}, {
|
|
360
|
+
readonly name: "authorSignature";
|
|
361
|
+
readonly internalType: "bytes";
|
|
362
|
+
readonly type: "bytes";
|
|
363
|
+
}];
|
|
364
|
+
}];
|
|
365
|
+
readonly stateMutability: "view";
|
|
366
|
+
}, {
|
|
367
|
+
readonly type: "function";
|
|
368
|
+
readonly inputs: readonly [{
|
|
369
|
+
readonly name: "contractType";
|
|
370
|
+
readonly internalType: "bytes32";
|
|
371
|
+
readonly type: "bytes32";
|
|
372
|
+
}];
|
|
373
|
+
readonly name: "getContractTypeOwner";
|
|
374
|
+
readonly outputs: readonly [{
|
|
375
|
+
readonly name: "";
|
|
376
|
+
readonly internalType: "address";
|
|
377
|
+
readonly type: "address";
|
|
378
|
+
}];
|
|
379
|
+
readonly stateMutability: "view";
|
|
380
|
+
}, {
|
|
381
|
+
readonly type: "function";
|
|
382
|
+
readonly inputs: readonly [{
|
|
383
|
+
readonly name: "deployedContract";
|
|
384
|
+
readonly internalType: "address";
|
|
385
|
+
readonly type: "address";
|
|
386
|
+
}];
|
|
387
|
+
readonly name: "getDeployedContractBytecodeHash";
|
|
388
|
+
readonly outputs: readonly [{
|
|
389
|
+
readonly name: "";
|
|
390
|
+
readonly internalType: "bytes32";
|
|
391
|
+
readonly type: "bytes32";
|
|
392
|
+
}];
|
|
393
|
+
readonly stateMutability: "view";
|
|
394
|
+
}, {
|
|
395
|
+
readonly type: "function";
|
|
396
|
+
readonly inputs: readonly [{
|
|
397
|
+
readonly name: "contractType";
|
|
398
|
+
readonly internalType: "bytes32";
|
|
399
|
+
readonly type: "bytes32";
|
|
400
|
+
}, {
|
|
401
|
+
readonly name: "majorVersion";
|
|
402
|
+
readonly internalType: "uint256";
|
|
403
|
+
readonly type: "uint256";
|
|
404
|
+
}];
|
|
405
|
+
readonly name: "getLatestMinorVersion";
|
|
406
|
+
readonly outputs: readonly [{
|
|
407
|
+
readonly name: "";
|
|
408
|
+
readonly internalType: "uint256";
|
|
409
|
+
readonly type: "uint256";
|
|
410
|
+
}];
|
|
411
|
+
readonly stateMutability: "view";
|
|
412
|
+
}, {
|
|
413
|
+
readonly type: "function";
|
|
414
|
+
readonly inputs: readonly [{
|
|
415
|
+
readonly name: "contractType";
|
|
416
|
+
readonly internalType: "bytes32";
|
|
417
|
+
readonly type: "bytes32";
|
|
418
|
+
}, {
|
|
419
|
+
readonly name: "minorVersion";
|
|
420
|
+
readonly internalType: "uint256";
|
|
421
|
+
readonly type: "uint256";
|
|
422
|
+
}];
|
|
423
|
+
readonly name: "getLatestPatchVersion";
|
|
424
|
+
readonly outputs: readonly [{
|
|
425
|
+
readonly name: "";
|
|
426
|
+
readonly internalType: "uint256";
|
|
427
|
+
readonly type: "uint256";
|
|
428
|
+
}];
|
|
429
|
+
readonly stateMutability: "view";
|
|
430
|
+
}, {
|
|
431
|
+
readonly type: "function";
|
|
432
|
+
readonly inputs: readonly [{
|
|
433
|
+
readonly name: "contractType";
|
|
434
|
+
readonly internalType: "bytes32";
|
|
435
|
+
readonly type: "bytes32";
|
|
436
|
+
}];
|
|
437
|
+
readonly name: "getLatestVersion";
|
|
438
|
+
readonly outputs: readonly [{
|
|
439
|
+
readonly name: "";
|
|
440
|
+
readonly internalType: "uint256";
|
|
441
|
+
readonly type: "uint256";
|
|
442
|
+
}];
|
|
443
|
+
readonly stateMutability: "view";
|
|
444
|
+
}, {
|
|
445
|
+
readonly type: "function";
|
|
446
|
+
readonly inputs: readonly [{
|
|
447
|
+
readonly name: "bytecodeHash";
|
|
448
|
+
readonly internalType: "bytes32";
|
|
449
|
+
readonly type: "bytes32";
|
|
450
|
+
}];
|
|
451
|
+
readonly name: "getNumAuditReports";
|
|
452
|
+
readonly outputs: readonly [{
|
|
453
|
+
readonly name: "";
|
|
454
|
+
readonly internalType: "uint256";
|
|
455
|
+
readonly type: "uint256";
|
|
456
|
+
}];
|
|
457
|
+
readonly stateMutability: "view";
|
|
458
|
+
}, {
|
|
459
|
+
readonly type: "function";
|
|
460
|
+
readonly inputs: readonly [];
|
|
461
|
+
readonly name: "getPublicDomains";
|
|
462
|
+
readonly outputs: readonly [{
|
|
463
|
+
readonly name: "";
|
|
464
|
+
readonly internalType: "bytes32[]";
|
|
465
|
+
readonly type: "bytes32[]";
|
|
466
|
+
}];
|
|
467
|
+
readonly stateMutability: "view";
|
|
468
|
+
}, {
|
|
469
|
+
readonly type: "function";
|
|
470
|
+
readonly inputs: readonly [];
|
|
471
|
+
readonly name: "getSystemDomains";
|
|
472
|
+
readonly outputs: readonly [{
|
|
473
|
+
readonly name: "";
|
|
474
|
+
readonly internalType: "bytes32[]";
|
|
475
|
+
readonly type: "bytes32[]";
|
|
476
|
+
}];
|
|
477
|
+
readonly stateMutability: "view";
|
|
478
|
+
}, {
|
|
479
|
+
readonly type: "function";
|
|
480
|
+
readonly inputs: readonly [{
|
|
481
|
+
readonly name: "token";
|
|
482
|
+
readonly internalType: "address";
|
|
483
|
+
readonly type: "address";
|
|
484
|
+
}];
|
|
485
|
+
readonly name: "getTokenSpecificPostfix";
|
|
486
|
+
readonly outputs: readonly [{
|
|
487
|
+
readonly name: "";
|
|
488
|
+
readonly internalType: "bytes32";
|
|
489
|
+
readonly type: "bytes32";
|
|
490
|
+
}];
|
|
491
|
+
readonly stateMutability: "view";
|
|
492
|
+
}, {
|
|
493
|
+
readonly type: "function";
|
|
494
|
+
readonly inputs: readonly [{
|
|
495
|
+
readonly name: "contractType";
|
|
496
|
+
readonly internalType: "bytes32";
|
|
497
|
+
readonly type: "bytes32";
|
|
498
|
+
}];
|
|
499
|
+
readonly name: "getVersions";
|
|
500
|
+
readonly outputs: readonly [{
|
|
501
|
+
readonly name: "";
|
|
502
|
+
readonly internalType: "uint256[]";
|
|
503
|
+
readonly type: "uint256[]";
|
|
504
|
+
}];
|
|
505
|
+
readonly stateMutability: "view";
|
|
506
|
+
}, {
|
|
507
|
+
readonly type: "function";
|
|
508
|
+
readonly inputs: readonly [{
|
|
509
|
+
readonly name: "auditor";
|
|
510
|
+
readonly internalType: "address";
|
|
511
|
+
readonly type: "address";
|
|
512
|
+
}];
|
|
513
|
+
readonly name: "isAuditor";
|
|
514
|
+
readonly outputs: readonly [{
|
|
515
|
+
readonly name: "";
|
|
516
|
+
readonly internalType: "bool";
|
|
517
|
+
readonly type: "bool";
|
|
518
|
+
}];
|
|
519
|
+
readonly stateMutability: "view";
|
|
520
|
+
}, {
|
|
521
|
+
readonly type: "function";
|
|
522
|
+
readonly inputs: readonly [{
|
|
523
|
+
readonly name: "bytecodeHash";
|
|
524
|
+
readonly internalType: "bytes32";
|
|
525
|
+
readonly type: "bytes32";
|
|
526
|
+
}];
|
|
527
|
+
readonly name: "isBytecodeAudited";
|
|
528
|
+
readonly outputs: readonly [{
|
|
529
|
+
readonly name: "";
|
|
530
|
+
readonly internalType: "bool";
|
|
531
|
+
readonly type: "bool";
|
|
532
|
+
}];
|
|
533
|
+
readonly stateMutability: "view";
|
|
534
|
+
}, {
|
|
535
|
+
readonly type: "function";
|
|
536
|
+
readonly inputs: readonly [{
|
|
537
|
+
readonly name: "bytecodeHash";
|
|
538
|
+
readonly internalType: "bytes32";
|
|
539
|
+
readonly type: "bytes32";
|
|
540
|
+
}];
|
|
541
|
+
readonly name: "isBytecodeUploaded";
|
|
542
|
+
readonly outputs: readonly [{
|
|
543
|
+
readonly name: "";
|
|
544
|
+
readonly internalType: "bool";
|
|
545
|
+
readonly type: "bool";
|
|
546
|
+
}];
|
|
547
|
+
readonly stateMutability: "view";
|
|
548
|
+
}, {
|
|
549
|
+
readonly type: "function";
|
|
550
|
+
readonly inputs: readonly [{
|
|
551
|
+
readonly name: "deployedContract";
|
|
552
|
+
readonly internalType: "address";
|
|
553
|
+
readonly type: "address";
|
|
554
|
+
}];
|
|
555
|
+
readonly name: "isDeployedFromRepository";
|
|
556
|
+
readonly outputs: readonly [{
|
|
557
|
+
readonly name: "";
|
|
558
|
+
readonly internalType: "bool";
|
|
559
|
+
readonly type: "bool";
|
|
560
|
+
}];
|
|
561
|
+
readonly stateMutability: "view";
|
|
562
|
+
}, {
|
|
563
|
+
readonly type: "function";
|
|
564
|
+
readonly inputs: readonly [{
|
|
565
|
+
readonly name: "initCodeHash";
|
|
566
|
+
readonly internalType: "bytes32";
|
|
567
|
+
readonly type: "bytes32";
|
|
568
|
+
}];
|
|
569
|
+
readonly name: "isInitCodeForbidden";
|
|
570
|
+
readonly outputs: readonly [{
|
|
571
|
+
readonly name: "";
|
|
572
|
+
readonly internalType: "bool";
|
|
573
|
+
readonly type: "bool";
|
|
574
|
+
}];
|
|
575
|
+
readonly stateMutability: "view";
|
|
576
|
+
}, {
|
|
577
|
+
readonly type: "function";
|
|
578
|
+
readonly inputs: readonly [{
|
|
579
|
+
readonly name: "domain";
|
|
580
|
+
readonly internalType: "bytes32";
|
|
581
|
+
readonly type: "bytes32";
|
|
582
|
+
}];
|
|
583
|
+
readonly name: "isPublicDomain";
|
|
584
|
+
readonly outputs: readonly [{
|
|
585
|
+
readonly name: "";
|
|
586
|
+
readonly internalType: "bool";
|
|
587
|
+
readonly type: "bool";
|
|
588
|
+
}];
|
|
589
|
+
readonly stateMutability: "view";
|
|
590
|
+
}, {
|
|
591
|
+
readonly type: "function";
|
|
592
|
+
readonly inputs: readonly [{
|
|
593
|
+
readonly name: "domain";
|
|
594
|
+
readonly internalType: "bytes32";
|
|
595
|
+
readonly type: "bytes32";
|
|
596
|
+
}];
|
|
597
|
+
readonly name: "isSystemDomain";
|
|
598
|
+
readonly outputs: readonly [{
|
|
599
|
+
readonly name: "";
|
|
600
|
+
readonly internalType: "bool";
|
|
601
|
+
readonly type: "bool";
|
|
602
|
+
}];
|
|
603
|
+
readonly stateMutability: "view";
|
|
604
|
+
}, {
|
|
605
|
+
readonly type: "function";
|
|
606
|
+
readonly inputs: readonly [];
|
|
607
|
+
readonly name: "owner";
|
|
608
|
+
readonly outputs: readonly [{
|
|
609
|
+
readonly name: "";
|
|
610
|
+
readonly internalType: "address";
|
|
611
|
+
readonly type: "address";
|
|
612
|
+
}];
|
|
613
|
+
readonly stateMutability: "view";
|
|
614
|
+
}, {
|
|
615
|
+
readonly type: "function";
|
|
616
|
+
readonly inputs: readonly [{
|
|
617
|
+
readonly name: "auditor";
|
|
618
|
+
readonly internalType: "address";
|
|
619
|
+
readonly type: "address";
|
|
620
|
+
}];
|
|
621
|
+
readonly name: "removeAuditor";
|
|
622
|
+
readonly outputs: readonly [];
|
|
623
|
+
readonly stateMutability: "nonpayable";
|
|
624
|
+
}, {
|
|
625
|
+
readonly type: "function";
|
|
626
|
+
readonly inputs: readonly [{
|
|
627
|
+
readonly name: "contractType";
|
|
628
|
+
readonly internalType: "bytes32";
|
|
629
|
+
readonly type: "bytes32";
|
|
630
|
+
}];
|
|
631
|
+
readonly name: "removePublicContractType";
|
|
632
|
+
readonly outputs: readonly [];
|
|
633
|
+
readonly stateMutability: "nonpayable";
|
|
634
|
+
}, {
|
|
635
|
+
readonly type: "function";
|
|
636
|
+
readonly inputs: readonly [{
|
|
637
|
+
readonly name: "token";
|
|
638
|
+
readonly internalType: "address";
|
|
639
|
+
readonly type: "address";
|
|
640
|
+
}, {
|
|
641
|
+
readonly name: "postfix";
|
|
642
|
+
readonly internalType: "bytes32";
|
|
643
|
+
readonly type: "bytes32";
|
|
644
|
+
}];
|
|
645
|
+
readonly name: "setTokenSpecificPostfix";
|
|
646
|
+
readonly outputs: readonly [];
|
|
647
|
+
readonly stateMutability: "nonpayable";
|
|
648
|
+
}, {
|
|
649
|
+
readonly type: "function";
|
|
650
|
+
readonly inputs: readonly [{
|
|
651
|
+
readonly name: "bytecodeHash";
|
|
652
|
+
readonly internalType: "bytes32";
|
|
653
|
+
readonly type: "bytes32";
|
|
654
|
+
}, {
|
|
655
|
+
readonly name: "auditReport";
|
|
656
|
+
readonly internalType: "struct AuditReport";
|
|
657
|
+
readonly type: "tuple";
|
|
658
|
+
readonly components: readonly [{
|
|
659
|
+
readonly name: "auditor";
|
|
660
|
+
readonly internalType: "address";
|
|
661
|
+
readonly type: "address";
|
|
662
|
+
}, {
|
|
663
|
+
readonly name: "reportUrl";
|
|
664
|
+
readonly internalType: "string";
|
|
665
|
+
readonly type: "string";
|
|
666
|
+
}, {
|
|
667
|
+
readonly name: "signature";
|
|
668
|
+
readonly internalType: "bytes";
|
|
669
|
+
readonly type: "bytes";
|
|
670
|
+
}];
|
|
671
|
+
}];
|
|
672
|
+
readonly name: "submitAuditReport";
|
|
673
|
+
readonly outputs: readonly [];
|
|
674
|
+
readonly stateMutability: "nonpayable";
|
|
675
|
+
}, {
|
|
676
|
+
readonly type: "function";
|
|
677
|
+
readonly inputs: readonly [{
|
|
678
|
+
readonly name: "bytecode";
|
|
679
|
+
readonly internalType: "struct Bytecode";
|
|
680
|
+
readonly type: "tuple";
|
|
681
|
+
readonly components: readonly [{
|
|
682
|
+
readonly name: "contractType";
|
|
683
|
+
readonly internalType: "bytes32";
|
|
684
|
+
readonly type: "bytes32";
|
|
685
|
+
}, {
|
|
686
|
+
readonly name: "version";
|
|
687
|
+
readonly internalType: "uint256";
|
|
688
|
+
readonly type: "uint256";
|
|
689
|
+
}, {
|
|
690
|
+
readonly name: "initCode";
|
|
691
|
+
readonly internalType: "bytes";
|
|
692
|
+
readonly type: "bytes";
|
|
693
|
+
}, {
|
|
694
|
+
readonly name: "author";
|
|
695
|
+
readonly internalType: "address";
|
|
696
|
+
readonly type: "address";
|
|
697
|
+
}, {
|
|
698
|
+
readonly name: "source";
|
|
699
|
+
readonly internalType: "string";
|
|
700
|
+
readonly type: "string";
|
|
701
|
+
}, {
|
|
702
|
+
readonly name: "authorSignature";
|
|
703
|
+
readonly internalType: "bytes";
|
|
704
|
+
readonly type: "bytes";
|
|
705
|
+
}];
|
|
706
|
+
}];
|
|
707
|
+
readonly name: "uploadBytecode";
|
|
708
|
+
readonly outputs: readonly [];
|
|
709
|
+
readonly stateMutability: "nonpayable";
|
|
710
|
+
}, {
|
|
711
|
+
readonly type: "function";
|
|
712
|
+
readonly inputs: readonly [];
|
|
713
|
+
readonly name: "version";
|
|
714
|
+
readonly outputs: readonly [{
|
|
715
|
+
readonly name: "";
|
|
716
|
+
readonly internalType: "uint256";
|
|
717
|
+
readonly type: "uint256";
|
|
718
|
+
}];
|
|
719
|
+
readonly stateMutability: "view";
|
|
720
|
+
}, {
|
|
721
|
+
readonly type: "event";
|
|
722
|
+
readonly anonymous: false;
|
|
723
|
+
readonly inputs: readonly [{
|
|
724
|
+
readonly name: "auditor";
|
|
725
|
+
readonly internalType: "address";
|
|
726
|
+
readonly type: "address";
|
|
727
|
+
readonly indexed: true;
|
|
728
|
+
}, {
|
|
729
|
+
readonly name: "name";
|
|
730
|
+
readonly internalType: "string";
|
|
731
|
+
readonly type: "string";
|
|
732
|
+
readonly indexed: false;
|
|
733
|
+
}];
|
|
734
|
+
readonly name: "AddAuditor";
|
|
735
|
+
}, {
|
|
736
|
+
readonly type: "event";
|
|
737
|
+
readonly anonymous: false;
|
|
738
|
+
readonly inputs: readonly [{
|
|
739
|
+
readonly name: "domain";
|
|
740
|
+
readonly internalType: "bytes32";
|
|
741
|
+
readonly type: "bytes32";
|
|
742
|
+
readonly indexed: true;
|
|
743
|
+
}];
|
|
744
|
+
readonly name: "AddPublicDomain";
|
|
745
|
+
}, {
|
|
746
|
+
readonly type: "event";
|
|
747
|
+
readonly anonymous: false;
|
|
748
|
+
readonly inputs: readonly [{
|
|
749
|
+
readonly name: "domain";
|
|
750
|
+
readonly internalType: "bytes32";
|
|
751
|
+
readonly type: "bytes32";
|
|
752
|
+
readonly indexed: true;
|
|
753
|
+
}];
|
|
754
|
+
readonly name: "AddSystemDomain";
|
|
755
|
+
}, {
|
|
756
|
+
readonly type: "event";
|
|
757
|
+
readonly anonymous: false;
|
|
758
|
+
readonly inputs: readonly [{
|
|
759
|
+
readonly name: "bytecodeHash";
|
|
760
|
+
readonly internalType: "bytes32";
|
|
761
|
+
readonly type: "bytes32";
|
|
762
|
+
readonly indexed: true;
|
|
763
|
+
}, {
|
|
764
|
+
readonly name: "contractType";
|
|
765
|
+
readonly internalType: "bytes32";
|
|
766
|
+
readonly type: "bytes32";
|
|
767
|
+
readonly indexed: true;
|
|
768
|
+
}, {
|
|
769
|
+
readonly name: "version";
|
|
770
|
+
readonly internalType: "uint256";
|
|
771
|
+
readonly type: "uint256";
|
|
772
|
+
readonly indexed: true;
|
|
773
|
+
}];
|
|
774
|
+
readonly name: "AllowContract";
|
|
775
|
+
}, {
|
|
776
|
+
readonly type: "event";
|
|
777
|
+
readonly anonymous: false;
|
|
778
|
+
readonly inputs: readonly [{
|
|
779
|
+
readonly name: "bytecodeHash";
|
|
780
|
+
readonly internalType: "bytes32";
|
|
781
|
+
readonly type: "bytes32";
|
|
782
|
+
readonly indexed: true;
|
|
783
|
+
}, {
|
|
784
|
+
readonly name: "auditor";
|
|
785
|
+
readonly internalType: "address";
|
|
786
|
+
readonly type: "address";
|
|
787
|
+
readonly indexed: true;
|
|
788
|
+
}, {
|
|
789
|
+
readonly name: "reportUrl";
|
|
790
|
+
readonly internalType: "string";
|
|
791
|
+
readonly type: "string";
|
|
792
|
+
readonly indexed: false;
|
|
793
|
+
}, {
|
|
794
|
+
readonly name: "signature";
|
|
795
|
+
readonly internalType: "bytes";
|
|
796
|
+
readonly type: "bytes";
|
|
797
|
+
readonly indexed: false;
|
|
798
|
+
}];
|
|
799
|
+
readonly name: "AuditBytecode";
|
|
800
|
+
}, {
|
|
801
|
+
readonly type: "event";
|
|
802
|
+
readonly anonymous: false;
|
|
803
|
+
readonly inputs: readonly [{
|
|
804
|
+
readonly name: "bytecodeHash";
|
|
805
|
+
readonly internalType: "bytes32";
|
|
806
|
+
readonly type: "bytes32";
|
|
807
|
+
readonly indexed: true;
|
|
808
|
+
}, {
|
|
809
|
+
readonly name: "contractType";
|
|
810
|
+
readonly internalType: "bytes32";
|
|
811
|
+
readonly type: "bytes32";
|
|
812
|
+
readonly indexed: true;
|
|
813
|
+
}, {
|
|
814
|
+
readonly name: "version";
|
|
815
|
+
readonly internalType: "uint256";
|
|
816
|
+
readonly type: "uint256";
|
|
817
|
+
readonly indexed: true;
|
|
818
|
+
}, {
|
|
819
|
+
readonly name: "contractAddress";
|
|
820
|
+
readonly internalType: "address";
|
|
821
|
+
readonly type: "address";
|
|
822
|
+
readonly indexed: false;
|
|
823
|
+
}, {
|
|
824
|
+
readonly name: "constructorParams";
|
|
825
|
+
readonly internalType: "bytes";
|
|
826
|
+
readonly type: "bytes";
|
|
827
|
+
readonly indexed: false;
|
|
828
|
+
}];
|
|
829
|
+
readonly name: "DeployContract";
|
|
830
|
+
}, {
|
|
831
|
+
readonly type: "event";
|
|
832
|
+
readonly anonymous: false;
|
|
833
|
+
readonly inputs: readonly [{
|
|
834
|
+
readonly name: "bytecodeHash";
|
|
835
|
+
readonly internalType: "bytes32";
|
|
836
|
+
readonly type: "bytes32";
|
|
837
|
+
readonly indexed: true;
|
|
838
|
+
}, {
|
|
839
|
+
readonly name: "contractType";
|
|
840
|
+
readonly internalType: "bytes32";
|
|
841
|
+
readonly type: "bytes32";
|
|
842
|
+
readonly indexed: true;
|
|
843
|
+
}, {
|
|
844
|
+
readonly name: "version";
|
|
845
|
+
readonly internalType: "uint256";
|
|
846
|
+
readonly type: "uint256";
|
|
847
|
+
readonly indexed: true;
|
|
848
|
+
}];
|
|
849
|
+
readonly name: "ForbidContract";
|
|
850
|
+
}, {
|
|
851
|
+
readonly type: "event";
|
|
852
|
+
readonly anonymous: false;
|
|
853
|
+
readonly inputs: readonly [{
|
|
854
|
+
readonly name: "initCodeHash";
|
|
855
|
+
readonly internalType: "bytes32";
|
|
856
|
+
readonly type: "bytes32";
|
|
857
|
+
readonly indexed: true;
|
|
858
|
+
}];
|
|
859
|
+
readonly name: "ForbidInitCode";
|
|
860
|
+
}, {
|
|
861
|
+
readonly type: "event";
|
|
862
|
+
readonly anonymous: false;
|
|
863
|
+
readonly inputs: readonly [{
|
|
864
|
+
readonly name: "auditor";
|
|
865
|
+
readonly internalType: "address";
|
|
866
|
+
readonly type: "address";
|
|
867
|
+
readonly indexed: true;
|
|
868
|
+
}];
|
|
869
|
+
readonly name: "RemoveAuditor";
|
|
870
|
+
}, {
|
|
871
|
+
readonly type: "event";
|
|
872
|
+
readonly anonymous: false;
|
|
873
|
+
readonly inputs: readonly [{
|
|
874
|
+
readonly name: "contractType";
|
|
875
|
+
readonly internalType: "bytes32";
|
|
876
|
+
readonly type: "bytes32";
|
|
877
|
+
readonly indexed: true;
|
|
878
|
+
}];
|
|
879
|
+
readonly name: "RemoveContractTypeOwner";
|
|
880
|
+
}, {
|
|
881
|
+
readonly type: "event";
|
|
882
|
+
readonly anonymous: false;
|
|
883
|
+
readonly inputs: readonly [{
|
|
884
|
+
readonly name: "contractType";
|
|
885
|
+
readonly internalType: "bytes32";
|
|
886
|
+
readonly type: "bytes32";
|
|
887
|
+
readonly indexed: true;
|
|
888
|
+
}, {
|
|
889
|
+
readonly name: "owner";
|
|
890
|
+
readonly internalType: "address";
|
|
891
|
+
readonly type: "address";
|
|
892
|
+
readonly indexed: true;
|
|
893
|
+
}];
|
|
894
|
+
readonly name: "SetContractTypeOwner";
|
|
895
|
+
}, {
|
|
896
|
+
readonly type: "event";
|
|
897
|
+
readonly anonymous: false;
|
|
898
|
+
readonly inputs: readonly [{
|
|
899
|
+
readonly name: "token";
|
|
900
|
+
readonly internalType: "address";
|
|
901
|
+
readonly type: "address";
|
|
902
|
+
readonly indexed: true;
|
|
903
|
+
}, {
|
|
904
|
+
readonly name: "postfix";
|
|
905
|
+
readonly internalType: "bytes32";
|
|
906
|
+
readonly type: "bytes32";
|
|
907
|
+
readonly indexed: true;
|
|
908
|
+
}];
|
|
909
|
+
readonly name: "SetTokenSpecificPostfix";
|
|
910
|
+
}, {
|
|
911
|
+
readonly type: "event";
|
|
912
|
+
readonly anonymous: false;
|
|
913
|
+
readonly inputs: readonly [{
|
|
914
|
+
readonly name: "bytecodeHash";
|
|
915
|
+
readonly internalType: "bytes32";
|
|
916
|
+
readonly type: "bytes32";
|
|
917
|
+
readonly indexed: true;
|
|
918
|
+
}, {
|
|
919
|
+
readonly name: "contractType";
|
|
920
|
+
readonly internalType: "bytes32";
|
|
921
|
+
readonly type: "bytes32";
|
|
922
|
+
readonly indexed: true;
|
|
923
|
+
}, {
|
|
924
|
+
readonly name: "version";
|
|
925
|
+
readonly internalType: "uint256";
|
|
926
|
+
readonly type: "uint256";
|
|
927
|
+
readonly indexed: true;
|
|
928
|
+
}, {
|
|
929
|
+
readonly name: "author";
|
|
930
|
+
readonly internalType: "address";
|
|
931
|
+
readonly type: "address";
|
|
932
|
+
readonly indexed: false;
|
|
933
|
+
}, {
|
|
934
|
+
readonly name: "source";
|
|
935
|
+
readonly internalType: "string";
|
|
936
|
+
readonly type: "string";
|
|
937
|
+
readonly indexed: false;
|
|
938
|
+
}, {
|
|
939
|
+
readonly name: "signature";
|
|
940
|
+
readonly internalType: "bytes";
|
|
941
|
+
readonly type: "bytes";
|
|
942
|
+
readonly indexed: false;
|
|
943
|
+
}];
|
|
944
|
+
readonly name: "UploadBytecode";
|
|
945
|
+
}, {
|
|
946
|
+
readonly type: "error";
|
|
947
|
+
readonly inputs: readonly [{
|
|
948
|
+
readonly name: "auditor";
|
|
949
|
+
readonly internalType: "address";
|
|
950
|
+
readonly type: "address";
|
|
951
|
+
}];
|
|
952
|
+
readonly name: "AuditorIsNotApprovedException";
|
|
953
|
+
}, {
|
|
954
|
+
readonly type: "error";
|
|
955
|
+
readonly inputs: readonly [{
|
|
956
|
+
readonly name: "contractType";
|
|
957
|
+
readonly internalType: "bytes32";
|
|
958
|
+
readonly type: "bytes32";
|
|
959
|
+
}, {
|
|
960
|
+
readonly name: "author";
|
|
961
|
+
readonly internalType: "address";
|
|
962
|
+
readonly type: "address";
|
|
963
|
+
}];
|
|
964
|
+
readonly name: "AuthorIsNotContractTypeOwnerException";
|
|
965
|
+
}, {
|
|
966
|
+
readonly type: "error";
|
|
967
|
+
readonly inputs: readonly [{
|
|
968
|
+
readonly name: "contractType";
|
|
969
|
+
readonly internalType: "bytes32";
|
|
970
|
+
readonly type: "bytes32";
|
|
971
|
+
}, {
|
|
972
|
+
readonly name: "version";
|
|
973
|
+
readonly internalType: "uint256";
|
|
974
|
+
readonly type: "uint256";
|
|
975
|
+
}];
|
|
976
|
+
readonly name: "BytecodeIsAlreadyAllowedException";
|
|
977
|
+
}, {
|
|
978
|
+
readonly type: "error";
|
|
979
|
+
readonly inputs: readonly [{
|
|
980
|
+
readonly name: "bytecodeHash";
|
|
981
|
+
readonly internalType: "bytes32";
|
|
982
|
+
readonly type: "bytes32";
|
|
983
|
+
}, {
|
|
984
|
+
readonly name: "auditor";
|
|
985
|
+
readonly internalType: "address";
|
|
986
|
+
readonly type: "address";
|
|
987
|
+
}];
|
|
988
|
+
readonly name: "BytecodeIsAlreadySignedByAuditorException";
|
|
989
|
+
}, {
|
|
990
|
+
readonly type: "error";
|
|
991
|
+
readonly inputs: readonly [{
|
|
992
|
+
readonly name: "contractType";
|
|
993
|
+
readonly internalType: "bytes32";
|
|
994
|
+
readonly type: "bytes32";
|
|
995
|
+
}, {
|
|
996
|
+
readonly name: "version";
|
|
997
|
+
readonly internalType: "uint256";
|
|
998
|
+
readonly type: "uint256";
|
|
999
|
+
}];
|
|
1000
|
+
readonly name: "BytecodeIsNotAllowedException";
|
|
1001
|
+
}, {
|
|
1002
|
+
readonly type: "error";
|
|
1003
|
+
readonly inputs: readonly [{
|
|
1004
|
+
readonly name: "bytecodeHash";
|
|
1005
|
+
readonly internalType: "bytes32";
|
|
1006
|
+
readonly type: "bytes32";
|
|
1007
|
+
}];
|
|
1008
|
+
readonly name: "BytecodeIsNotAuditedException";
|
|
1009
|
+
}, {
|
|
1010
|
+
readonly type: "error";
|
|
1011
|
+
readonly inputs: readonly [{
|
|
1012
|
+
readonly name: "bytecodeHash";
|
|
1013
|
+
readonly internalType: "bytes32";
|
|
1014
|
+
readonly type: "bytes32";
|
|
1015
|
+
}];
|
|
1016
|
+
readonly name: "BytecodeIsNotUploadedException";
|
|
1017
|
+
}, {
|
|
1018
|
+
readonly type: "error";
|
|
1019
|
+
readonly inputs: readonly [{
|
|
1020
|
+
readonly name: "caller";
|
|
1021
|
+
readonly internalType: "address";
|
|
1022
|
+
readonly type: "address";
|
|
1023
|
+
}];
|
|
1024
|
+
readonly name: "CallerIsNotBytecodeAuthorException";
|
|
1025
|
+
}, {
|
|
1026
|
+
readonly type: "error";
|
|
1027
|
+
readonly inputs: readonly [{
|
|
1028
|
+
readonly name: "caller";
|
|
1029
|
+
readonly internalType: "address";
|
|
1030
|
+
readonly type: "address";
|
|
1031
|
+
}];
|
|
1032
|
+
readonly name: "CallerIsNotOwnerException";
|
|
1033
|
+
}, {
|
|
1034
|
+
readonly type: "error";
|
|
1035
|
+
readonly inputs: readonly [{
|
|
1036
|
+
readonly name: "deployedContract";
|
|
1037
|
+
readonly internalType: "address";
|
|
1038
|
+
readonly type: "address";
|
|
1039
|
+
}];
|
|
1040
|
+
readonly name: "ContractIsAlreadyDeployedException";
|
|
1041
|
+
}, {
|
|
1042
|
+
readonly type: "error";
|
|
1043
|
+
readonly inputs: readonly [{
|
|
1044
|
+
readonly name: "contractType";
|
|
1045
|
+
readonly internalType: "bytes32";
|
|
1046
|
+
readonly type: "bytes32";
|
|
1047
|
+
}];
|
|
1048
|
+
readonly name: "ContractTypeIsNotInPublicDomainException";
|
|
1049
|
+
}, {
|
|
1050
|
+
readonly type: "error";
|
|
1051
|
+
readonly inputs: readonly [{
|
|
1052
|
+
readonly name: "domain";
|
|
1053
|
+
readonly internalType: "bytes32";
|
|
1054
|
+
readonly type: "bytes32";
|
|
1055
|
+
}];
|
|
1056
|
+
readonly name: "DomainIsAlreadyMarkedAsPublicException";
|
|
1057
|
+
}, {
|
|
1058
|
+
readonly type: "error";
|
|
1059
|
+
readonly inputs: readonly [{
|
|
1060
|
+
readonly name: "domain";
|
|
1061
|
+
readonly internalType: "bytes32";
|
|
1062
|
+
readonly type: "bytes32";
|
|
1063
|
+
}];
|
|
1064
|
+
readonly name: "DomainIsAlreadyMarkedAsSystemException";
|
|
1065
|
+
}, {
|
|
1066
|
+
readonly type: "error";
|
|
1067
|
+
readonly inputs: readonly [];
|
|
1068
|
+
readonly name: "InitCodeIsEmptyException";
|
|
1069
|
+
}, {
|
|
1070
|
+
readonly type: "error";
|
|
1071
|
+
readonly inputs: readonly [{
|
|
1072
|
+
readonly name: "initCodeHash";
|
|
1073
|
+
readonly internalType: "bytes32";
|
|
1074
|
+
readonly type: "bytes32";
|
|
1075
|
+
}];
|
|
1076
|
+
readonly name: "InitCodeIsForbiddenException";
|
|
1077
|
+
}, {
|
|
1078
|
+
readonly type: "error";
|
|
1079
|
+
readonly inputs: readonly [{
|
|
1080
|
+
readonly name: "auditor";
|
|
1081
|
+
readonly internalType: "address";
|
|
1082
|
+
readonly type: "address";
|
|
1083
|
+
}];
|
|
1084
|
+
readonly name: "InvalidAuditorSignatureException";
|
|
1085
|
+
}, {
|
|
1086
|
+
readonly type: "error";
|
|
1087
|
+
readonly inputs: readonly [{
|
|
1088
|
+
readonly name: "author";
|
|
1089
|
+
readonly internalType: "address";
|
|
1090
|
+
readonly type: "address";
|
|
1091
|
+
}];
|
|
1092
|
+
readonly name: "InvalidAuthorSignatureException";
|
|
1093
|
+
}, {
|
|
1094
|
+
readonly type: "error";
|
|
1095
|
+
readonly inputs: readonly [{
|
|
1096
|
+
readonly name: "bytecodeHash";
|
|
1097
|
+
readonly internalType: "bytes32";
|
|
1098
|
+
readonly type: "bytes32";
|
|
1099
|
+
}];
|
|
1100
|
+
readonly name: "InvalidBytecodeException";
|
|
1101
|
+
}, {
|
|
1102
|
+
readonly type: "error";
|
|
1103
|
+
readonly inputs: readonly [{
|
|
1104
|
+
readonly name: "contractType";
|
|
1105
|
+
readonly internalType: "bytes32";
|
|
1106
|
+
readonly type: "bytes32";
|
|
1107
|
+
}];
|
|
1108
|
+
readonly name: "InvalidContractTypeException";
|
|
1109
|
+
}, {
|
|
1110
|
+
readonly type: "error";
|
|
1111
|
+
readonly inputs: readonly [{
|
|
1112
|
+
readonly name: "domain";
|
|
1113
|
+
readonly internalType: "bytes32";
|
|
1114
|
+
readonly type: "bytes32";
|
|
1115
|
+
}];
|
|
1116
|
+
readonly name: "InvalidDomainException";
|
|
1117
|
+
}, {
|
|
1118
|
+
readonly type: "error";
|
|
1119
|
+
readonly inputs: readonly [{
|
|
1120
|
+
readonly name: "postfix";
|
|
1121
|
+
readonly internalType: "bytes32";
|
|
1122
|
+
readonly type: "bytes32";
|
|
1123
|
+
}];
|
|
1124
|
+
readonly name: "InvalidPostfixException";
|
|
1125
|
+
}, {
|
|
1126
|
+
readonly type: "error";
|
|
1127
|
+
readonly inputs: readonly [{
|
|
1128
|
+
readonly name: "contractType";
|
|
1129
|
+
readonly internalType: "bytes32";
|
|
1130
|
+
readonly type: "bytes32";
|
|
1131
|
+
}, {
|
|
1132
|
+
readonly name: "version";
|
|
1133
|
+
readonly internalType: "uint256";
|
|
1134
|
+
readonly type: "uint256";
|
|
1135
|
+
}];
|
|
1136
|
+
readonly name: "InvalidVersionException";
|
|
1137
|
+
}, {
|
|
1138
|
+
readonly type: "error";
|
|
1139
|
+
readonly inputs: readonly [{
|
|
1140
|
+
readonly name: "contractType";
|
|
1141
|
+
readonly internalType: "bytes32";
|
|
1142
|
+
readonly type: "bytes32";
|
|
1143
|
+
}];
|
|
1144
|
+
readonly name: "VersionNotFoundException";
|
|
1145
|
+
}];
|
|
1146
|
+
interface ComputeAddressArgs {
|
|
1147
|
+
contractType: string;
|
|
1148
|
+
version: number;
|
|
1149
|
+
encodedParams: Hex;
|
|
1150
|
+
salt: Hex;
|
|
1151
|
+
owner: Address;
|
|
1152
|
+
}
|
|
1153
|
+
export declare class BytecodeRepositoryContract extends BaseContract<typeof abi> {
|
|
1154
|
+
constructor(address: Address, client: PublicClient);
|
|
1155
|
+
getBytecodeByHash(hash: `0x${string}`): Promise<{
|
|
1156
|
+
contractType: `0x${string}`;
|
|
1157
|
+
version: bigint;
|
|
1158
|
+
initCode: `0x${string}`;
|
|
1159
|
+
author: `0x${string}`;
|
|
1160
|
+
source: string;
|
|
1161
|
+
authorSignature: `0x${string}`;
|
|
1162
|
+
}>;
|
|
1163
|
+
getAuditReports(hash: `0x${string}`): Promise<readonly {
|
|
1164
|
+
auditor: `0x${string}`;
|
|
1165
|
+
reportUrl: string;
|
|
1166
|
+
signature: `0x${string}`;
|
|
1167
|
+
}[]>;
|
|
1168
|
+
getPublicDomains(): Promise<readonly `0x${string}`[]>;
|
|
1169
|
+
isBytecodeUploaded(hash: `0x${string}`): Promise<boolean>;
|
|
1170
|
+
isBytecodeAudited(hash: `0x${string}`): Promise<boolean>;
|
|
1171
|
+
getLatestVersion(type_: string): Promise<bigint>;
|
|
1172
|
+
isPublicDomain(domain: string): Promise<boolean>;
|
|
1173
|
+
getUploadBytecodeEvents(fromBlock: bigint, toBlock: bigint, chunkSize?: number): Promise<Omit<Bytecode, "uploadedAt">[]>;
|
|
1174
|
+
getAddAuditorEvents(fromBlock: bigint, toBlock: bigint): Promise<Auditor[]>;
|
|
1175
|
+
getDeployContractEvents(fromBlock: bigint, toBlock: bigint): Promise<Omit<DeploymentExtended, "timestamp">[]>;
|
|
1176
|
+
getAuditBytecodeEvents(fromBlock: bigint, toBlock: bigint): Promise<Omit<AuditEvent, "timestamp">[]>;
|
|
1177
|
+
getAllowPublicContractEvents(fromBlock: bigint, toBlock: bigint): Promise<Array<{
|
|
1178
|
+
bytecodeHash: Hex;
|
|
1179
|
+
contractType: Hex;
|
|
1180
|
+
version: bigint;
|
|
1181
|
+
transactionHash: Hex;
|
|
1182
|
+
blockNumber: number;
|
|
1183
|
+
}>>;
|
|
1184
|
+
getAllowContractEvents(fromBlock: bigint, toBlock: bigint): Promise<Array<{
|
|
1185
|
+
bytecodeHash: Hex;
|
|
1186
|
+
contractType: Hex;
|
|
1187
|
+
version: bigint;
|
|
1188
|
+
transactionHash: Hex;
|
|
1189
|
+
blockNumber: number;
|
|
1190
|
+
}>>;
|
|
1191
|
+
getUploadUpdates(fromBlock: bigint, toBlock: bigint): Promise<Omit<Bytecode, "uploadedAt">[]>;
|
|
1192
|
+
parseFunctionParams(params: DecodeFunctionDataReturnType<typeof abi>): ParsedCall | undefined;
|
|
1193
|
+
signBytecodeHash(bytecodeHash: Hex, auditor: Address, reportUrl: string, signature: Hex, sponsor: WalletClient): Promise<`0x${string}`>;
|
|
1194
|
+
signBytecodeHashTx(bytecodeHash: Hex, auditor: Address, reportUrl: string, signature: Hex): RawTx;
|
|
1195
|
+
recoverAuditorSignature(bytecodeHash: Hex, auditor: Address, reportUrl: string, signature: Hex): Promise<Address>;
|
|
1196
|
+
recoverAuthorSignature(contractType: string, version: number, initCode: Hex, author: Address, source: string, signature: Hex): Promise<Address>;
|
|
1197
|
+
computeEIP712AuditorDigest(bytecodeHash: Hex, auditor: Address, reportUrl: string): {
|
|
1198
|
+
readonly domain: {
|
|
1199
|
+
name: string;
|
|
1200
|
+
version: string;
|
|
1201
|
+
chainId: number;
|
|
1202
|
+
verifyingContract: `0x${string}`;
|
|
1203
|
+
};
|
|
1204
|
+
readonly types: {
|
|
1205
|
+
readonly AuditReport: readonly [{
|
|
1206
|
+
readonly name: "bytecodeHash";
|
|
1207
|
+
readonly type: "bytes32";
|
|
1208
|
+
}, {
|
|
1209
|
+
readonly name: "auditor";
|
|
1210
|
+
readonly type: "address";
|
|
1211
|
+
}, {
|
|
1212
|
+
readonly name: "reportUrl";
|
|
1213
|
+
readonly type: "string";
|
|
1214
|
+
}];
|
|
1215
|
+
};
|
|
1216
|
+
readonly primaryType: "AuditReport";
|
|
1217
|
+
readonly message: {
|
|
1218
|
+
readonly bytecodeHash: `0x${string}`;
|
|
1219
|
+
readonly auditor: `0x${string}`;
|
|
1220
|
+
readonly reportUrl: string;
|
|
1221
|
+
};
|
|
1222
|
+
};
|
|
1223
|
+
computeEIP712AuthorDigest(args: {
|
|
1224
|
+
contractType: Hex;
|
|
1225
|
+
version: bigint;
|
|
1226
|
+
initCode: Hex;
|
|
1227
|
+
author: Address;
|
|
1228
|
+
source: string;
|
|
1229
|
+
}): {
|
|
1230
|
+
readonly message: {
|
|
1231
|
+
contractType: Hex;
|
|
1232
|
+
version: bigint;
|
|
1233
|
+
initCode: Hex;
|
|
1234
|
+
author: Address;
|
|
1235
|
+
source: string;
|
|
1236
|
+
};
|
|
1237
|
+
readonly primaryType: "Bytecode";
|
|
1238
|
+
readonly types: {
|
|
1239
|
+
readonly Bytecode: readonly [{
|
|
1240
|
+
readonly name: "contractType";
|
|
1241
|
+
readonly type: "bytes32";
|
|
1242
|
+
}, {
|
|
1243
|
+
readonly name: "version";
|
|
1244
|
+
readonly type: "uint256";
|
|
1245
|
+
}, {
|
|
1246
|
+
readonly name: "initCode";
|
|
1247
|
+
readonly type: "bytes";
|
|
1248
|
+
}, {
|
|
1249
|
+
readonly name: "author";
|
|
1250
|
+
readonly type: "address";
|
|
1251
|
+
}, {
|
|
1252
|
+
readonly name: "source";
|
|
1253
|
+
readonly type: "string";
|
|
1254
|
+
}];
|
|
1255
|
+
};
|
|
1256
|
+
readonly domain: {
|
|
1257
|
+
name: string;
|
|
1258
|
+
version: string;
|
|
1259
|
+
chainId: number;
|
|
1260
|
+
verifyingContract: `0x${string}`;
|
|
1261
|
+
};
|
|
1262
|
+
};
|
|
1263
|
+
private getEIP712Domain;
|
|
1264
|
+
computeBytecodeHash(args: {
|
|
1265
|
+
contractType: Hex;
|
|
1266
|
+
version: bigint;
|
|
1267
|
+
initCode: Hex;
|
|
1268
|
+
author: Address;
|
|
1269
|
+
source: string;
|
|
1270
|
+
}): Hex;
|
|
1271
|
+
static getBytecodeHashTypes(): {
|
|
1272
|
+
readonly primaryType: "Bytecode";
|
|
1273
|
+
readonly types: {
|
|
1274
|
+
readonly Bytecode: readonly [{
|
|
1275
|
+
readonly name: "contractType";
|
|
1276
|
+
readonly type: "bytes32";
|
|
1277
|
+
}, {
|
|
1278
|
+
readonly name: "version";
|
|
1279
|
+
readonly type: "uint256";
|
|
1280
|
+
}, {
|
|
1281
|
+
readonly name: "initCode";
|
|
1282
|
+
readonly type: "bytes";
|
|
1283
|
+
}, {
|
|
1284
|
+
readonly name: "author";
|
|
1285
|
+
readonly type: "address";
|
|
1286
|
+
}, {
|
|
1287
|
+
readonly name: "source";
|
|
1288
|
+
readonly type: "string";
|
|
1289
|
+
}];
|
|
1290
|
+
};
|
|
1291
|
+
};
|
|
1292
|
+
computeBytecodeHashContract(args: {
|
|
1293
|
+
contractType: Hex;
|
|
1294
|
+
version: bigint;
|
|
1295
|
+
initCode: Hex;
|
|
1296
|
+
author: Address;
|
|
1297
|
+
source: string;
|
|
1298
|
+
}): Promise<Hex>;
|
|
1299
|
+
getAuditors(): Promise<Address[]>;
|
|
1300
|
+
isAuditor(auditor: Address): Promise<boolean>;
|
|
1301
|
+
extractDeployDataEvent(logs: Log[]): {
|
|
1302
|
+
address: Address;
|
|
1303
|
+
bytecodeHash: Hex;
|
|
1304
|
+
contractType: string;
|
|
1305
|
+
version: number;
|
|
1306
|
+
};
|
|
1307
|
+
computeAddress(args: ComputeAddressArgs): Promise<Address>;
|
|
1308
|
+
isAlreadyDeployedAddress(args: ComputeAddressArgs): Promise<[boolean, Address]>;
|
|
1309
|
+
isAlreadyDeployed(args: ComputeAddressArgs): Promise<boolean>;
|
|
1310
|
+
uploadBytecode(uploadByteCode: {
|
|
1311
|
+
contractType: Hex;
|
|
1312
|
+
version: bigint;
|
|
1313
|
+
initCode: Hex;
|
|
1314
|
+
author: Address;
|
|
1315
|
+
source: string;
|
|
1316
|
+
authorSignature: Hex;
|
|
1317
|
+
}, sponsor: WalletClient): Promise<`0x${string}`>;
|
|
1318
|
+
addAuditorTx(args: {
|
|
1319
|
+
name: string;
|
|
1320
|
+
address: Address;
|
|
1321
|
+
}): RawTx;
|
|
1322
|
+
addPublicDomainTx(args: {
|
|
1323
|
+
domain: string;
|
|
1324
|
+
}): RawTx;
|
|
1325
|
+
allowPublicContractTx(args: {
|
|
1326
|
+
bytecodeHash: Hex;
|
|
1327
|
+
}): RawTx;
|
|
1328
|
+
allowSystemContractTx(args: {
|
|
1329
|
+
bytecodeHash: Hex;
|
|
1330
|
+
}): RawTx;
|
|
1331
|
+
setTokenSpecificPostfixTx(args: {
|
|
1332
|
+
token: Address;
|
|
1333
|
+
postfix: string;
|
|
1334
|
+
}): RawTx;
|
|
1335
|
+
uploadBytecodeRawTx(uploadByteCode: {
|
|
1336
|
+
contractType: Hex;
|
|
1337
|
+
version: bigint;
|
|
1338
|
+
initCode: Hex;
|
|
1339
|
+
author: Address;
|
|
1340
|
+
source: string;
|
|
1341
|
+
authorSignature: Hex;
|
|
1342
|
+
}): RawTx;
|
|
1343
|
+
extractDomain(contractType: string): string;
|
|
1344
|
+
allowPublicContract(bytecodeHash: Hex, sponsor: WalletClient): Promise<`0x${string}`>;
|
|
1345
|
+
deployTx(args: {
|
|
1346
|
+
contractType: string;
|
|
1347
|
+
version: bigint;
|
|
1348
|
+
encodedParams: Hex;
|
|
1349
|
+
salt: Hex;
|
|
1350
|
+
}): RawTx;
|
|
1351
|
+
}
|
|
1352
|
+
export {};
|