@underscore-finance/sdk 0.0.7 → 0.2.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/contracts/AddyRegistry.d.ts +659 -82
- package/dist/contracts/AddyRegistry.d.ts.map +1 -1
- package/dist/contracts/AddyRegistry.js +903 -184
- package/dist/contracts/Agent.d.ts +223 -145
- package/dist/contracts/Agent.d.ts.map +1 -1
- package/dist/contracts/Agent.js +248 -162
- package/dist/contracts/AgentFactory.d.ts +335 -42
- package/dist/contracts/AgentFactory.d.ts.map +1 -1
- package/dist/contracts/AgentFactory.js +403 -42
- package/dist/contracts/ChainlinkFeeds.d.ts +160 -23
- package/dist/contracts/ChainlinkFeeds.d.ts.map +1 -1
- package/dist/contracts/ChainlinkFeeds.js +186 -23
- package/dist/contracts/LegoAaveV3.d.ts +160 -23
- package/dist/contracts/LegoAaveV3.d.ts.map +1 -1
- package/dist/contracts/LegoAaveV3.js +186 -23
- package/dist/contracts/LegoAeroClassic.d.ts +160 -23
- package/dist/contracts/LegoAeroClassic.d.ts.map +1 -1
- package/dist/contracts/LegoAeroClassic.js +186 -23
- package/dist/contracts/LegoAeroSlipstream.d.ts +160 -23
- package/dist/contracts/LegoAeroSlipstream.d.ts.map +1 -1
- package/dist/contracts/LegoAeroSlipstream.js +186 -23
- package/dist/contracts/LegoCompoundV3.d.ts +160 -23
- package/dist/contracts/LegoCompoundV3.d.ts.map +1 -1
- package/dist/contracts/LegoCompoundV3.js +186 -23
- package/dist/contracts/LegoCurve.d.ts +160 -23
- package/dist/contracts/LegoCurve.d.ts.map +1 -1
- package/dist/contracts/LegoCurve.js +186 -23
- package/dist/contracts/LegoEuler.d.ts +160 -23
- package/dist/contracts/LegoEuler.d.ts.map +1 -1
- package/dist/contracts/LegoEuler.js +186 -23
- package/dist/contracts/LegoFluid.d.ts +171 -23
- package/dist/contracts/LegoFluid.d.ts.map +1 -1
- package/dist/contracts/LegoFluid.js +200 -23
- package/dist/contracts/LegoHelper.js +1 -1
- package/dist/contracts/LegoMoonwell.d.ts +160 -23
- package/dist/contracts/LegoMoonwell.d.ts.map +1 -1
- package/dist/contracts/LegoMoonwell.js +186 -23
- package/dist/contracts/LegoMorpho.d.ts +160 -23
- package/dist/contracts/LegoMorpho.d.ts.map +1 -1
- package/dist/contracts/LegoMorpho.js +186 -23
- package/dist/contracts/LegoRegistry.d.ts +501 -96
- package/dist/contracts/LegoRegistry.d.ts.map +1 -1
- package/dist/contracts/LegoRegistry.js +686 -174
- package/dist/contracts/LegoSky.d.ts +160 -23
- package/dist/contracts/LegoSky.d.ts.map +1 -1
- package/dist/contracts/LegoSky.js +186 -23
- package/dist/contracts/LegoUniswapV2.d.ts +160 -23
- package/dist/contracts/LegoUniswapV2.d.ts.map +1 -1
- package/dist/contracts/LegoUniswapV2.js +186 -23
- package/dist/contracts/LegoUniswapV3.d.ts +160 -23
- package/dist/contracts/LegoUniswapV3.d.ts.map +1 -1
- package/dist/contracts/LegoUniswapV3.js +186 -23
- package/dist/contracts/OracleRegistry.d.ts +506 -109
- package/dist/contracts/OracleRegistry.d.ts.map +1 -1
- package/dist/contracts/OracleRegistry.js +628 -131
- package/dist/contracts/PriceSheets.d.ts +160 -23
- package/dist/contracts/PriceSheets.d.ts.map +1 -1
- package/dist/contracts/PriceSheets.js +186 -23
- package/dist/contracts/PythFeeds.d.ts +160 -23
- package/dist/contracts/PythFeeds.d.ts.map +1 -1
- package/dist/contracts/PythFeeds.js +186 -23
- package/dist/contracts/StorkFeeds.d.ts +160 -23
- package/dist/contracts/StorkFeeds.d.ts.map +1 -1
- package/dist/contracts/StorkFeeds.js +186 -23
- package/dist/contracts/UserWallet.d.ts +1956 -0
- package/dist/contracts/UserWallet.d.ts.map +1 -0
- package/dist/contracts/UserWallet.js +2551 -0
- package/dist/contracts/UserWalletConfig.d.ts +1466 -0
- package/dist/contracts/UserWalletConfig.d.ts.map +1 -0
- package/dist/contracts/UserWalletConfig.js +1762 -0
- package/dist/contracts/index.d.ts +2 -2
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +2 -2
- package/dist/contracts/sdk.d.ts +4 -4
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +3 -3
|
@@ -57,17 +57,72 @@ export declare const abi: readonly [{
|
|
|
57
57
|
readonly anonymous: false;
|
|
58
58
|
readonly inputs: readonly [{
|
|
59
59
|
readonly indexed: true;
|
|
60
|
-
readonly name: "
|
|
60
|
+
readonly name: "prevGov";
|
|
61
61
|
readonly type: "address";
|
|
62
|
+
}, {
|
|
63
|
+
readonly indexed: true;
|
|
64
|
+
readonly name: "newGov";
|
|
65
|
+
readonly type: "address";
|
|
66
|
+
}, {
|
|
67
|
+
readonly indexed: false;
|
|
68
|
+
readonly name: "confirmBlock";
|
|
69
|
+
readonly type: "uint256";
|
|
62
70
|
}];
|
|
63
|
-
readonly name: "
|
|
71
|
+
readonly name: "GovChangeInitiated";
|
|
72
|
+
readonly type: "event";
|
|
73
|
+
}, {
|
|
74
|
+
readonly anonymous: false;
|
|
75
|
+
readonly inputs: readonly [{
|
|
76
|
+
readonly indexed: true;
|
|
77
|
+
readonly name: "prevGov";
|
|
78
|
+
readonly type: "address";
|
|
79
|
+
}, {
|
|
80
|
+
readonly indexed: true;
|
|
81
|
+
readonly name: "newGov";
|
|
82
|
+
readonly type: "address";
|
|
83
|
+
}, {
|
|
84
|
+
readonly indexed: false;
|
|
85
|
+
readonly name: "initiatedBlock";
|
|
86
|
+
readonly type: "uint256";
|
|
87
|
+
}, {
|
|
88
|
+
readonly indexed: false;
|
|
89
|
+
readonly name: "confirmBlock";
|
|
90
|
+
readonly type: "uint256";
|
|
91
|
+
}];
|
|
92
|
+
readonly name: "GovChangeConfirmed";
|
|
93
|
+
readonly type: "event";
|
|
94
|
+
}, {
|
|
95
|
+
readonly anonymous: false;
|
|
96
|
+
readonly inputs: readonly [{
|
|
97
|
+
readonly indexed: true;
|
|
98
|
+
readonly name: "cancelledGov";
|
|
99
|
+
readonly type: "address";
|
|
100
|
+
}, {
|
|
101
|
+
readonly indexed: false;
|
|
102
|
+
readonly name: "initiatedBlock";
|
|
103
|
+
readonly type: "uint256";
|
|
104
|
+
}, {
|
|
105
|
+
readonly indexed: false;
|
|
106
|
+
readonly name: "confirmBlock";
|
|
107
|
+
readonly type: "uint256";
|
|
108
|
+
}];
|
|
109
|
+
readonly name: "GovChangeCancelled";
|
|
110
|
+
readonly type: "event";
|
|
111
|
+
}, {
|
|
112
|
+
readonly anonymous: false;
|
|
113
|
+
readonly inputs: readonly [{
|
|
114
|
+
readonly indexed: false;
|
|
115
|
+
readonly name: "delayBlocks";
|
|
116
|
+
readonly type: "uint256";
|
|
117
|
+
}];
|
|
118
|
+
readonly name: "GovChangeDelaySet";
|
|
64
119
|
readonly type: "event";
|
|
65
120
|
}, {
|
|
66
121
|
readonly inputs: readonly [{
|
|
67
122
|
readonly name: "_address";
|
|
68
123
|
readonly type: "address";
|
|
69
124
|
}];
|
|
70
|
-
readonly name: "
|
|
125
|
+
readonly name: "canGovern";
|
|
71
126
|
readonly outputs: readonly [{
|
|
72
127
|
readonly name: "";
|
|
73
128
|
readonly type: "bool";
|
|
@@ -75,11 +130,8 @@ export declare const abi: readonly [{
|
|
|
75
130
|
readonly stateMutability: "view";
|
|
76
131
|
readonly type: "function";
|
|
77
132
|
}, {
|
|
78
|
-
readonly inputs: readonly [
|
|
79
|
-
|
|
80
|
-
readonly type: "address";
|
|
81
|
-
}];
|
|
82
|
-
readonly name: "isValidLocalGovernor";
|
|
133
|
+
readonly inputs: readonly [];
|
|
134
|
+
readonly name: "hasPendingGovChange";
|
|
83
135
|
readonly outputs: readonly [{
|
|
84
136
|
readonly name: "";
|
|
85
137
|
readonly type: "bool";
|
|
@@ -88,25 +140,89 @@ export declare const abi: readonly [{
|
|
|
88
140
|
readonly type: "function";
|
|
89
141
|
}, {
|
|
90
142
|
readonly inputs: readonly [{
|
|
91
|
-
readonly name: "
|
|
143
|
+
readonly name: "_newGov";
|
|
92
144
|
readonly type: "address";
|
|
93
145
|
}];
|
|
94
|
-
readonly name: "
|
|
95
|
-
readonly outputs: readonly [
|
|
96
|
-
|
|
97
|
-
|
|
146
|
+
readonly name: "changeGovernance";
|
|
147
|
+
readonly outputs: readonly [];
|
|
148
|
+
readonly stateMutability: "nonpayable";
|
|
149
|
+
readonly type: "function";
|
|
150
|
+
}, {
|
|
151
|
+
readonly inputs: readonly [];
|
|
152
|
+
readonly name: "confirmGovernanceChange";
|
|
153
|
+
readonly outputs: readonly [];
|
|
154
|
+
readonly stateMutability: "nonpayable";
|
|
155
|
+
readonly type: "function";
|
|
156
|
+
}, {
|
|
157
|
+
readonly inputs: readonly [];
|
|
158
|
+
readonly name: "cancelGovernanceChange";
|
|
159
|
+
readonly outputs: readonly [];
|
|
160
|
+
readonly stateMutability: "nonpayable";
|
|
161
|
+
readonly type: "function";
|
|
162
|
+
}, {
|
|
163
|
+
readonly inputs: readonly [{
|
|
164
|
+
readonly name: "_numBlocks";
|
|
165
|
+
readonly type: "uint256";
|
|
98
166
|
}];
|
|
167
|
+
readonly name: "setGovernanceChangeDelay";
|
|
168
|
+
readonly outputs: readonly [];
|
|
99
169
|
readonly stateMutability: "nonpayable";
|
|
100
170
|
readonly type: "function";
|
|
101
171
|
}, {
|
|
102
172
|
readonly inputs: readonly [];
|
|
103
|
-
readonly name: "
|
|
173
|
+
readonly name: "governance";
|
|
104
174
|
readonly outputs: readonly [{
|
|
105
175
|
readonly name: "";
|
|
106
176
|
readonly type: "address";
|
|
107
177
|
}];
|
|
108
178
|
readonly stateMutability: "view";
|
|
109
179
|
readonly type: "function";
|
|
180
|
+
}, {
|
|
181
|
+
readonly inputs: readonly [];
|
|
182
|
+
readonly name: "pendingGov";
|
|
183
|
+
readonly outputs: readonly [{
|
|
184
|
+
readonly components: readonly [{
|
|
185
|
+
readonly name: "newGov";
|
|
186
|
+
readonly type: "address";
|
|
187
|
+
}, {
|
|
188
|
+
readonly name: "initiatedBlock";
|
|
189
|
+
readonly type: "uint256";
|
|
190
|
+
}, {
|
|
191
|
+
readonly name: "confirmBlock";
|
|
192
|
+
readonly type: "uint256";
|
|
193
|
+
}];
|
|
194
|
+
readonly name: "";
|
|
195
|
+
readonly type: "tuple";
|
|
196
|
+
}];
|
|
197
|
+
readonly stateMutability: "view";
|
|
198
|
+
readonly type: "function";
|
|
199
|
+
}, {
|
|
200
|
+
readonly inputs: readonly [];
|
|
201
|
+
readonly name: "govChangeDelay";
|
|
202
|
+
readonly outputs: readonly [{
|
|
203
|
+
readonly name: "";
|
|
204
|
+
readonly type: "uint256";
|
|
205
|
+
}];
|
|
206
|
+
readonly stateMutability: "view";
|
|
207
|
+
readonly type: "function";
|
|
208
|
+
}, {
|
|
209
|
+
readonly inputs: readonly [];
|
|
210
|
+
readonly name: "MIN_GOV_CHANGE_DELAY";
|
|
211
|
+
readonly outputs: readonly [{
|
|
212
|
+
readonly name: "";
|
|
213
|
+
readonly type: "uint256";
|
|
214
|
+
}];
|
|
215
|
+
readonly stateMutability: "view";
|
|
216
|
+
readonly type: "function";
|
|
217
|
+
}, {
|
|
218
|
+
readonly inputs: readonly [];
|
|
219
|
+
readonly name: "MAX_GOV_CHANGE_DELAY";
|
|
220
|
+
readonly outputs: readonly [{
|
|
221
|
+
readonly name: "";
|
|
222
|
+
readonly type: "uint256";
|
|
223
|
+
}];
|
|
224
|
+
readonly stateMutability: "view";
|
|
225
|
+
readonly type: "function";
|
|
110
226
|
}, {
|
|
111
227
|
readonly inputs: readonly [];
|
|
112
228
|
readonly name: "getConfiguredAssets";
|
|
@@ -404,9 +520,17 @@ export declare const abi: readonly [{
|
|
|
404
520
|
export declare const deployAddress: Address | undefined;
|
|
405
521
|
export type Contract = {
|
|
406
522
|
calls: {
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
523
|
+
canGovern: (address: `0x${string}`) => Promise<boolean>;
|
|
524
|
+
hasPendingGovChange: () => Promise<boolean>;
|
|
525
|
+
governance: () => Promise<`0x${string}`>;
|
|
526
|
+
pendingGov: () => Promise<{
|
|
527
|
+
newGov: `0x${string}`;
|
|
528
|
+
initiatedBlock: bigint;
|
|
529
|
+
confirmBlock: bigint;
|
|
530
|
+
}>;
|
|
531
|
+
govChangeDelay: () => Promise<bigint>;
|
|
532
|
+
MIN_GOV_CHANGE_DELAY: () => Promise<bigint>;
|
|
533
|
+
MAX_GOV_CHANGE_DELAY: () => Promise<bigint>;
|
|
410
534
|
getConfiguredAssets: () => Promise<`0x${string}`[]>;
|
|
411
535
|
assets: (arg0: bigint) => Promise<`0x${string}`>;
|
|
412
536
|
indexOfAsset: (arg0: `0x${string}`) => Promise<bigint>;
|
|
@@ -422,7 +546,10 @@ export type Contract = {
|
|
|
422
546
|
ADDY_REGISTRY: () => Promise<`0x${string}`>;
|
|
423
547
|
};
|
|
424
548
|
mutations: {
|
|
425
|
-
|
|
549
|
+
changeGovernance: (newGov: `0x${string}`) => Promise<void>;
|
|
550
|
+
confirmGovernanceChange: () => Promise<void>;
|
|
551
|
+
cancelGovernanceChange: () => Promise<void>;
|
|
552
|
+
setGovernanceChangeDelay: (numBlocks: bigint) => Promise<void>;
|
|
426
553
|
updatePythPrices: (payloads: `0x${string}`[]) => Promise<void>;
|
|
427
554
|
setPythFeed: (asset: `0x${string}`, feedId: `0x${string}`) => Promise<boolean>;
|
|
428
555
|
disablePythPriceFeed: (asset: `0x${string}`) => Promise<boolean>;
|
|
@@ -434,7 +561,10 @@ export type Contract = {
|
|
|
434
561
|
PythFeedDisabled: (asset: `0x${string}`) => Promise<void>;
|
|
435
562
|
PythPriceUpdated: (payload: `0x${string}`, feeAmount: bigint, caller: `0x${string}`) => Promise<void>;
|
|
436
563
|
EthRecoveredFromPyth: (recipient: `0x${string}`, amount: bigint) => Promise<void>;
|
|
437
|
-
|
|
564
|
+
GovChangeInitiated: (prevGov: `0x${string}`, newGov: `0x${string}`, confirmBlock: bigint) => Promise<void>;
|
|
565
|
+
GovChangeConfirmed: (prevGov: `0x${string}`, newGov: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
|
|
566
|
+
GovChangeCancelled: (cancelledGov: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
|
|
567
|
+
GovChangeDelaySet: (delayBlocks: bigint) => Promise<void>;
|
|
438
568
|
};
|
|
439
569
|
};
|
|
440
570
|
export type Calls = keyof Contract['calls'];
|
|
@@ -473,9 +603,13 @@ export declare const mutation: {
|
|
|
473
603
|
};
|
|
474
604
|
};
|
|
475
605
|
export type SDK = {
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
606
|
+
canGovern: (...args: ExtractArgs<Contract['calls']['canGovern']>) => Promise<CallReturn<'canGovern'>>;
|
|
607
|
+
hasPendingGovChange: (...args: ExtractArgs<Contract['calls']['hasPendingGovChange']>) => Promise<CallReturn<'hasPendingGovChange'>>;
|
|
608
|
+
governance: (...args: ExtractArgs<Contract['calls']['governance']>) => Promise<CallReturn<'governance'>>;
|
|
609
|
+
pendingGov: (...args: ExtractArgs<Contract['calls']['pendingGov']>) => Promise<CallReturn<'pendingGov'>>;
|
|
610
|
+
govChangeDelay: (...args: ExtractArgs<Contract['calls']['govChangeDelay']>) => Promise<CallReturn<'govChangeDelay'>>;
|
|
611
|
+
MIN_GOV_CHANGE_DELAY: (...args: ExtractArgs<Contract['calls']['MIN_GOV_CHANGE_DELAY']>) => Promise<CallReturn<'MIN_GOV_CHANGE_DELAY'>>;
|
|
612
|
+
MAX_GOV_CHANGE_DELAY: (...args: ExtractArgs<Contract['calls']['MAX_GOV_CHANGE_DELAY']>) => Promise<CallReturn<'MAX_GOV_CHANGE_DELAY'>>;
|
|
479
613
|
getConfiguredAssets: (...args: ExtractArgs<Contract['calls']['getConfiguredAssets']>) => Promise<CallReturn<'getConfiguredAssets'>>;
|
|
480
614
|
assets: (...args: ExtractArgs<Contract['calls']['assets']>) => Promise<CallReturn<'assets'>>;
|
|
481
615
|
indexOfAsset: (...args: ExtractArgs<Contract['calls']['indexOfAsset']>) => Promise<CallReturn<'indexOfAsset'>>;
|
|
@@ -489,7 +623,10 @@ export type SDK = {
|
|
|
489
623
|
feedConfig: (...args: ExtractArgs<Contract['calls']['feedConfig']>) => Promise<CallReturn<'feedConfig'>>;
|
|
490
624
|
oraclePartnerId: (...args: ExtractArgs<Contract['calls']['oraclePartnerId']>) => Promise<CallReturn<'oraclePartnerId'>>;
|
|
491
625
|
ADDY_REGISTRY: (...args: ExtractArgs<Contract['calls']['ADDY_REGISTRY']>) => Promise<CallReturn<'ADDY_REGISTRY'>>;
|
|
492
|
-
|
|
626
|
+
changeGovernance: (...args: ExtractArgs<Contract['mutations']['changeGovernance']>) => Promise<Address>;
|
|
627
|
+
confirmGovernanceChange: (...args: ExtractArgs<Contract['mutations']['confirmGovernanceChange']>) => Promise<Address>;
|
|
628
|
+
cancelGovernanceChange: (...args: ExtractArgs<Contract['mutations']['cancelGovernanceChange']>) => Promise<Address>;
|
|
629
|
+
setGovernanceChangeDelay: (...args: ExtractArgs<Contract['mutations']['setGovernanceChangeDelay']>) => Promise<Address>;
|
|
493
630
|
updatePythPrices: (...args: ExtractArgs<Contract['mutations']['updatePythPrices']>) => Promise<Address>;
|
|
494
631
|
setPythFeed: (...args: ExtractArgs<Contract['mutations']['setPythFeed']>) => Promise<Address>;
|
|
495
632
|
disablePythPriceFeed: (...args: ExtractArgs<Contract['mutations']['disablePythPriceFeed']>) => Promise<Address>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PythFeeds.d.ts","sourceRoot":"","sources":["../../src/contracts/PythFeeds.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAEjD,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,GAAG,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,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IAC7F,oBAAoB,EAAE,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,sBAAsB,CAAC,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IAC/G,iBAAiB,EAAE,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,mBAAmB,CAAC,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IACzG,kBAAkB,EAAE,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,oBAAoB,CAAC,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;CAC5G,CAAA;AAED,wBAAgB,KAAK,CAAC,YAAY,CAAC,EAAE,YAAY,EAAE,YAAY,CAAC,EAAE,YAAY,GAAG,GAAG,CAgEnF"}
|
|
@@ -77,11 +77,82 @@ export const abi = [
|
|
|
77
77
|
inputs: [
|
|
78
78
|
{
|
|
79
79
|
indexed: true,
|
|
80
|
-
name: '
|
|
80
|
+
name: 'prevGov',
|
|
81
81
|
type: 'address',
|
|
82
82
|
},
|
|
83
|
+
{
|
|
84
|
+
indexed: true,
|
|
85
|
+
name: 'newGov',
|
|
86
|
+
type: 'address',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
indexed: false,
|
|
90
|
+
name: 'confirmBlock',
|
|
91
|
+
type: 'uint256',
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
name: 'GovChangeInitiated',
|
|
95
|
+
type: 'event',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
anonymous: false,
|
|
99
|
+
inputs: [
|
|
100
|
+
{
|
|
101
|
+
indexed: true,
|
|
102
|
+
name: 'prevGov',
|
|
103
|
+
type: 'address',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
indexed: true,
|
|
107
|
+
name: 'newGov',
|
|
108
|
+
type: 'address',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
indexed: false,
|
|
112
|
+
name: 'initiatedBlock',
|
|
113
|
+
type: 'uint256',
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
indexed: false,
|
|
117
|
+
name: 'confirmBlock',
|
|
118
|
+
type: 'uint256',
|
|
119
|
+
},
|
|
83
120
|
],
|
|
84
|
-
name: '
|
|
121
|
+
name: 'GovChangeConfirmed',
|
|
122
|
+
type: 'event',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
anonymous: false,
|
|
126
|
+
inputs: [
|
|
127
|
+
{
|
|
128
|
+
indexed: true,
|
|
129
|
+
name: 'cancelledGov',
|
|
130
|
+
type: 'address',
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
indexed: false,
|
|
134
|
+
name: 'initiatedBlock',
|
|
135
|
+
type: 'uint256',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
indexed: false,
|
|
139
|
+
name: 'confirmBlock',
|
|
140
|
+
type: 'uint256',
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
name: 'GovChangeCancelled',
|
|
144
|
+
type: 'event',
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
anonymous: false,
|
|
148
|
+
inputs: [
|
|
149
|
+
{
|
|
150
|
+
indexed: false,
|
|
151
|
+
name: 'delayBlocks',
|
|
152
|
+
type: 'uint256',
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
name: 'GovChangeDelaySet',
|
|
85
156
|
type: 'event',
|
|
86
157
|
},
|
|
87
158
|
{
|
|
@@ -91,7 +162,19 @@ export const abi = [
|
|
|
91
162
|
type: 'address',
|
|
92
163
|
},
|
|
93
164
|
],
|
|
94
|
-
name: '
|
|
165
|
+
name: 'canGovern',
|
|
166
|
+
outputs: [
|
|
167
|
+
{
|
|
168
|
+
name: '',
|
|
169
|
+
type: 'bool',
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
stateMutability: 'view',
|
|
173
|
+
type: 'function',
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
inputs: [],
|
|
177
|
+
name: 'hasPendingGovChange',
|
|
95
178
|
outputs: [
|
|
96
179
|
{
|
|
97
180
|
name: '',
|
|
@@ -104,44 +187,110 @@ export const abi = [
|
|
|
104
187
|
{
|
|
105
188
|
inputs: [
|
|
106
189
|
{
|
|
107
|
-
name: '
|
|
190
|
+
name: '_newGov',
|
|
108
191
|
type: 'address',
|
|
109
192
|
},
|
|
110
193
|
],
|
|
111
|
-
name: '
|
|
194
|
+
name: 'changeGovernance',
|
|
195
|
+
outputs: [],
|
|
196
|
+
stateMutability: 'nonpayable',
|
|
197
|
+
type: 'function',
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
inputs: [],
|
|
201
|
+
name: 'confirmGovernanceChange',
|
|
202
|
+
outputs: [],
|
|
203
|
+
stateMutability: 'nonpayable',
|
|
204
|
+
type: 'function',
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
inputs: [],
|
|
208
|
+
name: 'cancelGovernanceChange',
|
|
209
|
+
outputs: [],
|
|
210
|
+
stateMutability: 'nonpayable',
|
|
211
|
+
type: 'function',
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
inputs: [
|
|
215
|
+
{
|
|
216
|
+
name: '_numBlocks',
|
|
217
|
+
type: 'uint256',
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
name: 'setGovernanceChangeDelay',
|
|
221
|
+
outputs: [],
|
|
222
|
+
stateMutability: 'nonpayable',
|
|
223
|
+
type: 'function',
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
inputs: [],
|
|
227
|
+
name: 'governance',
|
|
112
228
|
outputs: [
|
|
113
229
|
{
|
|
114
230
|
name: '',
|
|
115
|
-
type: '
|
|
231
|
+
type: 'address',
|
|
116
232
|
},
|
|
117
233
|
],
|
|
118
234
|
stateMutability: 'view',
|
|
119
235
|
type: 'function',
|
|
120
236
|
},
|
|
121
237
|
{
|
|
122
|
-
inputs: [
|
|
238
|
+
inputs: [],
|
|
239
|
+
name: 'pendingGov',
|
|
240
|
+
outputs: [
|
|
123
241
|
{
|
|
124
|
-
|
|
125
|
-
|
|
242
|
+
components: [
|
|
243
|
+
{
|
|
244
|
+
name: 'newGov',
|
|
245
|
+
type: 'address',
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
name: 'initiatedBlock',
|
|
249
|
+
type: 'uint256',
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
name: 'confirmBlock',
|
|
253
|
+
type: 'uint256',
|
|
254
|
+
},
|
|
255
|
+
],
|
|
256
|
+
name: '',
|
|
257
|
+
type: 'tuple',
|
|
126
258
|
},
|
|
127
259
|
],
|
|
128
|
-
|
|
260
|
+
stateMutability: 'view',
|
|
261
|
+
type: 'function',
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
inputs: [],
|
|
265
|
+
name: 'govChangeDelay',
|
|
129
266
|
outputs: [
|
|
130
267
|
{
|
|
131
268
|
name: '',
|
|
132
|
-
type: '
|
|
269
|
+
type: 'uint256',
|
|
133
270
|
},
|
|
134
271
|
],
|
|
135
|
-
stateMutability: '
|
|
272
|
+
stateMutability: 'view',
|
|
136
273
|
type: 'function',
|
|
137
274
|
},
|
|
138
275
|
{
|
|
139
276
|
inputs: [],
|
|
140
|
-
name: '
|
|
277
|
+
name: 'MIN_GOV_CHANGE_DELAY',
|
|
141
278
|
outputs: [
|
|
142
279
|
{
|
|
143
280
|
name: '',
|
|
144
|
-
type: '
|
|
281
|
+
type: 'uint256',
|
|
282
|
+
},
|
|
283
|
+
],
|
|
284
|
+
stateMutability: 'view',
|
|
285
|
+
type: 'function',
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
inputs: [],
|
|
289
|
+
name: 'MAX_GOV_CHANGE_DELAY',
|
|
290
|
+
outputs: [
|
|
291
|
+
{
|
|
292
|
+
name: '',
|
|
293
|
+
type: 'uint256',
|
|
145
294
|
},
|
|
146
295
|
],
|
|
147
296
|
stateMutability: 'view',
|
|
@@ -555,7 +704,7 @@ export const abi = [
|
|
|
555
704
|
type: 'constructor',
|
|
556
705
|
},
|
|
557
706
|
];
|
|
558
|
-
export const deployAddress = '
|
|
707
|
+
export const deployAddress = '0x56cC721FA002425b074e767A1F7B663Eb00C7535';
|
|
559
708
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
560
709
|
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
561
710
|
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|
|
@@ -584,9 +733,13 @@ function getRequest(method, args, contractAddressOrOptions) {
|
|
|
584
733
|
return call;
|
|
585
734
|
}
|
|
586
735
|
export const call = {
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
736
|
+
canGovern: (...args) => getRequest('canGovern', args),
|
|
737
|
+
hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
|
|
738
|
+
governance: (...args) => getRequest('governance', args),
|
|
739
|
+
pendingGov: (...args) => getRequest('pendingGov', args),
|
|
740
|
+
govChangeDelay: (...args) => getRequest('govChangeDelay', args),
|
|
741
|
+
MIN_GOV_CHANGE_DELAY: (...args) => getRequest('MIN_GOV_CHANGE_DELAY', args),
|
|
742
|
+
MAX_GOV_CHANGE_DELAY: (...args) => getRequest('MAX_GOV_CHANGE_DELAY', args),
|
|
590
743
|
getConfiguredAssets: (...args) => getRequest('getConfiguredAssets', args),
|
|
591
744
|
assets: (...args) => getRequest('assets', args),
|
|
592
745
|
indexOfAsset: (...args) => getRequest('indexOfAsset', args),
|
|
@@ -611,7 +764,10 @@ function getMutation(functionName) {
|
|
|
611
764
|
};
|
|
612
765
|
}
|
|
613
766
|
export const mutation = {
|
|
614
|
-
|
|
767
|
+
changeGovernance: getMutation('changeGovernance'),
|
|
768
|
+
confirmGovernanceChange: getMutation('confirmGovernanceChange'),
|
|
769
|
+
cancelGovernanceChange: getMutation('cancelGovernanceChange'),
|
|
770
|
+
setGovernanceChangeDelay: getMutation('setGovernanceChangeDelay'),
|
|
615
771
|
updatePythPrices: getMutation('updatePythPrices'),
|
|
616
772
|
setPythFeed: getMutation('setPythFeed'),
|
|
617
773
|
disablePythPriceFeed: getMutation('disablePythPriceFeed'),
|
|
@@ -621,9 +777,13 @@ export const mutation = {
|
|
|
621
777
|
export function toSdk(publicClient, walletClient) {
|
|
622
778
|
return {
|
|
623
779
|
// Queries
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
780
|
+
canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
|
|
781
|
+
hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
|
|
782
|
+
governance: (...args) => singleQuery(publicClient, call.governance(...args)),
|
|
783
|
+
pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
|
|
784
|
+
govChangeDelay: (...args) => singleQuery(publicClient, call.govChangeDelay(...args)),
|
|
785
|
+
MIN_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_GOV_CHANGE_DELAY(...args)),
|
|
786
|
+
MAX_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_GOV_CHANGE_DELAY(...args)),
|
|
627
787
|
getConfiguredAssets: (...args) => singleQuery(publicClient, call.getConfiguredAssets(...args)),
|
|
628
788
|
assets: (...args) => singleQuery(publicClient, call.assets(...args)),
|
|
629
789
|
indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
|
|
@@ -638,7 +798,10 @@ export function toSdk(publicClient, walletClient) {
|
|
|
638
798
|
oraclePartnerId: (...args) => singleQuery(publicClient, call.oraclePartnerId(...args)),
|
|
639
799
|
ADDY_REGISTRY: (...args) => singleQuery(publicClient, call.ADDY_REGISTRY(...args)),
|
|
640
800
|
// Mutations
|
|
641
|
-
|
|
801
|
+
changeGovernance: (...args) => mutate(walletClient, mutation.changeGovernance)(...args),
|
|
802
|
+
confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
|
|
803
|
+
cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
|
|
804
|
+
setGovernanceChangeDelay: (...args) => mutate(walletClient, mutation.setGovernanceChangeDelay)(...args),
|
|
642
805
|
updatePythPrices: (...args) => mutate(walletClient, mutation.updatePythPrices)(...args),
|
|
643
806
|
setPythFeed: (...args) => mutate(walletClient, mutation.setPythFeed)(...args),
|
|
644
807
|
disablePythPriceFeed: (...args) => mutate(walletClient, mutation.disablePythPriceFeed)(...args),
|