@superfluid-finance/sdk-core 0.1.1-dev.fa49a94.0 → 0.2.1-dev.652c1bb.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 +124 -53
- package/dist/index.umd.js +63562 -0
- package/dist/main/BatchCall.d.ts +2 -2
- package/dist/main/BatchCall.d.ts.map +1 -0
- package/dist/main/BatchCall.js +128 -0
- package/dist/main/BatchCall.js.map +1 -0
- package/dist/main/ConstantFlowAgreementV1.d.ts +7 -3
- package/dist/main/ConstantFlowAgreementV1.d.ts.map +1 -0
- package/dist/main/ConstantFlowAgreementV1.js +178 -0
- package/dist/main/ConstantFlowAgreementV1.js.map +1 -0
- package/dist/main/Framework.d.ts +7 -2
- package/dist/main/Framework.d.ts.map +1 -0
- package/dist/main/Framework.js +181 -0
- package/dist/main/Framework.js.map +1 -0
- package/dist/main/Host.d.ts +6 -1
- package/dist/main/Host.d.ts.map +1 -0
- package/dist/main/Host.js +31 -0
- package/dist/main/Host.js.map +1 -0
- package/dist/main/InstantDistributionAgreementV1.d.ts +18 -9
- package/dist/main/InstantDistributionAgreementV1.d.ts.map +1 -0
- package/dist/main/InstantDistributionAgreementV1.js +249 -0
- package/dist/main/InstantDistributionAgreementV1.js.map +1 -0
- package/dist/main/Operation.d.ts +1 -0
- package/dist/main/Operation.d.ts.map +1 -0
- package/dist/main/Operation.js +86 -0
- package/dist/main/Operation.js.map +1 -0
- package/dist/main/Query.d.ts +1 -0
- package/dist/main/Query.d.ts.map +1 -0
- package/dist/main/Query.js +311 -0
- package/dist/main/Query.js.map +1 -0
- package/dist/main/SFError.d.ts +3 -2
- package/dist/main/SFError.d.ts.map +1 -0
- package/dist/main/SFError.js +36 -0
- package/dist/main/SFError.js.map +1 -0
- package/dist/main/SuperToken.d.ts +34 -14
- package/dist/main/SuperToken.d.ts.map +1 -0
- package/dist/main/SuperToken.js +398 -0
- package/dist/main/SuperToken.js.map +1 -0
- package/dist/main/Token.d.ts +7 -3
- package/dist/main/Token.d.ts.map +1 -0
- package/dist/main/Token.js +166 -0
- package/dist/main/Token.js.map +1 -0
- package/dist/main/abi/ERC20WithTokenInfo.json +224 -0
- package/dist/main/abi/IConstantFlowAgreementV1.json +406 -0
- package/dist/main/abi/IInstantDistributionAgreementV1.json +947 -0
- package/dist/main/abi/IResolver.json +58 -0
- package/dist/main/abi/SuperToken.json +1549 -0
- package/dist/main/abi/Superfluid.json +1159 -0
- package/dist/main/abi/SuperfluidLoader.json +54 -0
- package/dist/main/constants.d.ts +10 -2
- package/dist/main/constants.d.ts.map +1 -0
- package/dist/main/constants.js +134 -0
- package/dist/main/constants.js.map +1 -0
- package/dist/main/events.d.ts +1 -0
- package/dist/main/events.d.ts.map +1 -0
- package/dist/main/events.js +3 -0
- package/dist/main/events.js.map +1 -0
- package/dist/main/frameworkHelpers.d.ts +1 -0
- package/dist/main/frameworkHelpers.d.ts.map +1 -0
- package/dist/main/frameworkHelpers.js +90 -0
- package/dist/main/frameworkHelpers.js.map +1 -0
- package/dist/main/index.d.ts +6 -0
- package/dist/main/index.d.ts.map +1 -0
- package/dist/main/index.js +38 -7524
- package/dist/main/index.js.map +1 -0
- package/dist/main/interfaces.d.ts +100 -11
- package/dist/main/interfaces.d.ts.map +1 -0
- package/dist/main/interfaces.js +3 -0
- package/dist/main/interfaces.js.map +1 -0
- package/dist/main/mapGetAllEventsQueryEvents.d.ts +1 -0
- package/dist/main/mapGetAllEventsQueryEvents.d.ts.map +1 -0
- package/dist/main/mapGetAllEventsQueryEvents.js +432 -0
- package/dist/main/mapGetAllEventsQueryEvents.js.map +1 -0
- package/dist/main/ordering.d.ts +1 -0
- package/dist/main/ordering.d.ts.map +1 -0
- package/dist/main/ordering.js +3 -0
- package/dist/main/ordering.js.map +1 -0
- package/dist/main/pagination.d.ts +1 -0
- package/dist/main/pagination.d.ts.map +1 -0
- package/dist/main/pagination.js +60 -0
- package/dist/main/pagination.js.map +1 -0
- package/dist/main/subgraph/SubgraphClient.d.ts +4 -3
- package/dist/main/subgraph/SubgraphClient.d.ts.map +1 -0
- package/dist/main/subgraph/SubgraphClient.js +51 -0
- package/dist/main/subgraph/SubgraphClient.js.map +1 -0
- package/dist/main/subgraph/queries/getAccountTokenSnapshots.generated.d.ts +1 -0
- package/dist/main/subgraph/queries/getAccountTokenSnapshots.generated.d.ts.map +1 -0
- package/dist/main/subgraph/queries/getAccountTokenSnapshots.generated.js +5 -0
- package/dist/main/subgraph/queries/getAccountTokenSnapshots.generated.js.map +1 -0
- package/dist/main/subgraph/queries/getAllEvents.generated.d.ts +1 -0
- package/dist/main/subgraph/queries/getAllEvents.generated.d.ts.map +1 -0
- package/dist/main/subgraph/queries/getAllEvents.generated.js +6 -0
- package/dist/main/subgraph/queries/getAllEvents.generated.js.map +1 -0
- package/dist/main/subgraph/queries/getIndexSubscriptions.generated.d.ts +1 -0
- package/dist/main/subgraph/queries/getIndexSubscriptions.generated.d.ts.map +1 -0
- package/dist/main/subgraph/queries/getIndexSubscriptions.generated.js +5 -0
- package/dist/main/subgraph/queries/getIndexSubscriptions.generated.js.map +1 -0
- package/dist/main/subgraph/queries/getIndexes.generated.d.ts +1 -0
- package/dist/main/subgraph/queries/getIndexes.generated.d.ts.map +1 -0
- package/dist/main/subgraph/queries/getIndexes.generated.js +5 -0
- package/dist/main/subgraph/queries/getIndexes.generated.js.map +1 -0
- package/dist/main/subgraph/queries/getStreams.generated.d.ts +1 -0
- package/dist/main/subgraph/queries/getStreams.generated.d.ts.map +1 -0
- package/dist/main/subgraph/queries/getStreams.generated.js +5 -0
- package/dist/main/subgraph/queries/getStreams.generated.js.map +1 -0
- package/dist/main/subgraph/queries/getTokens.generated.d.ts +1 -0
- package/dist/main/subgraph/queries/getTokens.generated.d.ts.map +1 -0
- package/dist/main/subgraph/queries/getTokens.generated.js +5 -0
- package/dist/main/subgraph/queries/getTokens.generated.js.map +1 -0
- package/dist/main/subgraph/schema.generated.d.ts +1 -0
- package/dist/main/subgraph/schema.generated.d.ts.map +1 -0
- package/dist/main/subgraph/schema.generated.js +3 -0
- package/dist/main/subgraph/schema.generated.js.map +1 -0
- package/dist/main/typechain/ERC20WithTokenInfo.d.ts +1 -0
- package/dist/main/typechain/ERC20WithTokenInfo.d.ts.map +1 -0
- package/dist/main/typechain/ERC20WithTokenInfo.js +3 -0
- package/dist/main/typechain/ERC20WithTokenInfo.js.map +1 -0
- package/dist/main/typechain/IConstantFlowAgreementV1.d.ts +1 -0
- package/dist/main/typechain/IConstantFlowAgreementV1.d.ts.map +1 -0
- package/dist/main/typechain/IConstantFlowAgreementV1.js +3 -0
- package/dist/main/typechain/IConstantFlowAgreementV1.js.map +1 -0
- package/dist/main/typechain/IInstantDistributionAgreementV1.d.ts +1 -0
- package/dist/main/typechain/IInstantDistributionAgreementV1.d.ts.map +1 -0
- package/dist/main/typechain/IInstantDistributionAgreementV1.js +3 -0
- package/dist/main/typechain/IInstantDistributionAgreementV1.js.map +1 -0
- package/dist/main/typechain/IResolver.d.ts +18 -3
- package/dist/main/typechain/IResolver.d.ts.map +1 -0
- package/dist/main/typechain/IResolver.js +3 -0
- package/dist/main/typechain/IResolver.js.map +1 -0
- package/dist/main/typechain/SuperToken.d.ts +1 -0
- package/dist/main/typechain/SuperToken.d.ts.map +1 -0
- package/dist/main/typechain/SuperToken.js +3 -0
- package/dist/main/typechain/SuperToken.js.map +1 -0
- package/dist/main/typechain/Superfluid.d.ts +1 -0
- package/dist/main/typechain/Superfluid.d.ts.map +1 -0
- package/dist/main/typechain/Superfluid.js +3 -0
- package/dist/main/typechain/Superfluid.js.map +1 -0
- package/dist/main/typechain/SuperfluidLoader.d.ts +1 -0
- package/dist/main/typechain/SuperfluidLoader.d.ts.map +1 -0
- package/dist/main/typechain/SuperfluidLoader.js +3 -0
- package/dist/main/typechain/SuperfluidLoader.js.map +1 -0
- package/dist/main/typechain/TestToken.d.ts +9 -0
- package/dist/main/typechain/TestToken.d.ts.map +1 -0
- package/dist/main/typechain/TestToken.js +3 -0
- package/dist/main/typechain/TestToken.js.map +1 -0
- package/dist/main/typechain/common.d.ts +1 -0
- package/dist/main/typechain/common.d.ts.map +1 -0
- package/dist/main/typechain/common.js +3 -0
- package/dist/main/typechain/common.js.map +1 -0
- package/dist/main/typechain/factories/ERC20WithTokenInfo__factory.d.ts +1 -0
- package/dist/main/typechain/factories/ERC20WithTokenInfo__factory.d.ts.map +1 -0
- package/dist/main/typechain/factories/ERC20WithTokenInfo__factory.js +242 -0
- package/dist/main/typechain/factories/ERC20WithTokenInfo__factory.js.map +1 -0
- package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.d.ts +1 -0
- package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.d.ts.map +1 -0
- package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.js +424 -0
- package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.js.map +1 -0
- package/dist/main/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts +1 -0
- package/dist/main/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts.map +1 -0
- package/dist/main/typechain/factories/IInstantDistributionAgreementV1__factory.js +965 -0
- package/dist/main/typechain/factories/IInstantDistributionAgreementV1__factory.js.map +1 -0
- package/dist/main/typechain/factories/IResolver__factory.d.ts +16 -2
- package/dist/main/typechain/factories/IResolver__factory.d.ts.map +1 -0
- package/dist/main/typechain/factories/IResolver__factory.js +76 -0
- package/dist/main/typechain/factories/IResolver__factory.js.map +1 -0
- package/dist/main/typechain/factories/SuperToken__factory.d.ts +1 -0
- package/dist/main/typechain/factories/SuperToken__factory.d.ts.map +1 -0
- package/dist/main/typechain/factories/SuperToken__factory.js +1567 -0
- package/dist/main/typechain/factories/SuperToken__factory.js.map +1 -0
- package/dist/main/typechain/factories/SuperfluidLoader__factory.d.ts +1 -0
- package/dist/main/typechain/factories/SuperfluidLoader__factory.d.ts.map +1 -0
- package/dist/main/typechain/factories/SuperfluidLoader__factory.js +72 -0
- package/dist/main/typechain/factories/SuperfluidLoader__factory.js.map +1 -0
- package/dist/main/typechain/factories/Superfluid__factory.d.ts +1 -0
- package/dist/main/typechain/factories/Superfluid__factory.d.ts.map +1 -0
- package/dist/main/typechain/factories/Superfluid__factory.js +1177 -0
- package/dist/main/typechain/factories/Superfluid__factory.js.map +1 -0
- package/dist/main/typechain/factories/TestToken__factory.d.ts +1 -0
- package/dist/main/typechain/factories/TestToken__factory.d.ts.map +1 -0
- package/dist/main/typechain/factories/TestToken__factory.js +348 -0
- package/dist/main/typechain/factories/TestToken__factory.js.map +1 -0
- package/dist/main/typechain/index.d.ts +1 -0
- package/dist/main/typechain/index.d.ts.map +1 -0
- package/dist/main/typechain/index.js +20 -0
- package/dist/main/typechain/index.js.map +1 -0
- package/dist/main/types.d.ts +1 -0
- package/dist/main/types.d.ts.map +1 -0
- package/dist/main/types.js +3 -0
- package/dist/main/types.js.map +1 -0
- package/dist/main/utils.d.ts +23 -0
- package/dist/main/utils.d.ts.map +1 -0
- package/dist/main/utils.js +180 -0
- package/dist/main/utils.js.map +1 -0
- package/dist/main/validation.d.ts +1 -0
- package/dist/main/validation.d.ts.map +1 -0
- package/dist/main/validation.js +98 -0
- package/dist/main/validation.js.map +1 -0
- package/dist/module/BatchCall.d.ts +2 -2
- package/dist/module/BatchCall.d.ts.map +1 -0
- package/dist/module/BatchCall.js +122 -0
- package/dist/module/BatchCall.js.map +1 -0
- package/dist/module/ConstantFlowAgreementV1.d.ts +7 -3
- package/dist/module/ConstantFlowAgreementV1.d.ts.map +1 -0
- package/dist/module/ConstantFlowAgreementV1.js +172 -0
- package/dist/module/ConstantFlowAgreementV1.js.map +1 -0
- package/dist/module/Framework.d.ts +7 -2
- package/dist/module/Framework.d.ts.map +1 -0
- package/dist/module/Framework.js +175 -0
- package/dist/module/Framework.js.map +1 -0
- package/dist/module/Host.d.ts +6 -1
- package/dist/module/Host.d.ts.map +1 -0
- package/dist/module/Host.js +25 -0
- package/dist/module/Host.js.map +1 -0
- package/dist/module/InstantDistributionAgreementV1.d.ts +18 -9
- package/dist/module/InstantDistributionAgreementV1.d.ts.map +1 -0
- package/dist/module/InstantDistributionAgreementV1.js +243 -0
- package/dist/module/InstantDistributionAgreementV1.js.map +1 -0
- package/dist/module/Operation.d.ts +1 -0
- package/dist/module/Operation.d.ts.map +1 -0
- package/dist/module/Operation.js +80 -0
- package/dist/module/Operation.js.map +1 -0
- package/dist/module/Query.d.ts +1 -0
- package/dist/module/Query.d.ts.map +1 -0
- package/dist/module/Query.js +305 -0
- package/dist/module/Query.js.map +1 -0
- package/dist/module/SFError.d.ts +3 -2
- package/dist/module/SFError.d.ts.map +1 -0
- package/dist/module/SFError.js +33 -0
- package/dist/module/SFError.js.map +1 -0
- package/dist/module/SuperToken.d.ts +34 -14
- package/dist/module/SuperToken.d.ts.map +1 -0
- package/dist/module/SuperToken.js +392 -0
- package/dist/module/SuperToken.js.map +1 -0
- package/dist/module/Token.d.ts +7 -3
- package/dist/module/Token.d.ts.map +1 -0
- package/dist/module/Token.js +160 -0
- package/dist/module/Token.js.map +1 -0
- package/dist/module/abi/ERC20WithTokenInfo.json +224 -0
- package/dist/module/abi/IConstantFlowAgreementV1.json +406 -0
- package/dist/module/abi/IInstantDistributionAgreementV1.json +947 -0
- package/dist/module/abi/IResolver.json +58 -0
- package/dist/module/abi/SuperToken.json +1549 -0
- package/dist/module/abi/Superfluid.json +1159 -0
- package/dist/module/abi/SuperfluidLoader.json +54 -0
- package/dist/module/constants.d.ts +10 -2
- package/dist/module/constants.d.ts.map +1 -0
- package/dist/module/constants.js +131 -0
- package/dist/module/constants.js.map +1 -0
- package/dist/module/events.d.ts +1 -0
- package/dist/module/events.d.ts.map +1 -0
- package/dist/module/events.js +2 -0
- package/dist/module/events.js.map +1 -0
- package/dist/module/frameworkHelpers.d.ts +1 -0
- package/dist/module/frameworkHelpers.d.ts.map +1 -0
- package/dist/module/frameworkHelpers.js +81 -0
- package/dist/module/frameworkHelpers.js.map +1 -0
- package/dist/module/index.d.ts +6 -0
- package/dist/module/index.d.ts.map +1 -0
- package/dist/module/index.js +25 -7490
- package/dist/module/index.js.map +1 -0
- package/dist/module/interfaces.d.ts +100 -11
- package/dist/module/interfaces.d.ts.map +1 -0
- package/dist/module/interfaces.js +2 -0
- package/dist/module/interfaces.js.map +1 -0
- package/dist/module/mapGetAllEventsQueryEvents.d.ts +1 -0
- package/dist/module/mapGetAllEventsQueryEvents.d.ts.map +1 -0
- package/dist/module/mapGetAllEventsQueryEvents.js +428 -0
- package/dist/module/mapGetAllEventsQueryEvents.js.map +1 -0
- package/dist/module/ordering.d.ts +1 -0
- package/dist/module/ordering.d.ts.map +1 -0
- package/dist/module/ordering.js +2 -0
- package/dist/module/ordering.js.map +1 -0
- package/dist/module/pagination.d.ts +1 -0
- package/dist/module/pagination.d.ts.map +1 -0
- package/dist/module/pagination.js +51 -0
- package/dist/module/pagination.js.map +1 -0
- package/dist/module/subgraph/SubgraphClient.d.ts +4 -3
- package/dist/module/subgraph/SubgraphClient.d.ts.map +1 -0
- package/dist/module/subgraph/SubgraphClient.js +44 -0
- package/dist/module/subgraph/SubgraphClient.js.map +1 -0
- package/dist/module/subgraph/queries/getAccountTokenSnapshots.generated.d.ts +1 -0
- package/dist/module/subgraph/queries/getAccountTokenSnapshots.generated.d.ts.map +1 -0
- package/dist/module/subgraph/queries/getAccountTokenSnapshots.generated.js +2 -0
- package/dist/module/subgraph/queries/getAccountTokenSnapshots.generated.js.map +1 -0
- package/dist/module/subgraph/queries/getAllEvents.generated.d.ts +1 -0
- package/dist/module/subgraph/queries/getAllEvents.generated.d.ts.map +1 -0
- package/dist/module/subgraph/queries/getAllEvents.generated.js +3 -0
- package/dist/module/subgraph/queries/getAllEvents.generated.js.map +1 -0
- package/dist/module/subgraph/queries/getIndexSubscriptions.generated.d.ts +1 -0
- package/dist/module/subgraph/queries/getIndexSubscriptions.generated.d.ts.map +1 -0
- package/dist/module/subgraph/queries/getIndexSubscriptions.generated.js +2 -0
- package/dist/module/subgraph/queries/getIndexSubscriptions.generated.js.map +1 -0
- package/dist/module/subgraph/queries/getIndexes.generated.d.ts +1 -0
- package/dist/module/subgraph/queries/getIndexes.generated.d.ts.map +1 -0
- package/dist/module/subgraph/queries/getIndexes.generated.js +2 -0
- package/dist/module/subgraph/queries/getIndexes.generated.js.map +1 -0
- package/dist/module/subgraph/queries/getStreams.generated.d.ts +1 -0
- package/dist/module/subgraph/queries/getStreams.generated.d.ts.map +1 -0
- package/dist/module/subgraph/queries/getStreams.generated.js +2 -0
- package/dist/module/subgraph/queries/getStreams.generated.js.map +1 -0
- package/dist/module/subgraph/queries/getTokens.generated.d.ts +1 -0
- package/dist/module/subgraph/queries/getTokens.generated.d.ts.map +1 -0
- package/dist/module/subgraph/queries/getTokens.generated.js +2 -0
- package/dist/module/subgraph/queries/getTokens.generated.js.map +1 -0
- package/dist/module/subgraph/schema.generated.d.ts +1 -0
- package/dist/module/subgraph/schema.generated.d.ts.map +1 -0
- package/dist/module/subgraph/schema.generated.js +2 -0
- package/dist/module/subgraph/schema.generated.js.map +1 -0
- package/dist/module/typechain/ERC20WithTokenInfo.d.ts +1 -0
- package/dist/module/typechain/ERC20WithTokenInfo.d.ts.map +1 -0
- package/dist/module/typechain/ERC20WithTokenInfo.js +2 -0
- package/dist/module/typechain/ERC20WithTokenInfo.js.map +1 -0
- package/dist/module/typechain/IConstantFlowAgreementV1.d.ts +1 -0
- package/dist/module/typechain/IConstantFlowAgreementV1.d.ts.map +1 -0
- package/dist/module/typechain/IConstantFlowAgreementV1.js +2 -0
- package/dist/module/typechain/IConstantFlowAgreementV1.js.map +1 -0
- package/dist/module/typechain/IInstantDistributionAgreementV1.d.ts +1 -0
- package/dist/module/typechain/IInstantDistributionAgreementV1.d.ts.map +1 -0
- package/dist/module/typechain/IInstantDistributionAgreementV1.js +2 -0
- package/dist/module/typechain/IInstantDistributionAgreementV1.js.map +1 -0
- package/dist/module/typechain/IResolver.d.ts +18 -3
- package/dist/module/typechain/IResolver.d.ts.map +1 -0
- package/dist/module/typechain/IResolver.js +2 -0
- package/dist/module/typechain/IResolver.js.map +1 -0
- package/dist/module/typechain/SuperToken.d.ts +1 -0
- package/dist/module/typechain/SuperToken.d.ts.map +1 -0
- package/dist/module/typechain/SuperToken.js +2 -0
- package/dist/module/typechain/SuperToken.js.map +1 -0
- package/dist/module/typechain/Superfluid.d.ts +1 -0
- package/dist/module/typechain/Superfluid.d.ts.map +1 -0
- package/dist/module/typechain/Superfluid.js +2 -0
- package/dist/module/typechain/Superfluid.js.map +1 -0
- package/dist/module/typechain/SuperfluidLoader.d.ts +1 -0
- package/dist/module/typechain/SuperfluidLoader.d.ts.map +1 -0
- package/dist/module/typechain/SuperfluidLoader.js +2 -0
- package/dist/module/typechain/SuperfluidLoader.js.map +1 -0
- package/dist/module/typechain/TestToken.d.ts +9 -0
- package/dist/module/typechain/TestToken.d.ts.map +1 -0
- package/dist/module/typechain/TestToken.js +2 -0
- package/dist/module/typechain/TestToken.js.map +1 -0
- package/dist/module/typechain/common.d.ts +1 -0
- package/dist/module/typechain/common.d.ts.map +1 -0
- package/dist/module/typechain/common.js +2 -0
- package/dist/module/typechain/common.js.map +1 -0
- package/dist/module/typechain/factories/ERC20WithTokenInfo__factory.d.ts +1 -0
- package/dist/module/typechain/factories/ERC20WithTokenInfo__factory.d.ts.map +1 -0
- package/dist/module/typechain/factories/ERC20WithTokenInfo__factory.js +238 -0
- package/dist/module/typechain/factories/ERC20WithTokenInfo__factory.js.map +1 -0
- package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.d.ts +1 -0
- package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.d.ts.map +1 -0
- package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.js +420 -0
- package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.js.map +1 -0
- package/dist/module/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts +1 -0
- package/dist/module/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts.map +1 -0
- package/dist/module/typechain/factories/IInstantDistributionAgreementV1__factory.js +961 -0
- package/dist/module/typechain/factories/IInstantDistributionAgreementV1__factory.js.map +1 -0
- package/dist/module/typechain/factories/IResolver__factory.d.ts +16 -2
- package/dist/module/typechain/factories/IResolver__factory.d.ts.map +1 -0
- package/dist/module/typechain/factories/IResolver__factory.js +72 -0
- package/dist/module/typechain/factories/IResolver__factory.js.map +1 -0
- package/dist/module/typechain/factories/SuperToken__factory.d.ts +1 -0
- package/dist/module/typechain/factories/SuperToken__factory.d.ts.map +1 -0
- package/dist/module/typechain/factories/SuperToken__factory.js +1563 -0
- package/dist/module/typechain/factories/SuperToken__factory.js.map +1 -0
- package/dist/module/typechain/factories/SuperfluidLoader__factory.d.ts +1 -0
- package/dist/module/typechain/factories/SuperfluidLoader__factory.d.ts.map +1 -0
- package/dist/module/typechain/factories/SuperfluidLoader__factory.js +68 -0
- package/dist/module/typechain/factories/SuperfluidLoader__factory.js.map +1 -0
- package/dist/module/typechain/factories/Superfluid__factory.d.ts +1 -0
- package/dist/module/typechain/factories/Superfluid__factory.d.ts.map +1 -0
- package/dist/module/typechain/factories/Superfluid__factory.js +1173 -0
- package/dist/module/typechain/factories/Superfluid__factory.js.map +1 -0
- package/dist/module/typechain/factories/TestToken__factory.d.ts +1 -0
- package/dist/module/typechain/factories/TestToken__factory.d.ts.map +1 -0
- package/dist/module/typechain/factories/TestToken__factory.js +344 -0
- package/dist/module/typechain/factories/TestToken__factory.js.map +1 -0
- package/dist/module/typechain/index.d.ts +1 -0
- package/dist/module/typechain/index.d.ts.map +1 -0
- package/dist/{umd/typechain/index.d.ts → module/typechain/index.js} +1 -8
- package/dist/module/typechain/index.js.map +1 -0
- package/dist/module/types.d.ts +1 -0
- package/dist/module/types.d.ts.map +1 -0
- package/dist/module/types.js +2 -0
- package/dist/module/types.js.map +1 -0
- package/dist/module/utils.d.ts +23 -0
- package/dist/module/utils.d.ts.map +1 -0
- package/dist/module/utils.js +155 -0
- package/dist/module/utils.js.map +1 -0
- package/dist/module/validation.d.ts +1 -0
- package/dist/module/validation.d.ts.map +1 -0
- package/dist/module/validation.js +92 -0
- package/dist/module/validation.js.map +1 -0
- package/package.json +49 -34
- package/dist/umd/BatchCall.d.ts +0 -53
- package/dist/umd/ConstantFlowAgreementV1.d.ts +0 -74
- package/dist/umd/Framework.d.ts +0 -75
- package/dist/umd/Host.d.ts +0 -18
- package/dist/umd/InstantDistributionAgreementV1.d.ts +0 -107
- package/dist/umd/Operation.d.ts +0 -38
- package/dist/umd/Query.d.ts +0 -31
- package/dist/umd/SFError.d.ts +0 -13
- package/dist/umd/SuperToken.d.ts +0 -191
- package/dist/umd/Token.d.ts +0 -76
- package/dist/umd/constants.d.ts +0 -10
- package/dist/umd/events.d.ts +0 -255
- package/dist/umd/frameworkHelpers.d.ts +0 -20
- package/dist/umd/index.d.ts +0 -19
- package/dist/umd/index.js +0 -7526
- package/dist/umd/interfaces.d.ts +0 -304
- package/dist/umd/mapGetAllEventsQueryEvents.d.ts +0 -3
- package/dist/umd/ordering.d.ts +0 -13
- package/dist/umd/pagination.d.ts +0 -65
- package/dist/umd/subgraph/SubgraphClient.d.ts +0 -16
- package/dist/umd/subgraph/queries/getAccountTokenSnapshots.generated.d.ts +0 -45
- package/dist/umd/subgraph/queries/getAllEvents.generated.d.ts +0 -651
- package/dist/umd/subgraph/queries/getIndexSubscriptions.generated.d.ts +0 -46
- package/dist/umd/subgraph/queries/getIndexes.generated.d.ts +0 -44
- package/dist/umd/subgraph/queries/getStreams.generated.d.ts +0 -58
- package/dist/umd/subgraph/queries/getTokens.generated.d.ts +0 -27
- package/dist/umd/subgraph/schema.generated.d.ts +0 -6478
- package/dist/umd/typechain/ERC20WithTokenInfo.d.ts +0 -159
- package/dist/umd/typechain/IConstantFlowAgreementV1.d.ts +0 -305
- package/dist/umd/typechain/IInstantDistributionAgreementV1.d.ts +0 -585
- package/dist/umd/typechain/IResolver.d.ts +0 -57
- package/dist/umd/typechain/SuperToken.d.ts +0 -1011
- package/dist/umd/typechain/Superfluid.d.ts +0 -780
- package/dist/umd/typechain/SuperfluidLoader.d.ts +0 -55
- package/dist/umd/typechain/TestToken.d.ts +0 -207
- package/dist/umd/typechain/common.d.ts +0 -21
- package/dist/umd/typechain/factories/ERC20WithTokenInfo__factory.d.ts +0 -35
- package/dist/umd/typechain/factories/IConstantFlowAgreementV1__factory.d.ts +0 -35
- package/dist/umd/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts +0 -35
- package/dist/umd/typechain/factories/IResolver__factory.d.ts +0 -22
- package/dist/umd/typechain/factories/SuperToken__factory.d.ts +0 -46
- package/dist/umd/typechain/factories/SuperfluidLoader__factory.d.ts +0 -37
- package/dist/umd/typechain/factories/Superfluid__factory.d.ts +0 -82
- package/dist/umd/typechain/factories/TestToken__factory.d.ts +0 -46
- package/dist/umd/types.d.ts +0 -2
- package/dist/umd/utils.d.ts +0 -89
- package/dist/umd/validation.d.ts +0 -8
package/README.md
CHANGED
|
@@ -23,6 +23,30 @@
|
|
|
23
23
|
|
|
24
24
|
### 📖 [Docs](https://docs.superfluid.finance)
|
|
25
25
|
|
|
26
|
+
# Introduction
|
|
27
|
+
SDK-Core is an application framework for interacting with the Superfluid Protocol without Solidity knowledge.
|
|
28
|
+
|
|
29
|
+
More specifically, SDK-Core is a wrapper library around `@superfluid-finance/ethereum-contracts` which allows web developers to interact with the Superfluid contracts.
|
|
30
|
+
Under the hood, SDK-Core leverages TypeScript, ethers.js and The Graph and GraphQL.
|
|
31
|
+
|
|
32
|
+
## Important Disclaimer
|
|
33
|
+
SDK-Core is in early active development and can have breaking releases without warning and without consideration for semantic versioning.
|
|
34
|
+
|
|
35
|
+
# Features
|
|
36
|
+
* Minimal Framework initialization (`networkName` or `chainId` and `provider`)
|
|
37
|
+
* New Operation syntax for transactions
|
|
38
|
+
* Create/Update/Delete Agreement Operations (Constant Flow Agreement and Instant Distribution Agreement)
|
|
39
|
+
* SuperToken Operations
|
|
40
|
+
* Subgraph-powered GraphQL querying with ordering and pagination
|
|
41
|
+
* Event subscription
|
|
42
|
+
* CFA/IDA/SuperToken Web3 Getters
|
|
43
|
+
* Batch Call functionality for batching multiple Superfluid Operations in one transaction
|
|
44
|
+
|
|
45
|
+
# Notable Used Technologies
|
|
46
|
+
* TypeScript
|
|
47
|
+
* Ethers
|
|
48
|
+
* GraphQL
|
|
49
|
+
|
|
26
50
|
# Prerequisites
|
|
27
51
|
|
|
28
52
|
To get the package up and running you'll need to install the necessary dependencies and build the project:
|
|
@@ -31,18 +55,32 @@ To get the package up and running you'll need to install the necessary dependenc
|
|
|
31
55
|
yarn install && yarn build
|
|
32
56
|
```
|
|
33
57
|
|
|
34
|
-
#
|
|
58
|
+
# Tutorial
|
|
35
59
|
|
|
60
|
+
For the best and most immersive experience of learning how to use the main sdk-core features, I would highly recommend heading over to our [interactive tutorials](https://docs.superfluid.finance/superfluid/protocol-tutorials/interactive-tutorials).
|
|
61
|
+
# Getting Started
|
|
36
62
|
## Framework Initialization
|
|
37
63
|
|
|
38
64
|
Here is a quick look at initializing the SDK in different environments:
|
|
39
65
|
|
|
40
|
-
TypeScript / JavaScript (Module)
|
|
66
|
+
TypeScript / JavaScript (Module) vs. JavaScript (CommonJS) - usually a Node.js environment
|
|
67
|
+
|
|
68
|
+
The primary difference between the two environments is the import/require of the sdk-core package, everything else is the same.
|
|
41
69
|
|
|
70
|
+
TS/ESModule
|
|
42
71
|
```ts
|
|
43
72
|
import { Framework } from "@superfluid-finance/sdk-core";
|
|
44
73
|
import { ethers } from "ethers";
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
CommonJS/Node.js
|
|
77
|
+
```js
|
|
78
|
+
const { Framework } = require("@superfluid-finance/sdk-core");
|
|
79
|
+
const { ethers } = require("ethers");
|
|
80
|
+
```
|
|
45
81
|
|
|
82
|
+
```ts
|
|
83
|
+
// infura provider initialization
|
|
46
84
|
const provider = new ethers.providers.InfuraProvider(
|
|
47
85
|
"matic",
|
|
48
86
|
"<INFURA_API_KEY>"
|
|
@@ -60,36 +98,83 @@ const web3jsSf = await Framework.create({
|
|
|
60
98
|
networkName: "matic",
|
|
61
99
|
provider: web3jsProvider
|
|
62
100
|
});
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
JavaScript (CommonJS) - usually a Node.js environment:
|
|
66
|
-
|
|
67
|
-
```js
|
|
68
|
-
const { Framework } = require("@superfluid-finance/sdk-core");
|
|
69
|
-
const { ethers } = require("ethers");
|
|
70
101
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
)
|
|
75
|
-
|
|
102
|
+
// injected web3.js initialization (Hardhat)
|
|
103
|
+
// most likely to be used on backend for testing
|
|
104
|
+
// NOTE: if you're using truffle, you should be able to
|
|
105
|
+
// omit the (global as any) as this should be
|
|
106
|
+
// exposed already (in JS at least)
|
|
107
|
+
const injectedWeb3jsSf = await Framework.create({
|
|
108
|
+
networkName: "custom",
|
|
109
|
+
provider: (global as any).web3,
|
|
110
|
+
dataMode: "WEB3_ONLY",
|
|
111
|
+
resolverAddress: <RESOLVER_ADDRESS>,
|
|
112
|
+
protocolReleaseVersion: "test",
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
// injected hardhat ethers initialization
|
|
116
|
+
// most likely to be used on backend for testing
|
|
117
|
+
import hardhat from "hardhat";
|
|
118
|
+
const injectedHardhatEthersSf = await Framework.create({
|
|
119
|
+
networkName: "custom",
|
|
120
|
+
provider: hardhat.ethers,
|
|
121
|
+
dataMode: "WEB3_ONLY",
|
|
122
|
+
resolverAddress: <RESOLVER_ADDRESS>,
|
|
123
|
+
protocolReleaseVersion: "test",
|
|
124
|
+
})
|
|
125
|
+
|
|
126
|
+
// ethers.js + hardhat provider initialization (in testing environment w/ hardhat-ethers)
|
|
127
|
+
import { ethers } from "hardhat";
|
|
128
|
+
const [deployer] = await ethers.getSigners();
|
|
129
|
+
const ethersProvider = deployer.provider;
|
|
130
|
+
const ethersjsSf = await Framework.create({
|
|
131
|
+
networkName: "custom",
|
|
132
|
+
dataMode: "WEB3_ONLY",
|
|
133
|
+
resolverAddress: <RESOLVER_ADDRESS>,
|
|
134
|
+
protocolReleaseVersion: "test",
|
|
135
|
+
provider: ethersProvider
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
// metamask
|
|
139
|
+
const mmProvider = new ethers.providers.Web3Provider(window.ethereum);
|
|
140
|
+
const mmSf = await Framework.create({
|
|
76
141
|
networkName: "matic",
|
|
77
|
-
provider
|
|
142
|
+
provider: mmProvider
|
|
78
143
|
});
|
|
79
144
|
|
|
80
|
-
//
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
networkName: "matic",
|
|
86
|
-
provider: web3jsProvider
|
|
145
|
+
// web3modal
|
|
146
|
+
import Web3Modal from "web3modal";
|
|
147
|
+
const web3Modal = new Web3Modal({
|
|
148
|
+
cacheProvider: false,
|
|
149
|
+
providerOptions: {}
|
|
87
150
|
});
|
|
151
|
+
const web3ModalRawProvider = await web3Modal.connect();
|
|
152
|
+
const web3ModalProvider = new ethers.providers.Web3Provider(web3ModalRawProvider);
|
|
153
|
+
const web3ModalSf = await Framework.create({
|
|
154
|
+
networkName: "matic",
|
|
155
|
+
provider: web3ModalProvider
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
//bnc-onboard
|
|
159
|
+
const onboard = Onboard({
|
|
160
|
+
dappId: "<API_KEY>",
|
|
161
|
+
networkId: 4,
|
|
162
|
+
subscriptions: {
|
|
163
|
+
wallet: wallet => {
|
|
164
|
+
const web3Provider = new ethers.providers.Web3Provider(wallet.provider);
|
|
165
|
+
(async () => {
|
|
166
|
+
const framework = await Framework.create({ networkName: "matic", provider: web3Provider });
|
|
167
|
+
})();
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
// this is triggered by:
|
|
172
|
+
await onboard.walletSelect();
|
|
88
173
|
```
|
|
89
174
|
|
|
90
175
|
> Note: You specify your project type in `package.json` - `"type": "module"` or `"type": "commonjs"`.
|
|
91
176
|
|
|
92
|
-
|
|
177
|
+
The absolute minimum you need to provide the constructor is `chainId` or `networkName` and a `provider` object if all you want to do are read operations. It is also important to note that the provider does not need to be an InfuraProvider - it just needs to satisfy the `SupportedProvider` interface: `ethers.providers.Provider | (typeof ethers & HardhatEthersHelpers) | Web3`.
|
|
93
178
|
|
|
94
179
|
## Helper Classes
|
|
95
180
|
|
|
@@ -119,8 +204,6 @@ const sf = await Framework.create({
|
|
|
119
204
|
type Paging = { take: number, skip?: number, lastId?: string };
|
|
120
205
|
|
|
121
206
|
const pageResult = await sf.query.
|
|
122
|
-
listAllResults(paging: Paging);
|
|
123
|
-
|
|
124
207
|
// The different queries can take different order by properties
|
|
125
208
|
// given the properties that exist on the entity itself.
|
|
126
209
|
listAllSuperTokens({ isListed?: boolean },
|
|
@@ -229,11 +312,11 @@ const sf = await Framework.create({
|
|
|
229
312
|
provider: web3ModalProvider,
|
|
230
313
|
});
|
|
231
314
|
|
|
232
|
-
const web3ModalSigner = sf.createSigner(web3ModalProvider);
|
|
315
|
+
const web3ModalSigner = sf.createSigner({ web3Provider: web3ModalProvider });
|
|
233
316
|
|
|
234
317
|
// MetaMask example
|
|
235
318
|
const metamaskProvider = new Web3Provider(window.ethereum);
|
|
236
|
-
const metaMaskSigner = sf.createSigner(metamaskProvider);
|
|
319
|
+
const metaMaskSigner = sf.createSigner({ web3Provider: metamaskProvider });
|
|
237
320
|
```
|
|
238
321
|
|
|
239
322
|
#### Hardhat Signer Example
|
|
@@ -278,9 +361,7 @@ const sf = await Framework.create({
|
|
|
278
361
|
provider,
|
|
279
362
|
});
|
|
280
363
|
|
|
281
|
-
const signer = sf.createSigner({
|
|
282
|
-
signer: wallet
|
|
283
|
-
});
|
|
364
|
+
const signer = sf.createSigner({ signer: wallet });
|
|
284
365
|
```
|
|
285
366
|
|
|
286
367
|
### Operation
|
|
@@ -307,10 +388,10 @@ const sf = await Framework.create({
|
|
|
307
388
|
const signer = sf.createSigner({ privateKey: "<TEST_ACCOUNT_PRIVATE_KEY>", provider });
|
|
308
389
|
|
|
309
390
|
// load the usdcx SuperToken via the Framework
|
|
310
|
-
const usdcx = sf.
|
|
391
|
+
const usdcx = sf.loadSuperToken("0xCAa7349CEA390F89641fe306D93591f87595dc1F");
|
|
311
392
|
|
|
312
393
|
// create an approve operation
|
|
313
|
-
const approveOperation = usdcx.approve("0xab...", ethers.utils.parseUnits("100"));
|
|
394
|
+
const approveOperation = usdcx.approve({ receiver: "0xab...", amount: ethers.utils.parseUnits("100").toString() });
|
|
314
395
|
|
|
315
396
|
// execute the approve operation, passing in a signer
|
|
316
397
|
const txn = await approveOperation.exec(signer);
|
|
@@ -319,7 +400,7 @@ const txn = await approveOperation.exec(signer);
|
|
|
319
400
|
const receipt = await txn.wait();
|
|
320
401
|
|
|
321
402
|
// or you can create and execute the transaction in a single line
|
|
322
|
-
const approveTxn = await usdcx.approve("0xab...", ethers.utils.parseUnits("100")).exec(signer);
|
|
403
|
+
const approveTxn = await usdcx.approve({ receiver: "0xab...", amount: ethers.utils.parseUnits("100").toString() }).exec(signer);
|
|
323
404
|
const approveTxnReceipt = await approveTxn.wait();
|
|
324
405
|
```
|
|
325
406
|
|
|
@@ -334,7 +415,6 @@ import { ConstantFlowAgreementV1 } from "@superfluid-finance/sdk-core";
|
|
|
334
415
|
|
|
335
416
|
const config = {
|
|
336
417
|
hostAddress: "0x3E14dC1b13c488a8d5D310918780c983bD5982E7",
|
|
337
|
-
superTokenFactoryAddress: "0x2C90719f25B10Fc5646c82DA3240C76Fa5BcCF34",
|
|
338
418
|
cfaV1Address: "0x6EeE6060f715257b970700bc2656De21dEdF074C",
|
|
339
419
|
idaV1Address: "0xB0aABBA4B2783A72C52956CDEF62d438ecA2d7a1"
|
|
340
420
|
};
|
|
@@ -369,7 +449,7 @@ await sf.cfaV1.getNetFlow({
|
|
|
369
449
|
sf.cfaV1.createFlow({
|
|
370
450
|
sender: string,
|
|
371
451
|
receiver: string,
|
|
372
|
-
|
|
452
|
+
superToken: string,
|
|
373
453
|
flowRate: string,
|
|
374
454
|
userData?: string
|
|
375
455
|
});
|
|
@@ -377,7 +457,7 @@ sf.cfaV1.createFlow({
|
|
|
377
457
|
sf.cfaV1.updateFlow({
|
|
378
458
|
sender: string,
|
|
379
459
|
receiver: string,
|
|
380
|
-
|
|
460
|
+
superToken: string,
|
|
381
461
|
flowRate: string,
|
|
382
462
|
userData?: string
|
|
383
463
|
});
|
|
@@ -385,7 +465,7 @@ sf.cfaV1.updateFlow({
|
|
|
385
465
|
sf.cfaV1.deleteFlow({
|
|
386
466
|
sender: string,
|
|
387
467
|
receiver: string,
|
|
388
|
-
|
|
468
|
+
superToken: string,
|
|
389
469
|
userData?: string
|
|
390
470
|
});
|
|
391
471
|
```
|
|
@@ -420,7 +500,7 @@ const signer = sf.createSigner({ privateKey: "<TEST_ACCOUNT_PRIVATE_KEY>", provi
|
|
|
420
500
|
const createFlowOperation = sf.cfaV1.createFlow({
|
|
421
501
|
sender: "0x...",
|
|
422
502
|
receiver: "0x...",
|
|
423
|
-
|
|
503
|
+
superToken: "0x...",
|
|
424
504
|
flowRate: "1000000000"
|
|
425
505
|
});
|
|
426
506
|
const txnResponse = await createFlowOperation.exec(signer);
|
|
@@ -439,8 +519,7 @@ import { InstantDistributionAgreementV1 } from "@superfluid-finance/sdk-core";
|
|
|
439
519
|
|
|
440
520
|
const config = {
|
|
441
521
|
hostAddress: "0x3E14dC1b13c488a8d5D310918780c983bD5982E7",
|
|
442
|
-
|
|
443
|
-
idaV1Address: "0x6EeE6060f715257b970700bc2656De21dEdF074C",
|
|
522
|
+
cfaV1Address: "0x6EeE6060f715257b970700bc2656De21dEdF074C",
|
|
444
523
|
idaV1Address: "0xB0aABBA4B2783A72C52956CDEF62d438ecA2d7a1"
|
|
445
524
|
};
|
|
446
525
|
|
|
@@ -575,7 +654,7 @@ const sf = await Framework.create({
|
|
|
575
654
|
provider
|
|
576
655
|
});
|
|
577
656
|
|
|
578
|
-
const usdcx = sf.
|
|
657
|
+
const usdcx = sf.loadSuperToken("0xCAa7349CEA390F89641fe306D93591f87595dc1F");
|
|
579
658
|
```
|
|
580
659
|
|
|
581
660
|
#### Direct Initialization
|
|
@@ -591,7 +670,6 @@ const provider = new ethers.providers.InfuraProvider(
|
|
|
591
670
|
|
|
592
671
|
const config = {
|
|
593
672
|
hostAddress: "0x3E14dC1b13c488a8d5D310918780c983bD5982E7",
|
|
594
|
-
superTokenFactoryAddress: "0x2C90719f25B10Fc5646c82DA3240C76Fa5BcCF34",
|
|
595
673
|
cfaV1Address: "0x6EeE6060f715257b970700bc2656De21dEdF074C",
|
|
596
674
|
idaV1Address: "0xB0aABBA4B2783A72C52956CDEF62d438ecA2d7a1"
|
|
597
675
|
};
|
|
@@ -599,7 +677,7 @@ const config = {
|
|
|
599
677
|
const usdcx = await SuperToken.create({
|
|
600
678
|
address: "0xCAa7349CEA390F89641fe306D93591f87595dc1F",
|
|
601
679
|
config,
|
|
602
|
-
networkName: "matic",
|
|
680
|
+
networkName: "matic", // you can also pass in chainId instead (e.g. chainId: 137)
|
|
603
681
|
provider
|
|
604
682
|
});
|
|
605
683
|
```
|
|
@@ -607,7 +685,7 @@ const usdcx = await SuperToken.create({
|
|
|
607
685
|
#### SuperToken Functions
|
|
608
686
|
|
|
609
687
|
```ts
|
|
610
|
-
const usdcx = sf.
|
|
688
|
+
const usdcx = sf.loadSuperToken("0xCAa7349CEA390F89641fe306D93591f87595dc1F");
|
|
611
689
|
|
|
612
690
|
// ERC20 `Token`
|
|
613
691
|
// Read functions
|
|
@@ -692,7 +770,7 @@ const sf = await Framework.create({
|
|
|
692
770
|
provider
|
|
693
771
|
});
|
|
694
772
|
|
|
695
|
-
const usdcx = sf.
|
|
773
|
+
const usdcx = sf.loadSuperToken("0xCAa7349CEA390F89641fe306D93591f87595dc1F");
|
|
696
774
|
|
|
697
775
|
// Read example
|
|
698
776
|
const name = await usdcx.name();
|
|
@@ -757,15 +835,8 @@ const batchCall = sf.batchCall([<OPERATION_A>, <OPERATION_B>, ...]);
|
|
|
757
835
|
```ts
|
|
758
836
|
import { SuperToken } from "@superfluid-finance/sdk-core";
|
|
759
837
|
|
|
760
|
-
const config = {
|
|
761
|
-
hostAddress: "0x3E14dC1b13c488a8d5D310918780c983bD5982E7",
|
|
762
|
-
superTokenFactoryAddress: "0x2C90719f25B10Fc5646c82DA3240C76Fa5BcCF34",
|
|
763
|
-
cfaV1Address: "0x6EeE6060f715257b970700bc2656De21dEdF074C",
|
|
764
|
-
idaV1Address: "0xB0aABBA4B2783A72C52956CDEF62d438ecA2d7a1"
|
|
765
|
-
};
|
|
766
|
-
|
|
767
838
|
const batchCall = new BatchCall({
|
|
768
|
-
|
|
839
|
+
hostAddress: "0x3E14dC1b13c488a8d5D310918780c983bD5982E7",
|
|
769
840
|
operations: [<OPERATION_A>, <OPERATION_B>, ...],
|
|
770
841
|
});
|
|
771
842
|
```
|