@pufferfinance/puffer-sdk 1.20.1 → 1.21.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/contracts/abis/mainnet/GuardianModule.cjs +2 -0
- package/dist/contracts/abis/mainnet/GuardianModule.cjs.map +1 -0
- package/dist/contracts/abis/mainnet/GuardianModule.d.ts +301 -0
- package/dist/contracts/abis/mainnet/GuardianModule.js +205 -0
- package/dist/contracts/abis/mainnet/GuardianModule.js.map +1 -0
- package/dist/contracts/addresses.cjs +1 -1
- package/dist/contracts/addresses.cjs.map +1 -1
- package/dist/contracts/addresses.d.ts +3 -0
- package/dist/contracts/addresses.js +6 -4
- package/dist/contracts/addresses.js.map +1 -1
- package/dist/contracts/handlers/guardian-module-handler.cjs +2 -0
- package/dist/contracts/handlers/guardian-module-handler.cjs.map +1 -0
- package/dist/contracts/handlers/guardian-module-handler.d.ts +14945 -0
- package/dist/contracts/handlers/guardian-module-handler.js +146 -0
- package/dist/contracts/handlers/guardian-module-handler.js.map +1 -0
- package/dist/contracts/tokens.cjs +1 -1
- package/dist/contracts/tokens.cjs.map +1 -1
- package/dist/contracts/tokens.js +1 -1
- package/dist/contracts/tokens.js.map +1 -1
- package/dist/utils/version.cjs +1 -1
- package/dist/utils/version.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=[{inputs:[],name:"getEjectionThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getGuardians",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"guardian",type:"address"}],name:"getGuardiansEnclaveAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getGuardiansEnclaveAddresses",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getGuardiansEnclavePubkeys",outputs:[{internalType:"bytes[]",name:"",type:"bytes[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getMrenclave",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getMrsigner",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"isConsumingScheduledOp",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"isGuardian",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"guardian",type:"address"}],name:"removeGuardian",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"},{internalType:"bytes",name:"pubKey",type:"bytes"},{components:[{internalType:"bytes",name:"report",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"bytes32",name:"leafX509CertDigest",type:"bytes32"}],internalType:"struct RaveEvidence",name:"evidence",type:"tuple"}],name:"rotateGuardianKey",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"splitGuardianFunds",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"module",type:"address"},{internalType:"uint256",name:"startEpoch",type:"uint256"},{internalType:"uint256",name:"endEpoch",type:"uint256"},{internalType:"bool",name:"wasSlashed",type:"bool"},{internalType:"bytes32",name:"moduleName",type:"bytes32"},{internalType:"uint256",name:"pufferModuleIndex",type:"uint256"},{internalType:"uint256",name:"withdrawalAmount",type:"uint256"}],internalType:"struct StoppedValidatorInfo[]",name:"validatorInfos",type:"tuple[]"},{internalType:"bytes[]",name:"eoaSignatures",type:"bytes[]"}],name:"validateBatchWithdrawals",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"eoaSignatures",type:"bytes[]"},{internalType:"bytes32",name:"signedMessageHash",type:"bytes32"}],name:"validateGuardiansEOASignatures",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"enclaveSignatures",type:"bytes[]"},{internalType:"bytes32",name:"signedMessageHash",type:"bytes32"}],name:"validateGuardiansEnclaveSignatures",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"pufferModuleIndex",type:"uint256"},{internalType:"bytes",name:"pubKey",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"bytes",name:"withdrawalCredentials",type:"bytes"},{internalType:"bytes32",name:"depositDataRoot",type:"bytes32"},{internalType:"bytes[]",name:"enclaveSignatures",type:"bytes[]"}],name:"validateProvisionNode",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"moduleName",type:"bytes32"},{internalType:"uint256",name:"skippedIndex",type:"uint256"},{internalType:"bytes[]",name:"eoaSignatures",type:"bytes[]"}],name:"validateSkipProvisioning",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"newNumberOfValidators",type:"uint256"},{internalType:"uint256",name:"epochNumber",type:"uint256"},{internalType:"bytes[]",name:"eoaSignatures",type:"bytes[]"}],name:"validateTotalNumberOfValidators",outputs:[],stateMutability:"view",type:"function"}];exports.GuardianModule=e;
|
|
2
|
+
//# sourceMappingURL=GuardianModule.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuardianModule.cjs","sources":["../../../../lib/contracts/abis/mainnet/GuardianModule.ts"],"sourcesContent":["export const GuardianModule = <const>[\n {\n inputs: [],\n name: 'getEjectionThreshold',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'getGuardians',\n outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'address', name: 'guardian', type: 'address' }],\n name: 'getGuardiansEnclaveAddress',\n outputs: [{ internalType: 'address', name: '', type: 'address' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'getGuardiansEnclaveAddresses',\n outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'getGuardiansEnclavePubkeys',\n outputs: [{ internalType: 'bytes[]', name: '', type: 'bytes[]' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'getMrenclave',\n outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'getMrsigner',\n outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'getThreshold',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'isConsumingScheduledOp',\n outputs: [{ internalType: 'bytes4', name: '', type: 'bytes4' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'address', name: 'account', type: 'address' }],\n name: 'isGuardian',\n outputs: [{ internalType: 'bool', name: '', type: 'bool' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'address', name: 'guardian', type: 'address' }],\n name: 'removeGuardian',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint256', name: 'blockNumber', type: 'uint256' },\n { internalType: 'bytes', name: 'pubKey', type: 'bytes' },\n {\n components: [\n { internalType: 'bytes', name: 'report', type: 'bytes' },\n { internalType: 'bytes', name: 'signature', type: 'bytes' },\n {\n internalType: 'bytes32',\n name: 'leafX509CertDigest',\n type: 'bytes32',\n },\n ],\n internalType: 'struct RaveEvidence',\n name: 'evidence',\n type: 'tuple',\n },\n ],\n name: 'rotateGuardianKey',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [],\n name: 'splitGuardianFunds',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n components: [\n { internalType: 'address', name: 'module', type: 'address' },\n { internalType: 'uint256', name: 'startEpoch', type: 'uint256' },\n { internalType: 'uint256', name: 'endEpoch', type: 'uint256' },\n { internalType: 'bool', name: 'wasSlashed', type: 'bool' },\n { internalType: 'bytes32', name: 'moduleName', type: 'bytes32' },\n {\n internalType: 'uint256',\n name: 'pufferModuleIndex',\n type: 'uint256',\n },\n {\n internalType: 'uint256',\n name: 'withdrawalAmount',\n type: 'uint256',\n },\n ],\n internalType: 'struct StoppedValidatorInfo[]',\n name: 'validatorInfos',\n type: 'tuple[]',\n },\n { internalType: 'bytes[]', name: 'eoaSignatures', type: 'bytes[]' },\n ],\n name: 'validateBatchWithdrawals',\n outputs: [],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'bytes[]', name: 'eoaSignatures', type: 'bytes[]' },\n { internalType: 'bytes32', name: 'signedMessageHash', type: 'bytes32' },\n ],\n name: 'validateGuardiansEOASignatures',\n outputs: [{ internalType: 'bool', name: '', type: 'bool' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'bytes[]', name: 'enclaveSignatures', type: 'bytes[]' },\n { internalType: 'bytes32', name: 'signedMessageHash', type: 'bytes32' },\n ],\n name: 'validateGuardiansEnclaveSignatures',\n outputs: [{ internalType: 'bool', name: '', type: 'bool' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint256', name: 'pufferModuleIndex', type: 'uint256' },\n { internalType: 'bytes', name: 'pubKey', type: 'bytes' },\n { internalType: 'bytes', name: 'signature', type: 'bytes' },\n { internalType: 'bytes', name: 'withdrawalCredentials', type: 'bytes' },\n { internalType: 'bytes32', name: 'depositDataRoot', type: 'bytes32' },\n { internalType: 'bytes[]', name: 'enclaveSignatures', type: 'bytes[]' },\n ],\n name: 'validateProvisionNode',\n outputs: [],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'bytes32', name: 'moduleName', type: 'bytes32' },\n { internalType: 'uint256', name: 'skippedIndex', type: 'uint256' },\n { internalType: 'bytes[]', name: 'eoaSignatures', type: 'bytes[]' },\n ],\n name: 'validateSkipProvisioning',\n outputs: [],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'uint256',\n name: 'newNumberOfValidators',\n type: 'uint256',\n },\n { internalType: 'uint256', name: 'epochNumber', type: 'uint256' },\n { internalType: 'bytes[]', name: 'eoaSignatures', type: 'bytes[]' },\n ],\n name: 'validateTotalNumberOfValidators',\n outputs: [],\n stateMutability: 'view',\n type: 'function',\n },\n];\n"],"names":["GuardianModule"],"mappings":"gFAAO,MAAMA,EAAwB,CACnC,CACE,OAAQ,CAAC,EACT,KAAM,uBACN,QAAS,CAAC,CAAE,aAAc,UAAW,KAAM,GAAI,KAAM,UAAW,EAChE,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CAAC,EACT,KAAM,eACN,QAAS,CAAC,CAAE,aAAc,YAAa,KAAM,GAAI,KAAM,YAAa,EACpE,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CAAC,CAAE,aAAc,UAAW,KAAM,WAAY,KAAM,UAAW,EACvE,KAAM,6BACN,QAAS,CAAC,CAAE,aAAc,UAAW,KAAM,GAAI,KAAM,UAAW,EAChE,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CAAC,EACT,KAAM,+BACN,QAAS,CAAC,CAAE,aAAc,YAAa,KAAM,GAAI,KAAM,YAAa,EACpE,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CAAC,EACT,KA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AE,aAAc,QAAS,KAAM,YAAa,KAAM,OAAQ,EAC1D,CAAE,aAAc,QAAS,KAAM,wBAAyB,KAAM,OAAQ,EACtE,CAAE,aAAc,UAAW,KAAM,kBAAmB,KAAM,SAAU,EACpE,CAAE,aAAc,UAAW,KAAM,oBAAqB,KAAM,SAAU,CACxE,EACA,KAAM,wBACN,QAAS,CAAC,EACV,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CAAE,aAAc,UAAW,KAAM,aAAc,KAAM,SAAU,EAC/D,CAAE,aAAc,UAAW,KAAM,eAAgB,KAAM,SAAU,EACjE,CAAE,aAAc,UAAW,KAAM,gBAAiB,KAAM,SAAU,CACpE,EACA,KAAM,2BACN,QAAS,CAAC,EACV,gBAAiB,OACjB,KAAM,UACR,EACA,CACE,OAAQ,CACN,CACE,aAAc,UACd,KAAM,wBACN,KAAM,SACR,EACA,CAAE,aAAc,UAAW,KAAM,cAAe,KAAM,SAAU,EAChE,CAAE,aAAc,UAAW,KAAM,gBAAiB,KAAM,SAAU,CACpE,EACA,KAAM,kCACN,QAAS,CAAC,EACV,gBAAiB,OACjB,KAAM,UAAA,CAEV"}
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
export declare const GuardianModule: readonly [{
|
|
2
|
+
readonly inputs: readonly [];
|
|
3
|
+
readonly name: "getEjectionThreshold";
|
|
4
|
+
readonly outputs: readonly [{
|
|
5
|
+
readonly internalType: "uint256";
|
|
6
|
+
readonly name: "";
|
|
7
|
+
readonly type: "uint256";
|
|
8
|
+
}];
|
|
9
|
+
readonly stateMutability: "view";
|
|
10
|
+
readonly type: "function";
|
|
11
|
+
}, {
|
|
12
|
+
readonly inputs: readonly [];
|
|
13
|
+
readonly name: "getGuardians";
|
|
14
|
+
readonly outputs: readonly [{
|
|
15
|
+
readonly internalType: "address[]";
|
|
16
|
+
readonly name: "";
|
|
17
|
+
readonly type: "address[]";
|
|
18
|
+
}];
|
|
19
|
+
readonly stateMutability: "view";
|
|
20
|
+
readonly type: "function";
|
|
21
|
+
}, {
|
|
22
|
+
readonly inputs: readonly [{
|
|
23
|
+
readonly internalType: "address";
|
|
24
|
+
readonly name: "guardian";
|
|
25
|
+
readonly type: "address";
|
|
26
|
+
}];
|
|
27
|
+
readonly name: "getGuardiansEnclaveAddress";
|
|
28
|
+
readonly outputs: readonly [{
|
|
29
|
+
readonly internalType: "address";
|
|
30
|
+
readonly name: "";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
}];
|
|
33
|
+
readonly stateMutability: "view";
|
|
34
|
+
readonly type: "function";
|
|
35
|
+
}, {
|
|
36
|
+
readonly inputs: readonly [];
|
|
37
|
+
readonly name: "getGuardiansEnclaveAddresses";
|
|
38
|
+
readonly outputs: readonly [{
|
|
39
|
+
readonly internalType: "address[]";
|
|
40
|
+
readonly name: "";
|
|
41
|
+
readonly type: "address[]";
|
|
42
|
+
}];
|
|
43
|
+
readonly stateMutability: "view";
|
|
44
|
+
readonly type: "function";
|
|
45
|
+
}, {
|
|
46
|
+
readonly inputs: readonly [];
|
|
47
|
+
readonly name: "getGuardiansEnclavePubkeys";
|
|
48
|
+
readonly outputs: readonly [{
|
|
49
|
+
readonly internalType: "bytes[]";
|
|
50
|
+
readonly name: "";
|
|
51
|
+
readonly type: "bytes[]";
|
|
52
|
+
}];
|
|
53
|
+
readonly stateMutability: "view";
|
|
54
|
+
readonly type: "function";
|
|
55
|
+
}, {
|
|
56
|
+
readonly inputs: readonly [];
|
|
57
|
+
readonly name: "getMrenclave";
|
|
58
|
+
readonly outputs: readonly [{
|
|
59
|
+
readonly internalType: "bytes32";
|
|
60
|
+
readonly name: "";
|
|
61
|
+
readonly type: "bytes32";
|
|
62
|
+
}];
|
|
63
|
+
readonly stateMutability: "view";
|
|
64
|
+
readonly type: "function";
|
|
65
|
+
}, {
|
|
66
|
+
readonly inputs: readonly [];
|
|
67
|
+
readonly name: "getMrsigner";
|
|
68
|
+
readonly outputs: readonly [{
|
|
69
|
+
readonly internalType: "bytes32";
|
|
70
|
+
readonly name: "";
|
|
71
|
+
readonly type: "bytes32";
|
|
72
|
+
}];
|
|
73
|
+
readonly stateMutability: "view";
|
|
74
|
+
readonly type: "function";
|
|
75
|
+
}, {
|
|
76
|
+
readonly inputs: readonly [];
|
|
77
|
+
readonly name: "getThreshold";
|
|
78
|
+
readonly outputs: readonly [{
|
|
79
|
+
readonly internalType: "uint256";
|
|
80
|
+
readonly name: "";
|
|
81
|
+
readonly type: "uint256";
|
|
82
|
+
}];
|
|
83
|
+
readonly stateMutability: "view";
|
|
84
|
+
readonly type: "function";
|
|
85
|
+
}, {
|
|
86
|
+
readonly inputs: readonly [];
|
|
87
|
+
readonly name: "isConsumingScheduledOp";
|
|
88
|
+
readonly outputs: readonly [{
|
|
89
|
+
readonly internalType: "bytes4";
|
|
90
|
+
readonly name: "";
|
|
91
|
+
readonly type: "bytes4";
|
|
92
|
+
}];
|
|
93
|
+
readonly stateMutability: "view";
|
|
94
|
+
readonly type: "function";
|
|
95
|
+
}, {
|
|
96
|
+
readonly inputs: readonly [{
|
|
97
|
+
readonly internalType: "address";
|
|
98
|
+
readonly name: "account";
|
|
99
|
+
readonly type: "address";
|
|
100
|
+
}];
|
|
101
|
+
readonly name: "isGuardian";
|
|
102
|
+
readonly outputs: readonly [{
|
|
103
|
+
readonly internalType: "bool";
|
|
104
|
+
readonly name: "";
|
|
105
|
+
readonly type: "bool";
|
|
106
|
+
}];
|
|
107
|
+
readonly stateMutability: "view";
|
|
108
|
+
readonly type: "function";
|
|
109
|
+
}, {
|
|
110
|
+
readonly inputs: readonly [{
|
|
111
|
+
readonly internalType: "address";
|
|
112
|
+
readonly name: "guardian";
|
|
113
|
+
readonly type: "address";
|
|
114
|
+
}];
|
|
115
|
+
readonly name: "removeGuardian";
|
|
116
|
+
readonly outputs: readonly [];
|
|
117
|
+
readonly stateMutability: "nonpayable";
|
|
118
|
+
readonly type: "function";
|
|
119
|
+
}, {
|
|
120
|
+
readonly inputs: readonly [{
|
|
121
|
+
readonly internalType: "uint256";
|
|
122
|
+
readonly name: "blockNumber";
|
|
123
|
+
readonly type: "uint256";
|
|
124
|
+
}, {
|
|
125
|
+
readonly internalType: "bytes";
|
|
126
|
+
readonly name: "pubKey";
|
|
127
|
+
readonly type: "bytes";
|
|
128
|
+
}, {
|
|
129
|
+
readonly components: readonly [{
|
|
130
|
+
readonly internalType: "bytes";
|
|
131
|
+
readonly name: "report";
|
|
132
|
+
readonly type: "bytes";
|
|
133
|
+
}, {
|
|
134
|
+
readonly internalType: "bytes";
|
|
135
|
+
readonly name: "signature";
|
|
136
|
+
readonly type: "bytes";
|
|
137
|
+
}, {
|
|
138
|
+
readonly internalType: "bytes32";
|
|
139
|
+
readonly name: "leafX509CertDigest";
|
|
140
|
+
readonly type: "bytes32";
|
|
141
|
+
}];
|
|
142
|
+
readonly internalType: "struct RaveEvidence";
|
|
143
|
+
readonly name: "evidence";
|
|
144
|
+
readonly type: "tuple";
|
|
145
|
+
}];
|
|
146
|
+
readonly name: "rotateGuardianKey";
|
|
147
|
+
readonly outputs: readonly [];
|
|
148
|
+
readonly stateMutability: "nonpayable";
|
|
149
|
+
readonly type: "function";
|
|
150
|
+
}, {
|
|
151
|
+
readonly inputs: readonly [];
|
|
152
|
+
readonly name: "splitGuardianFunds";
|
|
153
|
+
readonly outputs: readonly [];
|
|
154
|
+
readonly stateMutability: "nonpayable";
|
|
155
|
+
readonly type: "function";
|
|
156
|
+
}, {
|
|
157
|
+
readonly inputs: readonly [{
|
|
158
|
+
readonly components: readonly [{
|
|
159
|
+
readonly internalType: "address";
|
|
160
|
+
readonly name: "module";
|
|
161
|
+
readonly type: "address";
|
|
162
|
+
}, {
|
|
163
|
+
readonly internalType: "uint256";
|
|
164
|
+
readonly name: "startEpoch";
|
|
165
|
+
readonly type: "uint256";
|
|
166
|
+
}, {
|
|
167
|
+
readonly internalType: "uint256";
|
|
168
|
+
readonly name: "endEpoch";
|
|
169
|
+
readonly type: "uint256";
|
|
170
|
+
}, {
|
|
171
|
+
readonly internalType: "bool";
|
|
172
|
+
readonly name: "wasSlashed";
|
|
173
|
+
readonly type: "bool";
|
|
174
|
+
}, {
|
|
175
|
+
readonly internalType: "bytes32";
|
|
176
|
+
readonly name: "moduleName";
|
|
177
|
+
readonly type: "bytes32";
|
|
178
|
+
}, {
|
|
179
|
+
readonly internalType: "uint256";
|
|
180
|
+
readonly name: "pufferModuleIndex";
|
|
181
|
+
readonly type: "uint256";
|
|
182
|
+
}, {
|
|
183
|
+
readonly internalType: "uint256";
|
|
184
|
+
readonly name: "withdrawalAmount";
|
|
185
|
+
readonly type: "uint256";
|
|
186
|
+
}];
|
|
187
|
+
readonly internalType: "struct StoppedValidatorInfo[]";
|
|
188
|
+
readonly name: "validatorInfos";
|
|
189
|
+
readonly type: "tuple[]";
|
|
190
|
+
}, {
|
|
191
|
+
readonly internalType: "bytes[]";
|
|
192
|
+
readonly name: "eoaSignatures";
|
|
193
|
+
readonly type: "bytes[]";
|
|
194
|
+
}];
|
|
195
|
+
readonly name: "validateBatchWithdrawals";
|
|
196
|
+
readonly outputs: readonly [];
|
|
197
|
+
readonly stateMutability: "view";
|
|
198
|
+
readonly type: "function";
|
|
199
|
+
}, {
|
|
200
|
+
readonly inputs: readonly [{
|
|
201
|
+
readonly internalType: "bytes[]";
|
|
202
|
+
readonly name: "eoaSignatures";
|
|
203
|
+
readonly type: "bytes[]";
|
|
204
|
+
}, {
|
|
205
|
+
readonly internalType: "bytes32";
|
|
206
|
+
readonly name: "signedMessageHash";
|
|
207
|
+
readonly type: "bytes32";
|
|
208
|
+
}];
|
|
209
|
+
readonly name: "validateGuardiansEOASignatures";
|
|
210
|
+
readonly outputs: readonly [{
|
|
211
|
+
readonly internalType: "bool";
|
|
212
|
+
readonly name: "";
|
|
213
|
+
readonly type: "bool";
|
|
214
|
+
}];
|
|
215
|
+
readonly stateMutability: "view";
|
|
216
|
+
readonly type: "function";
|
|
217
|
+
}, {
|
|
218
|
+
readonly inputs: readonly [{
|
|
219
|
+
readonly internalType: "bytes[]";
|
|
220
|
+
readonly name: "enclaveSignatures";
|
|
221
|
+
readonly type: "bytes[]";
|
|
222
|
+
}, {
|
|
223
|
+
readonly internalType: "bytes32";
|
|
224
|
+
readonly name: "signedMessageHash";
|
|
225
|
+
readonly type: "bytes32";
|
|
226
|
+
}];
|
|
227
|
+
readonly name: "validateGuardiansEnclaveSignatures";
|
|
228
|
+
readonly outputs: readonly [{
|
|
229
|
+
readonly internalType: "bool";
|
|
230
|
+
readonly name: "";
|
|
231
|
+
readonly type: "bool";
|
|
232
|
+
}];
|
|
233
|
+
readonly stateMutability: "view";
|
|
234
|
+
readonly type: "function";
|
|
235
|
+
}, {
|
|
236
|
+
readonly inputs: readonly [{
|
|
237
|
+
readonly internalType: "uint256";
|
|
238
|
+
readonly name: "pufferModuleIndex";
|
|
239
|
+
readonly type: "uint256";
|
|
240
|
+
}, {
|
|
241
|
+
readonly internalType: "bytes";
|
|
242
|
+
readonly name: "pubKey";
|
|
243
|
+
readonly type: "bytes";
|
|
244
|
+
}, {
|
|
245
|
+
readonly internalType: "bytes";
|
|
246
|
+
readonly name: "signature";
|
|
247
|
+
readonly type: "bytes";
|
|
248
|
+
}, {
|
|
249
|
+
readonly internalType: "bytes";
|
|
250
|
+
readonly name: "withdrawalCredentials";
|
|
251
|
+
readonly type: "bytes";
|
|
252
|
+
}, {
|
|
253
|
+
readonly internalType: "bytes32";
|
|
254
|
+
readonly name: "depositDataRoot";
|
|
255
|
+
readonly type: "bytes32";
|
|
256
|
+
}, {
|
|
257
|
+
readonly internalType: "bytes[]";
|
|
258
|
+
readonly name: "enclaveSignatures";
|
|
259
|
+
readonly type: "bytes[]";
|
|
260
|
+
}];
|
|
261
|
+
readonly name: "validateProvisionNode";
|
|
262
|
+
readonly outputs: readonly [];
|
|
263
|
+
readonly stateMutability: "view";
|
|
264
|
+
readonly type: "function";
|
|
265
|
+
}, {
|
|
266
|
+
readonly inputs: readonly [{
|
|
267
|
+
readonly internalType: "bytes32";
|
|
268
|
+
readonly name: "moduleName";
|
|
269
|
+
readonly type: "bytes32";
|
|
270
|
+
}, {
|
|
271
|
+
readonly internalType: "uint256";
|
|
272
|
+
readonly name: "skippedIndex";
|
|
273
|
+
readonly type: "uint256";
|
|
274
|
+
}, {
|
|
275
|
+
readonly internalType: "bytes[]";
|
|
276
|
+
readonly name: "eoaSignatures";
|
|
277
|
+
readonly type: "bytes[]";
|
|
278
|
+
}];
|
|
279
|
+
readonly name: "validateSkipProvisioning";
|
|
280
|
+
readonly outputs: readonly [];
|
|
281
|
+
readonly stateMutability: "view";
|
|
282
|
+
readonly type: "function";
|
|
283
|
+
}, {
|
|
284
|
+
readonly inputs: readonly [{
|
|
285
|
+
readonly internalType: "uint256";
|
|
286
|
+
readonly name: "newNumberOfValidators";
|
|
287
|
+
readonly type: "uint256";
|
|
288
|
+
}, {
|
|
289
|
+
readonly internalType: "uint256";
|
|
290
|
+
readonly name: "epochNumber";
|
|
291
|
+
readonly type: "uint256";
|
|
292
|
+
}, {
|
|
293
|
+
readonly internalType: "bytes[]";
|
|
294
|
+
readonly name: "eoaSignatures";
|
|
295
|
+
readonly type: "bytes[]";
|
|
296
|
+
}];
|
|
297
|
+
readonly name: "validateTotalNumberOfValidators";
|
|
298
|
+
readonly outputs: readonly [];
|
|
299
|
+
readonly stateMutability: "view";
|
|
300
|
+
readonly type: "function";
|
|
301
|
+
}];
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
const e = [
|
|
2
|
+
{
|
|
3
|
+
inputs: [],
|
|
4
|
+
name: "getEjectionThreshold",
|
|
5
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
6
|
+
stateMutability: "view",
|
|
7
|
+
type: "function"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
inputs: [],
|
|
11
|
+
name: "getGuardians",
|
|
12
|
+
outputs: [{ internalType: "address[]", name: "", type: "address[]" }],
|
|
13
|
+
stateMutability: "view",
|
|
14
|
+
type: "function"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
inputs: [{ internalType: "address", name: "guardian", type: "address" }],
|
|
18
|
+
name: "getGuardiansEnclaveAddress",
|
|
19
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
20
|
+
stateMutability: "view",
|
|
21
|
+
type: "function"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
inputs: [],
|
|
25
|
+
name: "getGuardiansEnclaveAddresses",
|
|
26
|
+
outputs: [{ internalType: "address[]", name: "", type: "address[]" }],
|
|
27
|
+
stateMutability: "view",
|
|
28
|
+
type: "function"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
inputs: [],
|
|
32
|
+
name: "getGuardiansEnclavePubkeys",
|
|
33
|
+
outputs: [{ internalType: "bytes[]", name: "", type: "bytes[]" }],
|
|
34
|
+
stateMutability: "view",
|
|
35
|
+
type: "function"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
inputs: [],
|
|
39
|
+
name: "getMrenclave",
|
|
40
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
41
|
+
stateMutability: "view",
|
|
42
|
+
type: "function"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
inputs: [],
|
|
46
|
+
name: "getMrsigner",
|
|
47
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
48
|
+
stateMutability: "view",
|
|
49
|
+
type: "function"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
inputs: [],
|
|
53
|
+
name: "getThreshold",
|
|
54
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
55
|
+
stateMutability: "view",
|
|
56
|
+
type: "function"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
inputs: [],
|
|
60
|
+
name: "isConsumingScheduledOp",
|
|
61
|
+
outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }],
|
|
62
|
+
stateMutability: "view",
|
|
63
|
+
type: "function"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
inputs: [{ internalType: "address", name: "account", type: "address" }],
|
|
67
|
+
name: "isGuardian",
|
|
68
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
69
|
+
stateMutability: "view",
|
|
70
|
+
type: "function"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
inputs: [{ internalType: "address", name: "guardian", type: "address" }],
|
|
74
|
+
name: "removeGuardian",
|
|
75
|
+
outputs: [],
|
|
76
|
+
stateMutability: "nonpayable",
|
|
77
|
+
type: "function"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
inputs: [
|
|
81
|
+
{ internalType: "uint256", name: "blockNumber", type: "uint256" },
|
|
82
|
+
{ internalType: "bytes", name: "pubKey", type: "bytes" },
|
|
83
|
+
{
|
|
84
|
+
components: [
|
|
85
|
+
{ internalType: "bytes", name: "report", type: "bytes" },
|
|
86
|
+
{ internalType: "bytes", name: "signature", type: "bytes" },
|
|
87
|
+
{
|
|
88
|
+
internalType: "bytes32",
|
|
89
|
+
name: "leafX509CertDigest",
|
|
90
|
+
type: "bytes32"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
internalType: "struct RaveEvidence",
|
|
94
|
+
name: "evidence",
|
|
95
|
+
type: "tuple"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
name: "rotateGuardianKey",
|
|
99
|
+
outputs: [],
|
|
100
|
+
stateMutability: "nonpayable",
|
|
101
|
+
type: "function"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
inputs: [],
|
|
105
|
+
name: "splitGuardianFunds",
|
|
106
|
+
outputs: [],
|
|
107
|
+
stateMutability: "nonpayable",
|
|
108
|
+
type: "function"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
inputs: [
|
|
112
|
+
{
|
|
113
|
+
components: [
|
|
114
|
+
{ internalType: "address", name: "module", type: "address" },
|
|
115
|
+
{ internalType: "uint256", name: "startEpoch", type: "uint256" },
|
|
116
|
+
{ internalType: "uint256", name: "endEpoch", type: "uint256" },
|
|
117
|
+
{ internalType: "bool", name: "wasSlashed", type: "bool" },
|
|
118
|
+
{ internalType: "bytes32", name: "moduleName", type: "bytes32" },
|
|
119
|
+
{
|
|
120
|
+
internalType: "uint256",
|
|
121
|
+
name: "pufferModuleIndex",
|
|
122
|
+
type: "uint256"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
internalType: "uint256",
|
|
126
|
+
name: "withdrawalAmount",
|
|
127
|
+
type: "uint256"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
internalType: "struct StoppedValidatorInfo[]",
|
|
131
|
+
name: "validatorInfos",
|
|
132
|
+
type: "tuple[]"
|
|
133
|
+
},
|
|
134
|
+
{ internalType: "bytes[]", name: "eoaSignatures", type: "bytes[]" }
|
|
135
|
+
],
|
|
136
|
+
name: "validateBatchWithdrawals",
|
|
137
|
+
outputs: [],
|
|
138
|
+
stateMutability: "view",
|
|
139
|
+
type: "function"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
inputs: [
|
|
143
|
+
{ internalType: "bytes[]", name: "eoaSignatures", type: "bytes[]" },
|
|
144
|
+
{ internalType: "bytes32", name: "signedMessageHash", type: "bytes32" }
|
|
145
|
+
],
|
|
146
|
+
name: "validateGuardiansEOASignatures",
|
|
147
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
148
|
+
stateMutability: "view",
|
|
149
|
+
type: "function"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
inputs: [
|
|
153
|
+
{ internalType: "bytes[]", name: "enclaveSignatures", type: "bytes[]" },
|
|
154
|
+
{ internalType: "bytes32", name: "signedMessageHash", type: "bytes32" }
|
|
155
|
+
],
|
|
156
|
+
name: "validateGuardiansEnclaveSignatures",
|
|
157
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
158
|
+
stateMutability: "view",
|
|
159
|
+
type: "function"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
inputs: [
|
|
163
|
+
{ internalType: "uint256", name: "pufferModuleIndex", type: "uint256" },
|
|
164
|
+
{ internalType: "bytes", name: "pubKey", type: "bytes" },
|
|
165
|
+
{ internalType: "bytes", name: "signature", type: "bytes" },
|
|
166
|
+
{ internalType: "bytes", name: "withdrawalCredentials", type: "bytes" },
|
|
167
|
+
{ internalType: "bytes32", name: "depositDataRoot", type: "bytes32" },
|
|
168
|
+
{ internalType: "bytes[]", name: "enclaveSignatures", type: "bytes[]" }
|
|
169
|
+
],
|
|
170
|
+
name: "validateProvisionNode",
|
|
171
|
+
outputs: [],
|
|
172
|
+
stateMutability: "view",
|
|
173
|
+
type: "function"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
inputs: [
|
|
177
|
+
{ internalType: "bytes32", name: "moduleName", type: "bytes32" },
|
|
178
|
+
{ internalType: "uint256", name: "skippedIndex", type: "uint256" },
|
|
179
|
+
{ internalType: "bytes[]", name: "eoaSignatures", type: "bytes[]" }
|
|
180
|
+
],
|
|
181
|
+
name: "validateSkipProvisioning",
|
|
182
|
+
outputs: [],
|
|
183
|
+
stateMutability: "view",
|
|
184
|
+
type: "function"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
inputs: [
|
|
188
|
+
{
|
|
189
|
+
internalType: "uint256",
|
|
190
|
+
name: "newNumberOfValidators",
|
|
191
|
+
type: "uint256"
|
|
192
|
+
},
|
|
193
|
+
{ internalType: "uint256", name: "epochNumber", type: "uint256" },
|
|
194
|
+
{ internalType: "bytes[]", name: "eoaSignatures", type: "bytes[]" }
|
|
195
|
+
],
|
|
196
|
+
name: "validateTotalNumberOfValidators",
|
|
197
|
+
outputs: [],
|
|
198
|
+
stateMutability: "view",
|
|
199
|
+
type: "function"
|
|
200
|
+
}
|
|
201
|
+
];
|
|
202
|
+
export {
|
|
203
|
+
e as GuardianModule
|
|
204
|
+
};
|
|
205
|
+
//# sourceMappingURL=GuardianModule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuardianModule.js","sources":["../../../../lib/contracts/abis/mainnet/GuardianModule.ts"],"sourcesContent":["export const GuardianModule = <const>[\n {\n inputs: [],\n name: 'getEjectionThreshold',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'getGuardians',\n outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'address', name: 'guardian', type: 'address' }],\n name: 'getGuardiansEnclaveAddress',\n outputs: [{ internalType: 'address', name: '', type: 'address' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'getGuardiansEnclaveAddresses',\n outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'getGuardiansEnclavePubkeys',\n outputs: [{ internalType: 'bytes[]', name: '', type: 'bytes[]' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'getMrenclave',\n outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'getMrsigner',\n outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'getThreshold',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'isConsumingScheduledOp',\n outputs: [{ internalType: 'bytes4', name: '', type: 'bytes4' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'address', name: 'account', type: 'address' }],\n name: 'isGuardian',\n outputs: [{ internalType: 'bool', name: '', type: 'bool' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'address', name: 'guardian', type: 'address' }],\n name: 'removeGuardian',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint256', name: 'blockNumber', type: 'uint256' },\n { internalType: 'bytes', name: 'pubKey', type: 'bytes' },\n {\n components: [\n { internalType: 'bytes', name: 'report', type: 'bytes' },\n { internalType: 'bytes', name: 'signature', type: 'bytes' },\n {\n internalType: 'bytes32',\n name: 'leafX509CertDigest',\n type: 'bytes32',\n },\n ],\n internalType: 'struct RaveEvidence',\n name: 'evidence',\n type: 'tuple',\n },\n ],\n name: 'rotateGuardianKey',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [],\n name: 'splitGuardianFunds',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n components: [\n { internalType: 'address', name: 'module', type: 'address' },\n { internalType: 'uint256', name: 'startEpoch', type: 'uint256' },\n { internalType: 'uint256', name: 'endEpoch', type: 'uint256' },\n { internalType: 'bool', name: 'wasSlashed', type: 'bool' },\n { internalType: 'bytes32', name: 'moduleName', type: 'bytes32' },\n {\n internalType: 'uint256',\n name: 'pufferModuleIndex',\n type: 'uint256',\n },\n {\n internalType: 'uint256',\n name: 'withdrawalAmount',\n type: 'uint256',\n },\n ],\n internalType: 'struct StoppedValidatorInfo[]',\n name: 'validatorInfos',\n type: 'tuple[]',\n },\n { internalType: 'bytes[]', name: 'eoaSignatures', type: 'bytes[]' },\n ],\n name: 'validateBatchWithdrawals',\n outputs: [],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'bytes[]', name: 'eoaSignatures', type: 'bytes[]' },\n { internalType: 'bytes32', name: 'signedMessageHash', type: 'bytes32' },\n ],\n name: 'validateGuardiansEOASignatures',\n outputs: [{ internalType: 'bool', name: '', type: 'bool' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'bytes[]', name: 'enclaveSignatures', type: 'bytes[]' },\n { internalType: 'bytes32', name: 'signedMessageHash', type: 'bytes32' },\n ],\n name: 'validateGuardiansEnclaveSignatures',\n outputs: [{ internalType: 'bool', name: '', type: 'bool' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint256', name: 'pufferModuleIndex', type: 'uint256' },\n { internalType: 'bytes', name: 'pubKey', type: 'bytes' },\n { internalType: 'bytes', name: 'signature', type: 'bytes' },\n { internalType: 'bytes', name: 'withdrawalCredentials', type: 'bytes' },\n { internalType: 'bytes32', name: 'depositDataRoot', type: 'bytes32' },\n { internalType: 'bytes[]', name: 'enclaveSignatures', type: 'bytes[]' },\n ],\n name: 'validateProvisionNode',\n outputs: [],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'bytes32', name: 'moduleName', type: 'bytes32' },\n { internalType: 'uint256', name: 'skippedIndex', type: 'uint256' },\n { internalType: 'bytes[]', name: 'eoaSignatures', type: 'bytes[]' },\n ],\n name: 'validateSkipProvisioning',\n outputs: [],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'uint256',\n name: 'newNumberOfValidators',\n type: 'uint256',\n },\n { internalType: 'uint256', name: 'epochNumber', type: 'uint256' },\n { internalType: 'bytes[]', name: 'eoaSignatures', type: 'bytes[]' },\n ],\n name: 'validateTotalNumberOfValidators',\n outputs: [],\n stateMutability: 'view',\n type: 'function',\n },\n];\n"],"names":["GuardianModule"],"mappings":"AAAO,MAAMA,IAAwB;AAAA,EACnC;AAAA,IACE,QAAQ,CAAC;AAAA,IACT,MAAM;AAAA,IACN,SAAS,CAAC,EAAE,cAAc,WAAW,MAAM,IAAI,MAAM,WAAW;AAAA,IAChE,iBAAiB;AAAA,IACjB,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,QAAQ,CAAC;AAAA,IACT,MAAM;AAAA,IACN,SAAS,CAAC,EAAE,cAAc,aAAa,MAAM,IAAI,MAAM,aAAa;AAAA,IACpE,iBAAiB;AAAA,IAC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AAc,SAAS,MAAM,aAAa,MAAM,QAAQ;AAAA,MAC1D,EAAE,cAAc,SAAS,MAAM,yBAAyB,MAAM,QAAQ;AAAA,MACtE,EAAE,cAAc,WAAW,MAAM,mBAAmB,MAAM,UAAU;AAAA,MACpE,EAAE,cAAc,WAAW,MAAM,qBAAqB,MAAM,UAAU;AAAA,IACxE;AAAA,IACA,MAAM;AAAA,IACN,SAAS,CAAC;AAAA,IACV,iBAAiB;AAAA,IACjB,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,QAAQ;AAAA,MACN,EAAE,cAAc,WAAW,MAAM,cAAc,MAAM,UAAU;AAAA,MAC/D,EAAE,cAAc,WAAW,MAAM,gBAAgB,MAAM,UAAU;AAAA,MACjE,EAAE,cAAc,WAAW,MAAM,iBAAiB,MAAM,UAAU;AAAA,IACpE;AAAA,IACA,MAAM;AAAA,IACN,SAAS,CAAC;AAAA,IACV,iBAAiB;AAAA,IACjB,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,QAAQ;AAAA,MACN;AAAA,QACE,cAAc;AAAA,QACd,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,MACA,EAAE,cAAc,WAAW,MAAM,eAAe,MAAM,UAAU;AAAA,MAChE,EAAE,cAAc,WAAW,MAAM,iBAAiB,MAAM,UAAU;AAAA,IACpE;AAAA,IACA,MAAM;AAAA,IACN,SAAS,CAAC;AAAA,IACV,iBAAiB;AAAA,IACjB,MAAM;AAAA,EAAA;AAEV;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../constants-BI6T6ZbJ.cjs"),a={[e.Chain.Mainnet]:{PufferVault:"0xD9A442856C234a39a81a089C06451EBAa4306a72",PufferDepositor:"0x4aa799c5dfc01ee7d790e3bf1a7c2257ce1dceff",PufferL2Depositor:"0x3436E0B85cd929929F5802e792CFE282166E0259",PufLocker:"0x48e8dE138C246c14248C94d2D616a2F9eb4590D2",L1RewardManager:"0x157788cc028Ac6405bD406f2D1e0A8A22b3cf17b",L2RewardManager:"0x0000000000000000000000000000000000000000",PufferWithdrawalManager:"0xDdA0483184E75a5579ef9635ED14BacCf9d50283",NucleusAtomicQueue:"0x228c44bb4885c6633f4b6c83f14622f37d5112e5",CarrotStaker:"0x99c599227c65132822f0290d9e5b4b0430d6c0d6",Distributor:"0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae",ValidatorTicket:"0x7D26AD6F6BA9D6bA1de0218Ae5e20CD3a273a55A",PufferOracleV2:"0x0BE2aE0edbeBb517541DF217EF0074FC9a9e994f",PufferProtocol:"0xf7b6B32492c2e13799D921E84202450131bd238B"},[e.Chain.Holesky]:{PufferVault:"0x9196830bB4c05504E0A8475A0aD566AceEB6BeC9",PufferDepositor:"0x824AC05aeb86A0aD770b8acDe0906d2d4a6c4A8c",PufferL2Depositor:"0x0af6998e4828ad8ef8f79a9288d0a861890f791d",PufLocker:"0xa58983ad0899a452b7420bc57228e329d7ba92b6",L1RewardManager:"0x10f970bcb84B82B82a65eBCbF45F26dD26D69F12",L2RewardManager:"0x58C046794f69A8830b0BE737022a45b4acd01dE5",PufferWithdrawalManager:"0x5A3E1069B66800c0ecbc91bd81b1AE4D1804DBc4",ValidatorTicket:"0xB028194785178a94Fe608994A4d5AD84c285A640",PufferOracleV2:"0x8e043ed3f06720615685d4978770cd5c8fe90fe3",PufferProtocol:"0xE00c79408B9De5BaD2FDEbB1688997a68eC988CD"},[e.Chain.Base]:{L2RewardManager:"0xF9Dd335bF363b2E4ecFe3c94A86EBD7Dd3Dcf0e7"}};exports.CONTRACT_ADDRESSES=a;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../constants-BI6T6ZbJ.cjs"),a={[e.Chain.Mainnet]:{PufferVault:"0xD9A442856C234a39a81a089C06451EBAa4306a72",PufferDepositor:"0x4aa799c5dfc01ee7d790e3bf1a7c2257ce1dceff",PufferL2Depositor:"0x3436E0B85cd929929F5802e792CFE282166E0259",PufLocker:"0x48e8dE138C246c14248C94d2D616a2F9eb4590D2",L1RewardManager:"0x157788cc028Ac6405bD406f2D1e0A8A22b3cf17b",L2RewardManager:"0x0000000000000000000000000000000000000000",PufferWithdrawalManager:"0xDdA0483184E75a5579ef9635ED14BacCf9d50283",NucleusAtomicQueue:"0x228c44bb4885c6633f4b6c83f14622f37d5112e5",CarrotStaker:"0x99c599227c65132822f0290d9e5b4b0430d6c0d6",Distributor:"0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae",ValidatorTicket:"0x7D26AD6F6BA9D6bA1de0218Ae5e20CD3a273a55A",PufferOracleV2:"0x0BE2aE0edbeBb517541DF217EF0074FC9a9e994f",PufferProtocol:"0xf7b6B32492c2e13799D921E84202450131bd238B",GuardianModule:"0x628b183F248a142A598AA2dcCCD6f7E480a7CcF2"},[e.Chain.Holesky]:{PufferVault:"0x9196830bB4c05504E0A8475A0aD566AceEB6BeC9",PufferDepositor:"0x824AC05aeb86A0aD770b8acDe0906d2d4a6c4A8c",PufferL2Depositor:"0x0af6998e4828ad8ef8f79a9288d0a861890f791d",PufLocker:"0xa58983ad0899a452b7420bc57228e329d7ba92b6",L1RewardManager:"0x10f970bcb84B82B82a65eBCbF45F26dD26D69F12",L2RewardManager:"0x58C046794f69A8830b0BE737022a45b4acd01dE5",PufferWithdrawalManager:"0x5A3E1069B66800c0ecbc91bd81b1AE4D1804DBc4",ValidatorTicket:"0xB028194785178a94Fe608994A4d5AD84c285A640",PufferOracleV2:"0x8e043ed3f06720615685d4978770cd5c8fe90fe3",PufferProtocol:"0xE00c79408B9De5BaD2FDEbB1688997a68eC988CD",GuardianModule:"0x0910310130d1c062def8b807528bdac80203bc66"},[e.Chain.Base]:{L2RewardManager:"0xF9Dd335bF363b2E4ecFe3c94A86EBD7Dd3Dcf0e7"}};exports.CONTRACT_ADDRESSES=a;
|
|
2
2
|
//# sourceMappingURL=addresses.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addresses.cjs","sources":["../../lib/contracts/addresses.ts"],"sourcesContent":["import { Chain } from '../chains/constants';\n\n// Source of truth:\n// https://github.com/PufferFinance/Deployments-and-ACL/tree/main/docs/deployments\nexport const CONTRACT_ADDRESSES = {\n // Casting to number so the consumer can use chain ids. Also not using\n // a generic type for the variable so the consumer knows which\n // contracts can be accessed.\n [Chain.Mainnet as number]: {\n PufferVault: '0xD9A442856C234a39a81a089C06451EBAa4306a72',\n PufferDepositor: '0x4aa799c5dfc01ee7d790e3bf1a7c2257ce1dceff',\n PufferL2Depositor: '0x3436E0B85cd929929F5802e792CFE282166E0259',\n PufLocker: '0x48e8dE138C246c14248C94d2D616a2F9eb4590D2',\n L1RewardManager: '0x157788cc028Ac6405bD406f2D1e0A8A22b3cf17b',\n // L2RewardManager is not deployed to mainnet but base.\n L2RewardManager: '0x0000000000000000000000000000000000000000',\n PufferWithdrawalManager: '0xDdA0483184E75a5579ef9635ED14BacCf9d50283',\n NucleusAtomicQueue: '0x228c44bb4885c6633f4b6c83f14622f37d5112e5',\n CarrotStaker: '0x99c599227c65132822f0290d9e5b4b0430d6c0d6',\n Distributor: '0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae',\n ValidatorTicket: '0x7D26AD6F6BA9D6bA1de0218Ae5e20CD3a273a55A',\n PufferOracleV2: '0x0BE2aE0edbeBb517541DF217EF0074FC9a9e994f',\n PufferProtocol: '0xf7b6B32492c2e13799D921E84202450131bd238B',\n },\n [Chain.Holesky as number]: {\n PufferVault: '0x9196830bB4c05504E0A8475A0aD566AceEB6BeC9',\n PufferDepositor: '0x824AC05aeb86A0aD770b8acDe0906d2d4a6c4A8c',\n PufferL2Depositor: '0x0af6998e4828ad8ef8f79a9288d0a861890f791d',\n PufLocker: '0xa58983ad0899a452b7420bc57228e329d7ba92b6',\n L1RewardManager: '0x10f970bcb84B82B82a65eBCbF45F26dD26D69F12',\n L2RewardManager: '0x58C046794f69A8830b0BE737022a45b4acd01dE5',\n PufferWithdrawalManager: '0x5A3E1069B66800c0ecbc91bd81b1AE4D1804DBc4',\n ValidatorTicket: '0xB028194785178a94Fe608994A4d5AD84c285A640',\n PufferOracleV2: '0x8e043ed3f06720615685d4978770cd5c8fe90fe3',\n PufferProtocol: '0xE00c79408B9De5BaD2FDEbB1688997a68eC988CD',\n },\n [Chain.Base as number]: {\n L2RewardManager: '0xF9Dd335bF363b2E4ecFe3c94A86EBD7Dd3Dcf0e7',\n },\n};\n"],"names":["CONTRACT_ADDRESSES","Chain"],"mappings":"6HAIaA,EAAqB,CAIhC,CAACC,EAAAA,MAAM,OAAiB,EAAG,CACzB,YAAa,6CACb,gBAAiB,6CACjB,kBAAmB,6CACnB,UAAW,6CACX,gBAAiB,6CAEjB,gBAAiB,6CACjB,wBAAyB,6CACzB,mBAAoB,6CACpB,aAAc,6CACd,YAAa,6CACb,gBAAiB,6CACjB,eAAgB,6CAChB,eAAgB,4CAClB,EACA,CAACA,EAAAA,MAAM,OAAiB,EAAG,CACzB,YAAa,6CACb,gBAAiB,6CACjB,kBAAmB,6CACnB,UAAW,6CACX,gBAAiB,6CACjB,gBAAiB,6CACjB,wBAAyB,6CACzB,gBAAiB,6CACjB,eAAgB,6CAChB,eAAgB,4CAClB,EACA,CAACA,EAAAA,MAAM,IAAc,EAAG,CACtB,gBAAiB,4CAAA,CAErB"}
|
|
1
|
+
{"version":3,"file":"addresses.cjs","sources":["../../lib/contracts/addresses.ts"],"sourcesContent":["import { Chain } from '../chains/constants';\n\n// Source of truth:\n// https://github.com/PufferFinance/Deployments-and-ACL/tree/main/docs/deployments\nexport const CONTRACT_ADDRESSES = {\n // Casting to number so the consumer can use chain ids. Also not using\n // a generic type for the variable so the consumer knows which\n // contracts can be accessed.\n [Chain.Mainnet as number]: {\n PufferVault: '0xD9A442856C234a39a81a089C06451EBAa4306a72',\n PufferDepositor: '0x4aa799c5dfc01ee7d790e3bf1a7c2257ce1dceff',\n PufferL2Depositor: '0x3436E0B85cd929929F5802e792CFE282166E0259',\n PufLocker: '0x48e8dE138C246c14248C94d2D616a2F9eb4590D2',\n L1RewardManager: '0x157788cc028Ac6405bD406f2D1e0A8A22b3cf17b',\n // L2RewardManager is not deployed to mainnet but base.\n L2RewardManager: '0x0000000000000000000000000000000000000000',\n PufferWithdrawalManager: '0xDdA0483184E75a5579ef9635ED14BacCf9d50283',\n NucleusAtomicQueue: '0x228c44bb4885c6633f4b6c83f14622f37d5112e5',\n CarrotStaker: '0x99c599227c65132822f0290d9e5b4b0430d6c0d6',\n Distributor: '0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae',\n ValidatorTicket: '0x7D26AD6F6BA9D6bA1de0218Ae5e20CD3a273a55A',\n PufferOracleV2: '0x0BE2aE0edbeBb517541DF217EF0074FC9a9e994f',\n PufferProtocol: '0xf7b6B32492c2e13799D921E84202450131bd238B',\n GuardianModule: '0x628b183F248a142A598AA2dcCCD6f7E480a7CcF2',\n },\n [Chain.Holesky as number]: {\n PufferVault: '0x9196830bB4c05504E0A8475A0aD566AceEB6BeC9',\n PufferDepositor: '0x824AC05aeb86A0aD770b8acDe0906d2d4a6c4A8c',\n PufferL2Depositor: '0x0af6998e4828ad8ef8f79a9288d0a861890f791d',\n PufLocker: '0xa58983ad0899a452b7420bc57228e329d7ba92b6',\n L1RewardManager: '0x10f970bcb84B82B82a65eBCbF45F26dD26D69F12',\n L2RewardManager: '0x58C046794f69A8830b0BE737022a45b4acd01dE5',\n PufferWithdrawalManager: '0x5A3E1069B66800c0ecbc91bd81b1AE4D1804DBc4',\n ValidatorTicket: '0xB028194785178a94Fe608994A4d5AD84c285A640',\n PufferOracleV2: '0x8e043ed3f06720615685d4978770cd5c8fe90fe3',\n PufferProtocol: '0xE00c79408B9De5BaD2FDEbB1688997a68eC988CD',\n GuardianModule: '0x0910310130d1c062def8b807528bdac80203bc66',\n },\n [Chain.Base as number]: {\n L2RewardManager: '0xF9Dd335bF363b2E4ecFe3c94A86EBD7Dd3Dcf0e7',\n },\n};\n"],"names":["CONTRACT_ADDRESSES","Chain"],"mappings":"6HAIaA,EAAqB,CAIhC,CAACC,EAAAA,MAAM,OAAiB,EAAG,CACzB,YAAa,6CACb,gBAAiB,6CACjB,kBAAmB,6CACnB,UAAW,6CACX,gBAAiB,6CAEjB,gBAAiB,6CACjB,wBAAyB,6CACzB,mBAAoB,6CACpB,aAAc,6CACd,YAAa,6CACb,gBAAiB,6CACjB,eAAgB,6CAChB,eAAgB,6CAChB,eAAgB,4CAClB,EACA,CAACA,EAAAA,MAAM,OAAiB,EAAG,CACzB,YAAa,6CACb,gBAAiB,6CACjB,kBAAmB,6CACnB,UAAW,6CACX,gBAAiB,6CACjB,gBAAiB,6CACjB,wBAAyB,6CACzB,gBAAiB,6CACjB,eAAgB,6CAChB,eAAgB,6CAChB,eAAgB,4CAClB,EACA,CAACA,EAAAA,MAAM,IAAc,EAAG,CACtB,gBAAiB,4CAAA,CAErB"}
|
|
@@ -13,6 +13,7 @@ export declare const CONTRACT_ADDRESSES: {
|
|
|
13
13
|
ValidatorTicket: string;
|
|
14
14
|
PufferOracleV2: string;
|
|
15
15
|
PufferProtocol: string;
|
|
16
|
+
GuardianModule: string;
|
|
16
17
|
} | {
|
|
17
18
|
PufferVault: string;
|
|
18
19
|
PufferDepositor: string;
|
|
@@ -24,6 +25,7 @@ export declare const CONTRACT_ADDRESSES: {
|
|
|
24
25
|
ValidatorTicket: string;
|
|
25
26
|
PufferOracleV2: string;
|
|
26
27
|
PufferProtocol: string;
|
|
28
|
+
GuardianModule: string;
|
|
27
29
|
NucleusAtomicQueue?: undefined;
|
|
28
30
|
CarrotStaker?: undefined;
|
|
29
31
|
Distributor?: undefined;
|
|
@@ -41,5 +43,6 @@ export declare const CONTRACT_ADDRESSES: {
|
|
|
41
43
|
ValidatorTicket?: undefined;
|
|
42
44
|
PufferOracleV2?: undefined;
|
|
43
45
|
PufferProtocol?: undefined;
|
|
46
|
+
GuardianModule?: undefined;
|
|
44
47
|
};
|
|
45
48
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as e } from "../constants-LC89CXNv.js";
|
|
2
|
-
const
|
|
2
|
+
const c = {
|
|
3
3
|
// Casting to number so the consumer can use chain ids. Also not using
|
|
4
4
|
// a generic type for the variable so the consumer knows which
|
|
5
5
|
// contracts can be accessed.
|
|
@@ -17,7 +17,8 @@ const f = {
|
|
|
17
17
|
Distributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae",
|
|
18
18
|
ValidatorTicket: "0x7D26AD6F6BA9D6bA1de0218Ae5e20CD3a273a55A",
|
|
19
19
|
PufferOracleV2: "0x0BE2aE0edbeBb517541DF217EF0074FC9a9e994f",
|
|
20
|
-
PufferProtocol: "0xf7b6B32492c2e13799D921E84202450131bd238B"
|
|
20
|
+
PufferProtocol: "0xf7b6B32492c2e13799D921E84202450131bd238B",
|
|
21
|
+
GuardianModule: "0x628b183F248a142A598AA2dcCCD6f7E480a7CcF2"
|
|
21
22
|
},
|
|
22
23
|
[e.Holesky]: {
|
|
23
24
|
PufferVault: "0x9196830bB4c05504E0A8475A0aD566AceEB6BeC9",
|
|
@@ -29,13 +30,14 @@ const f = {
|
|
|
29
30
|
PufferWithdrawalManager: "0x5A3E1069B66800c0ecbc91bd81b1AE4D1804DBc4",
|
|
30
31
|
ValidatorTicket: "0xB028194785178a94Fe608994A4d5AD84c285A640",
|
|
31
32
|
PufferOracleV2: "0x8e043ed3f06720615685d4978770cd5c8fe90fe3",
|
|
32
|
-
PufferProtocol: "0xE00c79408B9De5BaD2FDEbB1688997a68eC988CD"
|
|
33
|
+
PufferProtocol: "0xE00c79408B9De5BaD2FDEbB1688997a68eC988CD",
|
|
34
|
+
GuardianModule: "0x0910310130d1c062def8b807528bdac80203bc66"
|
|
33
35
|
},
|
|
34
36
|
[e.Base]: {
|
|
35
37
|
L2RewardManager: "0xF9Dd335bF363b2E4ecFe3c94A86EBD7Dd3Dcf0e7"
|
|
36
38
|
}
|
|
37
39
|
};
|
|
38
40
|
export {
|
|
39
|
-
|
|
41
|
+
c as CONTRACT_ADDRESSES
|
|
40
42
|
};
|
|
41
43
|
//# sourceMappingURL=addresses.js.map
|