@superfluid-finance/sdk-core 0.5.1-dev.2ac801d.0 → 0.5.1-dev.7809571.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/CHANGELOG.md +3 -0
- package/dist/index.umd.js +11 -11
- package/dist/main/BatchCall.js +1 -1
- package/dist/main/BatchCall.js.map +1 -1
- package/dist/main/ConstantFlowAgreementV1.d.ts +1 -1
- package/dist/main/ConstantFlowAgreementV1.js +1 -1
- package/dist/main/Governance.js +2 -2
- package/dist/main/InstantDistributionAgreementV1.d.ts +3 -3
- package/dist/main/InstantDistributionAgreementV1.js +3 -3
- package/dist/main/Operation.d.ts +3 -3
- package/dist/main/Operation.js +3 -3
- package/dist/main/SFError.js +1 -1
- package/dist/main/SFError.js.map +1 -1
- package/dist/module/BatchCall.js +1 -1
- package/dist/module/BatchCall.js.map +1 -1
- package/dist/module/ConstantFlowAgreementV1.d.ts +1 -1
- package/dist/module/ConstantFlowAgreementV1.js +1 -1
- package/dist/module/Governance.js +2 -2
- package/dist/module/InstantDistributionAgreementV1.d.ts +3 -3
- package/dist/module/InstantDistributionAgreementV1.js +3 -3
- package/dist/module/Operation.d.ts +3 -3
- package/dist/module/Operation.js +3 -3
- package/dist/module/SFError.js +1 -1
- package/dist/module/SFError.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.umd.js
CHANGED
|
@@ -73909,7 +73909,7 @@ class BatchCall {
|
|
|
73909
73909
|
data,
|
|
73910
73910
|
};
|
|
73911
73911
|
}
|
|
73912
|
-
// Handles other cases which are not call
|
|
73912
|
+
// Handles other cases which are not call agreement operation
|
|
73913
73913
|
return {
|
|
73914
73914
|
operationType,
|
|
73915
73915
|
target: populatedTransaction.to,
|
|
@@ -74246,7 +74246,7 @@ class ConstantFlowAgreementV1 {
|
|
|
74246
74246
|
* @param timestamp last updated timestamp of flow
|
|
74247
74247
|
* @param flowRate the current flow rate
|
|
74248
74248
|
* @param deposit the deposit amount
|
|
74249
|
-
* @param owedDeposit any owed
|
|
74249
|
+
* @param owedDeposit any owed deposit
|
|
74250
74250
|
* @returns {IWeb3FlowInfo} sanitized web3 flow info
|
|
74251
74251
|
*/
|
|
74252
74252
|
this._sanitizeFlowInfo = (params) => {
|
|
@@ -74844,7 +74844,7 @@ class Governance {
|
|
|
74844
74844
|
*/
|
|
74845
74845
|
this.getGovernanceParameters = async ({ providerOrSigner, token = ethers_1.ethers.constants.AddressZero, }) => {
|
|
74846
74846
|
const pppPromise = this.getPPPConfig({ providerOrSigner, token });
|
|
74847
|
-
const
|
|
74847
|
+
const rewardPromise = this.getRewardAddress({
|
|
74848
74848
|
providerOrSigner,
|
|
74849
74849
|
token,
|
|
74850
74850
|
});
|
|
@@ -74854,7 +74854,7 @@ class Governance {
|
|
|
74854
74854
|
});
|
|
74855
74855
|
const data = await Promise.all([
|
|
74856
74856
|
pppPromise,
|
|
74857
|
-
|
|
74857
|
+
rewardPromise,
|
|
74858
74858
|
minimumDepositPromise,
|
|
74859
74859
|
]);
|
|
74860
74860
|
return {
|
|
@@ -75078,7 +75078,7 @@ class InstantDistributionAgreementV1 {
|
|
|
75078
75078
|
return this.host.populateCallAgreementTxnAndReturnOperation(this.options.config.idaV1Address, callData, params.userData, params.overrides);
|
|
75079
75079
|
};
|
|
75080
75080
|
/**
|
|
75081
|
-
* Revokes a Subscription, so the Subscriber will need to claim tokens when the Publisher
|
|
75081
|
+
* Revokes a Subscription, so the Subscriber will need to claim tokens when the Publisher distributes.
|
|
75082
75082
|
* @param indexId The id of the index.
|
|
75083
75083
|
* @param superToken The superToken of the index.
|
|
75084
75084
|
* @param subscriber The subscriber address whose subscription you want to revoke.
|
|
@@ -75102,7 +75102,7 @@ class InstantDistributionAgreementV1 {
|
|
|
75102
75102
|
* @param indexId The id of the index.
|
|
75103
75103
|
* @param superToken The superToken of the index.
|
|
75104
75104
|
* @param subscriber The subscriber address whose subscription you want to delete.
|
|
75105
|
-
* @param publisher The publisher address of the index you are
|
|
75105
|
+
* @param publisher The publisher address of the index you are targeting.
|
|
75106
75106
|
* @param userData Extra user data provided.
|
|
75107
75107
|
* @param overrides ethers overrides object for more control over the transaction sent.
|
|
75108
75108
|
* @returns {Operation} An instance of Operation which can be executed or batched.
|
|
@@ -75125,7 +75125,7 @@ class InstantDistributionAgreementV1 {
|
|
|
75125
75125
|
* @param indexId The id of the index.
|
|
75126
75126
|
* @param superToken The superToken of the index.
|
|
75127
75127
|
* @param subscriber The subscriber address whose subscription you want to delete.
|
|
75128
|
-
* @param publisher The publisher address of the index you are
|
|
75128
|
+
* @param publisher The publisher address of the index you are targeting.
|
|
75129
75129
|
* @param userData Extra user data provided.
|
|
75130
75130
|
* @param overrides ethers overrides object for more control over the transaction sent.
|
|
75131
75131
|
* @returns {Operation} An instance of Operation which can be executed or batched.
|
|
@@ -75164,7 +75164,7 @@ class Operation {
|
|
|
75164
75164
|
/**
|
|
75165
75165
|
* Executes the operation via the provided signer.
|
|
75166
75166
|
* @description Populates all fields of the transaction, signs it and sends it to the network.
|
|
75167
|
-
* @param signer The signer of the
|
|
75167
|
+
* @param signer The signer of the transaction
|
|
75168
75168
|
* @returns {ethers.providers.TransactionResponse} A TransactionResponse object which can be awaited
|
|
75169
75169
|
*/
|
|
75170
75170
|
this.exec = async (signer) => {
|
|
@@ -75201,7 +75201,7 @@ class Operation {
|
|
|
75201
75201
|
};
|
|
75202
75202
|
/**
|
|
75203
75203
|
* Signs the populated transaction via the provided signer (what you intend on sending to the network).
|
|
75204
|
-
* @param signer The signer of the
|
|
75204
|
+
* @param signer The signer of the transaction
|
|
75205
75205
|
* @returns {Promise<string>} Fully serialized, signed transaction
|
|
75206
75206
|
*/
|
|
75207
75207
|
this.getSignedTransaction = async (signer) => {
|
|
@@ -75221,7 +75221,7 @@ class Operation {
|
|
|
75221
75221
|
/**
|
|
75222
75222
|
* Gets the transaction hash of the transaction.
|
|
75223
75223
|
* @description Calculates this by getting the keccak256 hash of the signedTxn.
|
|
75224
|
-
* @param signer The signer of the
|
|
75224
|
+
* @param signer The signer of the transaction
|
|
75225
75225
|
* @returns {Promise<string>} The transaction hash of the transaction
|
|
75226
75226
|
*/
|
|
75227
75227
|
this.getTransactionHash = async (signer) => {
|
|
@@ -75543,7 +75543,7 @@ Caused by: ${JSON.stringify((0, serialize_error_1.serializeError)(cause), null,
|
|
|
75543
75543
|
: ""}`;
|
|
75544
75544
|
super(fullMessage, cause
|
|
75545
75545
|
? {
|
|
75546
|
-
cause: cause, // Currently "unknown" is not compatible with "cause" (because it
|
|
75546
|
+
cause: cause, // Currently "unknown" is not compatible with "cause" (because it expects "Error" and that's why we cast) but this was recently changed and merged to also allow "unknown": https://github.com/microsoft/TypeScript/pull/49639
|
|
75547
75547
|
}
|
|
75548
75548
|
: {});
|
|
75549
75549
|
// Fallback back environments where `Error.cause` is now yet natively supported
|
package/dist/main/BatchCall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BatchCall.js","sourceRoot":"","sources":["../../src/BatchCall.ts"],"names":[],"mappings":";;;;;AAAA,mCAAgC;AAEhC,kDAA0B;AAE1B,uCAAoC;AACpC,4EAAkD;AAClD,mCAA+E;AAa/E,MAAM,4BAA4B,GAAG,IAAI,GAAG,CAAwB;IAChE,CAAC,eAAe,EAAE,CAAC,CAAC;IACpB,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAC1B,CAAC,oBAAoB,EAAE,GAAG,CAAC;IAC3B,CAAC,sBAAsB,EAAE,GAAG,CAAC;IAC7B,CAAC,2BAA2B,EAAE,GAAG,CAAC;IAClC,CAAC,iBAAiB,EAAE,GAAG,CAAC;CAC3B,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAqB,SAAS;IAI1B,YAAY,OAA0B;QAKtC;;;;WAIG;QACH,iCAA4B,GAAG,CAAC,QAAgB,EAAuB,EAAE,CACrE,IAAA,iCAAyB,EAAC,yBAAa,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,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A+B,CACvC,CAAC;gBACF,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ;qBAC1B,OAAO,CAAC,MAAM,CAAC;qBACf,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;aAC/C;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,iBAAO,CAAC;oBACd,IAAI,EAAE,kBAAkB;oBACxB,OAAO,EAAE,+CAA+C;oBACxD,KAAK,EAAE,GAAG;iBACb,CAAC,CAAC;aACN;QACL,CAAC,CAAC;QA9HE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,cAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9C,CAAC;IAiED;;;OAGG;IACH,IAAI,+BAA+B;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACxC,IAAI,CAAC,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,CAChC,CAAC;IACN,CAAC;CAoDJ;AApID,4BAoIC"}
|
|
@@ -151,7 +151,7 @@ export default class ConstantFlowAgreementV1 {
|
|
|
151
151
|
* @param timestamp last updated timestamp of flow
|
|
152
152
|
* @param flowRate the current flow rate
|
|
153
153
|
* @param deposit the deposit amount
|
|
154
|
-
* @param owedDeposit any owed
|
|
154
|
+
* @param owedDeposit any owed deposit
|
|
155
155
|
* @returns {IWeb3FlowInfo} sanitized web3 flow info
|
|
156
156
|
*/
|
|
157
157
|
_sanitizeFlowInfo: (params: IWeb3FlowInfoParams) => IWeb3FlowInfo;
|
|
@@ -271,7 +271,7 @@ class ConstantFlowAgreementV1 {
|
|
|
271
271
|
* @param timestamp last updated timestamp of flow
|
|
272
272
|
* @param flowRate the current flow rate
|
|
273
273
|
* @param deposit the deposit amount
|
|
274
|
-
* @param owedDeposit any owed
|
|
274
|
+
* @param owedDeposit any owed deposit
|
|
275
275
|
* @returns {IWeb3FlowInfo} sanitized web3 flow info
|
|
276
276
|
*/
|
|
277
277
|
this._sanitizeFlowInfo = (params) => {
|
package/dist/main/Governance.js
CHANGED
|
@@ -54,7 +54,7 @@ class Governance {
|
|
|
54
54
|
*/
|
|
55
55
|
this.getGovernanceParameters = async ({ providerOrSigner, token = ethers_1.ethers.constants.AddressZero, }) => {
|
|
56
56
|
const pppPromise = this.getPPPConfig({ providerOrSigner, token });
|
|
57
|
-
const
|
|
57
|
+
const rewardPromise = this.getRewardAddress({
|
|
58
58
|
providerOrSigner,
|
|
59
59
|
token,
|
|
60
60
|
});
|
|
@@ -64,7 +64,7 @@ class Governance {
|
|
|
64
64
|
});
|
|
65
65
|
const data = await Promise.all([
|
|
66
66
|
pppPromise,
|
|
67
|
-
|
|
67
|
+
rewardPromise,
|
|
68
68
|
minimumDepositPromise,
|
|
69
69
|
]);
|
|
70
70
|
return {
|
|
@@ -84,7 +84,7 @@ export default class InstantDistributionAgreementV1 {
|
|
|
84
84
|
*/
|
|
85
85
|
approveSubscription: (params: IApproveSubscriptionParams) => Operation;
|
|
86
86
|
/**
|
|
87
|
-
* Revokes a Subscription, so the Subscriber will need to claim tokens when the Publisher
|
|
87
|
+
* Revokes a Subscription, so the Subscriber will need to claim tokens when the Publisher distributes.
|
|
88
88
|
* @param indexId The id of the index.
|
|
89
89
|
* @param superToken The superToken of the index.
|
|
90
90
|
* @param subscriber The subscriber address whose subscription you want to revoke.
|
|
@@ -98,7 +98,7 @@ export default class InstantDistributionAgreementV1 {
|
|
|
98
98
|
* @param indexId The id of the index.
|
|
99
99
|
* @param superToken The superToken of the index.
|
|
100
100
|
* @param subscriber The subscriber address whose subscription you want to delete.
|
|
101
|
-
* @param publisher The publisher address of the index you are
|
|
101
|
+
* @param publisher The publisher address of the index you are targeting.
|
|
102
102
|
* @param userData Extra user data provided.
|
|
103
103
|
* @param overrides ethers overrides object for more control over the transaction sent.
|
|
104
104
|
* @returns {Operation} An instance of Operation which can be executed or batched.
|
|
@@ -109,7 +109,7 @@ export default class InstantDistributionAgreementV1 {
|
|
|
109
109
|
* @param indexId The id of the index.
|
|
110
110
|
* @param superToken The superToken of the index.
|
|
111
111
|
* @param subscriber The subscriber address whose subscription you want to delete.
|
|
112
|
-
* @param publisher The publisher address of the index you are
|
|
112
|
+
* @param publisher The publisher address of the index you are targeting.
|
|
113
113
|
* @param userData Extra user data provided.
|
|
114
114
|
* @param overrides ethers overrides object for more control over the transaction sent.
|
|
115
115
|
* @returns {Operation} An instance of Operation which can be executed or batched.
|
|
@@ -173,7 +173,7 @@ class InstantDistributionAgreementV1 {
|
|
|
173
173
|
return this.host.populateCallAgreementTxnAndReturnOperation(this.options.config.idaV1Address, callData, params.userData, params.overrides);
|
|
174
174
|
};
|
|
175
175
|
/**
|
|
176
|
-
* Revokes a Subscription, so the Subscriber will need to claim tokens when the Publisher
|
|
176
|
+
* Revokes a Subscription, so the Subscriber will need to claim tokens when the Publisher distributes.
|
|
177
177
|
* @param indexId The id of the index.
|
|
178
178
|
* @param superToken The superToken of the index.
|
|
179
179
|
* @param subscriber The subscriber address whose subscription you want to revoke.
|
|
@@ -197,7 +197,7 @@ class InstantDistributionAgreementV1 {
|
|
|
197
197
|
* @param indexId The id of the index.
|
|
198
198
|
* @param superToken The superToken of the index.
|
|
199
199
|
* @param subscriber The subscriber address whose subscription you want to delete.
|
|
200
|
-
* @param publisher The publisher address of the index you are
|
|
200
|
+
* @param publisher The publisher address of the index you are targeting.
|
|
201
201
|
* @param userData Extra user data provided.
|
|
202
202
|
* @param overrides ethers overrides object for more control over the transaction sent.
|
|
203
203
|
* @returns {Operation} An instance of Operation which can be executed or batched.
|
|
@@ -220,7 +220,7 @@ class InstantDistributionAgreementV1 {
|
|
|
220
220
|
* @param indexId The id of the index.
|
|
221
221
|
* @param superToken The superToken of the index.
|
|
222
222
|
* @param subscriber The subscriber address whose subscription you want to delete.
|
|
223
|
-
* @param publisher The publisher address of the index you are
|
|
223
|
+
* @param publisher The publisher address of the index you are targeting.
|
|
224
224
|
* @param userData Extra user data provided.
|
|
225
225
|
* @param overrides ethers overrides object for more control over the transaction sent.
|
|
226
226
|
* @returns {Operation} An instance of Operation which can be executed or batched.
|
package/dist/main/Operation.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export default class Operation {
|
|
|
12
12
|
/**
|
|
13
13
|
* Executes the operation via the provided signer.
|
|
14
14
|
* @description Populates all fields of the transaction, signs it and sends it to the network.
|
|
15
|
-
* @param signer The signer of the
|
|
15
|
+
* @param signer The signer of the transaction
|
|
16
16
|
* @returns {ethers.providers.TransactionResponse} A TransactionResponse object which can be awaited
|
|
17
17
|
*/
|
|
18
18
|
exec: (signer: ethers.Signer) => Promise<ethers.providers.TransactionResponse>;
|
|
@@ -24,14 +24,14 @@ export default class Operation {
|
|
|
24
24
|
getPopulatedTransactionRequest: (signer: ethers.Signer) => Promise<TransactionRequest>;
|
|
25
25
|
/**
|
|
26
26
|
* Signs the populated transaction via the provided signer (what you intend on sending to the network).
|
|
27
|
-
* @param signer The signer of the
|
|
27
|
+
* @param signer The signer of the transaction
|
|
28
28
|
* @returns {Promise<string>} Fully serialized, signed transaction
|
|
29
29
|
*/
|
|
30
30
|
getSignedTransaction: (signer: ethers.Signer) => Promise<string>;
|
|
31
31
|
/**
|
|
32
32
|
* Gets the transaction hash of the transaction.
|
|
33
33
|
* @description Calculates this by getting the keccak256 hash of the signedTxn.
|
|
34
|
-
* @param signer The signer of the
|
|
34
|
+
* @param signer The signer of the transaction
|
|
35
35
|
* @returns {Promise<string>} The transaction hash of the transaction
|
|
36
36
|
*/
|
|
37
37
|
getTransactionHash: (signer: ethers.Signer) => Promise<string>;
|
package/dist/main/Operation.js
CHANGED
|
@@ -11,7 +11,7 @@ class Operation {
|
|
|
11
11
|
/**
|
|
12
12
|
* Executes the operation via the provided signer.
|
|
13
13
|
* @description Populates all fields of the transaction, signs it and sends it to the network.
|
|
14
|
-
* @param signer The signer of the
|
|
14
|
+
* @param signer The signer of the transaction
|
|
15
15
|
* @returns {ethers.providers.TransactionResponse} A TransactionResponse object which can be awaited
|
|
16
16
|
*/
|
|
17
17
|
this.exec = async (signer) => {
|
|
@@ -48,7 +48,7 @@ class Operation {
|
|
|
48
48
|
};
|
|
49
49
|
/**
|
|
50
50
|
* Signs the populated transaction via the provided signer (what you intend on sending to the network).
|
|
51
|
-
* @param signer The signer of the
|
|
51
|
+
* @param signer The signer of the transaction
|
|
52
52
|
* @returns {Promise<string>} Fully serialized, signed transaction
|
|
53
53
|
*/
|
|
54
54
|
this.getSignedTransaction = async (signer) => {
|
|
@@ -68,7 +68,7 @@ class Operation {
|
|
|
68
68
|
/**
|
|
69
69
|
* Gets the transaction hash of the transaction.
|
|
70
70
|
* @description Calculates this by getting the keccak256 hash of the signedTxn.
|
|
71
|
-
* @param signer The signer of the
|
|
71
|
+
* @param signer The signer of the transaction
|
|
72
72
|
* @returns {Promise<string>} The transaction hash of the transaction
|
|
73
73
|
*/
|
|
74
74
|
this.getTransactionHash = async (signer) => {
|
package/dist/main/SFError.js
CHANGED
|
@@ -30,7 +30,7 @@ Caused by: ${JSON.stringify((0, serialize_error_1.serializeError)(cause), null,
|
|
|
30
30
|
: ""}`;
|
|
31
31
|
super(fullMessage, cause
|
|
32
32
|
? {
|
|
33
|
-
cause: cause, // Currently "unknown" is not compatible with "cause" (because it
|
|
33
|
+
cause: cause, // Currently "unknown" is not compatible with "cause" (because it expects "Error" and that's why we cast) but this was recently changed and merged to also allow "unknown": https://github.com/microsoft/TypeScript/pull/49639
|
|
34
34
|
}
|
|
35
35
|
: {});
|
|
36
36
|
// Fallback back environments where `Error.cause` is now yet natively supported
|
package/dist/main/SFError.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SFError.js","sourceRoot":"","sources":["../../src/SFError.ts"],"names":[],"mappings":";;;AAAA,qDAAiD;AAsBjD,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAoB;IACnD,CAAC,0BAA0B,EAAE,0BAA0B,C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ACrC,IAAI;gBACA,MAAM,oBAAoB,GAAG,MAAM,OAAO,CAAC,GAAG,CAC1C,IAAI,CAAC,+BAA+B,CACvC,CAAC;gBACF,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ;qBAC1B,OAAO,CAAC,MAAM,CAAC;qBACf,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;aAC/C;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,OAAO,CAAC;oBACd,IAAI,EAAE,kBAAkB;oBACxB,OAAO,EAAE,+CAA+C;oBACxD,KAAK,EAAE,GAAG;iBACb,CAAC,CAAC;aACN;QACL,CAAC,CAAC;QA9HE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9C,CAAC;IAiED;;;OAGG;IACH,IAAI,+BAA+B;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACxC,IAAI,CAAC,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,CAChC,CAAC;IACN,CAAC;CAoDJ"}
|
|
@@ -151,7 +151,7 @@ export default class ConstantFlowAgreementV1 {
|
|
|
151
151
|
* @param timestamp last updated timestamp of flow
|
|
152
152
|
* @param flowRate the current flow rate
|
|
153
153
|
* @param deposit the deposit amount
|
|
154
|
-
* @param owedDeposit any owed
|
|
154
|
+
* @param owedDeposit any owed deposit
|
|
155
155
|
* @returns {IWeb3FlowInfo} sanitized web3 flow info
|
|
156
156
|
*/
|
|
157
157
|
_sanitizeFlowInfo: (params: IWeb3FlowInfoParams) => IWeb3FlowInfo;
|
|
@@ -266,7 +266,7 @@ export default class ConstantFlowAgreementV1 {
|
|
|
266
266
|
* @param timestamp last updated timestamp of flow
|
|
267
267
|
* @param flowRate the current flow rate
|
|
268
268
|
* @param deposit the deposit amount
|
|
269
|
-
* @param owedDeposit any owed
|
|
269
|
+
* @param owedDeposit any owed deposit
|
|
270
270
|
* @returns {IWeb3FlowInfo} sanitized web3 flow info
|
|
271
271
|
*/
|
|
272
272
|
this._sanitizeFlowInfo = (params) => {
|
|
@@ -49,7 +49,7 @@ export default class Governance {
|
|
|
49
49
|
*/
|
|
50
50
|
this.getGovernanceParameters = async ({ providerOrSigner, token = ethers.constants.AddressZero, }) => {
|
|
51
51
|
const pppPromise = this.getPPPConfig({ providerOrSigner, token });
|
|
52
|
-
const
|
|
52
|
+
const rewardPromise = this.getRewardAddress({
|
|
53
53
|
providerOrSigner,
|
|
54
54
|
token,
|
|
55
55
|
});
|
|
@@ -59,7 +59,7 @@ export default class Governance {
|
|
|
59
59
|
});
|
|
60
60
|
const data = await Promise.all([
|
|
61
61
|
pppPromise,
|
|
62
|
-
|
|
62
|
+
rewardPromise,
|
|
63
63
|
minimumDepositPromise,
|
|
64
64
|
]);
|
|
65
65
|
return {
|
|
@@ -84,7 +84,7 @@ export default class InstantDistributionAgreementV1 {
|
|
|
84
84
|
*/
|
|
85
85
|
approveSubscription: (params: IApproveSubscriptionParams) => Operation;
|
|
86
86
|
/**
|
|
87
|
-
* Revokes a Subscription, so the Subscriber will need to claim tokens when the Publisher
|
|
87
|
+
* Revokes a Subscription, so the Subscriber will need to claim tokens when the Publisher distributes.
|
|
88
88
|
* @param indexId The id of the index.
|
|
89
89
|
* @param superToken The superToken of the index.
|
|
90
90
|
* @param subscriber The subscriber address whose subscription you want to revoke.
|
|
@@ -98,7 +98,7 @@ export default class InstantDistributionAgreementV1 {
|
|
|
98
98
|
* @param indexId The id of the index.
|
|
99
99
|
* @param superToken The superToken of the index.
|
|
100
100
|
* @param subscriber The subscriber address whose subscription you want to delete.
|
|
101
|
-
* @param publisher The publisher address of the index you are
|
|
101
|
+
* @param publisher The publisher address of the index you are targeting.
|
|
102
102
|
* @param userData Extra user data provided.
|
|
103
103
|
* @param overrides ethers overrides object for more control over the transaction sent.
|
|
104
104
|
* @returns {Operation} An instance of Operation which can be executed or batched.
|
|
@@ -109,7 +109,7 @@ export default class InstantDistributionAgreementV1 {
|
|
|
109
109
|
* @param indexId The id of the index.
|
|
110
110
|
* @param superToken The superToken of the index.
|
|
111
111
|
* @param subscriber The subscriber address whose subscription you want to delete.
|
|
112
|
-
* @param publisher The publisher address of the index you are
|
|
112
|
+
* @param publisher The publisher address of the index you are targeting.
|
|
113
113
|
* @param userData Extra user data provided.
|
|
114
114
|
* @param overrides ethers overrides object for more control over the transaction sent.
|
|
115
115
|
* @returns {Operation} An instance of Operation which can be executed or batched.
|
|
@@ -168,7 +168,7 @@ export default class InstantDistributionAgreementV1 {
|
|
|
168
168
|
return this.host.populateCallAgreementTxnAndReturnOperation(this.options.config.idaV1Address, callData, params.userData, params.overrides);
|
|
169
169
|
};
|
|
170
170
|
/**
|
|
171
|
-
* Revokes a Subscription, so the Subscriber will need to claim tokens when the Publisher
|
|
171
|
+
* Revokes a Subscription, so the Subscriber will need to claim tokens when the Publisher distributes.
|
|
172
172
|
* @param indexId The id of the index.
|
|
173
173
|
* @param superToken The superToken of the index.
|
|
174
174
|
* @param subscriber The subscriber address whose subscription you want to revoke.
|
|
@@ -192,7 +192,7 @@ export default class InstantDistributionAgreementV1 {
|
|
|
192
192
|
* @param indexId The id of the index.
|
|
193
193
|
* @param superToken The superToken of the index.
|
|
194
194
|
* @param subscriber The subscriber address whose subscription you want to delete.
|
|
195
|
-
* @param publisher The publisher address of the index you are
|
|
195
|
+
* @param publisher The publisher address of the index you are targeting.
|
|
196
196
|
* @param userData Extra user data provided.
|
|
197
197
|
* @param overrides ethers overrides object for more control over the transaction sent.
|
|
198
198
|
* @returns {Operation} An instance of Operation which can be executed or batched.
|
|
@@ -215,7 +215,7 @@ export default class InstantDistributionAgreementV1 {
|
|
|
215
215
|
* @param indexId The id of the index.
|
|
216
216
|
* @param superToken The superToken of the index.
|
|
217
217
|
* @param subscriber The subscriber address whose subscription you want to delete.
|
|
218
|
-
* @param publisher The publisher address of the index you are
|
|
218
|
+
* @param publisher The publisher address of the index you are targeting.
|
|
219
219
|
* @param userData Extra user data provided.
|
|
220
220
|
* @param overrides ethers overrides object for more control over the transaction sent.
|
|
221
221
|
* @returns {Operation} An instance of Operation which can be executed or batched.
|
|
@@ -12,7 +12,7 @@ export default class Operation {
|
|
|
12
12
|
/**
|
|
13
13
|
* Executes the operation via the provided signer.
|
|
14
14
|
* @description Populates all fields of the transaction, signs it and sends it to the network.
|
|
15
|
-
* @param signer The signer of the
|
|
15
|
+
* @param signer The signer of the transaction
|
|
16
16
|
* @returns {ethers.providers.TransactionResponse} A TransactionResponse object which can be awaited
|
|
17
17
|
*/
|
|
18
18
|
exec: (signer: ethers.Signer) => Promise<ethers.providers.TransactionResponse>;
|
|
@@ -24,14 +24,14 @@ export default class Operation {
|
|
|
24
24
|
getPopulatedTransactionRequest: (signer: ethers.Signer) => Promise<TransactionRequest>;
|
|
25
25
|
/**
|
|
26
26
|
* Signs the populated transaction via the provided signer (what you intend on sending to the network).
|
|
27
|
-
* @param signer The signer of the
|
|
27
|
+
* @param signer The signer of the transaction
|
|
28
28
|
* @returns {Promise<string>} Fully serialized, signed transaction
|
|
29
29
|
*/
|
|
30
30
|
getSignedTransaction: (signer: ethers.Signer) => Promise<string>;
|
|
31
31
|
/**
|
|
32
32
|
* Gets the transaction hash of the transaction.
|
|
33
33
|
* @description Calculates this by getting the keccak256 hash of the signedTxn.
|
|
34
|
-
* @param signer The signer of the
|
|
34
|
+
* @param signer The signer of the transaction
|
|
35
35
|
* @returns {Promise<string>} The transaction hash of the transaction
|
|
36
36
|
*/
|
|
37
37
|
getTransactionHash: (signer: ethers.Signer) => Promise<string>;
|
package/dist/module/Operation.js
CHANGED
|
@@ -9,7 +9,7 @@ export default class Operation {
|
|
|
9
9
|
/**
|
|
10
10
|
* Executes the operation via the provided signer.
|
|
11
11
|
* @description Populates all fields of the transaction, signs it and sends it to the network.
|
|
12
|
-
* @param signer The signer of the
|
|
12
|
+
* @param signer The signer of the transaction
|
|
13
13
|
* @returns {ethers.providers.TransactionResponse} A TransactionResponse object which can be awaited
|
|
14
14
|
*/
|
|
15
15
|
this.exec = async (signer) => {
|
|
@@ -46,7 +46,7 @@ export default class Operation {
|
|
|
46
46
|
};
|
|
47
47
|
/**
|
|
48
48
|
* Signs the populated transaction via the provided signer (what you intend on sending to the network).
|
|
49
|
-
* @param signer The signer of the
|
|
49
|
+
* @param signer The signer of the transaction
|
|
50
50
|
* @returns {Promise<string>} Fully serialized, signed transaction
|
|
51
51
|
*/
|
|
52
52
|
this.getSignedTransaction = async (signer) => {
|
|
@@ -66,7 +66,7 @@ export default class Operation {
|
|
|
66
66
|
/**
|
|
67
67
|
* Gets the transaction hash of the transaction.
|
|
68
68
|
* @description Calculates this by getting the keccak256 hash of the signedTxn.
|
|
69
|
-
* @param signer The signer of the
|
|
69
|
+
* @param signer The signer of the transaction
|
|
70
70
|
* @returns {Promise<string>} The transaction hash of the transaction
|
|
71
71
|
*/
|
|
72
72
|
this.getTransactionHash = async (signer) => {
|
package/dist/module/SFError.js
CHANGED
|
@@ -27,7 +27,7 @@ Caused by: ${JSON.stringify(serializeError(cause), null, 2)}`
|
|
|
27
27
|
: ""}`;
|
|
28
28
|
super(fullMessage, cause
|
|
29
29
|
? {
|
|
30
|
-
cause: cause, // Currently "unknown" is not compatible with "cause" (because it
|
|
30
|
+
cause: cause, // Currently "unknown" is not compatible with "cause" (because it expects "Error" and that's why we cast) but this was recently changed and merged to also allow "unknown": https://github.com/microsoft/TypeScript/pull/49639
|
|
31
31
|
}
|
|
32
32
|
: {});
|
|
33
33
|
// Fallback back environments where `Error.cause` is now yet natively supported
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SFError.js","sourceRoot":"","sources":["../../src/SFError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAsBjD,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAoB;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AK,EAAE,KAAc,EAAE,8NAA8N;aACxP;YACH,CAAC,CAAC,EAAE,CACX,CAAC;QACF,+EAA+E;QAC/E,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACtB,IAAI,CAAC,KAAK,GAAG,KAAc,CAAC;SAC/B;QACD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,gIAAgI;IACvL,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superfluid-finance/sdk-core",
|
|
3
|
-
"version": "0.5.1-dev.
|
|
3
|
+
"version": "0.5.1-dev.7809571.0",
|
|
4
4
|
"description": "SDK Core for building with Superfluid Protocol",
|
|
5
5
|
"homepage": "https://github.com/superfluid-finance/protocol-monorepo/tree/dev/packages/sdk-core#readme",
|
|
6
6
|
"repository": {
|