@varla/sdk 2.13.1 → 2.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/AGENTS.md +5 -5
- package/CHANGELOG.md +20 -0
- package/dist/abi/full/OracleUpdaterRouter.d.ts +35 -1
- package/dist/abi/full/OracleUpdaterRouter.d.ts.map +1 -1
- package/dist/abi/full/OracleUpdaterRouter.js +46 -1
- package/dist/abi/full/OracleUpdaterRouter.js.map +1 -1
- package/dist/actions/index.d.ts +1 -0
- package/dist/actions/index.d.ts.map +1 -1
- package/dist/actions/index.js +1 -0
- package/dist/actions/index.js.map +1 -1
- package/dist/actions/oracleUpdaterRouter.d.ts +41 -0
- package/dist/actions/oracleUpdaterRouter.d.ts.map +1 -1
- package/dist/actions/oracleUpdaterRouter.js +61 -0
- package/dist/actions/oracleUpdaterRouter.js.map +1 -1
- package/dist/actions/proxyAdmin.d.ts +68 -0
- package/dist/actions/proxyAdmin.d.ts.map +1 -0
- package/dist/actions/proxyAdmin.js +76 -0
- package/dist/actions/proxyAdmin.js.map +1 -0
- package/dist/actions/rbac.d.ts +62 -0
- package/dist/actions/rbac.d.ts.map +1 -1
- package/dist/actions/rbac.js +64 -0
- package/dist/actions/rbac.js.map +1 -1
- package/dist/generated.d.ts +35 -1
- package/dist/generated.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/abi/full/OracleUpdaterRouter.ts +46 -1
- package/src/actions/index.ts +1 -0
- package/src/actions/oracleUpdaterRouter.ts +86 -0
- package/src/actions/proxyAdmin.ts +124 -0
- package/src/actions/rbac.ts +110 -0
package/dist/actions/rbac.d.ts
CHANGED
|
@@ -45,4 +45,66 @@ export declare function assertCanCallImmediate(params: {
|
|
|
45
45
|
target: Address;
|
|
46
46
|
selector: Hex;
|
|
47
47
|
}): Promise<void>;
|
|
48
|
+
/** Grant a role to an account. Requires ADMIN role (0). */
|
|
49
|
+
export declare function prepareGrantRole(params: {
|
|
50
|
+
publicClient: {
|
|
51
|
+
simulateContract: (args: any) => Promise<any>;
|
|
52
|
+
};
|
|
53
|
+
accessManagerAddress: Address;
|
|
54
|
+
account: Address;
|
|
55
|
+
roleId: bigint;
|
|
56
|
+
grantee: Address;
|
|
57
|
+
executionDelay: number;
|
|
58
|
+
}): Promise<any>;
|
|
59
|
+
/** Revoke a role from an account. Requires ADMIN role (0). */
|
|
60
|
+
export declare function prepareRevokeRole(params: {
|
|
61
|
+
publicClient: {
|
|
62
|
+
simulateContract: (args: any) => Promise<any>;
|
|
63
|
+
};
|
|
64
|
+
accessManagerAddress: Address;
|
|
65
|
+
account: Address;
|
|
66
|
+
roleId: bigint;
|
|
67
|
+
target: Address;
|
|
68
|
+
}): Promise<any>;
|
|
69
|
+
/** Map function selectors on a target to a role. Requires ADMIN role (0). */
|
|
70
|
+
export declare function prepareSetTargetFunctionRole(params: {
|
|
71
|
+
publicClient: {
|
|
72
|
+
simulateContract: (args: any) => Promise<any>;
|
|
73
|
+
};
|
|
74
|
+
accessManagerAddress: Address;
|
|
75
|
+
account: Address;
|
|
76
|
+
target: Address;
|
|
77
|
+
selectors: readonly Hex[];
|
|
78
|
+
roleId: bigint;
|
|
79
|
+
}): Promise<any>;
|
|
80
|
+
/** Close or open a target contract. When closed, all restricted calls revert. */
|
|
81
|
+
export declare function prepareSetTargetClosed(params: {
|
|
82
|
+
publicClient: {
|
|
83
|
+
simulateContract: (args: any) => Promise<any>;
|
|
84
|
+
};
|
|
85
|
+
accessManagerAddress: Address;
|
|
86
|
+
account: Address;
|
|
87
|
+
target: Address;
|
|
88
|
+
closed: boolean;
|
|
89
|
+
}): Promise<any>;
|
|
90
|
+
/** Set the admin role for a given role (role hierarchy). */
|
|
91
|
+
export declare function prepareSetRoleAdmin(params: {
|
|
92
|
+
publicClient: {
|
|
93
|
+
simulateContract: (args: any) => Promise<any>;
|
|
94
|
+
};
|
|
95
|
+
accessManagerAddress: Address;
|
|
96
|
+
account: Address;
|
|
97
|
+
roleId: bigint;
|
|
98
|
+
adminRoleId: bigint;
|
|
99
|
+
}): Promise<any>;
|
|
100
|
+
/** Set the guardian role for a given role. */
|
|
101
|
+
export declare function prepareSetRoleGuardian(params: {
|
|
102
|
+
publicClient: {
|
|
103
|
+
simulateContract: (args: any) => Promise<any>;
|
|
104
|
+
};
|
|
105
|
+
accessManagerAddress: Address;
|
|
106
|
+
account: Address;
|
|
107
|
+
roleId: bigint;
|
|
108
|
+
guardianRoleId: bigint;
|
|
109
|
+
}): Promise<any>;
|
|
48
110
|
//# sourceMappingURL=rbac.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rbac.d.ts","sourceRoot":"","sources":["../../src/actions/rbac.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"rbac.d.ts","sourceRoot":"","sources":["../../src/actions/rbac.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAQzC;;;;GAIG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAcd,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE;QACJ,OAAO,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;KACvE,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAGF,wBAAsB,WAAW,CAAC,MAAM,EAAE;IACxC,aAAa,EAAE,wBAAwB,CAAC;IACxC,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,GAAG,CAAC;CACf,GAAG,OAAO,CAAC,aAAa,CAAC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AM,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC,GAAG,CAAC,CAQf;AAED,iFAAiF;AACjF,wBAAsB,sBAAsB,CAAC,MAAM,EAAE;IACnD,YAAY,EAAE;QAAE,gBAAgB,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;IAChE,oBAAoB,EAAE,OAAO,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;CACjB,GAAG,OAAO,CAAC,GAAG,CAAC,CAQf;AAED,4DAA4D;AAC5D,wBAAsB,mBAAmB,CAAC,MAAM,EAAE;IAChD,YAAY,EAAE;QAAE,gBAAgB,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;IAChE,oBAAoB,EAAE,OAAO,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB,GAAG,OAAO,CAAC,GAAG,CAAC,CAQf;AAED,8CAA8C;AAC9C,wBAAsB,sBAAsB,CAAC,MAAM,EAAE;IACnD,YAAY,EAAE;QAAE,gBAAgB,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;IAChE,oBAAoB,EAAE,OAAO,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;CACxB,GAAG,OAAO,CAAC,GAAG,CAAC,CAQf"}
|
package/dist/actions/rbac.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Note: explicit .js extension is required for Node ESM resolution.
|
|
2
|
+
import { abis } from "../generated.js";
|
|
2
3
|
// ---------------------------------------------------------------------------
|
|
3
4
|
// Common signatures (DevEx)
|
|
4
5
|
// ---------------------------------------------------------------------------
|
|
@@ -46,4 +47,67 @@ export async function assertCanCallImmediate(params) {
|
|
|
46
47
|
throw new Error(`AccessManager.canCall denied or delayed (delay=${r.delay})`);
|
|
47
48
|
}
|
|
48
49
|
}
|
|
50
|
+
// ---------------------------------------------------------------------------
|
|
51
|
+
// VarlaAccessManager — mutating RBAC actions
|
|
52
|
+
// ---------------------------------------------------------------------------
|
|
53
|
+
/** Grant a role to an account. Requires ADMIN role (0). */
|
|
54
|
+
export async function prepareGrantRole(params) {
|
|
55
|
+
return await params.publicClient.simulateContract({
|
|
56
|
+
address: params.accessManagerAddress,
|
|
57
|
+
abi: abis.VARLAACCESSMANAGER_ABI,
|
|
58
|
+
functionName: "grantRole",
|
|
59
|
+
args: [params.roleId, params.grantee, params.executionDelay],
|
|
60
|
+
account: params.account,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/** Revoke a role from an account. Requires ADMIN role (0). */
|
|
64
|
+
export async function prepareRevokeRole(params) {
|
|
65
|
+
return await params.publicClient.simulateContract({
|
|
66
|
+
address: params.accessManagerAddress,
|
|
67
|
+
abi: abis.VARLAACCESSMANAGER_ABI,
|
|
68
|
+
functionName: "revokeRole",
|
|
69
|
+
args: [params.roleId, params.target],
|
|
70
|
+
account: params.account,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/** Map function selectors on a target to a role. Requires ADMIN role (0). */
|
|
74
|
+
export async function prepareSetTargetFunctionRole(params) {
|
|
75
|
+
return await params.publicClient.simulateContract({
|
|
76
|
+
address: params.accessManagerAddress,
|
|
77
|
+
abi: abis.VARLAACCESSMANAGER_ABI,
|
|
78
|
+
functionName: "setTargetFunctionRole",
|
|
79
|
+
args: [params.target, params.selectors, params.roleId],
|
|
80
|
+
account: params.account,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/** Close or open a target contract. When closed, all restricted calls revert. */
|
|
84
|
+
export async function prepareSetTargetClosed(params) {
|
|
85
|
+
return await params.publicClient.simulateContract({
|
|
86
|
+
address: params.accessManagerAddress,
|
|
87
|
+
abi: abis.VARLAACCESSMANAGER_ABI,
|
|
88
|
+
functionName: "setTargetClosed",
|
|
89
|
+
args: [params.target, params.closed],
|
|
90
|
+
account: params.account,
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
/** Set the admin role for a given role (role hierarchy). */
|
|
94
|
+
export async function prepareSetRoleAdmin(params) {
|
|
95
|
+
return await params.publicClient.simulateContract({
|
|
96
|
+
address: params.accessManagerAddress,
|
|
97
|
+
abi: abis.VARLAACCESSMANAGER_ABI,
|
|
98
|
+
functionName: "setRoleAdmin",
|
|
99
|
+
args: [params.roleId, params.adminRoleId],
|
|
100
|
+
account: params.account,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/** Set the guardian role for a given role. */
|
|
104
|
+
export async function prepareSetRoleGuardian(params) {
|
|
105
|
+
return await params.publicClient.simulateContract({
|
|
106
|
+
address: params.accessManagerAddress,
|
|
107
|
+
abi: abis.VARLAACCESSMANAGER_ABI,
|
|
108
|
+
functionName: "setRoleGuardian",
|
|
109
|
+
args: [params.roleId, params.guardianRoleId],
|
|
110
|
+
account: params.account,
|
|
111
|
+
});
|
|
112
|
+
}
|
|
49
113
|
//# sourceMappingURL=rbac.js.map
|
package/dist/actions/rbac.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rbac.js","sourceRoot":"","sources":["../../src/actions/rbac.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAIpE,8EAA8E;AAC9E,4BAA4B;AAC5B,8EAA8E;AAE9E;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,uBAAuB,EACrB,gEAAyE;IAC3E,0BAA0B,EAAE,6CAAsD;IAClF,+BAA+B,EAAE,sDAA+D;IAChG,8BAA8B,EAAE,mDAA4D;IAC5F,YAAY,EAAE,uDAAgE;IAC9E,kBAAkB,EAAE,oCAA6C;IACjE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sBAAsB;QAChC,YAAY,EAAE,iBAAiB;QAC/B,IAAI,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC;QAC5C,OAAO,EAAE,MAAM,CAAC,OAAO;KACxB,CAAC,CAAC;AACL,CAAC"}
|
package/dist/generated.d.ts
CHANGED
|
@@ -241,6 +241,40 @@ export declare const abis: {
|
|
|
241
241
|
}];
|
|
242
242
|
readonly stateMutability: "view";
|
|
243
243
|
readonly type: "function";
|
|
244
|
+
}, {
|
|
245
|
+
readonly inputs: readonly [{
|
|
246
|
+
readonly internalType: "uint256";
|
|
247
|
+
readonly name: "index";
|
|
248
|
+
readonly type: "uint256";
|
|
249
|
+
}];
|
|
250
|
+
readonly name: "getPublisherAt";
|
|
251
|
+
readonly outputs: readonly [{
|
|
252
|
+
readonly internalType: "address";
|
|
253
|
+
readonly name: "";
|
|
254
|
+
readonly type: "address";
|
|
255
|
+
}];
|
|
256
|
+
readonly stateMutability: "view";
|
|
257
|
+
readonly type: "function";
|
|
258
|
+
}, {
|
|
259
|
+
readonly inputs: readonly [];
|
|
260
|
+
readonly name: "getPublisherCount";
|
|
261
|
+
readonly outputs: readonly [{
|
|
262
|
+
readonly internalType: "uint256";
|
|
263
|
+
readonly name: "";
|
|
264
|
+
readonly type: "uint256";
|
|
265
|
+
}];
|
|
266
|
+
readonly stateMutability: "view";
|
|
267
|
+
readonly type: "function";
|
|
268
|
+
}, {
|
|
269
|
+
readonly inputs: readonly [];
|
|
270
|
+
readonly name: "getPublishers";
|
|
271
|
+
readonly outputs: readonly [{
|
|
272
|
+
readonly internalType: "address[]";
|
|
273
|
+
readonly name: "";
|
|
274
|
+
readonly type: "address[]";
|
|
275
|
+
}];
|
|
276
|
+
readonly stateMutability: "view";
|
|
277
|
+
readonly type: "function";
|
|
244
278
|
}, {
|
|
245
279
|
readonly inputs: readonly [{
|
|
246
280
|
readonly components: readonly [{
|
|
@@ -305,7 +339,7 @@ export declare const abis: {
|
|
|
305
339
|
}, {
|
|
306
340
|
readonly inputs: readonly [{
|
|
307
341
|
readonly internalType: "address";
|
|
308
|
-
readonly name: "";
|
|
342
|
+
readonly name: "publisher";
|
|
309
343
|
readonly type: "address";
|
|
310
344
|
}];
|
|
311
345
|
readonly name: "isPublisher";
|
package/dist/generated.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated.d.ts","sourceRoot":"","sources":["../src/generated.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBP,CAAC;AAEX,eAAO,MAAM,SAAS;;;CAGZ,CAAC"}
|
package/package.json
CHANGED
|
@@ -319,6 +319,51 @@ export const ORACLEUPDATERROUTER_ABI = [
|
|
|
319
319
|
"stateMutability": "view",
|
|
320
320
|
"type": "function"
|
|
321
321
|
},
|
|
322
|
+
{
|
|
323
|
+
"inputs": [
|
|
324
|
+
{
|
|
325
|
+
"internalType": "uint256",
|
|
326
|
+
"name": "index",
|
|
327
|
+
"type": "uint256"
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
"name": "getPublisherAt",
|
|
331
|
+
"outputs": [
|
|
332
|
+
{
|
|
333
|
+
"internalType": "address",
|
|
334
|
+
"name": "",
|
|
335
|
+
"type": "address"
|
|
336
|
+
}
|
|
337
|
+
],
|
|
338
|
+
"stateMutability": "view",
|
|
339
|
+
"type": "function"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"inputs": [],
|
|
343
|
+
"name": "getPublisherCount",
|
|
344
|
+
"outputs": [
|
|
345
|
+
{
|
|
346
|
+
"internalType": "uint256",
|
|
347
|
+
"name": "",
|
|
348
|
+
"type": "uint256"
|
|
349
|
+
}
|
|
350
|
+
],
|
|
351
|
+
"stateMutability": "view",
|
|
352
|
+
"type": "function"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"inputs": [],
|
|
356
|
+
"name": "getPublishers",
|
|
357
|
+
"outputs": [
|
|
358
|
+
{
|
|
359
|
+
"internalType": "address[]",
|
|
360
|
+
"name": "",
|
|
361
|
+
"type": "address[]"
|
|
362
|
+
}
|
|
363
|
+
],
|
|
364
|
+
"stateMutability": "view",
|
|
365
|
+
"type": "function"
|
|
366
|
+
},
|
|
322
367
|
{
|
|
323
368
|
"inputs": [
|
|
324
369
|
{
|
|
@@ -402,7 +447,7 @@ export const ORACLEUPDATERROUTER_ABI = [
|
|
|
402
447
|
"inputs": [
|
|
403
448
|
{
|
|
404
449
|
"internalType": "address",
|
|
405
|
-
"name": "",
|
|
450
|
+
"name": "publisher",
|
|
406
451
|
"type": "address"
|
|
407
452
|
}
|
|
408
453
|
],
|
package/src/actions/index.ts
CHANGED
|
@@ -248,6 +248,92 @@ export async function signOracleUpdaterRouterUpdate(params: {
|
|
|
248
248
|
return params.walletClient.sign({ hash: digest });
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
+
// ── Publisher management ────────────────────────────────────────────────────
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Read whether `publisher` is whitelisted on the OracleUpdaterRouter.
|
|
255
|
+
*/
|
|
256
|
+
export async function readIsPublisher(params: {
|
|
257
|
+
publicClient: Pick<PublicClient, "readContract">;
|
|
258
|
+
routerAddress: Address;
|
|
259
|
+
publisher: Address;
|
|
260
|
+
}): Promise<boolean> {
|
|
261
|
+
const result = await params.publicClient.readContract({
|
|
262
|
+
address: params.routerAddress,
|
|
263
|
+
abi: abis.ORACLEUPDATERROUTER_ABI,
|
|
264
|
+
functionName: "isPublisher",
|
|
265
|
+
args: [params.publisher],
|
|
266
|
+
});
|
|
267
|
+
return result as boolean;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Return all current publishers on the OracleUpdaterRouter.
|
|
272
|
+
*
|
|
273
|
+
* Reads from the on-chain EnumerableSet — no event scanning required.
|
|
274
|
+
*/
|
|
275
|
+
export async function readOracleUpdaterRouterPublishers(params: {
|
|
276
|
+
publicClient: Pick<PublicClient, "readContract">;
|
|
277
|
+
routerAddress: Address;
|
|
278
|
+
}): Promise<readonly Address[]> {
|
|
279
|
+
const result = await params.publicClient.readContract({
|
|
280
|
+
address: params.routerAddress,
|
|
281
|
+
abi: abis.ORACLEUPDATERROUTER_ABI,
|
|
282
|
+
functionName: "getPublishers",
|
|
283
|
+
args: [],
|
|
284
|
+
});
|
|
285
|
+
return result as readonly Address[];
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Return the number of current publishers on the OracleUpdaterRouter.
|
|
290
|
+
*/
|
|
291
|
+
export async function readOracleUpdaterRouterPublisherCount(params: {
|
|
292
|
+
publicClient: Pick<PublicClient, "readContract">;
|
|
293
|
+
routerAddress: Address;
|
|
294
|
+
}): Promise<bigint> {
|
|
295
|
+
const result = await params.publicClient.readContract({
|
|
296
|
+
address: params.routerAddress,
|
|
297
|
+
abi: abis.ORACLEUPDATERROUTER_ABI,
|
|
298
|
+
functionName: "getPublisherCount",
|
|
299
|
+
args: [],
|
|
300
|
+
});
|
|
301
|
+
return BigInt(result as bigint);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Return the publisher at the given index on the OracleUpdaterRouter.
|
|
306
|
+
*/
|
|
307
|
+
export async function readOracleUpdaterRouterPublisherAt(params: {
|
|
308
|
+
publicClient: Pick<PublicClient, "readContract">;
|
|
309
|
+
routerAddress: Address;
|
|
310
|
+
index: bigint;
|
|
311
|
+
}): Promise<Address> {
|
|
312
|
+
const result = await params.publicClient.readContract({
|
|
313
|
+
address: params.routerAddress,
|
|
314
|
+
abi: abis.ORACLEUPDATERROUTER_ABI,
|
|
315
|
+
functionName: "getPublisherAt",
|
|
316
|
+
args: [params.index],
|
|
317
|
+
});
|
|
318
|
+
return result as Address;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/** Change the AccessManager authority for OracleUpdaterRouter. */
|
|
322
|
+
export async function prepareOracleUpdaterRouterSetAuthority(params: {
|
|
323
|
+
publicClient: { simulateContract: (args: any) => Promise<any> };
|
|
324
|
+
routerAddress: Address;
|
|
325
|
+
account: Address;
|
|
326
|
+
newAuthority: Address;
|
|
327
|
+
}): Promise<any> {
|
|
328
|
+
return await params.publicClient.simulateContract({
|
|
329
|
+
address: params.routerAddress,
|
|
330
|
+
abi: abis.ORACLEUPDATERROUTER_ABI,
|
|
331
|
+
functionName: "setAuthority",
|
|
332
|
+
args: [params.newAuthority],
|
|
333
|
+
account: params.account,
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
|
|
251
337
|
export async function prepareOracleUpdaterRouterUpdatePricesWithSig(params: {
|
|
252
338
|
publicClient: { simulateContract: (args: any) => Promise<any> };
|
|
253
339
|
routerAddress: Address;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// Note: explicit .js extension is required for Node ESM resolution.
|
|
2
|
+
|
|
3
|
+
import type { Address, Hex } from "viem";
|
|
4
|
+
|
|
5
|
+
import { abis } from "../generated.js";
|
|
6
|
+
|
|
7
|
+
// ---------------------------------------------------------------------------
|
|
8
|
+
// VarlaProxyAdmin — critical admin/governance actions
|
|
9
|
+
// ---------------------------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
/** Pause all proxy upgrades (emergency). Restricted by AccessManager. */
|
|
12
|
+
export async function prepareProxyAdminPause(params: {
|
|
13
|
+
publicClient: { simulateContract: (args: any) => Promise<any> };
|
|
14
|
+
proxyAdminAddress: Address;
|
|
15
|
+
account: Address;
|
|
16
|
+
}): Promise<any> {
|
|
17
|
+
return await params.publicClient.simulateContract({
|
|
18
|
+
address: params.proxyAdminAddress,
|
|
19
|
+
abi: abis.VARLAPROXYADMIN_ABI,
|
|
20
|
+
functionName: "pause",
|
|
21
|
+
args: [],
|
|
22
|
+
account: params.account,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Unpause proxy upgrades. Restricted by AccessManager. */
|
|
27
|
+
export async function prepareProxyAdminUnpause(params: {
|
|
28
|
+
publicClient: { simulateContract: (args: any) => Promise<any> };
|
|
29
|
+
proxyAdminAddress: Address;
|
|
30
|
+
account: Address;
|
|
31
|
+
}): Promise<any> {
|
|
32
|
+
return await params.publicClient.simulateContract({
|
|
33
|
+
address: params.proxyAdminAddress,
|
|
34
|
+
abi: abis.VARLAPROXYADMIN_ABI,
|
|
35
|
+
functionName: "unpause",
|
|
36
|
+
args: [],
|
|
37
|
+
account: params.account,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** Upgrade a proxy to a new implementation. Restricted by AccessManager. */
|
|
42
|
+
export async function prepareProxyAdminUpgrade(params: {
|
|
43
|
+
publicClient: { simulateContract: (args: any) => Promise<any> };
|
|
44
|
+
proxyAdminAddress: Address;
|
|
45
|
+
account: Address;
|
|
46
|
+
proxy: Address;
|
|
47
|
+
implementation: Address;
|
|
48
|
+
}): Promise<any> {
|
|
49
|
+
return await params.publicClient.simulateContract({
|
|
50
|
+
address: params.proxyAdminAddress,
|
|
51
|
+
abi: abis.VARLAPROXYADMIN_ABI,
|
|
52
|
+
functionName: "upgrade",
|
|
53
|
+
args: [params.proxy, params.implementation],
|
|
54
|
+
account: params.account,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** Upgrade a proxy + call initializer in one tx. Restricted by AccessManager. */
|
|
59
|
+
export async function prepareProxyAdminUpgradeAndCall(params: {
|
|
60
|
+
publicClient: { simulateContract: (args: any) => Promise<any> };
|
|
61
|
+
proxyAdminAddress: Address;
|
|
62
|
+
account: Address;
|
|
63
|
+
proxy: Address;
|
|
64
|
+
implementation: Address;
|
|
65
|
+
data: Hex;
|
|
66
|
+
}): Promise<any> {
|
|
67
|
+
return await params.publicClient.simulateContract({
|
|
68
|
+
address: params.proxyAdminAddress,
|
|
69
|
+
abi: abis.VARLAPROXYADMIN_ABI,
|
|
70
|
+
functionName: "upgradeAndCall",
|
|
71
|
+
args: [params.proxy, params.implementation, params.data],
|
|
72
|
+
account: params.account,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** Register a proxy/admin pair. Restricted by AccessManager. */
|
|
77
|
+
export async function prepareProxyAdminRegisterProxy(params: {
|
|
78
|
+
publicClient: { simulateContract: (args: any) => Promise<any> };
|
|
79
|
+
proxyAdminAddress: Address;
|
|
80
|
+
account: Address;
|
|
81
|
+
proxy: Address;
|
|
82
|
+
proxyAdmin: Address;
|
|
83
|
+
}): Promise<any> {
|
|
84
|
+
return await params.publicClient.simulateContract({
|
|
85
|
+
address: params.proxyAdminAddress,
|
|
86
|
+
abi: abis.VARLAPROXYADMIN_ABI,
|
|
87
|
+
functionName: "registerProxy",
|
|
88
|
+
args: [params.proxy, params.proxyAdmin],
|
|
89
|
+
account: params.account,
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** Transfer proxy admin ownership to a new address. Restricted by AccessManager. */
|
|
94
|
+
export async function prepareProxyAdminSetProxyAdminOwner(params: {
|
|
95
|
+
publicClient: { simulateContract: (args: any) => Promise<any> };
|
|
96
|
+
proxyAdminAddress: Address;
|
|
97
|
+
account: Address;
|
|
98
|
+
proxy: Address;
|
|
99
|
+
newOwner: Address;
|
|
100
|
+
}): Promise<any> {
|
|
101
|
+
return await params.publicClient.simulateContract({
|
|
102
|
+
address: params.proxyAdminAddress,
|
|
103
|
+
abi: abis.VARLAPROXYADMIN_ABI,
|
|
104
|
+
functionName: "setProxyAdminOwner",
|
|
105
|
+
args: [params.proxy, params.newOwner],
|
|
106
|
+
account: params.account,
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/** Change the AccessManager authority for VarlaProxyAdmin. */
|
|
111
|
+
export async function prepareProxyAdminSetAuthority(params: {
|
|
112
|
+
publicClient: { simulateContract: (args: any) => Promise<any> };
|
|
113
|
+
proxyAdminAddress: Address;
|
|
114
|
+
account: Address;
|
|
115
|
+
newAuthority: Address;
|
|
116
|
+
}): Promise<any> {
|
|
117
|
+
return await params.publicClient.simulateContract({
|
|
118
|
+
address: params.proxyAdminAddress,
|
|
119
|
+
abi: abis.VARLAPROXYADMIN_ABI,
|
|
120
|
+
functionName: "setAuthority",
|
|
121
|
+
args: [params.newAuthority],
|
|
122
|
+
account: params.account,
|
|
123
|
+
});
|
|
124
|
+
}
|