@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
|
@@ -35,17 +35,72 @@ export declare const abi: readonly [{
|
|
|
35
35
|
readonly anonymous: false;
|
|
36
36
|
readonly inputs: readonly [{
|
|
37
37
|
readonly indexed: true;
|
|
38
|
-
readonly name: "
|
|
38
|
+
readonly name: "prevGov";
|
|
39
39
|
readonly type: "address";
|
|
40
|
+
}, {
|
|
41
|
+
readonly indexed: true;
|
|
42
|
+
readonly name: "newGov";
|
|
43
|
+
readonly type: "address";
|
|
44
|
+
}, {
|
|
45
|
+
readonly indexed: false;
|
|
46
|
+
readonly name: "confirmBlock";
|
|
47
|
+
readonly type: "uint256";
|
|
40
48
|
}];
|
|
41
|
-
readonly name: "
|
|
49
|
+
readonly name: "GovChangeInitiated";
|
|
50
|
+
readonly type: "event";
|
|
51
|
+
}, {
|
|
52
|
+
readonly anonymous: false;
|
|
53
|
+
readonly inputs: readonly [{
|
|
54
|
+
readonly indexed: true;
|
|
55
|
+
readonly name: "prevGov";
|
|
56
|
+
readonly type: "address";
|
|
57
|
+
}, {
|
|
58
|
+
readonly indexed: true;
|
|
59
|
+
readonly name: "newGov";
|
|
60
|
+
readonly type: "address";
|
|
61
|
+
}, {
|
|
62
|
+
readonly indexed: false;
|
|
63
|
+
readonly name: "initiatedBlock";
|
|
64
|
+
readonly type: "uint256";
|
|
65
|
+
}, {
|
|
66
|
+
readonly indexed: false;
|
|
67
|
+
readonly name: "confirmBlock";
|
|
68
|
+
readonly type: "uint256";
|
|
69
|
+
}];
|
|
70
|
+
readonly name: "GovChangeConfirmed";
|
|
71
|
+
readonly type: "event";
|
|
72
|
+
}, {
|
|
73
|
+
readonly anonymous: false;
|
|
74
|
+
readonly inputs: readonly [{
|
|
75
|
+
readonly indexed: true;
|
|
76
|
+
readonly name: "cancelledGov";
|
|
77
|
+
readonly type: "address";
|
|
78
|
+
}, {
|
|
79
|
+
readonly indexed: false;
|
|
80
|
+
readonly name: "initiatedBlock";
|
|
81
|
+
readonly type: "uint256";
|
|
82
|
+
}, {
|
|
83
|
+
readonly indexed: false;
|
|
84
|
+
readonly name: "confirmBlock";
|
|
85
|
+
readonly type: "uint256";
|
|
86
|
+
}];
|
|
87
|
+
readonly name: "GovChangeCancelled";
|
|
88
|
+
readonly type: "event";
|
|
89
|
+
}, {
|
|
90
|
+
readonly anonymous: false;
|
|
91
|
+
readonly inputs: readonly [{
|
|
92
|
+
readonly indexed: false;
|
|
93
|
+
readonly name: "delayBlocks";
|
|
94
|
+
readonly type: "uint256";
|
|
95
|
+
}];
|
|
96
|
+
readonly name: "GovChangeDelaySet";
|
|
42
97
|
readonly type: "event";
|
|
43
98
|
}, {
|
|
44
99
|
readonly inputs: readonly [{
|
|
45
100
|
readonly name: "_address";
|
|
46
101
|
readonly type: "address";
|
|
47
102
|
}];
|
|
48
|
-
readonly name: "
|
|
103
|
+
readonly name: "canGovern";
|
|
49
104
|
readonly outputs: readonly [{
|
|
50
105
|
readonly name: "";
|
|
51
106
|
readonly type: "bool";
|
|
@@ -53,11 +108,8 @@ export declare const abi: readonly [{
|
|
|
53
108
|
readonly stateMutability: "view";
|
|
54
109
|
readonly type: "function";
|
|
55
110
|
}, {
|
|
56
|
-
readonly inputs: readonly [
|
|
57
|
-
|
|
58
|
-
readonly type: "address";
|
|
59
|
-
}];
|
|
60
|
-
readonly name: "isValidLocalGovernor";
|
|
111
|
+
readonly inputs: readonly [];
|
|
112
|
+
readonly name: "hasPendingGovChange";
|
|
61
113
|
readonly outputs: readonly [{
|
|
62
114
|
readonly name: "";
|
|
63
115
|
readonly type: "bool";
|
|
@@ -66,25 +118,89 @@ export declare const abi: readonly [{
|
|
|
66
118
|
readonly type: "function";
|
|
67
119
|
}, {
|
|
68
120
|
readonly inputs: readonly [{
|
|
69
|
-
readonly name: "
|
|
121
|
+
readonly name: "_newGov";
|
|
70
122
|
readonly type: "address";
|
|
71
123
|
}];
|
|
72
|
-
readonly name: "
|
|
73
|
-
readonly outputs: readonly [
|
|
74
|
-
|
|
75
|
-
|
|
124
|
+
readonly name: "changeGovernance";
|
|
125
|
+
readonly outputs: readonly [];
|
|
126
|
+
readonly stateMutability: "nonpayable";
|
|
127
|
+
readonly type: "function";
|
|
128
|
+
}, {
|
|
129
|
+
readonly inputs: readonly [];
|
|
130
|
+
readonly name: "confirmGovernanceChange";
|
|
131
|
+
readonly outputs: readonly [];
|
|
132
|
+
readonly stateMutability: "nonpayable";
|
|
133
|
+
readonly type: "function";
|
|
134
|
+
}, {
|
|
135
|
+
readonly inputs: readonly [];
|
|
136
|
+
readonly name: "cancelGovernanceChange";
|
|
137
|
+
readonly outputs: readonly [];
|
|
138
|
+
readonly stateMutability: "nonpayable";
|
|
139
|
+
readonly type: "function";
|
|
140
|
+
}, {
|
|
141
|
+
readonly inputs: readonly [{
|
|
142
|
+
readonly name: "_numBlocks";
|
|
143
|
+
readonly type: "uint256";
|
|
76
144
|
}];
|
|
145
|
+
readonly name: "setGovernanceChangeDelay";
|
|
146
|
+
readonly outputs: readonly [];
|
|
77
147
|
readonly stateMutability: "nonpayable";
|
|
78
148
|
readonly type: "function";
|
|
79
149
|
}, {
|
|
80
150
|
readonly inputs: readonly [];
|
|
81
|
-
readonly name: "
|
|
151
|
+
readonly name: "governance";
|
|
82
152
|
readonly outputs: readonly [{
|
|
83
153
|
readonly name: "";
|
|
84
154
|
readonly type: "address";
|
|
85
155
|
}];
|
|
86
156
|
readonly stateMutability: "view";
|
|
87
157
|
readonly type: "function";
|
|
158
|
+
}, {
|
|
159
|
+
readonly inputs: readonly [];
|
|
160
|
+
readonly name: "pendingGov";
|
|
161
|
+
readonly outputs: readonly [{
|
|
162
|
+
readonly components: readonly [{
|
|
163
|
+
readonly name: "newGov";
|
|
164
|
+
readonly type: "address";
|
|
165
|
+
}, {
|
|
166
|
+
readonly name: "initiatedBlock";
|
|
167
|
+
readonly type: "uint256";
|
|
168
|
+
}, {
|
|
169
|
+
readonly name: "confirmBlock";
|
|
170
|
+
readonly type: "uint256";
|
|
171
|
+
}];
|
|
172
|
+
readonly name: "";
|
|
173
|
+
readonly type: "tuple";
|
|
174
|
+
}];
|
|
175
|
+
readonly stateMutability: "view";
|
|
176
|
+
readonly type: "function";
|
|
177
|
+
}, {
|
|
178
|
+
readonly inputs: readonly [];
|
|
179
|
+
readonly name: "govChangeDelay";
|
|
180
|
+
readonly outputs: readonly [{
|
|
181
|
+
readonly name: "";
|
|
182
|
+
readonly type: "uint256";
|
|
183
|
+
}];
|
|
184
|
+
readonly stateMutability: "view";
|
|
185
|
+
readonly type: "function";
|
|
186
|
+
}, {
|
|
187
|
+
readonly inputs: readonly [];
|
|
188
|
+
readonly name: "MIN_GOV_CHANGE_DELAY";
|
|
189
|
+
readonly outputs: readonly [{
|
|
190
|
+
readonly name: "";
|
|
191
|
+
readonly type: "uint256";
|
|
192
|
+
}];
|
|
193
|
+
readonly stateMutability: "view";
|
|
194
|
+
readonly type: "function";
|
|
195
|
+
}, {
|
|
196
|
+
readonly inputs: readonly [];
|
|
197
|
+
readonly name: "MAX_GOV_CHANGE_DELAY";
|
|
198
|
+
readonly outputs: readonly [{
|
|
199
|
+
readonly name: "";
|
|
200
|
+
readonly type: "uint256";
|
|
201
|
+
}];
|
|
202
|
+
readonly stateMutability: "view";
|
|
203
|
+
readonly type: "function";
|
|
88
204
|
}, {
|
|
89
205
|
readonly inputs: readonly [];
|
|
90
206
|
readonly name: "getConfiguredAssets";
|
|
@@ -467,9 +583,17 @@ export declare const abi: readonly [{
|
|
|
467
583
|
export declare const deployAddress: Address | undefined;
|
|
468
584
|
export type Contract = {
|
|
469
585
|
calls: {
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
586
|
+
canGovern: (address: `0x${string}`) => Promise<boolean>;
|
|
587
|
+
hasPendingGovChange: () => Promise<boolean>;
|
|
588
|
+
governance: () => Promise<`0x${string}`>;
|
|
589
|
+
pendingGov: () => Promise<{
|
|
590
|
+
newGov: `0x${string}`;
|
|
591
|
+
initiatedBlock: bigint;
|
|
592
|
+
confirmBlock: bigint;
|
|
593
|
+
}>;
|
|
594
|
+
govChangeDelay: () => Promise<bigint>;
|
|
595
|
+
MIN_GOV_CHANGE_DELAY: () => Promise<bigint>;
|
|
596
|
+
MAX_GOV_CHANGE_DELAY: () => Promise<bigint>;
|
|
473
597
|
getConfiguredAssets: () => Promise<`0x${string}`[]>;
|
|
474
598
|
assets: (arg0: bigint) => Promise<`0x${string}`>;
|
|
475
599
|
indexOfAsset: (arg0: `0x${string}`) => Promise<bigint>;
|
|
@@ -492,7 +616,10 @@ export type Contract = {
|
|
|
492
616
|
BTC: () => Promise<`0x${string}`>;
|
|
493
617
|
};
|
|
494
618
|
mutations: {
|
|
495
|
-
|
|
619
|
+
changeGovernance: (newGov: `0x${string}`) => Promise<void>;
|
|
620
|
+
confirmGovernanceChange: () => Promise<void>;
|
|
621
|
+
cancelGovernanceChange: () => Promise<void>;
|
|
622
|
+
setGovernanceChangeDelay: (numBlocks: bigint) => Promise<void>;
|
|
496
623
|
setChainlinkFeed: (asset: `0x${string}`, feed: `0x${string}`, needsEthToUsd?: boolean, needsBtcToUsd?: boolean) => Promise<boolean>;
|
|
497
624
|
disableChainlinkPriceFeed: (asset: `0x${string}`) => Promise<boolean>;
|
|
498
625
|
setOraclePartnerId: (oracleId: bigint) => Promise<boolean>;
|
|
@@ -500,7 +627,10 @@ export type Contract = {
|
|
|
500
627
|
events: {
|
|
501
628
|
ChainlinkFeedAdded: (asset: `0x${string}`, chainlinkFeed: `0x${string}`, needsEthToUsd: boolean, needsBtcToUsd: boolean) => Promise<void>;
|
|
502
629
|
ChainlinkFeedDisabled: (asset: `0x${string}`) => Promise<void>;
|
|
503
|
-
|
|
630
|
+
GovChangeInitiated: (prevGov: `0x${string}`, newGov: `0x${string}`, confirmBlock: bigint) => Promise<void>;
|
|
631
|
+
GovChangeConfirmed: (prevGov: `0x${string}`, newGov: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
|
|
632
|
+
GovChangeCancelled: (cancelledGov: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
|
|
633
|
+
GovChangeDelaySet: (delayBlocks: bigint) => Promise<void>;
|
|
504
634
|
};
|
|
505
635
|
};
|
|
506
636
|
export type Calls = keyof Contract['calls'];
|
|
@@ -539,9 +669,13 @@ export declare const mutation: {
|
|
|
539
669
|
};
|
|
540
670
|
};
|
|
541
671
|
export type SDK = {
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
672
|
+
canGovern: (...args: ExtractArgs<Contract['calls']['canGovern']>) => Promise<CallReturn<'canGovern'>>;
|
|
673
|
+
hasPendingGovChange: (...args: ExtractArgs<Contract['calls']['hasPendingGovChange']>) => Promise<CallReturn<'hasPendingGovChange'>>;
|
|
674
|
+
governance: (...args: ExtractArgs<Contract['calls']['governance']>) => Promise<CallReturn<'governance'>>;
|
|
675
|
+
pendingGov: (...args: ExtractArgs<Contract['calls']['pendingGov']>) => Promise<CallReturn<'pendingGov'>>;
|
|
676
|
+
govChangeDelay: (...args: ExtractArgs<Contract['calls']['govChangeDelay']>) => Promise<CallReturn<'govChangeDelay'>>;
|
|
677
|
+
MIN_GOV_CHANGE_DELAY: (...args: ExtractArgs<Contract['calls']['MIN_GOV_CHANGE_DELAY']>) => Promise<CallReturn<'MIN_GOV_CHANGE_DELAY'>>;
|
|
678
|
+
MAX_GOV_CHANGE_DELAY: (...args: ExtractArgs<Contract['calls']['MAX_GOV_CHANGE_DELAY']>) => Promise<CallReturn<'MAX_GOV_CHANGE_DELAY'>>;
|
|
545
679
|
getConfiguredAssets: (...args: ExtractArgs<Contract['calls']['getConfiguredAssets']>) => Promise<CallReturn<'getConfiguredAssets'>>;
|
|
546
680
|
assets: (...args: ExtractArgs<Contract['calls']['assets']>) => Promise<CallReturn<'assets'>>;
|
|
547
681
|
indexOfAsset: (...args: ExtractArgs<Contract['calls']['indexOfAsset']>) => Promise<CallReturn<'indexOfAsset'>>;
|
|
@@ -557,7 +691,10 @@ export type SDK = {
|
|
|
557
691
|
WETH: (...args: ExtractArgs<Contract['calls']['WETH']>) => Promise<CallReturn<'WETH'>>;
|
|
558
692
|
ETH: (...args: ExtractArgs<Contract['calls']['ETH']>) => Promise<CallReturn<'ETH'>>;
|
|
559
693
|
BTC: (...args: ExtractArgs<Contract['calls']['BTC']>) => Promise<CallReturn<'BTC'>>;
|
|
560
|
-
|
|
694
|
+
changeGovernance: (...args: ExtractArgs<Contract['mutations']['changeGovernance']>) => Promise<Address>;
|
|
695
|
+
confirmGovernanceChange: (...args: ExtractArgs<Contract['mutations']['confirmGovernanceChange']>) => Promise<Address>;
|
|
696
|
+
cancelGovernanceChange: (...args: ExtractArgs<Contract['mutations']['cancelGovernanceChange']>) => Promise<Address>;
|
|
697
|
+
setGovernanceChangeDelay: (...args: ExtractArgs<Contract['mutations']['setGovernanceChangeDelay']>) => Promise<Address>;
|
|
561
698
|
setChainlinkFeed: (...args: ExtractArgs<Contract['mutations']['setChainlinkFeed']>) => Promise<Address>;
|
|
562
699
|
disableChainlinkPriceFeed: (...args: ExtractArgs<Contract['mutations']['disableChainlinkPriceFeed']>) => Promise<Address>;
|
|
563
700
|
setOraclePartnerId: (...args: ExtractArgs<Contract['mutations']['setOraclePartnerId']>) => Promise<Address>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainlinkFeeds.d.ts","sourceRoot":"","sources":["../../src/contracts/ChainlinkFeeds.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,GAAG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O,CAAC,OAAO,CAAC,CAAA;IACnH,wBAAwB,EAAE,CACxB,GAAG,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,0BAA0B,CAAC,CAAC,KACpE,OAAO,CAAC,OAAO,CAAC,CAAA;IACrB,gBAAgB,EAAE,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,kBAAkB,CAAC,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IACvG,yBAAyB,EAAE,CACzB,GAAG,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,2BAA2B,CAAC,CAAC,KACrE,OAAO,CAAC,OAAO,CAAC,CAAA;IACrB,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"}
|
|
@@ -48,11 +48,82 @@ export const abi = [
|
|
|
48
48
|
inputs: [
|
|
49
49
|
{
|
|
50
50
|
indexed: true,
|
|
51
|
-
name: '
|
|
51
|
+
name: 'prevGov',
|
|
52
52
|
type: 'address',
|
|
53
53
|
},
|
|
54
|
+
{
|
|
55
|
+
indexed: true,
|
|
56
|
+
name: 'newGov',
|
|
57
|
+
type: 'address',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
indexed: false,
|
|
61
|
+
name: 'confirmBlock',
|
|
62
|
+
type: 'uint256',
|
|
63
|
+
},
|
|
54
64
|
],
|
|
55
|
-
name: '
|
|
65
|
+
name: 'GovChangeInitiated',
|
|
66
|
+
type: 'event',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
anonymous: false,
|
|
70
|
+
inputs: [
|
|
71
|
+
{
|
|
72
|
+
indexed: true,
|
|
73
|
+
name: 'prevGov',
|
|
74
|
+
type: 'address',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
indexed: true,
|
|
78
|
+
name: 'newGov',
|
|
79
|
+
type: 'address',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
indexed: false,
|
|
83
|
+
name: 'initiatedBlock',
|
|
84
|
+
type: 'uint256',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
indexed: false,
|
|
88
|
+
name: 'confirmBlock',
|
|
89
|
+
type: 'uint256',
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
name: 'GovChangeConfirmed',
|
|
93
|
+
type: 'event',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
anonymous: false,
|
|
97
|
+
inputs: [
|
|
98
|
+
{
|
|
99
|
+
indexed: true,
|
|
100
|
+
name: 'cancelledGov',
|
|
101
|
+
type: 'address',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
indexed: false,
|
|
105
|
+
name: 'initiatedBlock',
|
|
106
|
+
type: 'uint256',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
indexed: false,
|
|
110
|
+
name: 'confirmBlock',
|
|
111
|
+
type: 'uint256',
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
name: 'GovChangeCancelled',
|
|
115
|
+
type: 'event',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
anonymous: false,
|
|
119
|
+
inputs: [
|
|
120
|
+
{
|
|
121
|
+
indexed: false,
|
|
122
|
+
name: 'delayBlocks',
|
|
123
|
+
type: 'uint256',
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
name: 'GovChangeDelaySet',
|
|
56
127
|
type: 'event',
|
|
57
128
|
},
|
|
58
129
|
{
|
|
@@ -62,7 +133,19 @@ export const abi = [
|
|
|
62
133
|
type: 'address',
|
|
63
134
|
},
|
|
64
135
|
],
|
|
65
|
-
name: '
|
|
136
|
+
name: 'canGovern',
|
|
137
|
+
outputs: [
|
|
138
|
+
{
|
|
139
|
+
name: '',
|
|
140
|
+
type: 'bool',
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
stateMutability: 'view',
|
|
144
|
+
type: 'function',
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
inputs: [],
|
|
148
|
+
name: 'hasPendingGovChange',
|
|
66
149
|
outputs: [
|
|
67
150
|
{
|
|
68
151
|
name: '',
|
|
@@ -75,44 +158,110 @@ export const abi = [
|
|
|
75
158
|
{
|
|
76
159
|
inputs: [
|
|
77
160
|
{
|
|
78
|
-
name: '
|
|
161
|
+
name: '_newGov',
|
|
79
162
|
type: 'address',
|
|
80
163
|
},
|
|
81
164
|
],
|
|
82
|
-
name: '
|
|
165
|
+
name: 'changeGovernance',
|
|
166
|
+
outputs: [],
|
|
167
|
+
stateMutability: 'nonpayable',
|
|
168
|
+
type: 'function',
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
inputs: [],
|
|
172
|
+
name: 'confirmGovernanceChange',
|
|
173
|
+
outputs: [],
|
|
174
|
+
stateMutability: 'nonpayable',
|
|
175
|
+
type: 'function',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
inputs: [],
|
|
179
|
+
name: 'cancelGovernanceChange',
|
|
180
|
+
outputs: [],
|
|
181
|
+
stateMutability: 'nonpayable',
|
|
182
|
+
type: 'function',
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
inputs: [
|
|
186
|
+
{
|
|
187
|
+
name: '_numBlocks',
|
|
188
|
+
type: 'uint256',
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
name: 'setGovernanceChangeDelay',
|
|
192
|
+
outputs: [],
|
|
193
|
+
stateMutability: 'nonpayable',
|
|
194
|
+
type: 'function',
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
inputs: [],
|
|
198
|
+
name: 'governance',
|
|
83
199
|
outputs: [
|
|
84
200
|
{
|
|
85
201
|
name: '',
|
|
86
|
-
type: '
|
|
202
|
+
type: 'address',
|
|
87
203
|
},
|
|
88
204
|
],
|
|
89
205
|
stateMutability: 'view',
|
|
90
206
|
type: 'function',
|
|
91
207
|
},
|
|
92
208
|
{
|
|
93
|
-
inputs: [
|
|
209
|
+
inputs: [],
|
|
210
|
+
name: 'pendingGov',
|
|
211
|
+
outputs: [
|
|
94
212
|
{
|
|
95
|
-
|
|
96
|
-
|
|
213
|
+
components: [
|
|
214
|
+
{
|
|
215
|
+
name: 'newGov',
|
|
216
|
+
type: 'address',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
name: 'initiatedBlock',
|
|
220
|
+
type: 'uint256',
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
name: 'confirmBlock',
|
|
224
|
+
type: 'uint256',
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
name: '',
|
|
228
|
+
type: 'tuple',
|
|
229
|
+
},
|
|
230
|
+
],
|
|
231
|
+
stateMutability: 'view',
|
|
232
|
+
type: 'function',
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
inputs: [],
|
|
236
|
+
name: 'govChangeDelay',
|
|
237
|
+
outputs: [
|
|
238
|
+
{
|
|
239
|
+
name: '',
|
|
240
|
+
type: 'uint256',
|
|
97
241
|
},
|
|
98
242
|
],
|
|
99
|
-
|
|
243
|
+
stateMutability: 'view',
|
|
244
|
+
type: 'function',
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
inputs: [],
|
|
248
|
+
name: 'MIN_GOV_CHANGE_DELAY',
|
|
100
249
|
outputs: [
|
|
101
250
|
{
|
|
102
251
|
name: '',
|
|
103
|
-
type: '
|
|
252
|
+
type: 'uint256',
|
|
104
253
|
},
|
|
105
254
|
],
|
|
106
|
-
stateMutability: '
|
|
255
|
+
stateMutability: 'view',
|
|
107
256
|
type: 'function',
|
|
108
257
|
},
|
|
109
258
|
{
|
|
110
259
|
inputs: [],
|
|
111
|
-
name: '
|
|
260
|
+
name: 'MAX_GOV_CHANGE_DELAY',
|
|
112
261
|
outputs: [
|
|
113
262
|
{
|
|
114
263
|
name: '',
|
|
115
|
-
type: '
|
|
264
|
+
type: 'uint256',
|
|
116
265
|
},
|
|
117
266
|
],
|
|
118
267
|
stateMutability: 'view',
|
|
@@ -642,7 +791,7 @@ export const abi = [
|
|
|
642
791
|
type: 'constructor',
|
|
643
792
|
},
|
|
644
793
|
];
|
|
645
|
-
export const deployAddress = '
|
|
794
|
+
export const deployAddress = '0x5e06882026739D91541b4F979FbF40057C75aB96';
|
|
646
795
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
647
796
|
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
648
797
|
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|
|
@@ -671,9 +820,13 @@ function getRequest(method, args, contractAddressOrOptions) {
|
|
|
671
820
|
return call;
|
|
672
821
|
}
|
|
673
822
|
export const call = {
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
823
|
+
canGovern: (...args) => getRequest('canGovern', args),
|
|
824
|
+
hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
|
|
825
|
+
governance: (...args) => getRequest('governance', args),
|
|
826
|
+
pendingGov: (...args) => getRequest('pendingGov', args),
|
|
827
|
+
govChangeDelay: (...args) => getRequest('govChangeDelay', args),
|
|
828
|
+
MIN_GOV_CHANGE_DELAY: (...args) => getRequest('MIN_GOV_CHANGE_DELAY', args),
|
|
829
|
+
MAX_GOV_CHANGE_DELAY: (...args) => getRequest('MAX_GOV_CHANGE_DELAY', args),
|
|
677
830
|
getConfiguredAssets: (...args) => getRequest('getConfiguredAssets', args),
|
|
678
831
|
assets: (...args) => getRequest('assets', args),
|
|
679
832
|
indexOfAsset: (...args) => getRequest('indexOfAsset', args),
|
|
@@ -700,7 +853,10 @@ function getMutation(functionName) {
|
|
|
700
853
|
};
|
|
701
854
|
}
|
|
702
855
|
export const mutation = {
|
|
703
|
-
|
|
856
|
+
changeGovernance: getMutation('changeGovernance'),
|
|
857
|
+
confirmGovernanceChange: getMutation('confirmGovernanceChange'),
|
|
858
|
+
cancelGovernanceChange: getMutation('cancelGovernanceChange'),
|
|
859
|
+
setGovernanceChangeDelay: getMutation('setGovernanceChangeDelay'),
|
|
704
860
|
setChainlinkFeed: getMutation('setChainlinkFeed'),
|
|
705
861
|
disableChainlinkPriceFeed: getMutation('disableChainlinkPriceFeed'),
|
|
706
862
|
setOraclePartnerId: getMutation('setOraclePartnerId'),
|
|
@@ -708,9 +864,13 @@ export const mutation = {
|
|
|
708
864
|
export function toSdk(publicClient, walletClient) {
|
|
709
865
|
return {
|
|
710
866
|
// Queries
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
867
|
+
canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
|
|
868
|
+
hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
|
|
869
|
+
governance: (...args) => singleQuery(publicClient, call.governance(...args)),
|
|
870
|
+
pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
|
|
871
|
+
govChangeDelay: (...args) => singleQuery(publicClient, call.govChangeDelay(...args)),
|
|
872
|
+
MIN_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_GOV_CHANGE_DELAY(...args)),
|
|
873
|
+
MAX_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_GOV_CHANGE_DELAY(...args)),
|
|
714
874
|
getConfiguredAssets: (...args) => singleQuery(publicClient, call.getConfiguredAssets(...args)),
|
|
715
875
|
assets: (...args) => singleQuery(publicClient, call.assets(...args)),
|
|
716
876
|
indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
|
|
@@ -727,7 +887,10 @@ export function toSdk(publicClient, walletClient) {
|
|
|
727
887
|
ETH: (...args) => singleQuery(publicClient, call.ETH(...args)),
|
|
728
888
|
BTC: (...args) => singleQuery(publicClient, call.BTC(...args)),
|
|
729
889
|
// Mutations
|
|
730
|
-
|
|
890
|
+
changeGovernance: (...args) => mutate(walletClient, mutation.changeGovernance)(...args),
|
|
891
|
+
confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
|
|
892
|
+
cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
|
|
893
|
+
setGovernanceChangeDelay: (...args) => mutate(walletClient, mutation.setGovernanceChangeDelay)(...args),
|
|
731
894
|
setChainlinkFeed: (...args) => mutate(walletClient, mutation.setChainlinkFeed)(...args),
|
|
732
895
|
disableChainlinkPriceFeed: (...args) => mutate(walletClient, mutation.disableChainlinkPriceFeed)(...args),
|
|
733
896
|
setOraclePartnerId: (...args) => mutate(walletClient, mutation.setOraclePartnerId)(...args),
|