@pufferfinance/puffer-sdk 1.20.2 → 1.21.1
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/api/puffer-client.cjs +1 -1
- package/dist/api/puffer-client.cjs.map +1 -1
- package/dist/api/puffer-client.d.ts +3 -0
- package/dist/api/puffer-client.js +29 -22
- package/dist/api/puffer-client.js.map +1 -1
- 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/utils/version.cjs +1 -1
- package/dist/utils/version.js +1 -1
- package/package.json +1 -1
|
@@ -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,IACjB,MAAM;AA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AAM,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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addresses.js","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":";AAIO,MAAMA,IAAqB;AAAA;AAAA;AAAA;AAAA,EAIhC,CAACC,EAAM,OAAiB,GAAG;AAAA,IACzB,aAAa;AAAA,IACb,iBAAiB;AAAA,IACjB,mBAAmB;AAAA,IACnB,WAAW;AAAA,IACX,iBAAiB;AAAA;AAAA,IAEjB,iBAAiB;AAAA,IACjB,yBAAyB;AAAA,IACzB,oBAAoB;AAAA,IACpB,cAAc;AAAA,IACd,aAAa;AAAA,IACb,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,EAClB;AAAA,EACA,CAACA,EAAM,OAAiB,GAAG;AAAA,IACzB,aAAa;AAAA,IACb,iBAAiB;AAAA,IACjB,mBAAmB;AAAA,IACnB,WAAW;AAAA,IACX,iBAAiB;AAAA,IACjB,iBAAiB;AAAA,IACjB,yBAAyB;AAAA,IACzB,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,EAClB;AAAA,EACA,CAACA,EAAM,IAAc,GAAG;AAAA,IACtB,iBAAiB;AAAA,EAAA;AAErB;"}
|
|
1
|
+
{"version":3,"file":"addresses.js","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":";AAIO,MAAMA,IAAqB;AAAA;AAAA;AAAA;AAAA,EAIhC,CAACC,EAAM,OAAiB,GAAG;AAAA,IACzB,aAAa;AAAA,IACb,iBAAiB;AAAA,IACjB,mBAAmB;AAAA,IACnB,WAAW;AAAA,IACX,iBAAiB;AAAA;AAAA,IAEjB,iBAAiB;AAAA,IACjB,yBAAyB;AAAA,IACzB,oBAAoB;AAAA,IACpB,cAAc;AAAA,IACd,aAAa;AAAA,IACb,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,EAClB;AAAA,EACA,CAACA,EAAM,OAAiB,GAAG;AAAA,IACzB,aAAa;AAAA,IACb,iBAAiB;AAAA,IACjB,mBAAmB;AAAA,IACnB,WAAW;AAAA,IACX,iBAAiB;AAAA,IACjB,iBAAiB;AAAA,IACjB,yBAAyB;AAAA,IACzB,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,EAClB;AAAA,EACA,CAACA,EAAM,IAAc,GAAG;AAAA,IACtB,iBAAiB;AAAA,EAAA;AAErB;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var i=Object.defineProperty;var s=(r,e,t)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var n=(r,e,t)=>s(r,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../constants-BI6T6ZbJ.cjs"),u=require("../addresses.cjs"),c=require("../abis/mainnet/GuardianModule.cjs"),o=require("../../getContract-CPwqa1sR.cjs");class l{constructor(e,t,a){n(this,"viemChain");this.chain=e,this.walletClient=t,this.publicClient=a,this.viemChain=d.VIEM_CHAINS[e]}getContract(){const e=u.CONTRACT_ADDRESSES[this.chain].GuardianModule,t=c.GuardianModule,a={public:this.publicClient,wallet:this.walletClient};return o.getContract({address:e,abi:t,client:a})}getEjectionThreshold(){return this.getContract().read.getEjectionThreshold()}getGuardians(){return this.getContract().read.getGuardians()}getGuardiansEnclaveAddress(e){return this.getContract().read.getGuardiansEnclaveAddress([e])}getGuardiansEnclaveAddresses(){return this.getContract().read.getGuardiansEnclaveAddresses()}getGuardiansEnclavePubkeys(){return this.getContract().read.getGuardiansEnclavePubkeys()}validateGuardiansEnclaveSignatures(e,t){return this.getContract().read.validateGuardiansEnclaveSignatures([e,t])}getMrenclave(){return this.getContract().read.getMrenclave()}getMrsigner(){return this.getContract().read.getMrsigner()}getThreshold(){return this.getContract().read.getThreshold()}isConsumingScheduledOp(){return this.getContract().read.isConsumingScheduledOp()}isGuardian(e){return this.getContract().read.isGuardian([e])}removeGuardian(e,t){return this.getContract().write.removeGuardian([e],{account:t,chain:this.viemChain})}}exports.GuardianModuleHandler=l;
|
|
2
|
+
//# sourceMappingURL=guardian-module-handler.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guardian-module-handler.cjs","sources":["../../../lib/contracts/handlers/guardian-module-handler.ts"],"sourcesContent":["import {\n Address,\n getContract,\n GetContractReturnType,\n Hash,\n PublicClient,\n Chain as ViemChain,\n WalletClient,\n} from 'viem';\nimport { Chain, VIEM_CHAINS } from '../../chains/constants';\nimport { CONTRACT_ADDRESSES } from '../addresses';\nimport { GuardianModule } from '../abis/mainnet/GuardianModule';\n\n/**\n * Handler for the `GuardianModule` contract exposing methods to\n * interact with the contract.\n */\nexport class GuardianModuleHandler {\n private viemChain: ViemChain;\n\n /**\n * Create the handler for the `PufLocker` contract exposing methods to\n * interact with the contract.\n *\n * @param chain Chain to use for the client.\n * @param walletClient The wallet client to use for wallet\n * interactions.\n * @param publicClient The public client to use for public\n * interactions.\n */\n constructor(\n private chain: Chain,\n private walletClient: WalletClient,\n private publicClient: PublicClient,\n ) {\n this.viemChain = VIEM_CHAINS[chain];\n }\n\n /**\n * Get the contract. This is a method because the typings are complex\n * and lost when trying to make it a member.\n *\n * @returns The viem contract.\n */\n public getContract() {\n const address = CONTRACT_ADDRESSES[this.chain].GuardianModule as Address;\n const abi = GuardianModule;\n const client = { public: this.publicClient, wallet: this.walletClient };\n\n return getContract({ address, abi, client }) as GetContractReturnType<\n typeof abi,\n typeof client,\n Address\n >;\n }\n\n /**\n * Get the ejection threshold.\n *\n * @returns The ejection threshold.\n */\n public getEjectionThreshold() {\n return this.getContract().read.getEjectionThreshold();\n }\n\n /**\n * Get the guardians.\n *\n * @returns The guardians.\n */\n public getGuardians() {\n return this.getContract().read.getGuardians();\n }\n\n /**\n * Get the enclave address for a guardian.\n *\n * @param guardian The guardian address.\n * @returns The enclave address.\n */\n public getGuardiansEnclaveAddress(guardian: Address) {\n return this.getContract().read.getGuardiansEnclaveAddress([guardian]);\n }\n\n /**\n * Get the enclave addresses for all guardians.\n *\n * @returns The enclave addresses.\n */\n public getGuardiansEnclaveAddresses() {\n return this.getContract().read.getGuardiansEnclaveAddresses();\n }\n\n /**\n * Get the enclave pubkeys for all guardians.\n *\n * @returns The enclave pubkeys.\n */\n public getGuardiansEnclavePubkeys() {\n return this.getContract().read.getGuardiansEnclavePubkeys();\n }\n\n /**\n * Validate the enclave signatures for a signed message.\n *\n * @param enclaveSignatures The enclave signatures.\n * @param signedMessageHash The signed message hash.\n * @returns The validation result.\n */\n public validateGuardiansEnclaveSignatures(\n enclaveSignatures: Address[],\n signedMessageHash: Hash,\n ) {\n return this.getContract().read.validateGuardiansEnclaveSignatures([\n enclaveSignatures,\n signedMessageHash,\n ]);\n }\n\n /**\n * Get the mrenclave.\n *\n * @returns The mrenclave.\n */\n public getMrenclave() {\n return this.getContract().read.getMrenclave();\n }\n\n /**\n * Get the mrsigner.\n *\n * @returns The mrsigner.\n */\n public getMrsigner() {\n return this.getContract().read.getMrsigner();\n }\n\n /**\n * Get the threshold.\n *\n * @returns The threshold.\n */\n public getThreshold() {\n return this.getContract().read.getThreshold();\n }\n\n /**\n * Check if the guardian module is consuming scheduled operations.\n *\n * @returns True if the guardian module is consuming scheduled operations,\n * false otherwise.\n */\n public isConsumingScheduledOp() {\n return this.getContract().read.isConsumingScheduledOp();\n }\n\n /**\n * Check if an account is a guardian.\n *\n * @param account The account address.\n * @returns True if the account is a guardian, false otherwise.\n */\n public isGuardian(account: Address) {\n return this.getContract().read.isGuardian([account]);\n }\n\n /**\n * Remove a guardian.\n *\n * @param guardian The guardian address.\n * @param account The account address to make the transaction with.\n * @returns The transaction receipt.\n */\n public removeGuardian(guardian: Address, account: Address) {\n return this.getContract().write.removeGuardian([guardian], {\n account,\n chain: this.viemChain,\n });\n }\n}\n"],"names":["GuardianModuleHandler","chain","walletClient","publicClient","__publicField","VIEM_CHAINS","address","CONTRACT_ADDRESSES","abi","GuardianModule","client","getContract","guardian","enclaveSignatures","signedMessageHash","account"],"mappings":"8ZAiBO,MAAMA,CAAsB,CAajC,YACUC,EACAC,EACAC,EACR,CAhBMC,EAAA,kBAaE,KAAA,MAAAH,EACA,KAAA,aAAAC,EACA,KAAA,aAAAC,EAEH,KAAA,UAAYE,cAAYJ,CAAK,CAAA,CAS7B,aAAc,CACnB,MAAMK,EAAUC,EAAA,mBAAmB,KAAK,KAAK,EAAE,eACzCC,EAAMC,EAAA,eACNC,EAAS,CAAE,OAAQ,KAAK,aAAc,OAAQ,KAAK,YAAa,EAEtE,OAAOC,EAAY,YAAA,CAAE,QAAAL,EAAS,IAAAE,EAAK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