@superfluid-finance/sdk-core 0.2.0 → 0.2.1-dev.1ca1d14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.umd.js +101 -26
- package/dist/main/abi/SuperToken.json +98 -25
- package/dist/main/subgraph/SubgraphClient.d.ts +3 -3
- package/dist/main/subgraph/SubgraphClient.d.ts.map +1 -1
- package/dist/main/subgraph/SubgraphClient.js +1 -1
- package/dist/main/subgraph/SubgraphClient.js.map +1 -1
- package/dist/main/typechain/SuperToken.d.ts +48 -14
- package/dist/main/typechain/SuperToken.d.ts.map +1 -1
- package/dist/main/typechain/factories/SuperToken__factory.d.ts.map +1 -1
- package/dist/main/typechain/factories/SuperToken__factory.js +98 -25
- package/dist/main/typechain/factories/SuperToken__factory.js.map +1 -1
- package/dist/main/utils.d.ts.map +1 -1
- package/dist/main/utils.js +2 -0
- package/dist/main/utils.js.map +1 -1
- package/dist/module/abi/SuperToken.json +98 -25
- package/dist/module/subgraph/SubgraphClient.d.ts +3 -3
- package/dist/module/subgraph/SubgraphClient.d.ts.map +1 -1
- package/dist/module/subgraph/SubgraphClient.js +1 -1
- package/dist/module/subgraph/SubgraphClient.js.map +1 -1
- package/dist/module/typechain/SuperToken.d.ts +48 -14
- package/dist/module/typechain/SuperToken.d.ts.map +1 -1
- package/dist/module/typechain/factories/SuperToken__factory.d.ts.map +1 -1
- package/dist/module/typechain/factories/SuperToken__factory.js +98 -25
- package/dist/module/typechain/factories/SuperToken__factory.js.map +1 -1
- package/dist/module/utils.d.ts.map +1 -1
- package/dist/module/utils.js +2 -0
- package/dist/module/utils.js.map +1 -1
- package/package.json +9 -5
package/dist/index.umd.js
CHANGED
|
@@ -59667,31 +59667,6 @@ module.exports={ "abi": [
|
|
|
59667
59667
|
"stateMutability": "nonpayable",
|
|
59668
59668
|
"type": "constructor"
|
|
59669
59669
|
},
|
|
59670
|
-
{
|
|
59671
|
-
"anonymous": false,
|
|
59672
|
-
"inputs": [
|
|
59673
|
-
{
|
|
59674
|
-
"indexed": true,
|
|
59675
|
-
"internalType": "address",
|
|
59676
|
-
"name": "agreementClass",
|
|
59677
|
-
"type": "address"
|
|
59678
|
-
},
|
|
59679
|
-
{
|
|
59680
|
-
"indexed": true,
|
|
59681
|
-
"internalType": "address",
|
|
59682
|
-
"name": "account",
|
|
59683
|
-
"type": "address"
|
|
59684
|
-
},
|
|
59685
|
-
{
|
|
59686
|
-
"indexed": false,
|
|
59687
|
-
"internalType": "bytes",
|
|
59688
|
-
"name": "state",
|
|
59689
|
-
"type": "bytes"
|
|
59690
|
-
}
|
|
59691
|
-
],
|
|
59692
|
-
"name": "AgreementAccountStateUpdated",
|
|
59693
|
-
"type": "event"
|
|
59694
|
-
},
|
|
59695
59670
|
{
|
|
59696
59671
|
"anonymous": false,
|
|
59697
59672
|
"inputs": [
|
|
@@ -59803,6 +59778,61 @@ module.exports={ "abi": [
|
|
|
59803
59778
|
"name": "AgreementLiquidatedBy",
|
|
59804
59779
|
"type": "event"
|
|
59805
59780
|
},
|
|
59781
|
+
{
|
|
59782
|
+
"anonymous": false,
|
|
59783
|
+
"inputs": [
|
|
59784
|
+
{
|
|
59785
|
+
"indexed": true,
|
|
59786
|
+
"internalType": "address",
|
|
59787
|
+
"name": "agreementClass",
|
|
59788
|
+
"type": "address"
|
|
59789
|
+
},
|
|
59790
|
+
{
|
|
59791
|
+
"indexed": false,
|
|
59792
|
+
"internalType": "bytes32",
|
|
59793
|
+
"name": "id",
|
|
59794
|
+
"type": "bytes32"
|
|
59795
|
+
},
|
|
59796
|
+
{
|
|
59797
|
+
"indexed": true,
|
|
59798
|
+
"internalType": "address",
|
|
59799
|
+
"name": "liquidatorAccount",
|
|
59800
|
+
"type": "address"
|
|
59801
|
+
},
|
|
59802
|
+
{
|
|
59803
|
+
"indexed": true,
|
|
59804
|
+
"internalType": "address",
|
|
59805
|
+
"name": "targetAccount",
|
|
59806
|
+
"type": "address"
|
|
59807
|
+
},
|
|
59808
|
+
{
|
|
59809
|
+
"indexed": false,
|
|
59810
|
+
"internalType": "address",
|
|
59811
|
+
"name": "rewardAccount",
|
|
59812
|
+
"type": "address"
|
|
59813
|
+
},
|
|
59814
|
+
{
|
|
59815
|
+
"indexed": false,
|
|
59816
|
+
"internalType": "uint256",
|
|
59817
|
+
"name": "rewardAmount",
|
|
59818
|
+
"type": "uint256"
|
|
59819
|
+
},
|
|
59820
|
+
{
|
|
59821
|
+
"indexed": false,
|
|
59822
|
+
"internalType": "int256",
|
|
59823
|
+
"name": "targetAccountBalanceDelta",
|
|
59824
|
+
"type": "int256"
|
|
59825
|
+
},
|
|
59826
|
+
{
|
|
59827
|
+
"indexed": false,
|
|
59828
|
+
"internalType": "bytes",
|
|
59829
|
+
"name": "liquidationTypeData",
|
|
59830
|
+
"type": "bytes"
|
|
59831
|
+
}
|
|
59832
|
+
],
|
|
59833
|
+
"name": "AgreementLiquidatedV2",
|
|
59834
|
+
"type": "event"
|
|
59835
|
+
},
|
|
59806
59836
|
{
|
|
59807
59837
|
"anonymous": false,
|
|
59808
59838
|
"inputs": [
|
|
@@ -60398,6 +60428,49 @@ module.exports={ "abi": [
|
|
|
60398
60428
|
"stateMutability": "nonpayable",
|
|
60399
60429
|
"type": "function"
|
|
60400
60430
|
},
|
|
60431
|
+
{
|
|
60432
|
+
"inputs": [
|
|
60433
|
+
{
|
|
60434
|
+
"internalType": "bytes32",
|
|
60435
|
+
"name": "id",
|
|
60436
|
+
"type": "bytes32"
|
|
60437
|
+
},
|
|
60438
|
+
{
|
|
60439
|
+
"internalType": "bytes",
|
|
60440
|
+
"name": "liquidationTypeData",
|
|
60441
|
+
"type": "bytes"
|
|
60442
|
+
},
|
|
60443
|
+
{
|
|
60444
|
+
"internalType": "address",
|
|
60445
|
+
"name": "liquidatorAccount",
|
|
60446
|
+
"type": "address"
|
|
60447
|
+
},
|
|
60448
|
+
{
|
|
60449
|
+
"internalType": "bool",
|
|
60450
|
+
"name": "useDefaultRewardAccount",
|
|
60451
|
+
"type": "bool"
|
|
60452
|
+
},
|
|
60453
|
+
{
|
|
60454
|
+
"internalType": "address",
|
|
60455
|
+
"name": "targetAccount",
|
|
60456
|
+
"type": "address"
|
|
60457
|
+
},
|
|
60458
|
+
{
|
|
60459
|
+
"internalType": "uint256",
|
|
60460
|
+
"name": "rewardAmount",
|
|
60461
|
+
"type": "uint256"
|
|
60462
|
+
},
|
|
60463
|
+
{
|
|
60464
|
+
"internalType": "int256",
|
|
60465
|
+
"name": "targetAccountBalanceDelta",
|
|
60466
|
+
"type": "int256"
|
|
60467
|
+
}
|
|
60468
|
+
],
|
|
60469
|
+
"name": "makeLiquidationPayoutsV2",
|
|
60470
|
+
"outputs": [],
|
|
60471
|
+
"stateMutability": "nonpayable",
|
|
60472
|
+
"type": "function"
|
|
60473
|
+
},
|
|
60401
60474
|
{
|
|
60402
60475
|
"inputs": [
|
|
60403
60476
|
{
|
|
@@ -63230,7 +63303,7 @@ exports.SubgraphClient = SubgraphClient;
|
|
|
63230
63303
|
// Remove properties with null, undefined, empty string values.
|
|
63231
63304
|
function cleanVariables(variables) {
|
|
63232
63305
|
return Object.fromEntries(Object.entries(variables)
|
|
63233
|
-
.filter(([
|
|
63306
|
+
.filter(([, value]) => value !== "" && value !== null && value !== undefined)
|
|
63234
63307
|
.map(([key, value]) => [
|
|
63235
63308
|
key,
|
|
63236
63309
|
value === Object(value) && !Array.isArray(value)
|
|
@@ -63450,6 +63523,8 @@ const getBalance = ({ currentBalance, netFlowRate, currentTimestamp, updatedAtTi
|
|
|
63450
63523
|
(0, exports.subscriptionTotalAmountReceivedSinceUpdated)(indexSubscriptions));
|
|
63451
63524
|
};
|
|
63452
63525
|
exports.getBalance = getBalance;
|
|
63526
|
+
// NOTE: This is the only places we are allowed to use explicit any in the
|
|
63527
|
+
// sdk-core otherwise this doesn't work properly.
|
|
63453
63528
|
const isEthersProvider = (provider) => !!provider.getNetwork;
|
|
63454
63529
|
exports.isEthersProvider = isEthersProvider;
|
|
63455
63530
|
const isInjectedWeb3 = (provider) => !!provider.currentProvider;
|
|
@@ -10,31 +10,6 @@
|
|
|
10
10
|
"stateMutability": "nonpayable",
|
|
11
11
|
"type": "constructor"
|
|
12
12
|
},
|
|
13
|
-
{
|
|
14
|
-
"anonymous": false,
|
|
15
|
-
"inputs": [
|
|
16
|
-
{
|
|
17
|
-
"indexed": true,
|
|
18
|
-
"internalType": "address",
|
|
19
|
-
"name": "agreementClass",
|
|
20
|
-
"type": "address"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"indexed": true,
|
|
24
|
-
"internalType": "address",
|
|
25
|
-
"name": "account",
|
|
26
|
-
"type": "address"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"indexed": false,
|
|
30
|
-
"internalType": "bytes",
|
|
31
|
-
"name": "state",
|
|
32
|
-
"type": "bytes"
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
"name": "AgreementAccountStateUpdated",
|
|
36
|
-
"type": "event"
|
|
37
|
-
},
|
|
38
13
|
{
|
|
39
14
|
"anonymous": false,
|
|
40
15
|
"inputs": [
|
|
@@ -146,6 +121,61 @@
|
|
|
146
121
|
"name": "AgreementLiquidatedBy",
|
|
147
122
|
"type": "event"
|
|
148
123
|
},
|
|
124
|
+
{
|
|
125
|
+
"anonymous": false,
|
|
126
|
+
"inputs": [
|
|
127
|
+
{
|
|
128
|
+
"indexed": true,
|
|
129
|
+
"internalType": "address",
|
|
130
|
+
"name": "agreementClass",
|
|
131
|
+
"type": "address"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"indexed": false,
|
|
135
|
+
"internalType": "bytes32",
|
|
136
|
+
"name": "id",
|
|
137
|
+
"type": "bytes32"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"indexed": true,
|
|
141
|
+
"internalType": "address",
|
|
142
|
+
"name": "liquidatorAccount",
|
|
143
|
+
"type": "address"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"indexed": true,
|
|
147
|
+
"internalType": "address",
|
|
148
|
+
"name": "targetAccount",
|
|
149
|
+
"type": "address"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"indexed": false,
|
|
153
|
+
"internalType": "address",
|
|
154
|
+
"name": "rewardAccount",
|
|
155
|
+
"type": "address"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"indexed": false,
|
|
159
|
+
"internalType": "uint256",
|
|
160
|
+
"name": "rewardAmount",
|
|
161
|
+
"type": "uint256"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"indexed": false,
|
|
165
|
+
"internalType": "int256",
|
|
166
|
+
"name": "targetAccountBalanceDelta",
|
|
167
|
+
"type": "int256"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"indexed": false,
|
|
171
|
+
"internalType": "bytes",
|
|
172
|
+
"name": "liquidationTypeData",
|
|
173
|
+
"type": "bytes"
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"name": "AgreementLiquidatedV2",
|
|
177
|
+
"type": "event"
|
|
178
|
+
},
|
|
149
179
|
{
|
|
150
180
|
"anonymous": false,
|
|
151
181
|
"inputs": [
|
|
@@ -741,6 +771,49 @@
|
|
|
741
771
|
"stateMutability": "nonpayable",
|
|
742
772
|
"type": "function"
|
|
743
773
|
},
|
|
774
|
+
{
|
|
775
|
+
"inputs": [
|
|
776
|
+
{
|
|
777
|
+
"internalType": "bytes32",
|
|
778
|
+
"name": "id",
|
|
779
|
+
"type": "bytes32"
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"internalType": "bytes",
|
|
783
|
+
"name": "liquidationTypeData",
|
|
784
|
+
"type": "bytes"
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"internalType": "address",
|
|
788
|
+
"name": "liquidatorAccount",
|
|
789
|
+
"type": "address"
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"internalType": "bool",
|
|
793
|
+
"name": "useDefaultRewardAccount",
|
|
794
|
+
"type": "bool"
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
"internalType": "address",
|
|
798
|
+
"name": "targetAccount",
|
|
799
|
+
"type": "address"
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
"internalType": "uint256",
|
|
803
|
+
"name": "rewardAmount",
|
|
804
|
+
"type": "uint256"
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"internalType": "int256",
|
|
808
|
+
"name": "targetAccountBalanceDelta",
|
|
809
|
+
"type": "int256"
|
|
810
|
+
}
|
|
811
|
+
],
|
|
812
|
+
"name": "makeLiquidationPayoutsV2",
|
|
813
|
+
"outputs": [],
|
|
814
|
+
"stateMutability": "nonpayable",
|
|
815
|
+
"type": "function"
|
|
816
|
+
},
|
|
744
817
|
{
|
|
745
818
|
"inputs": [
|
|
746
819
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DocumentNode } from "graphql";
|
|
2
2
|
declare type RequestDocument = string | DocumentNode;
|
|
3
3
|
export declare type Variables = {
|
|
4
|
-
[key: string]:
|
|
4
|
+
[key: string]: unknown;
|
|
5
5
|
};
|
|
6
6
|
export declare type BatchRequestDocument<V = Variables> = {
|
|
7
7
|
document: RequestDocument;
|
|
@@ -10,8 +10,8 @@ export declare type BatchRequestDocument<V = Variables> = {
|
|
|
10
10
|
export declare class SubgraphClient {
|
|
11
11
|
readonly subgraphUrl: string;
|
|
12
12
|
constructor(subgraphUrl: string);
|
|
13
|
-
request<T =
|
|
14
|
-
batchRequests<T =
|
|
13
|
+
request<T = unknown, V = Variables>(document: RequestDocument, variables?: V): Promise<T>;
|
|
14
|
+
batchRequests<T = unknown, V = Variables>(documents: BatchRequestDocument<V>[]): Promise<T>;
|
|
15
15
|
}
|
|
16
16
|
export {};
|
|
17
17
|
//# sourceMappingURL=SubgraphClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubgraphClient.d.ts","sourceRoot":"","sources":["../../../src/subgraph/SubgraphClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAKvC,aAAK,eAAe,GAAG,MAAM,GAAG,YAAY,CAAC;AAE7C,MAAM,CAAC,OAAO,MAAM,SAAS,GAAG;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"SubgraphClient.d.ts","sourceRoot":"","sources":["../../../src/subgraph/SubgraphClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAKvC,aAAK,eAAe,GAAG,MAAM,GAAG,YAAY,CAAC;AAE7C,MAAM,CAAC,OAAO,MAAM,SAAS,GAAG;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,CAAC,OAAO,MAAM,oBAAoB,CAAC,CAAC,GAAG,SAAS,IAAI;IACtD,QAAQ,EAAE,eAAe,CAAC;IAC1B,SAAS,CAAC,EAAE,CAAC,CAAC;CACjB,CAAC;AAEF,qBAAa,cAAc;IACX,QAAQ,CAAC,WAAW,EAAE,MAAM;gBAAnB,WAAW,EAAE,MAAM;IAElC,OAAO,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,SAAS,EACpC,QAAQ,EAAE,eAAe,EACzB,SAAS,CAAC,EAAE,CAAC,GACd,OAAO,CAAC,CAAC,CAAC;IAgBP,aAAa,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,SAAS,EAC1C,SAAS,EAAE,oBAAoB,CAAC,CAAC,CAAC,EAAE,GACrC,OAAO,CAAC,CAAC,CAAC;CAWhB"}
|
|
@@ -40,7 +40,7 @@ exports.SubgraphClient = SubgraphClient;
|
|
|
40
40
|
// Remove properties with null, undefined, empty string values.
|
|
41
41
|
function cleanVariables(variables) {
|
|
42
42
|
return Object.fromEntries(Object.entries(variables)
|
|
43
|
-
.filter(([
|
|
43
|
+
.filter(([, value]) => value !== "" && value !== null && value !== undefined)
|
|
44
44
|
.map(([key, value]) => [
|
|
45
45
|
key,
|
|
46
46
|
value === Object(value) && !Array.isArray(value)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubgraphClient.js","sourceRoot":"","sources":["../../../src/subgraph/SubgraphClient.ts"],"names":[],"mappings":";;;;;;AACA,qDAAyD;AAEzD,yDAAiC;AAajC,MAAa,cAAc;IACvB,YAAqB,WAAmB;QAAnB,gBAAW,GAAX,WAAW,CAAQ;IAAG,CAAC;IAE5C,KAAK,CAAC,OAAO,CACT,QAAyB,EACzB,SAAa;QAEb,IAAI;YACA,OAAO,MAAM,IAAA,yBAAO,EAChB,IAAI,CAAC,WAAW,EAChB,QAAQ,EACR,cAAc,CAAC,SAAS,CAAC,CAC5B,CAAC;SACL;QAAC,OAAO,GAAG,EAAE;YACV,MAAM,IAAI,iBAAO,CAAC;gBACd,IAAI,EAAE,gBAAgB;gBACtB,aAAa,EAAE,sCAAsC,QAAQ,EAAE;gBAC/D,WAAW,EAAE,GAAG;aACnB,CAAC,CAAC;SACN;IACL,CAAC;IAED,KAAK,CAAC,aAAa,CACf,SAAoC;QAEpC,IAAI;YACA,OAAO,MAAM,IAAA,+BAAa,EAAO,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;SACjE;QAAC,OAAO,GAAG,EAAE;YACV,MAAM,IAAI,iBAAO,CAAC;gBACd,IAAI,EAAE,gBAAgB;gBACtB,aAAa,EAAE,uCAAuC;gBACtD,WAAW,EAAE,GAAG;aACnB,CAAC,CAAC;SACN;IACL,CAAC;CACJ;AAnCD,wCAmCC;AAED,oDAAoD;AACpD,+DAA+D;AAC/D,SAAS,cAAc,CAAgB,SAAY;IAC/C,OAAO,MAAM,CAAC,WAAW,CACrB,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC;SACpB,MAAM,CACH,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"SubgraphClient.js","sourceRoot":"","sources":["../../../src/subgraph/SubgraphClient.ts"],"names":[],"mappings":";;;;;;AACA,qDAAyD;AAEzD,yDAAiC;AAajC,MAAa,cAAc;IACvB,YAAqB,WAAmB;QAAnB,gBAAW,GAAX,WAAW,CAAQ;IAAG,CAAC;IAE5C,KAAK,CAAC,OAAO,CACT,QAAyB,EACzB,SAAa;QAEb,IAAI;YACA,OAAO,MAAM,IAAA,yBAAO,EAChB,IAAI,CAAC,WAAW,EAChB,QAAQ,EACR,cAAc,CAAC,SAAS,CAAC,CAC5B,CAAC;SACL;QAAC,OAAO,GAAG,EAAE;YACV,MAAM,IAAI,iBAAO,CAAC;gBACd,IAAI,EAAE,gBAAgB;gBACtB,aAAa,EAAE,sCAAsC,QAAQ,EAAE;gBAC/D,WAAW,EAAE,GAAG;aACnB,CAAC,CAAC;SACN;IACL,CAAC;IAED,KAAK,CAAC,aAAa,CACf,SAAoC;QAEpC,IAAI;YACA,OAAO,MAAM,IAAA,+BAAa,EAAO,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;SACjE;QAAC,OAAO,GAAG,EAAE;YACV,MAAM,IAAI,iBAAO,CAAC;gBACd,IAAI,EAAE,gBAAgB;gBACtB,aAAa,EAAE,uCAAuC;gBACtD,WAAW,EAAE,GAAG;aACnB,CAAC,CAAC;SACN;IACL,CAAC;CACJ;AAnCD,wCAmCC;AAED,oDAAoD;AACpD,+DAA+D;AAC/D,SAAS,cAAc,CAAgB,SAAY;IAC/C,OAAO,MAAM,CAAC,WAAW,CACrB,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC;SACpB,MAAM,CACH,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CACV,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAC5D;SACA,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC;QACnB,GAAG;QACH,KAAK,KAAK,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;YAC5C,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC;YACvB,CAAC,CAAC,KAAK;KACd,CAAC,CACJ,CAAC;AACX,CAAC"}
|
|
@@ -15,6 +15,7 @@ export interface SuperTokenInterface extends utils.Interface {
|
|
|
15
15
|
"isAccountSolvent(address,uint256)": FunctionFragment;
|
|
16
16
|
"isAccountSolventNow(address)": FunctionFragment;
|
|
17
17
|
"makeLiquidationPayouts(bytes32,address,address,uint256,uint256)": FunctionFragment;
|
|
18
|
+
"makeLiquidationPayoutsV2(bytes32,bytes,address,bool,address,uint256,int256)": FunctionFragment;
|
|
18
19
|
"realtimeBalanceOf(address,uint256)": FunctionFragment;
|
|
19
20
|
"realtimeBalanceOfNow(address)": FunctionFragment;
|
|
20
21
|
"settleBalance(address,int256)": FunctionFragment;
|
|
@@ -67,6 +68,15 @@ export interface SuperTokenInterface extends utils.Interface {
|
|
|
67
68
|
encodeFunctionData(functionFragment: "isAccountSolvent", values: [string, BigNumberish]): string;
|
|
68
69
|
encodeFunctionData(functionFragment: "isAccountSolventNow", values: [string]): string;
|
|
69
70
|
encodeFunctionData(functionFragment: "makeLiquidationPayouts", values: [BytesLike, string, string, BigNumberish, BigNumberish]): string;
|
|
71
|
+
encodeFunctionData(functionFragment: "makeLiquidationPayoutsV2", values: [
|
|
72
|
+
BytesLike,
|
|
73
|
+
BytesLike,
|
|
74
|
+
string,
|
|
75
|
+
boolean,
|
|
76
|
+
string,
|
|
77
|
+
BigNumberish,
|
|
78
|
+
BigNumberish
|
|
79
|
+
]): string;
|
|
70
80
|
encodeFunctionData(functionFragment: "realtimeBalanceOf", values: [string, BigNumberish]): string;
|
|
71
81
|
encodeFunctionData(functionFragment: "realtimeBalanceOfNow", values: [string]): string;
|
|
72
82
|
encodeFunctionData(functionFragment: "settleBalance", values: [string, BigNumberish]): string;
|
|
@@ -118,6 +128,7 @@ export interface SuperTokenInterface extends utils.Interface {
|
|
|
118
128
|
decodeFunctionResult(functionFragment: "isAccountSolvent", data: BytesLike): Result;
|
|
119
129
|
decodeFunctionResult(functionFragment: "isAccountSolventNow", data: BytesLike): Result;
|
|
120
130
|
decodeFunctionResult(functionFragment: "makeLiquidationPayouts", data: BytesLike): Result;
|
|
131
|
+
decodeFunctionResult(functionFragment: "makeLiquidationPayoutsV2", data: BytesLike): Result;
|
|
121
132
|
decodeFunctionResult(functionFragment: "realtimeBalanceOf", data: BytesLike): Result;
|
|
122
133
|
decodeFunctionResult(functionFragment: "realtimeBalanceOfNow", data: BytesLike): Result;
|
|
123
134
|
decodeFunctionResult(functionFragment: "settleBalance", data: BytesLike): Result;
|
|
@@ -159,10 +170,10 @@ export interface SuperTokenInterface extends utils.Interface {
|
|
|
159
170
|
decodeFunctionResult(functionFragment: "operationUpgrade", data: BytesLike): Result;
|
|
160
171
|
decodeFunctionResult(functionFragment: "operationDowngrade", data: BytesLike): Result;
|
|
161
172
|
events: {
|
|
162
|
-
"AgreementAccountStateUpdated(address,address,bytes)": EventFragment;
|
|
163
173
|
"AgreementCreated(address,bytes32,bytes32[])": EventFragment;
|
|
164
174
|
"AgreementLiquidated(address,bytes32,address,address,uint256)": EventFragment;
|
|
165
175
|
"AgreementLiquidatedBy(address,address,bytes32,address,address,uint256,uint256)": EventFragment;
|
|
176
|
+
"AgreementLiquidatedV2(address,bytes32,address,address,address,uint256,int256,bytes)": EventFragment;
|
|
166
177
|
"AgreementStateUpdated(address,address,uint256)": EventFragment;
|
|
167
178
|
"AgreementTerminated(address,bytes32)": EventFragment;
|
|
168
179
|
"AgreementUpdated(address,bytes32,bytes32[])": EventFragment;
|
|
@@ -178,10 +189,10 @@ export interface SuperTokenInterface extends utils.Interface {
|
|
|
178
189
|
"TokenUpgraded(address,uint256)": EventFragment;
|
|
179
190
|
"Transfer(address,address,uint256)": EventFragment;
|
|
180
191
|
};
|
|
181
|
-
getEvent(nameOrSignatureOrTopic: "AgreementAccountStateUpdated"): EventFragment;
|
|
182
192
|
getEvent(nameOrSignatureOrTopic: "AgreementCreated"): EventFragment;
|
|
183
193
|
getEvent(nameOrSignatureOrTopic: "AgreementLiquidated"): EventFragment;
|
|
184
194
|
getEvent(nameOrSignatureOrTopic: "AgreementLiquidatedBy"): EventFragment;
|
|
195
|
+
getEvent(nameOrSignatureOrTopic: "AgreementLiquidatedV2"): EventFragment;
|
|
185
196
|
getEvent(nameOrSignatureOrTopic: "AgreementStateUpdated"): EventFragment;
|
|
186
197
|
getEvent(nameOrSignatureOrTopic: "AgreementTerminated"): EventFragment;
|
|
187
198
|
getEvent(nameOrSignatureOrTopic: "AgreementUpdated"): EventFragment;
|
|
@@ -197,16 +208,6 @@ export interface SuperTokenInterface extends utils.Interface {
|
|
|
197
208
|
getEvent(nameOrSignatureOrTopic: "TokenUpgraded"): EventFragment;
|
|
198
209
|
getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment;
|
|
199
210
|
}
|
|
200
|
-
export declare type AgreementAccountStateUpdatedEvent = TypedEvent<[
|
|
201
|
-
string,
|
|
202
|
-
string,
|
|
203
|
-
string
|
|
204
|
-
], {
|
|
205
|
-
agreementClass: string;
|
|
206
|
-
account: string;
|
|
207
|
-
state: string;
|
|
208
|
-
}>;
|
|
209
|
-
export declare type AgreementAccountStateUpdatedEventFilter = TypedEventFilter<AgreementAccountStateUpdatedEvent>;
|
|
210
211
|
export declare type AgreementCreatedEvent = TypedEvent<[
|
|
211
212
|
string,
|
|
212
213
|
string,
|
|
@@ -249,6 +250,26 @@ export declare type AgreementLiquidatedByEvent = TypedEvent<[
|
|
|
249
250
|
bailoutAmount: BigNumber;
|
|
250
251
|
}>;
|
|
251
252
|
export declare type AgreementLiquidatedByEventFilter = TypedEventFilter<AgreementLiquidatedByEvent>;
|
|
253
|
+
export declare type AgreementLiquidatedV2Event = TypedEvent<[
|
|
254
|
+
string,
|
|
255
|
+
string,
|
|
256
|
+
string,
|
|
257
|
+
string,
|
|
258
|
+
string,
|
|
259
|
+
BigNumber,
|
|
260
|
+
BigNumber,
|
|
261
|
+
string
|
|
262
|
+
], {
|
|
263
|
+
agreementClass: string;
|
|
264
|
+
id: string;
|
|
265
|
+
liquidatorAccount: string;
|
|
266
|
+
targetAccount: string;
|
|
267
|
+
rewardAccount: string;
|
|
268
|
+
rewardAmount: BigNumber;
|
|
269
|
+
targetAccountBalanceDelta: BigNumber;
|
|
270
|
+
liquidationTypeData: string;
|
|
271
|
+
}>;
|
|
272
|
+
export declare type AgreementLiquidatedV2EventFilter = TypedEventFilter<AgreementLiquidatedV2Event>;
|
|
252
273
|
export declare type AgreementStateUpdatedEvent = TypedEvent<[
|
|
253
274
|
string,
|
|
254
275
|
string,
|
|
@@ -435,6 +456,9 @@ export interface SuperToken extends BaseContract {
|
|
|
435
456
|
makeLiquidationPayouts(id: BytesLike, liquidator: string, penaltyAccount: string, rewardAmount: BigNumberish, bailoutAmount: BigNumberish, overrides?: Overrides & {
|
|
436
457
|
from?: string | Promise<string>;
|
|
437
458
|
}): Promise<ContractTransaction>;
|
|
459
|
+
makeLiquidationPayoutsV2(id: BytesLike, liquidationTypeData: BytesLike, liquidatorAccount: string, useDefaultRewardAccount: boolean, targetAccount: string, rewardAmount: BigNumberish, targetAccountBalanceDelta: BigNumberish, overrides?: Overrides & {
|
|
460
|
+
from?: string | Promise<string>;
|
|
461
|
+
}): Promise<ContractTransaction>;
|
|
438
462
|
realtimeBalanceOf(account: string, timestamp: BigNumberish, overrides?: CallOverrides): Promise<[
|
|
439
463
|
BigNumber,
|
|
440
464
|
BigNumber,
|
|
@@ -565,6 +589,9 @@ export interface SuperToken extends BaseContract {
|
|
|
565
589
|
makeLiquidationPayouts(id: BytesLike, liquidator: string, penaltyAccount: string, rewardAmount: BigNumberish, bailoutAmount: BigNumberish, overrides?: Overrides & {
|
|
566
590
|
from?: string | Promise<string>;
|
|
567
591
|
}): Promise<ContractTransaction>;
|
|
592
|
+
makeLiquidationPayoutsV2(id: BytesLike, liquidationTypeData: BytesLike, liquidatorAccount: string, useDefaultRewardAccount: boolean, targetAccount: string, rewardAmount: BigNumberish, targetAccountBalanceDelta: BigNumberish, overrides?: Overrides & {
|
|
593
|
+
from?: string | Promise<string>;
|
|
594
|
+
}): Promise<ContractTransaction>;
|
|
568
595
|
realtimeBalanceOf(account: string, timestamp: BigNumberish, overrides?: CallOverrides): Promise<[
|
|
569
596
|
BigNumber,
|
|
570
597
|
BigNumber,
|
|
@@ -689,6 +716,7 @@ export interface SuperToken extends BaseContract {
|
|
|
689
716
|
isAccountSolvent(account: string, timestamp: BigNumberish, overrides?: CallOverrides): Promise<boolean>;
|
|
690
717
|
isAccountSolventNow(account: string, overrides?: CallOverrides): Promise<boolean>;
|
|
691
718
|
makeLiquidationPayouts(id: BytesLike, liquidator: string, penaltyAccount: string, rewardAmount: BigNumberish, bailoutAmount: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
|
719
|
+
makeLiquidationPayoutsV2(id: BytesLike, liquidationTypeData: BytesLike, liquidatorAccount: string, useDefaultRewardAccount: boolean, targetAccount: string, rewardAmount: BigNumberish, targetAccountBalanceDelta: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
|
692
720
|
realtimeBalanceOf(account: string, timestamp: BigNumberish, overrides?: CallOverrides): Promise<[
|
|
693
721
|
BigNumber,
|
|
694
722
|
BigNumber,
|
|
@@ -749,14 +777,14 @@ export interface SuperToken extends BaseContract {
|
|
|
749
777
|
operationDowngrade(account: string, amount: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
|
750
778
|
};
|
|
751
779
|
filters: {
|
|
752
|
-
"AgreementAccountStateUpdated(address,address,bytes)"(agreementClass?: string | null, account?: string | null, state?: null): AgreementAccountStateUpdatedEventFilter;
|
|
753
|
-
AgreementAccountStateUpdated(agreementClass?: string | null, account?: string | null, state?: null): AgreementAccountStateUpdatedEventFilter;
|
|
754
780
|
"AgreementCreated(address,bytes32,bytes32[])"(agreementClass?: string | null, id?: null, data?: null): AgreementCreatedEventFilter;
|
|
755
781
|
AgreementCreated(agreementClass?: string | null, id?: null, data?: null): AgreementCreatedEventFilter;
|
|
756
782
|
"AgreementLiquidated(address,bytes32,address,address,uint256)"(agreementClass?: string | null, id?: null, penaltyAccount?: string | null, rewardAccount?: string | null, rewardAmount?: null): AgreementLiquidatedEventFilter;
|
|
757
783
|
AgreementLiquidated(agreementClass?: string | null, id?: null, penaltyAccount?: string | null, rewardAccount?: string | null, rewardAmount?: null): AgreementLiquidatedEventFilter;
|
|
758
784
|
"AgreementLiquidatedBy(address,address,bytes32,address,address,uint256,uint256)"(liquidatorAccount?: null, agreementClass?: string | null, id?: null, penaltyAccount?: string | null, bondAccount?: string | null, rewardAmount?: null, bailoutAmount?: null): AgreementLiquidatedByEventFilter;
|
|
759
785
|
AgreementLiquidatedBy(liquidatorAccount?: null, agreementClass?: string | null, id?: null, penaltyAccount?: string | null, bondAccount?: string | null, rewardAmount?: null, bailoutAmount?: null): AgreementLiquidatedByEventFilter;
|
|
786
|
+
"AgreementLiquidatedV2(address,bytes32,address,address,address,uint256,int256,bytes)"(agreementClass?: string | null, id?: null, liquidatorAccount?: string | null, targetAccount?: string | null, rewardAccount?: null, rewardAmount?: null, targetAccountBalanceDelta?: null, liquidationTypeData?: null): AgreementLiquidatedV2EventFilter;
|
|
787
|
+
AgreementLiquidatedV2(agreementClass?: string | null, id?: null, liquidatorAccount?: string | null, targetAccount?: string | null, rewardAccount?: null, rewardAmount?: null, targetAccountBalanceDelta?: null, liquidationTypeData?: null): AgreementLiquidatedV2EventFilter;
|
|
760
788
|
"AgreementStateUpdated(address,address,uint256)"(agreementClass?: string | null, account?: string | null, slotId?: null): AgreementStateUpdatedEventFilter;
|
|
761
789
|
AgreementStateUpdated(agreementClass?: string | null, account?: string | null, slotId?: null): AgreementStateUpdatedEventFilter;
|
|
762
790
|
"AgreementTerminated(address,bytes32)"(agreementClass?: string | null, id?: null): AgreementTerminatedEventFilter;
|
|
@@ -802,6 +830,9 @@ export interface SuperToken extends BaseContract {
|
|
|
802
830
|
makeLiquidationPayouts(id: BytesLike, liquidator: string, penaltyAccount: string, rewardAmount: BigNumberish, bailoutAmount: BigNumberish, overrides?: Overrides & {
|
|
803
831
|
from?: string | Promise<string>;
|
|
804
832
|
}): Promise<BigNumber>;
|
|
833
|
+
makeLiquidationPayoutsV2(id: BytesLike, liquidationTypeData: BytesLike, liquidatorAccount: string, useDefaultRewardAccount: boolean, targetAccount: string, rewardAmount: BigNumberish, targetAccountBalanceDelta: BigNumberish, overrides?: Overrides & {
|
|
834
|
+
from?: string | Promise<string>;
|
|
835
|
+
}): Promise<BigNumber>;
|
|
805
836
|
realtimeBalanceOf(account: string, timestamp: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
806
837
|
realtimeBalanceOfNow(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
807
838
|
settleBalance(account: string, delta: BigNumberish, overrides?: Overrides & {
|
|
@@ -913,6 +944,9 @@ export interface SuperToken extends BaseContract {
|
|
|
913
944
|
makeLiquidationPayouts(id: BytesLike, liquidator: string, penaltyAccount: string, rewardAmount: BigNumberish, bailoutAmount: BigNumberish, overrides?: Overrides & {
|
|
914
945
|
from?: string | Promise<string>;
|
|
915
946
|
}): Promise<PopulatedTransaction>;
|
|
947
|
+
makeLiquidationPayoutsV2(id: BytesLike, liquidationTypeData: BytesLike, liquidatorAccount: string, useDefaultRewardAccount: boolean, targetAccount: string, rewardAmount: BigNumberish, targetAccountBalanceDelta: BigNumberish, overrides?: Overrides & {
|
|
948
|
+
from?: string | Promise<string>;
|
|
949
|
+
}): Promise<PopulatedTransaction>;
|
|
916
950
|
realtimeBalanceOf(account: string, timestamp: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
917
951
|
realtimeBalanceOfNow(account: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
918
952
|
settleBalance(account: string, delta: BigNumberish, overrides?: Overrides & {
|