@superfluid-finance/sdk-core 1.0.1-dev.ec101d5.0 → 1.0.1-dev.f475683.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/README.md +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<a href="https://www.npmjs.com/package/@superfluid-finance/sdk-core" target="_blank">
|
|
6
6
|
<img alt="Version" src="https://img.shields.io/npm/v/@superfluid-finance/sdk-core.svg">
|
|
7
7
|
</a>
|
|
8
|
-
<a href="https://codecov.io/gh/superfluid-finance/protocol-monorepo">
|
|
9
|
-
<img src="https://codecov.io/gh/superfluid-finance/protocol-monorepo/branch/dev/graph/badge.svg?token=LJW5NDGEJ9
|
|
8
|
+
<a href="https://codecov.io/gh/superfluid-finance/protocol-monorepo/tree/dev/packages/sdk-core">
|
|
9
|
+
<img src="https://codecov.io/gh/superfluid-finance/protocol-monorepo/branch/dev/graph/badge.svg?token=LJW5NDGEJ9&flag=sdk-core"/>
|
|
10
10
|
</a>
|
|
11
11
|
<a href="#" target="_blank">
|
|
12
12
|
<img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" />
|
|
@@ -327,7 +327,7 @@ await sf.idaV1.claim({ indexId: string, subscriber: string, publisher: string, u
|
|
|
327
327
|
|
|
328
328
|
### SuperToken
|
|
329
329
|
|
|
330
|
-
The `SuperToken` class can also be accessed via the `Framework` class and allows you read from/write to the blockchain. It also provides write functions for both the CFAV1 and IDAV1 contracts in the context of the token. That is, the token field for these different methods will be the token address specified during the creation of this class.
|
|
330
|
+
The `SuperToken` class can also be accessed via the `Framework` class and allows you read from/write to the blockchain. It also provides write functions for both the CFAV1 and IDAV1 contracts in the context of the token. That is, the token field for these different methods will be the token address specified during the creation of this class.
|
|
331
331
|
|
|
332
332
|
#### Framework based initialization
|
|
333
333
|
|
|
@@ -386,7 +386,7 @@ await usdcx.balanceOf({ account: string, providerOrSigner: ethers.providers.Prov
|
|
|
386
386
|
await usdcx.allowance({ owner: string, spender: string, providerOrSigner: ethers.providers.Provider | ethers.Signer }); // Inherited ERC20 function
|
|
387
387
|
await usdcx.totalSupply({ providerOrSigner: ethers.providers.Provider | ethers.Signer }); // Inherited ERC20 function
|
|
388
388
|
|
|
389
|
-
// `SuperToken` only function
|
|
389
|
+
// `SuperToken` only function
|
|
390
390
|
await usdcx.realtimeBalanceOf({ account: string, timestamp: string, providerOrSigner: ethers.providers.Provider | ethers.Signer });
|
|
391
391
|
|
|
392
392
|
// Write Functions
|
|
@@ -399,7 +399,7 @@ await usdcx.transfer({ recipient: string, amount: string });
|
|
|
399
399
|
await usdcx.transferFrom({ sender: string, recipient: string, amount: string });
|
|
400
400
|
await usdcx.upgrade({ amount: string });
|
|
401
401
|
|
|
402
|
-
// SuperToken CFAV1/IDAV1 Functions are the same as the
|
|
402
|
+
// SuperToken CFAV1/IDAV1 Functions are the same as the
|
|
403
403
|
// ConstantFlowAgreementV1/InstantDistributionAgreementV1 class functions
|
|
404
404
|
// except instead of the sf.cfaV1/idaV1.function() signature, it is token.function()
|
|
405
405
|
// and you don't need to pass in a token as a parameter as it uses the token address
|
|
@@ -484,4 +484,4 @@ const superAppTransactionPromise = superApp.populateTransaction.helloWorld("hell
|
|
|
484
484
|
|
|
485
485
|
// create the super app operation you can execute this operation directly or pass it in to a batch call
|
|
486
486
|
const superAppOperation = new Operation(superAppOperation, "CALL_APP_ACTION");
|
|
487
|
-
```
|
|
487
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superfluid-finance/sdk-core",
|
|
3
|
-
"version": "1.0.1-dev.
|
|
3
|
+
"version": "1.0.1-dev.f475683.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": "github:superfluid-finance/protocol-monorepo",
|