@superfluid-finance/sdk-core 0.3.3-dev.a92870f.0 → 0.3.3-dev.bd59c6c.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 +25 -1
- package/README.md +2 -0
- package/dist/index.umd.js +6034 -2012
- package/dist/main/BatchCall.d.ts +6 -6
- package/dist/main/BatchCall.js +8 -8
- package/dist/main/BatchCall.js.map +1 -1
- package/dist/main/ConstantFlowAgreementV1.d.ts +106 -17
- package/dist/main/ConstantFlowAgreementV1.d.ts.map +1 -1
- package/dist/main/ConstantFlowAgreementV1.js +238 -50
- package/dist/main/ConstantFlowAgreementV1.js.map +1 -1
- package/dist/main/{Token.d.ts → ERC20Token.d.ts} +17 -14
- package/dist/main/ERC20Token.d.ts.map +1 -0
- package/dist/main/{Token.js → ERC20Token.js} +29 -33
- package/dist/main/ERC20Token.js.map +1 -0
- package/dist/main/Framework.d.ts +34 -7
- package/dist/main/Framework.d.ts.map +1 -1
- package/dist/main/Framework.js +88 -15
- package/dist/main/Framework.js.map +1 -1
- package/dist/main/Governance.d.ts +40 -0
- package/dist/main/Governance.d.ts.map +1 -0
- package/dist/main/Governance.js +82 -0
- package/dist/main/Governance.js.map +1 -0
- package/dist/main/Host.d.ts +3 -3
- package/dist/main/Host.d.ts.map +1 -1
- package/dist/main/Host.js +4 -4
- package/dist/main/Host.js.map +1 -1
- package/dist/main/InstantDistributionAgreementV1.d.ts +25 -22
- package/dist/main/InstantDistributionAgreementV1.d.ts.map +1 -1
- package/dist/main/InstantDistributionAgreementV1.js +69 -71
- package/dist/main/InstantDistributionAgreementV1.js.map +1 -1
- package/dist/main/Operation.d.ts +5 -5
- package/dist/main/Operation.js +5 -5
- package/dist/main/Query.d.ts +6 -6
- package/dist/main/Query.d.ts.map +1 -1
- package/dist/main/Query.js +18 -16
- package/dist/main/Query.js.map +1 -1
- package/dist/main/SFError.d.ts +1 -1
- package/dist/main/SFError.d.ts.map +1 -1
- package/dist/main/SFError.js +2 -0
- package/dist/main/SFError.js.map +1 -1
- package/dist/main/SuperToken.d.ts +226 -67
- package/dist/main/SuperToken.d.ts.map +1 -1
- package/dist/main/SuperToken.js +318 -132
- package/dist/main/SuperToken.js.map +1 -1
- package/dist/main/abi/IConstantFlowAgreementV1.json +335 -2
- package/dist/main/abi/ISETH.json +1604 -0
- package/dist/main/abi/SuperfluidGovernanceII.json +921 -0
- package/dist/main/constants.d.ts +4 -0
- package/dist/main/constants.d.ts.map +1 -1
- package/dist/main/constants.js +36 -13
- package/dist/main/constants.js.map +1 -1
- package/dist/main/defaultSubgraphReleaseTag.json +3 -0
- package/dist/main/events.d.ts +14 -2
- package/dist/main/events.d.ts.map +1 -1
- package/dist/main/frameworkHelpers.d.ts +2 -2
- package/dist/main/frameworkHelpers.js +2 -2
- package/dist/main/index.d.ts +16 -5
- package/dist/main/index.d.ts.map +1 -1
- package/dist/main/index.js +12 -1
- package/dist/main/index.js.map +1 -1
- package/dist/main/interfaces.d.ts +81 -8
- package/dist/main/interfaces.d.ts.map +1 -1
- package/dist/main/mapGetAllEventsQueryEvents.d.ts.map +1 -1
- package/dist/main/mapGetAllEventsQueryEvents.js +22 -1
- package/dist/main/mapGetAllEventsQueryEvents.js.map +1 -1
- package/dist/main/pagination.d.ts +42 -4
- package/dist/main/pagination.d.ts.map +1 -1
- package/dist/main/pagination.js +36 -5
- package/dist/main/pagination.js.map +1 -1
- package/dist/main/subgraph/SubgraphClient.d.ts +2 -2
- package/dist/main/subgraph/SubgraphClient.d.ts.map +1 -1
- package/dist/main/subgraph/SubgraphClient.js +0 -12
- package/dist/main/subgraph/SubgraphClient.js.map +1 -1
- package/dist/main/subgraph/entities/account/account.d.ts +1 -0
- package/dist/main/subgraph/entities/account/account.d.ts.map +1 -1
- package/dist/main/subgraph/entities/account/accounts.generated.d.ts +2 -0
- package/dist/main/subgraph/entities/account/accounts.generated.d.ts.map +1 -1
- package/dist/main/subgraph/entities/account/accounts.generated.js +1 -1
- package/dist/main/subgraph/entities/account/accounts.generated.js.map +1 -1
- package/dist/main/subgraph/entities/accountTokenSnapshot/accountTokenSnapshot.d.ts +2 -0
- package/dist/main/subgraph/entities/accountTokenSnapshot/accountTokenSnapshot.d.ts.map +1 -1
- package/dist/main/subgraph/entities/accountTokenSnapshot/accountTokenSnapshot.js +1 -0
- package/dist/main/subgraph/entities/accountTokenSnapshot/accountTokenSnapshot.js.map +1 -1
- package/dist/main/subgraph/entities/accountTokenSnapshot/accountTokenSnapshots.generated.d.ts +3 -0
- package/dist/main/subgraph/entities/accountTokenSnapshot/accountTokenSnapshots.generated.d.ts.map +1 -1
- package/dist/main/subgraph/entities/accountTokenSnapshot/accountTokenSnapshots.generated.js +1 -1
- package/dist/main/subgraph/entities/accountTokenSnapshot/accountTokenSnapshots.generated.js.map +1 -1
- package/dist/main/subgraph/entities/index/index.d.ts +2 -0
- package/dist/main/subgraph/entities/index/index.d.ts.map +1 -1
- package/dist/main/subgraph/entities/index/index.js +1 -0
- package/dist/main/subgraph/entities/index/index.js.map +1 -1
- package/dist/main/subgraph/entities/index/indexes.generated.d.ts +3 -0
- package/dist/main/subgraph/entities/index/indexes.generated.d.ts.map +1 -1
- package/dist/main/subgraph/entities/index/indexes.generated.js +1 -1
- package/dist/main/subgraph/entities/index/indexes.generated.js.map +1 -1
- package/dist/main/subgraph/entities/indexSubscription/indexSubscription.d.ts +2 -0
- package/dist/main/subgraph/entities/indexSubscription/indexSubscription.d.ts.map +1 -1
- package/dist/main/subgraph/entities/indexSubscription/indexSubscription.js +1 -0
- package/dist/main/subgraph/entities/indexSubscription/indexSubscription.js.map +1 -1
- package/dist/main/subgraph/entities/indexSubscription/indexSubscriptions.generated.d.ts +3 -0
- package/dist/main/subgraph/entities/indexSubscription/indexSubscriptions.generated.d.ts.map +1 -1
- package/dist/main/subgraph/entities/indexSubscription/indexSubscriptions.generated.js +1 -1
- package/dist/main/subgraph/entities/indexSubscription/indexSubscriptions.generated.js.map +1 -1
- package/dist/main/subgraph/entities/stream/stream.d.ts +2 -0
- package/dist/main/subgraph/entities/stream/stream.d.ts.map +1 -1
- package/dist/main/subgraph/entities/stream/stream.js +1 -0
- package/dist/main/subgraph/entities/stream/stream.js.map +1 -1
- package/dist/main/subgraph/entities/stream/streams.generated.d.ts +3 -0
- package/dist/main/subgraph/entities/stream/streams.generated.d.ts.map +1 -1
- package/dist/main/subgraph/entities/stream/streams.generated.js +1 -1
- package/dist/main/subgraph/entities/stream/streams.generated.js.map +1 -1
- package/dist/main/subgraph/entities/streamPeriod/streamPeriod.d.ts +2 -0
- package/dist/main/subgraph/entities/streamPeriod/streamPeriod.d.ts.map +1 -1
- package/dist/main/subgraph/entities/streamPeriod/streamPeriod.js +1 -0
- package/dist/main/subgraph/entities/streamPeriod/streamPeriod.js.map +1 -1
- package/dist/main/subgraph/entities/streamPeriod/streamPeriods.generated.d.ts +3 -0
- package/dist/main/subgraph/entities/streamPeriod/streamPeriods.generated.d.ts.map +1 -1
- package/dist/main/subgraph/entities/streamPeriod/streamPeriods.generated.js +1 -1
- package/dist/main/subgraph/entities/streamPeriod/streamPeriods.generated.js.map +1 -1
- package/dist/main/subgraph/entities/token/token.d.ts +1 -0
- package/dist/main/subgraph/entities/token/token.d.ts.map +1 -1
- package/dist/main/subgraph/entities/token/tokens.generated.d.ts +2 -0
- package/dist/main/subgraph/entities/token/tokens.generated.d.ts.map +1 -1
- package/dist/main/subgraph/entities/token/tokens.generated.js +1 -1
- package/dist/main/subgraph/entities/token/tokens.generated.js.map +1 -1
- package/dist/main/subgraph/entities/tokenStatistic/tokenStatistic.d.ts +1 -0
- package/dist/main/subgraph/entities/tokenStatistic/tokenStatistic.d.ts.map +1 -1
- package/dist/main/subgraph/entities/tokenStatistic/tokenStatistics.generated.d.ts +2 -0
- package/dist/main/subgraph/entities/tokenStatistic/tokenStatistics.generated.d.ts.map +1 -1
- package/dist/main/subgraph/entities/tokenStatistic/tokenStatistics.generated.js +1 -1
- package/dist/main/subgraph/entities/tokenStatistic/tokenStatistics.generated.js.map +1 -1
- package/dist/main/subgraph/events/events.d.ts +1 -0
- package/dist/main/subgraph/events/events.d.ts.map +1 -1
- package/dist/main/subgraph/events/events.generated.d.ts +118 -3
- package/dist/main/subgraph/events/events.generated.d.ts.map +1 -1
- package/dist/main/subgraph/events/events.generated.js +38 -37
- package/dist/main/subgraph/events/events.generated.js.map +1 -1
- package/dist/main/subgraph/events/flowUpdatedEvent.d.ts +1 -0
- package/dist/main/subgraph/events/flowUpdatedEvent.d.ts.map +1 -1
- package/dist/main/subgraph/events/indexUpdatedEvent.d.ts +1 -0
- package/dist/main/subgraph/events/indexUpdatedEvent.d.ts.map +1 -1
- package/dist/main/subgraph/events/subscriptionUnitsUpdatedEvents.d.ts +1 -0
- package/dist/main/subgraph/events/subscriptionUnitsUpdatedEvents.d.ts.map +1 -1
- package/dist/main/subgraph/meta/meta.d.ts +15 -0
- package/dist/main/subgraph/meta/meta.d.ts.map +1 -0
- package/dist/main/subgraph/meta/meta.generated.d.ts +19 -0
- package/dist/main/subgraph/meta/meta.generated.d.ts.map +1 -0
- package/dist/main/subgraph/meta/meta.generated.js +5 -0
- package/dist/main/subgraph/meta/meta.generated.js.map +1 -0
- package/dist/main/subgraph/meta/meta.js +20 -0
- package/dist/main/subgraph/meta/meta.js.map +1 -0
- package/dist/main/subgraph/queries/getAllEvents.generated.d.ts +12 -0
- package/dist/main/subgraph/queries/getAllEvents.generated.d.ts.map +1 -1
- package/dist/main/subgraph/queries/getAllEvents.generated.js +1 -1
- package/dist/main/subgraph/queries/getAllEvents.generated.js.map +1 -1
- package/dist/main/subgraph/schema.generated.d.ts +817 -5
- package/dist/main/subgraph/schema.generated.d.ts.map +1 -1
- package/dist/main/subgraph/subgraphQueryHandler.d.ts +6 -3
- package/dist/main/subgraph/subgraphQueryHandler.d.ts.map +1 -1
- package/dist/main/subgraph/subgraphQueryHandler.js +30 -16
- package/dist/main/subgraph/subgraphQueryHandler.js.map +1 -1
- package/dist/main/typechain/IConstantFlowAgreementV1.d.ts +187 -5
- package/dist/main/typechain/IConstantFlowAgreementV1.d.ts.map +1 -1
- package/dist/main/typechain/ISETH.d.ts +1068 -0
- package/dist/main/typechain/ISETH.d.ts.map +1 -0
- package/dist/main/typechain/ISETH.js +3 -0
- package/dist/main/typechain/ISETH.js.map +1 -0
- package/dist/main/typechain/SuperfluidGovernanceII.d.ts +617 -0
- package/dist/main/typechain/SuperfluidGovernanceII.d.ts.map +1 -0
- package/dist/main/typechain/SuperfluidGovernanceII.js +3 -0
- package/dist/main/typechain/SuperfluidGovernanceII.js.map +1 -0
- package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.d.ts.map +1 -1
- package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.js +335 -2
- package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.js.map +1 -1
- package/dist/main/typechain/factories/ISETH__factory.d.ts +36 -0
- package/dist/main/typechain/factories/ISETH__factory.d.ts.map +1 -0
- package/dist/main/typechain/factories/ISETH__factory.js +1622 -0
- package/dist/main/typechain/factories/ISETH__factory.js.map +1 -0
- package/dist/main/typechain/factories/SuperfluidGovernanceII__factory.d.ts +36 -0
- package/dist/main/typechain/factories/SuperfluidGovernanceII__factory.d.ts.map +1 -0
- package/dist/main/typechain/factories/SuperfluidGovernanceII__factory.js +939 -0
- package/dist/main/typechain/factories/SuperfluidGovernanceII__factory.js.map +1 -0
- package/dist/main/typechain/index.d.ts +4 -0
- package/dist/main/typechain/index.d.ts.map +1 -1
- package/dist/main/typechain/index.js +5 -1
- package/dist/main/typechain/index.js.map +1 -1
- package/dist/main/utils.d.ts +15 -13
- package/dist/main/utils.d.ts.map +1 -1
- package/dist/main/utils.js +29 -15
- package/dist/main/utils.js.map +1 -1
- package/dist/module/BatchCall.d.ts +6 -6
- package/dist/module/BatchCall.js +8 -8
- package/dist/module/BatchCall.js.map +1 -1
- package/dist/module/ConstantFlowAgreementV1.d.ts +106 -17
- package/dist/module/ConstantFlowAgreementV1.d.ts.map +1 -1
- package/dist/module/ConstantFlowAgreementV1.js +239 -51
- package/dist/module/ConstantFlowAgreementV1.js.map +1 -1
- package/dist/module/{Token.d.ts → ERC20Token.d.ts} +17 -14
- package/dist/module/ERC20Token.d.ts.map +1 -0
- package/dist/module/{Token.js → ERC20Token.js} +28 -32
- package/dist/module/ERC20Token.js.map +1 -0
- package/dist/module/Framework.d.ts +34 -7
- package/dist/module/Framework.d.ts.map +1 -1
- package/dist/module/Framework.js +88 -15
- package/dist/module/Framework.js.map +1 -1
- package/dist/module/Governance.d.ts +40 -0
- package/dist/module/Governance.d.ts.map +1 -0
- package/dist/module/Governance.js +76 -0
- package/dist/module/Governance.js.map +1 -0
- package/dist/module/Host.d.ts +3 -3
- package/dist/module/Host.d.ts.map +1 -1
- package/dist/module/Host.js +4 -4
- package/dist/module/Host.js.map +1 -1
- package/dist/module/InstantDistributionAgreementV1.d.ts +25 -22
- package/dist/module/InstantDistributionAgreementV1.d.ts.map +1 -1
- package/dist/module/InstantDistributionAgreementV1.js +69 -71
- package/dist/module/InstantDistributionAgreementV1.js.map +1 -1
- package/dist/module/Operation.d.ts +5 -5
- package/dist/module/Operation.js +5 -5
- package/dist/module/Query.d.ts +6 -6
- package/dist/module/Query.d.ts.map +1 -1
- package/dist/module/Query.js +16 -16
- package/dist/module/Query.js.map +1 -1
- package/dist/module/SFError.d.ts +1 -1
- package/dist/module/SFError.d.ts.map +1 -1
- package/dist/module/SFError.js +2 -0
- package/dist/module/SFError.js.map +1 -1
- package/dist/module/SuperToken.d.ts +226 -67
- package/dist/module/SuperToken.d.ts.map +1 -1
- package/dist/module/SuperToken.js +315 -133
- package/dist/module/SuperToken.js.map +1 -1
- package/dist/module/abi/IConstantFlowAgreementV1.json +335 -2
- package/dist/module/abi/ISETH.json +1604 -0
- package/dist/module/abi/SuperfluidGovernanceII.json +921 -0
- package/dist/module/constants.d.ts +4 -0
- package/dist/module/constants.d.ts.map +1 -1
- package/dist/module/constants.js +32 -12
- package/dist/module/constants.js.map +1 -1
- package/dist/module/defaultSubgraphReleaseTag.json +3 -0
- package/dist/module/events.d.ts +14 -2
- package/dist/module/events.d.ts.map +1 -1
- package/dist/module/frameworkHelpers.d.ts +2 -2
- package/dist/module/frameworkHelpers.js +2 -2
- package/dist/module/index.d.ts +16 -5
- package/dist/module/index.d.ts.map +1 -1
- package/dist/module/index.js +16 -5
- package/dist/module/index.js.map +1 -1
- package/dist/module/interfaces.d.ts +81 -8
- package/dist/module/interfaces.d.ts.map +1 -1
- package/dist/module/mapGetAllEventsQueryEvents.d.ts.map +1 -1
- package/dist/module/mapGetAllEventsQueryEvents.js +22 -1
- package/dist/module/mapGetAllEventsQueryEvents.js.map +1 -1
- package/dist/module/pagination.d.ts +42 -4
- package/dist/module/pagination.d.ts.map +1 -1
- package/dist/module/pagination.js +30 -5
- package/dist/module/pagination.js.map +1 -1
- package/dist/module/subgraph/SubgraphClient.d.ts +2 -2
- package/dist/module/subgraph/SubgraphClient.d.ts.map +1 -1
- package/dist/module/subgraph/SubgraphClient.js +1 -13
- package/dist/module/subgraph/SubgraphClient.js.map +1 -1
- package/dist/module/subgraph/entities/account/account.d.ts +1 -0
- package/dist/module/subgraph/entities/account/account.d.ts.map +1 -1
- package/dist/module/subgraph/entities/account/accounts.generated.d.ts +2 -0
- package/dist/module/subgraph/entities/account/accounts.generated.d.ts.map +1 -1
- package/dist/module/subgraph/entities/account/accounts.generated.js +1 -1
- package/dist/module/subgraph/entities/account/accounts.generated.js.map +1 -1
- package/dist/module/subgraph/entities/accountTokenSnapshot/accountTokenSnapshot.d.ts +2 -0
- package/dist/module/subgraph/entities/accountTokenSnapshot/accountTokenSnapshot.d.ts.map +1 -1
- package/dist/module/subgraph/entities/accountTokenSnapshot/accountTokenSnapshot.js +1 -0
- package/dist/module/subgraph/entities/accountTokenSnapshot/accountTokenSnapshot.js.map +1 -1
- package/dist/module/subgraph/entities/accountTokenSnapshot/accountTokenSnapshots.generated.d.ts +3 -0
- package/dist/module/subgraph/entities/accountTokenSnapshot/accountTokenSnapshots.generated.d.ts.map +1 -1
- package/dist/module/subgraph/entities/accountTokenSnapshot/accountTokenSnapshots.generated.js +1 -1
- package/dist/module/subgraph/entities/accountTokenSnapshot/accountTokenSnapshots.generated.js.map +1 -1
- package/dist/module/subgraph/entities/index/index.d.ts +2 -0
- package/dist/module/subgraph/entities/index/index.d.ts.map +1 -1
- package/dist/module/subgraph/entities/index/index.js +1 -0
- package/dist/module/subgraph/entities/index/index.js.map +1 -1
- package/dist/module/subgraph/entities/index/indexes.generated.d.ts +3 -0
- package/dist/module/subgraph/entities/index/indexes.generated.d.ts.map +1 -1
- package/dist/module/subgraph/entities/index/indexes.generated.js +1 -1
- package/dist/module/subgraph/entities/index/indexes.generated.js.map +1 -1
- package/dist/module/subgraph/entities/indexSubscription/indexSubscription.d.ts +2 -0
- package/dist/module/subgraph/entities/indexSubscription/indexSubscription.d.ts.map +1 -1
- package/dist/module/subgraph/entities/indexSubscription/indexSubscription.js +1 -0
- package/dist/module/subgraph/entities/indexSubscription/indexSubscription.js.map +1 -1
- package/dist/module/subgraph/entities/indexSubscription/indexSubscriptions.generated.d.ts +3 -0
- package/dist/module/subgraph/entities/indexSubscription/indexSubscriptions.generated.d.ts.map +1 -1
- package/dist/module/subgraph/entities/indexSubscription/indexSubscriptions.generated.js +1 -1
- package/dist/module/subgraph/entities/indexSubscription/indexSubscriptions.generated.js.map +1 -1
- package/dist/module/subgraph/entities/stream/stream.d.ts +2 -0
- package/dist/module/subgraph/entities/stream/stream.d.ts.map +1 -1
- package/dist/module/subgraph/entities/stream/stream.js +1 -0
- package/dist/module/subgraph/entities/stream/stream.js.map +1 -1
- package/dist/module/subgraph/entities/stream/streams.generated.d.ts +3 -0
- package/dist/module/subgraph/entities/stream/streams.generated.d.ts.map +1 -1
- package/dist/module/subgraph/entities/stream/streams.generated.js +1 -1
- package/dist/module/subgraph/entities/stream/streams.generated.js.map +1 -1
- package/dist/module/subgraph/entities/streamPeriod/streamPeriod.d.ts +2 -0
- package/dist/module/subgraph/entities/streamPeriod/streamPeriod.d.ts.map +1 -1
- package/dist/module/subgraph/entities/streamPeriod/streamPeriod.js +1 -0
- package/dist/module/subgraph/entities/streamPeriod/streamPeriod.js.map +1 -1
- package/dist/module/subgraph/entities/streamPeriod/streamPeriods.generated.d.ts +3 -0
- package/dist/module/subgraph/entities/streamPeriod/streamPeriods.generated.d.ts.map +1 -1
- package/dist/module/subgraph/entities/streamPeriod/streamPeriods.generated.js +1 -1
- package/dist/module/subgraph/entities/streamPeriod/streamPeriods.generated.js.map +1 -1
- package/dist/module/subgraph/entities/token/token.d.ts +1 -0
- package/dist/module/subgraph/entities/token/token.d.ts.map +1 -1
- package/dist/module/subgraph/entities/token/tokens.generated.d.ts +2 -0
- package/dist/module/subgraph/entities/token/tokens.generated.d.ts.map +1 -1
- package/dist/module/subgraph/entities/token/tokens.generated.js +1 -1
- package/dist/module/subgraph/entities/token/tokens.generated.js.map +1 -1
- package/dist/module/subgraph/entities/tokenStatistic/tokenStatistic.d.ts +1 -0
- package/dist/module/subgraph/entities/tokenStatistic/tokenStatistic.d.ts.map +1 -1
- package/dist/module/subgraph/entities/tokenStatistic/tokenStatistics.generated.d.ts +2 -0
- package/dist/module/subgraph/entities/tokenStatistic/tokenStatistics.generated.d.ts.map +1 -1
- package/dist/module/subgraph/entities/tokenStatistic/tokenStatistics.generated.js +1 -1
- package/dist/module/subgraph/entities/tokenStatistic/tokenStatistics.generated.js.map +1 -1
- package/dist/module/subgraph/events/events.d.ts +1 -0
- package/dist/module/subgraph/events/events.d.ts.map +1 -1
- package/dist/module/subgraph/events/events.generated.d.ts +118 -3
- package/dist/module/subgraph/events/events.generated.d.ts.map +1 -1
- package/dist/module/subgraph/events/events.generated.js +37 -36
- package/dist/module/subgraph/events/events.generated.js.map +1 -1
- package/dist/module/subgraph/events/flowUpdatedEvent.d.ts +1 -0
- package/dist/module/subgraph/events/flowUpdatedEvent.d.ts.map +1 -1
- package/dist/module/subgraph/events/indexUpdatedEvent.d.ts +1 -0
- package/dist/module/subgraph/events/indexUpdatedEvent.d.ts.map +1 -1
- package/dist/module/subgraph/events/subscriptionUnitsUpdatedEvents.d.ts +1 -0
- package/dist/module/subgraph/events/subscriptionUnitsUpdatedEvents.d.ts.map +1 -1
- package/dist/module/subgraph/meta/meta.d.ts +15 -0
- package/dist/module/subgraph/meta/meta.d.ts.map +1 -0
- package/dist/module/subgraph/meta/meta.generated.d.ts +19 -0
- package/dist/module/subgraph/meta/meta.generated.d.ts.map +1 -0
- package/dist/module/subgraph/meta/meta.generated.js +2 -0
- package/dist/module/subgraph/meta/meta.generated.js.map +1 -0
- package/dist/module/subgraph/meta/meta.js +16 -0
- package/dist/module/subgraph/meta/meta.js.map +1 -0
- package/dist/module/subgraph/queries/getAllEvents.generated.d.ts +12 -0
- package/dist/module/subgraph/queries/getAllEvents.generated.d.ts.map +1 -1
- package/dist/module/subgraph/queries/getAllEvents.generated.js +1 -1
- package/dist/module/subgraph/queries/getAllEvents.generated.js.map +1 -1
- package/dist/module/subgraph/schema.generated.d.ts +817 -5
- package/dist/module/subgraph/schema.generated.d.ts.map +1 -1
- package/dist/module/subgraph/subgraphQueryHandler.d.ts +6 -3
- package/dist/module/subgraph/subgraphQueryHandler.d.ts.map +1 -1
- package/dist/module/subgraph/subgraphQueryHandler.js +31 -17
- package/dist/module/subgraph/subgraphQueryHandler.js.map +1 -1
- package/dist/module/typechain/IConstantFlowAgreementV1.d.ts +187 -5
- package/dist/module/typechain/IConstantFlowAgreementV1.d.ts.map +1 -1
- package/dist/module/typechain/ISETH.d.ts +1068 -0
- package/dist/module/typechain/ISETH.d.ts.map +1 -0
- package/dist/module/typechain/ISETH.js +2 -0
- package/dist/module/typechain/ISETH.js.map +1 -0
- package/dist/module/typechain/SuperfluidGovernanceII.d.ts +617 -0
- package/dist/module/typechain/SuperfluidGovernanceII.d.ts.map +1 -0
- package/dist/module/typechain/SuperfluidGovernanceII.js +2 -0
- package/dist/module/typechain/SuperfluidGovernanceII.js.map +1 -0
- package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.d.ts.map +1 -1
- package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.js +335 -2
- package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.js.map +1 -1
- package/dist/module/typechain/factories/ISETH__factory.d.ts +36 -0
- package/dist/module/typechain/factories/ISETH__factory.d.ts.map +1 -0
- package/dist/module/typechain/factories/ISETH__factory.js +1618 -0
- package/dist/module/typechain/factories/ISETH__factory.js.map +1 -0
- package/dist/module/typechain/factories/SuperfluidGovernanceII__factory.d.ts +36 -0
- package/dist/module/typechain/factories/SuperfluidGovernanceII__factory.d.ts.map +1 -0
- package/dist/module/typechain/factories/SuperfluidGovernanceII__factory.js +935 -0
- package/dist/module/typechain/factories/SuperfluidGovernanceII__factory.js.map +1 -0
- package/dist/module/typechain/index.d.ts +4 -0
- package/dist/module/typechain/index.d.ts.map +1 -1
- package/dist/module/typechain/index.js +2 -0
- package/dist/module/typechain/index.js.map +1 -1
- package/dist/module/utils.d.ts +15 -13
- package/dist/module/utils.d.ts.map +1 -1
- package/dist/module/utils.js +27 -15
- package/dist/module/utils.js.map +1 -1
- package/package.json +11 -41
- package/dist/main/Token.d.ts.map +0 -1
- package/dist/main/Token.js.map +0 -1
- package/dist/module/Token.d.ts.map +0 -1
- package/dist/module/Token.js.map +0 -1
package/dist/main/BatchCall.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ interface OperationStruct {
|
|
|
11
11
|
readonly data: string;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* BatchCall Helper Class
|
|
15
15
|
* @description A helper class to create `BatchCall` objects which can be executed.
|
|
16
16
|
*/
|
|
17
17
|
export default class BatchCall {
|
|
@@ -19,31 +19,31 @@ export default class BatchCall {
|
|
|
19
19
|
host: Host;
|
|
20
20
|
constructor(options: IBatchCallOptions);
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Gets the call agreement function arguments.
|
|
23
23
|
* @param callData callData of the function
|
|
24
24
|
* @returns {ethers.utils.Result} call agreement function arguments
|
|
25
25
|
*/
|
|
26
26
|
getCallAgreementFunctionArgs: (callData: string) => ethers.utils.Result;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Given an `Operation` object, gets the `OperationStruct` object.
|
|
29
29
|
* @param operation an `Operation` object
|
|
30
30
|
* @param index the index of the `Operation` in the batchCall
|
|
31
31
|
* @returns {Promise<OperationStruct>} OperationStruct object for batchCall
|
|
32
32
|
*/
|
|
33
33
|
getOperationStruct: (operation: Operation, index: number) => Promise<OperationStruct>;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Gets an array of `OperationStruct` objects to be passed to batchCall.
|
|
36
36
|
* @returns {Promise<OperationStruct>[]} array of operation struct promises
|
|
37
37
|
*/
|
|
38
38
|
get getOperationStructArrayPromises(): Promise<OperationStruct>[];
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Executes a batch call given the operations on this class.
|
|
41
41
|
* @param signer the signer of the transaction
|
|
42
42
|
* @returns {Promise<ethers.ContractTransaction>} ContractTransaction object
|
|
43
43
|
*/
|
|
44
44
|
exec: (signer: ethers.Signer) => Promise<ethers.ContractTransaction>;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Executes a forward batch call given the operations on this class.
|
|
47
47
|
* @param signer the signer of the transaction
|
|
48
48
|
* @returns {Promise<ethers.ContractTransaction>} ContractTransaction object
|
|
49
49
|
*/
|
package/dist/main/BatchCall.js
CHANGED
|
@@ -17,19 +17,19 @@ const operationTypeStringToTypeMap = new Map([
|
|
|
17
17
|
["CALL_APP_ACTION", 202],
|
|
18
18
|
]);
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* BatchCall Helper Class
|
|
21
21
|
* @description A helper class to create `BatchCall` objects which can be executed.
|
|
22
22
|
*/
|
|
23
23
|
class BatchCall {
|
|
24
24
|
constructor(options) {
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Gets the call agreement function arguments.
|
|
27
27
|
* @param callData callData of the function
|
|
28
28
|
* @returns {ethers.utils.Result} call agreement function arguments
|
|
29
29
|
*/
|
|
30
30
|
this.getCallAgreementFunctionArgs = (callData) => (0, utils_1.getTransactionDescription)(Superfluid_json_1.default.abi, callData).args;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Given an `Operation` object, gets the `OperationStruct` object.
|
|
33
33
|
* @param operation an `Operation` object
|
|
34
34
|
* @param index the index of the `Operation` in the batchCall
|
|
35
35
|
* @returns {Promise<OperationStruct>} OperationStruct object for batchCall
|
|
@@ -71,14 +71,14 @@ class BatchCall {
|
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* Executes a batch call given the operations on this class.
|
|
75
75
|
* @param signer the signer of the transaction
|
|
76
76
|
* @returns {Promise<ethers.ContractTransaction>} ContractTransaction object
|
|
77
77
|
*/
|
|
78
78
|
this.exec = async (signer) => {
|
|
79
79
|
try {
|
|
80
80
|
const operationStructArray = await Promise.all(this.getOperationStructArrayPromises);
|
|
81
|
-
return await this.host.
|
|
81
|
+
return await this.host.contract
|
|
82
82
|
.connect(signer)
|
|
83
83
|
.batchCall(operationStructArray);
|
|
84
84
|
}
|
|
@@ -94,14 +94,14 @@ class BatchCall {
|
|
|
94
94
|
// TODO: user signs the transaction they'd like to execute and gives
|
|
95
95
|
// this data to the trusted forwarder to sign
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* Executes a forward batch call given the operations on this class.
|
|
98
98
|
* @param signer the signer of the transaction
|
|
99
99
|
* @returns {Promise<ethers.ContractTransaction>} ContractTransaction object
|
|
100
100
|
*/
|
|
101
101
|
this.execForward = async (signer) => {
|
|
102
102
|
try {
|
|
103
103
|
const operationStructArray = await Promise.all(this.getOperationStructArrayPromises);
|
|
104
|
-
return await this.host.
|
|
104
|
+
return await this.host.contract
|
|
105
105
|
.connect(signer)
|
|
106
106
|
.forwardBatchCall(operationStructArray);
|
|
107
107
|
}
|
|
@@ -117,7 +117,7 @@ class BatchCall {
|
|
|
117
117
|
this.host = new Host_1.default(options.hostAddress);
|
|
118
118
|
}
|
|
119
119
|
/**
|
|
120
|
-
*
|
|
120
|
+
* Gets an array of `OperationStruct` objects to be passed to batchCall.
|
|
121
121
|
* @returns {Promise<OperationStruct>[]} array of operation struct promises
|
|
122
122
|
*/
|
|
123
123
|
get getOperationStructArrayPromises() {
|
|
@@ -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,IAAI,CAAC;QAEhE;;;;;WAKG;QACH,uBAAkB,GAAG,KAAK,EACtB,SAAoB,EACpB,KAAa,EACW,EAAE;YAC1B,MAAM,aAAa,GAAG,4BAA4B,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YACvE,MAAM,oBAAoB,GAAG,MAAM,SAAS,CAAC,0BAA0B,CA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QAC7C;;;;WAIG;QACH,gBAAW,GAAG,KAAK,EACf,MAAqB,EACc,EAAE;YACrC,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,iBAAO,CAAC;oBACd,IAAI,EAAE,kBAAkB;oBACxB,aAAa,EAAE,+CAA+C;oBAC9D,WAAW,EAAE,GAAG;iBACnB,CAAC,CAAC;aACN;QACL,CAAC,CAAC;QAhIE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,cAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9C,CAAC;IAmED;;;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;AAtID,4BAsIC"}
|
|
@@ -1,42 +1,72 @@
|
|
|
1
1
|
import Host from "./Host";
|
|
2
2
|
import Operation from "./Operation";
|
|
3
|
-
import { IAgreementV1Options, ICreateFlowParams, IDeleteFlowParams, IGetAccountFlowInfoParams, IGetFlowParams, IUpdateFlowParams, IWeb3FlowInfo, IWeb3FlowInfoParams } from "./interfaces";
|
|
3
|
+
import { IAgreementV1Options, ICreateFlowParams, IDeleteFlowParams, IFullControlParams, IGetAccountFlowInfoParams, IGetFlowOperatorDataByIDParams, IGetFlowOperatorDataParams, IGetFlowParams, IUpdateFlowByOperatorParams, IUpdateFlowOperatorPermissionsParams, IUpdateFlowParams, IWeb3FlowInfo, IWeb3FlowInfoParams, IWeb3FlowOperatorData, IWeb3FlowOperatorDataParams } from "./interfaces";
|
|
4
|
+
import { IConstantFlowAgreementV1 } from "./typechain";
|
|
4
5
|
/**
|
|
5
|
-
*
|
|
6
|
+
* Constant Flow Agreement V1 Helper Class
|
|
6
7
|
* @description A helper class to interact with the CFAV1 contract.
|
|
7
8
|
*/
|
|
8
9
|
export default class ConstantFlowAgreementV1 {
|
|
9
10
|
readonly options: IAgreementV1Options;
|
|
10
11
|
readonly host: Host;
|
|
12
|
+
readonly contract: IConstantFlowAgreementV1;
|
|
11
13
|
constructor(options: IAgreementV1Options);
|
|
12
|
-
|
|
14
|
+
/** ### CFA Read Functions ### */
|
|
13
15
|
/**
|
|
14
|
-
*
|
|
16
|
+
* Get the details of a flow.
|
|
15
17
|
* @param superToken the superToken of the agreement
|
|
16
18
|
* @param sender the sender of the flow
|
|
17
19
|
* @param receiver the receiver of the flow
|
|
18
20
|
* @param providerOrSigner a provider or signer object
|
|
19
21
|
* @returns {Promise<IWeb3FlowInfo>} Web3 Flow info object
|
|
20
22
|
*/
|
|
21
|
-
getFlow: (
|
|
23
|
+
getFlow: (params: IGetFlowParams) => Promise<IWeb3FlowInfo>;
|
|
22
24
|
/**
|
|
23
|
-
*
|
|
25
|
+
* Get the flow info of an account (net flow).
|
|
24
26
|
* @param superToken the superToken of the agreement
|
|
25
27
|
* @param account the account we're querying
|
|
26
28
|
* @param providerOrSigner a provider or signer object
|
|
27
29
|
* @returns {Promise<IWeb3FlowInfo>} Web3 Flow info object
|
|
28
30
|
*/
|
|
29
|
-
getAccountFlowInfo: (
|
|
31
|
+
getAccountFlowInfo: (params: IGetAccountFlowInfoParams) => Promise<IWeb3FlowInfo>;
|
|
30
32
|
/**
|
|
31
|
-
*
|
|
33
|
+
* Get the net flow of an account.
|
|
32
34
|
* @param superToken the superToken of the agreement
|
|
33
35
|
* @param account the account we're querying
|
|
34
36
|
* @param providerOrSigner a provider or signer object
|
|
35
37
|
* @returns {Promise<string>} Web3 Flow info object
|
|
36
38
|
*/
|
|
37
|
-
getNetFlow: (
|
|
39
|
+
getNetFlow: (params: IGetAccountFlowInfoParams) => Promise<string>;
|
|
38
40
|
/**
|
|
39
|
-
*
|
|
41
|
+
* Get flow operator data.
|
|
42
|
+
* @param superToken the superToken of the agreement
|
|
43
|
+
* @param sender the sender
|
|
44
|
+
* @param flowOperator the flowOperator
|
|
45
|
+
* @param providerOrSigner a provider or signer object
|
|
46
|
+
* @returns {Promise<IWeb3FlowOperatorData>} Web3 Flow info object
|
|
47
|
+
*/
|
|
48
|
+
getFlowOperatorData: (params: IGetFlowOperatorDataParams) => Promise<IWeb3FlowOperatorData>;
|
|
49
|
+
/**
|
|
50
|
+
* Get flow operator data using the flowOperatorId.
|
|
51
|
+
* @param superToken the superToken of the agreement
|
|
52
|
+
* @param flowOperatorId The keccak256 hash of encoded string "flowOperator", sender and flowOperator
|
|
53
|
+
* @param providerOrSigner a provider or signer object
|
|
54
|
+
* @returns {Promise<IWeb3FlowOperatorData>} Web3 Flow info object
|
|
55
|
+
*/
|
|
56
|
+
getFlowOperatorDataByID: (params: IGetFlowOperatorDataByIDParams) => Promise<IWeb3FlowOperatorData>;
|
|
57
|
+
/** ### CFA Write Functions ### */
|
|
58
|
+
/**
|
|
59
|
+
* Create a flow.
|
|
60
|
+
* @param flowRate The specified flow rate.
|
|
61
|
+
* @param receiver The receiver of the flow.
|
|
62
|
+
* @param superToken The token to be flowed.
|
|
63
|
+
* @param userData Extra user data provided.
|
|
64
|
+
* @param overrides ethers overrides object for more control over the transaction sent.
|
|
65
|
+
* @returns {Operation} An instance of Operation which can be executed or batched.
|
|
66
|
+
*/
|
|
67
|
+
createFlow: (params: ICreateFlowParams) => Operation;
|
|
68
|
+
/**
|
|
69
|
+
* Update a flow.
|
|
40
70
|
* @param flowRate The specified flow rate.
|
|
41
71
|
* @param receiver The receiver of the flow.
|
|
42
72
|
* @param superToken The token to be flowed.
|
|
@@ -44,35 +74,94 @@ export default class ConstantFlowAgreementV1 {
|
|
|
44
74
|
* @param overrides ethers overrides object for more control over the transaction sent.
|
|
45
75
|
* @returns {Operation} An instance of Operation which can be executed or batched.
|
|
46
76
|
*/
|
|
47
|
-
|
|
77
|
+
updateFlow: (params: IUpdateFlowParams) => Operation;
|
|
78
|
+
/**
|
|
79
|
+
* Delete a flow.
|
|
80
|
+
* @param superToken The token to be flowed.
|
|
81
|
+
* @param sender The sender of the flow.
|
|
82
|
+
* @param receiver The receiver of the flow.
|
|
83
|
+
* @param userData Extra user data provided.
|
|
84
|
+
* @param overrides ethers overrides object for more control over the transaction sent.
|
|
85
|
+
* @returns {Operation} An instance of Operation which can be executed or batched.
|
|
86
|
+
*/
|
|
87
|
+
deleteFlow: (params: IDeleteFlowParams) => Operation;
|
|
88
|
+
/** ### CFA ACL Write Functions (byOperator) ### */
|
|
89
|
+
/**
|
|
90
|
+
* Update permissions for a flow operator as a sender.
|
|
91
|
+
* @param superToken The token to be flowed.
|
|
92
|
+
* @param flowOperator The permission grantee address
|
|
93
|
+
* @param permission The permissions to set.
|
|
94
|
+
* @param flowRateAllowance The flowRateAllowance granted to the flow operator.
|
|
95
|
+
* @param userData Extra user data provided.
|
|
96
|
+
* @param overrides ethers overrides object for more control over the transaction sent.
|
|
97
|
+
* @returns {Operation} An instance of Operation which can be executed or batched.
|
|
98
|
+
*/
|
|
99
|
+
updateFlowOperatorPermissions(params: IUpdateFlowOperatorPermissionsParams): Operation;
|
|
100
|
+
/**
|
|
101
|
+
* Give flow operator full control - max flow rate and create/update/delete permissions.
|
|
102
|
+
* @param superToken The token to be flowed.
|
|
103
|
+
* @param flowOperator The permission grantee address
|
|
104
|
+
* @param userData Extra user data provided.
|
|
105
|
+
* @param overrides ethers overrides object for more control over the transaction sent.
|
|
106
|
+
*/
|
|
107
|
+
authorizeFlowOperatorWithFullControl(params: IFullControlParams): Operation;
|
|
108
|
+
/**
|
|
109
|
+
* Revoke flow operator control - set flow rate to 0 with no permissions.
|
|
110
|
+
* @param superToken The token to be flowed.
|
|
111
|
+
* @param flowOperator The permission grantee address
|
|
112
|
+
* @param userData Extra user data provided.
|
|
113
|
+
* @param overrides ethers overrides object for more control over the transaction sent.
|
|
114
|
+
*/
|
|
115
|
+
revokeFlowOperatorWithFullControl(params: IFullControlParams): Operation;
|
|
48
116
|
/**
|
|
49
|
-
*
|
|
117
|
+
* Create a flow as an operator
|
|
50
118
|
* @param flowRate The specified flow rate.
|
|
119
|
+
* @param sender The sender of the flow.
|
|
51
120
|
* @param receiver The receiver of the flow.
|
|
52
121
|
* @param superToken The token to be flowed.
|
|
53
122
|
* @param userData Extra user data provided.
|
|
54
123
|
* @param overrides ethers overrides object for more control over the transaction sent.
|
|
55
124
|
* @returns {Operation} An instance of Operation which can be executed or batched.
|
|
56
125
|
*/
|
|
57
|
-
|
|
126
|
+
createFlowByOperator: (params: ICreateFlowParams) => Operation;
|
|
58
127
|
/**
|
|
59
|
-
*
|
|
128
|
+
* Update a flow as an operator.
|
|
129
|
+
* @param flowRate The specified flow rate.
|
|
130
|
+
* @param sender The sender of the flow.
|
|
131
|
+
* @param receiver The receiver of the flow.
|
|
60
132
|
* @param superToken The token to be flowed.
|
|
133
|
+
* @param userData Extra user data provided.
|
|
134
|
+
* @param overrides ethers overrides object for more control over the transaction sent.
|
|
135
|
+
* @returns {Operation} An instance of Operation which can be executed or batched.
|
|
136
|
+
*/
|
|
137
|
+
updateFlowByOperator: (params: IUpdateFlowByOperatorParams) => Operation;
|
|
138
|
+
/**
|
|
139
|
+
* Delete a flow as an operator.
|
|
61
140
|
* @param sender The sender of the flow.
|
|
62
141
|
* @param receiver The receiver of the flow.
|
|
142
|
+
* @param superToken The token to be flowed.
|
|
63
143
|
* @param userData Extra user data provided.
|
|
64
144
|
* @param overrides ethers overrides object for more control over the transaction sent.
|
|
65
145
|
* @returns {Operation} An instance of Operation which can be executed or batched.
|
|
66
146
|
*/
|
|
67
|
-
|
|
147
|
+
deleteFlowByOperator: (params: IDeleteFlowParams) => Operation;
|
|
148
|
+
/** ### Private Functions ### */
|
|
68
149
|
/**
|
|
69
|
-
*
|
|
150
|
+
* Sanitizes flow info, converting BigNumber to string.
|
|
70
151
|
* @param timestamp last updated timestamp of flow
|
|
71
152
|
* @param flowRate the current flow rate
|
|
72
153
|
* @param deposit the deposit amount
|
|
73
154
|
* @param owedDeposit any owed depsit
|
|
74
155
|
* @returns {IWeb3FlowInfo} sanitized web3 flow info
|
|
75
156
|
*/
|
|
76
|
-
|
|
157
|
+
_sanitizeFlowInfo: (params: IWeb3FlowInfoParams) => IWeb3FlowInfo;
|
|
158
|
+
/**
|
|
159
|
+
* Sanitizes flow operator data, converting BigNumber to string.
|
|
160
|
+
* @param flowOperatorId The keccak256 hash of encoded string "flowOperator", sender and flowOperator
|
|
161
|
+
* @param permissions the permissions
|
|
162
|
+
* @param flowRateAllowance the flow rate allowance granted to the flow operator
|
|
163
|
+
* @returns {IWeb3FlowOperatorData} sanitized web3 flow info
|
|
164
|
+
*/
|
|
165
|
+
_sanitizeFlowOperatorData: (params: IWeb3FlowOperatorDataParams) => IWeb3FlowOperatorData;
|
|
77
166
|
}
|
|
78
167
|
//# sourceMappingURL=ConstantFlowAgreementV1.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConstantFlowAgreementV1.d.ts","sourceRoot":"","sources":["../../src/ConstantFlowAgreementV1.ts"],"names":[],"mappings":"AAEA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,SAAS,MAAM,aAAa,CAAC;AAGpC,OAAO,EACH,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,yBAAyB,EACzB,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,mBAAmB,
|
|
1
|
+
{"version":3,"file":"ConstantFlowAgreementV1.d.ts","sourceRoot":"","sources":["../../src/ConstantFlowAgreementV1.ts"],"names":[],"mappings":"AAEA,OAAO,IAAI,MAAM,QAAQ,C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