@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuperfluidGovernanceII__factory.js","sourceRoot":"","sources":["../../../../src/typechain/factories/SuperfluidGovernanceII__factory.ts"],"names":[],"mappings":";AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;;;AAEpB,mCAAiD;AAOjD,MAAM,IAAI,GAAG;IACX;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,sBAAsB;gBACpC,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,S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AyB;gBAC/B,IAAI,EAAE,WAAW;aAClB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,2BAA2B;gBACjC,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;CACF,CAAC;AAEF,MAAa,+BAA+B;IAE1C,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,cAAK,CAAC,SAAS,CAAC,IAAI,CAAoC,CAAC;IACtE,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,gBAAmC;QAEnC,OAAO,IAAI,iBAAQ,CACjB,OAAO,EACP,IAAI,EACJ,gBAAgB,CACS,CAAC;IAC9B,CAAC;;AAdH,0EAeC;AAdiB,mCAAG,GAAG,IAAI,CAAC"}
|
|
@@ -2,7 +2,9 @@ export type { ERC20WithTokenInfo } from "./ERC20WithTokenInfo";
|
|
|
2
2
|
export type { IConstantFlowAgreementV1 } from "./IConstantFlowAgreementV1";
|
|
3
3
|
export type { IInstantDistributionAgreementV1 } from "./IInstantDistributionAgreementV1";
|
|
4
4
|
export type { IResolver } from "./IResolver";
|
|
5
|
+
export type { ISETH } from "./ISETH";
|
|
5
6
|
export type { Superfluid } from "./Superfluid";
|
|
7
|
+
export type { SuperfluidGovernanceII } from "./SuperfluidGovernanceII";
|
|
6
8
|
export type { SuperfluidLoader } from "./SuperfluidLoader";
|
|
7
9
|
export type { SuperToken } from "./SuperToken";
|
|
8
10
|
export type { TestToken } from "./TestToken";
|
|
@@ -10,7 +12,9 @@ export { ERC20WithTokenInfo__factory } from "./factories/ERC20WithTokenInfo__fac
|
|
|
10
12
|
export { IConstantFlowAgreementV1__factory } from "./factories/IConstantFlowAgreementV1__factory";
|
|
11
13
|
export { IInstantDistributionAgreementV1__factory } from "./factories/IInstantDistributionAgreementV1__factory";
|
|
12
14
|
export { IResolver__factory } from "./factories/IResolver__factory";
|
|
15
|
+
export { ISETH__factory } from "./factories/ISETH__factory";
|
|
13
16
|
export { Superfluid__factory } from "./factories/Superfluid__factory";
|
|
17
|
+
export { SuperfluidGovernanceII__factory } from "./factories/SuperfluidGovernanceII__factory";
|
|
14
18
|
export { SuperfluidLoader__factory } from "./factories/SuperfluidLoader__factory";
|
|
15
19
|
export { SuperToken__factory } from "./factories/SuperToken__factory";
|
|
16
20
|
export { TestToken__factory } from "./factories/TestToken__factory";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typechain/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,YAAY,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,YAAY,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACzF,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;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AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TestToken__factory = exports.SuperToken__factory = exports.SuperfluidLoader__factory = exports.Superfluid__factory = exports.IResolver__factory = exports.IInstantDistributionAgreementV1__factory = exports.IConstantFlowAgreementV1__factory = exports.ERC20WithTokenInfo__factory = void 0;
|
|
3
|
+
exports.TestToken__factory = exports.SuperToken__factory = exports.SuperfluidLoader__factory = exports.SuperfluidGovernanceII__factory = exports.Superfluid__factory = exports.ISETH__factory = exports.IResolver__factory = exports.IInstantDistributionAgreementV1__factory = exports.IConstantFlowAgreementV1__factory = exports.ERC20WithTokenInfo__factory = void 0;
|
|
4
4
|
var ERC20WithTokenInfo__factory_1 = require("./factories/ERC20WithTokenInfo__factory");
|
|
5
5
|
Object.defineProperty(exports, "ERC20WithTokenInfo__factory", { enumerable: true, get: function () { return ERC20WithTokenInfo__factory_1.ERC20WithTokenInfo__factory; } });
|
|
6
6
|
var IConstantFlowAgreementV1__factory_1 = require("./factories/IConstantFlowAgreementV1__factory");
|
|
@@ -9,8 +9,12 @@ var IInstantDistributionAgreementV1__factory_1 = require("./factories/IInstantDi
|
|
|
9
9
|
Object.defineProperty(exports, "IInstantDistributionAgreementV1__factory", { enumerable: true, get: function () { return IInstantDistributionAgreementV1__factory_1.IInstantDistributionAgreementV1__factory; } });
|
|
10
10
|
var IResolver__factory_1 = require("./factories/IResolver__factory");
|
|
11
11
|
Object.defineProperty(exports, "IResolver__factory", { enumerable: true, get: function () { return IResolver__factory_1.IResolver__factory; } });
|
|
12
|
+
var ISETH__factory_1 = require("./factories/ISETH__factory");
|
|
13
|
+
Object.defineProperty(exports, "ISETH__factory", { enumerable: true, get: function () { return ISETH__factory_1.ISETH__factory; } });
|
|
12
14
|
var Superfluid__factory_1 = require("./factories/Superfluid__factory");
|
|
13
15
|
Object.defineProperty(exports, "Superfluid__factory", { enumerable: true, get: function () { return Superfluid__factory_1.Superfluid__factory; } });
|
|
16
|
+
var SuperfluidGovernanceII__factory_1 = require("./factories/SuperfluidGovernanceII__factory");
|
|
17
|
+
Object.defineProperty(exports, "SuperfluidGovernanceII__factory", { enumerable: true, get: function () { return SuperfluidGovernanceII__factory_1.SuperfluidGovernanceII__factory; } });
|
|
14
18
|
var SuperfluidLoader__factory_1 = require("./factories/SuperfluidLoader__factory");
|
|
15
19
|
Object.defineProperty(exports, "SuperfluidLoader__factory", { enumerable: true, get: function () { return SuperfluidLoader__factory_1.SuperfluidLoader__factory; } });
|
|
16
20
|
var SuperToken__factory_1 = require("./factories/SuperToken__factory");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/typechain/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/typechain/index.ts"],"names":[],"mappings":";;;AAcA,uFAAsF;AAA7E,0IAAA,2BAA2B,OAAA;AACpC,mGAAkG;AAAzF,sJAAA,iCAAiC,OAAA;AAC1C,iHAAgH;AAAvG,oKAAA,wCAAwC,OAAA;AACjD,qEAAoE;AAA3D,wHAAA,kBAAkB,OAAA;AAC3B,6DAA4D;AAAnD,gHAAA,cAAc,OAAA;AACvB,uEAAsE;AAA7D,0HAAA,mBAAmB,OAAA;AAC5B,+FAA8F;AAArF,kJAAA,+BAA+B,OAAA;AACxC,mFAAkF;AAAzE,sIAAA,yBAAyB,OAAA;AAClC,uEAAsE;AAA7D,0HAAA,mBAAmB,OAAA;AAC5B,qEAAoE;AAA3D,wHAAA,kBAAkB,OAAA"}
|
package/dist/main/utils.d.ts
CHANGED
|
@@ -4,20 +4,21 @@ import { ethers } from "ethers";
|
|
|
4
4
|
import Web3 from "web3";
|
|
5
5
|
import { IIndexSubscription } from "./interfaces";
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Checks if address is a valid ethereum address and normalizes so it can be used by both subgraph and web3.
|
|
8
8
|
* @param address
|
|
9
9
|
* @returns The normalized address.
|
|
10
10
|
*/
|
|
11
11
|
export declare const normalizeAddress: (address?: string | undefined) => string;
|
|
12
|
+
export declare const isPermissionsClean: (permissions: number) => boolean;
|
|
12
13
|
export declare const isNullOrEmpty: (str: string | null | undefined) => boolean;
|
|
13
14
|
/**
|
|
14
|
-
*
|
|
15
|
+
* Removes the 8-character signature hash from `callData`.
|
|
15
16
|
* @param callData
|
|
16
17
|
* @returns function parameters
|
|
17
18
|
*/
|
|
18
19
|
export declare const removeSigHashFromCallData: (callData: string) => string;
|
|
19
20
|
/**
|
|
20
|
-
*
|
|
21
|
+
* A wrapper function for getting the ethers TransactionDescription object given fragments (e.g. ABI), callData and the value amount sent.
|
|
21
22
|
* @param fragments ABI
|
|
22
23
|
* @param data callData of a function
|
|
23
24
|
* @param value amount of ether sent
|
|
@@ -25,31 +26,31 @@ export declare const removeSigHashFromCallData: (callData: string) => string;
|
|
|
25
26
|
*/
|
|
26
27
|
export declare const getTransactionDescription: (fragments: string | readonly (string | ethers.utils.Fragment | JsonFragment)[], data: string, value?: string | undefined) => ethers.utils.TransactionDescription;
|
|
27
28
|
/**
|
|
28
|
-
*
|
|
29
|
+
* Gets the per second flow rate given an `amountPerYear` value.
|
|
29
30
|
* @param amountPerYear the amount you want to stream per year
|
|
30
31
|
* @returns flow rate per second
|
|
31
32
|
*/
|
|
32
33
|
export declare const getPerSecondFlowRateByYear: (amountPerYear: string) => string;
|
|
33
34
|
/**
|
|
34
|
-
*
|
|
35
|
+
* Gets the per second flow rate given an `amountPerMonth` value.
|
|
35
36
|
* @param amountPerMonth the amount you want to stream per month
|
|
36
37
|
* @returns flow rate per second
|
|
37
38
|
*/
|
|
38
39
|
export declare const getPerSecondFlowRateByMonth: (amountPerMonth: string) => string;
|
|
39
40
|
/**
|
|
40
|
-
*
|
|
41
|
+
* Gets the per second flow rate given an `amountPerWeek` value.
|
|
41
42
|
* @param amountPerWeek the amount you want to stream per Week
|
|
42
43
|
* @returns flow rate per second
|
|
43
44
|
*/
|
|
44
45
|
export declare const getPerSecondFlowRateByWeek: (amountPerWeek: string) => string;
|
|
45
46
|
/**
|
|
46
|
-
*
|
|
47
|
+
* Gets the per second flow rate given an `amountPerDay` value.
|
|
47
48
|
* @param amountPerDay the amount you want to stream per day
|
|
48
49
|
* @returns flow rate per second
|
|
49
50
|
*/
|
|
50
51
|
export declare const getPerSecondFlowRateByDay: (amountPerDay: string) => string;
|
|
51
52
|
/**
|
|
52
|
-
*
|
|
53
|
+
* Gets daily, weekly, monthly and yearly flowed amounts given a per second flow rate.
|
|
53
54
|
* @param perSecondFlowRate
|
|
54
55
|
* @returns
|
|
55
56
|
*/
|
|
@@ -60,7 +61,7 @@ export declare const getFlowAmountByPerSecondFlowRate: (perSecondFlowRate: strin
|
|
|
60
61
|
yearly: string;
|
|
61
62
|
};
|
|
62
63
|
/**
|
|
63
|
-
*
|
|
64
|
+
* The formula for calculating the flowed amount since updated using Subgraph data.
|
|
64
65
|
* @param netFlowRate the net flow rate of the user
|
|
65
66
|
* @param currentTimestamp the current timestamp
|
|
66
67
|
* @param updatedAtTimestamp the updated at timestamp of the `AccountTokenSnapshot` entity
|
|
@@ -72,19 +73,19 @@ export declare const flowedAmountSinceUpdatedAt: ({ netFlowRate, currentTimestam
|
|
|
72
73
|
updatedAtTimestamp: string;
|
|
73
74
|
}) => number;
|
|
74
75
|
/**
|
|
75
|
-
*
|
|
76
|
+
* The formula for calculating the total amount distributed to the subscriber (pending or received).
|
|
76
77
|
* @param indexSubscriptions the index subscriptions of a single token from an account.
|
|
77
78
|
* @returns the total amount received since updated at (both pending and actually distributed)
|
|
78
79
|
*/
|
|
79
80
|
export declare const subscriptionTotalAmountDistributedSinceUpdated: (indexSubscriptions: IIndexSubscription[]) => number;
|
|
80
81
|
/**
|
|
81
|
-
*
|
|
82
|
+
* The formula for calculating the total amount received (approved subscriptions).
|
|
82
83
|
* @param indexSubscriptions the index subscriptions of a single token from an account.
|
|
83
84
|
* @returns the total amount received since updated at (actually distributed into wallet)
|
|
84
85
|
*/
|
|
85
86
|
export declare const subscriptionTotalAmountReceivedSinceUpdated: (indexSubscriptions: IIndexSubscription[]) => number;
|
|
86
87
|
/**
|
|
87
|
-
*
|
|
88
|
+
* The formula for calculating the total amount that is claimable.
|
|
88
89
|
* @param indexSubscriptions the index subscriptions of a single token from an account.
|
|
89
90
|
* @returns the total amount that can be claimed since updated at
|
|
90
91
|
*/
|
|
@@ -92,7 +93,7 @@ export declare const subscriptionTotalAmountClaimableSinceUpdatedAt: (indexSubsc
|
|
|
92
93
|
export declare const getStringCurrentTimeInSeconds: () => number;
|
|
93
94
|
export declare const getSanitizedTimestamp: (timestamp: ethers.BigNumberish) => Date;
|
|
94
95
|
/**
|
|
95
|
-
*
|
|
96
|
+
* The formula for calculating the balance until updated at of a user (claimable + received tokens from index)
|
|
96
97
|
* @param currentBalance the current balance until updated at from the `AccountTokenSnapshot` entity
|
|
97
98
|
* @param netFlowRate the net flow rate of the user
|
|
98
99
|
* @param currentTimestamp the current timestamp
|
|
@@ -113,4 +114,5 @@ export declare const isInjectedEthers: (provider: any) => provider is typeof eth
|
|
|
113
114
|
* Why? Because `return obj as T` and `return <T>obj` are not safe type casts.
|
|
114
115
|
*/
|
|
115
116
|
export declare const typeGuard: <T>(obj: T) => T;
|
|
117
|
+
export declare const getFlowOperatorId: (sender: string, flowOperator: string) => string;
|
|
116
118
|
//# sourceMappingURL=utils.d.ts.map
|
package/dist/main/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,IAAI,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,IAAI,MAAM,MAAM,CAAC;AAaxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAIlD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,oCAAuB,MAWnD,CAAC;AAEF,eAAO,MAAM,kBAAkB,gBAAiB,MAAM,KAAG,OAUxD,CAAC;AAEF,eAAO,MAAM,aAAa,QAAS,MAAM,GAAG,IAAI,GAAG,SAAS,YAE3D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,aAAc,MAAM,WACtB,CAAC;AAErC;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,cAE5B,MAAM,GACN,SAAS,CAAC,MAAM,GAAG,OAAO,KAAK,CAAC,QAAQ,GAAG,YAAY,CAAC,EAAE,QAC1D,MAAM,oEAMf,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,kBAAmB,MAAM,WAI/D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,mBAAoB,MAAM,WAIjE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,kBAAmB,MAAM,WAI/D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,iBAAkB,MAAM,WAI7D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,sBAAuB,MAAM;;;;;CAQzE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B;iBAKtB,MAAM;sBACD,MAAM;wBACJ,MAAM;YAM7B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,8CAA8C,uBACnC,kBAAkB,EAAE,WAS3C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,2CAA2C,uBAChC,kBAAkB,EAAE,WAY3C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,8CAA8C,uBACnC,kBAAkB,EAAE,WAM3C,CAAC;AAEF,eAAO,MAAM,6BAA6B,cACC,CAAC;AAE5C,eAAO,MAAM,qBAAqB,cAAe,OAAO,YAAY,SACnB,CAAC;AAElD;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU;oBAOH,MAAM;iBACT,MAAM;sBACD,MAAM;wBACJ,MAAM;wBACN,kBAAkB,EAAE;YAW3C,CAAC;AAIF,eAAO,MAAM,gBAAgB,aACf,GAAG,0CACgD,CAAC;AAElE,eAAO,MAAM,cAAc,aAAc,GAAG,qBACd,CAAC;AAE/B,eAAO,MAAM,gBAAgB,aACf,GAAG,qDACyD,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,SAAS,kBAAqB,CAAC;AAE5C,eAAO,MAAM,iBAAiB,WAAY,MAAM,gBAAgB,MAAM,WAOrE,CAAC"}
|
package/dist/main/utils.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.typeGuard = exports.isInjectedEthers = exports.isInjectedWeb3 = exports.isEthersProvider = exports.getBalance = exports.getSanitizedTimestamp = exports.getStringCurrentTimeInSeconds = exports.subscriptionTotalAmountClaimableSinceUpdatedAt = exports.subscriptionTotalAmountReceivedSinceUpdated = exports.subscriptionTotalAmountDistributedSinceUpdated = exports.flowedAmountSinceUpdatedAt = exports.getFlowAmountByPerSecondFlowRate = exports.getPerSecondFlowRateByDay = exports.getPerSecondFlowRateByWeek = exports.getPerSecondFlowRateByMonth = exports.getPerSecondFlowRateByYear = exports.getTransactionDescription = exports.removeSigHashFromCallData = exports.isNullOrEmpty = exports.normalizeAddress = void 0;
|
|
3
|
+
exports.getFlowOperatorId = exports.typeGuard = exports.isInjectedEthers = exports.isInjectedWeb3 = exports.isEthersProvider = exports.getBalance = exports.getSanitizedTimestamp = exports.getStringCurrentTimeInSeconds = exports.subscriptionTotalAmountClaimableSinceUpdatedAt = exports.subscriptionTotalAmountReceivedSinceUpdated = exports.subscriptionTotalAmountDistributedSinceUpdated = exports.flowedAmountSinceUpdatedAt = exports.getFlowAmountByPerSecondFlowRate = exports.getPerSecondFlowRateByDay = exports.getPerSecondFlowRateByWeek = exports.getPerSecondFlowRateByMonth = exports.getPerSecondFlowRateByYear = exports.getTransactionDescription = exports.removeSigHashFromCallData = exports.isNullOrEmpty = exports.isPermissionsClean = exports.normalizeAddress = void 0;
|
|
4
4
|
const ethers_1 = require("ethers");
|
|
5
5
|
const SFError_1 = require("./SFError");
|
|
6
6
|
const constants_1 = require("./constants");
|
|
7
7
|
const EMPTY = "0x";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Checks if address is a valid ethereum address and normalizes so it can be used by both subgraph and web3.
|
|
10
10
|
* @param address
|
|
11
11
|
* @returns The normalized address.
|
|
12
12
|
*/
|
|
@@ -16,25 +16,33 @@ const normalizeAddress = (address) => {
|
|
|
16
16
|
if (ethers_1.ethers.utils.isAddress(address) === false) {
|
|
17
17
|
throw new SFError_1.SFError({
|
|
18
18
|
type: "INVALID_ADDRESS",
|
|
19
|
-
customMessage: "The address you have entered is not a valid ethereum address
|
|
19
|
+
customMessage: "The address you have entered is not a valid ethereum address",
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
return address.toLowerCase();
|
|
23
23
|
};
|
|
24
24
|
exports.normalizeAddress = normalizeAddress;
|
|
25
|
+
const isPermissionsClean = (permissions) => {
|
|
26
|
+
return ((permissions &
|
|
27
|
+
~(constants_1.AUTHORIZE_FLOW_OPERATOR_CREATE |
|
|
28
|
+
constants_1.AUTHORIZE_FLOW_OPERATOR_UPDATE |
|
|
29
|
+
constants_1.AUTHORIZE_FLOW_OPERATOR_DELETE)) ===
|
|
30
|
+
0);
|
|
31
|
+
};
|
|
32
|
+
exports.isPermissionsClean = isPermissionsClean;
|
|
25
33
|
const isNullOrEmpty = (str) => {
|
|
26
34
|
return str == null || str === "";
|
|
27
35
|
};
|
|
28
36
|
exports.isNullOrEmpty = isNullOrEmpty;
|
|
29
37
|
/**
|
|
30
|
-
*
|
|
38
|
+
* Removes the 8-character signature hash from `callData`.
|
|
31
39
|
* @param callData
|
|
32
40
|
* @returns function parameters
|
|
33
41
|
*/
|
|
34
42
|
const removeSigHashFromCallData = (callData) => EMPTY.concat(callData.slice(10));
|
|
35
43
|
exports.removeSigHashFromCallData = removeSigHashFromCallData;
|
|
36
44
|
/**
|
|
37
|
-
*
|
|
45
|
+
* A wrapper function for getting the ethers TransactionDescription object given fragments (e.g. ABI), callData and the value amount sent.
|
|
38
46
|
* @param fragments ABI
|
|
39
47
|
* @param data callData of a function
|
|
40
48
|
* @param value amount of ether sent
|
|
@@ -47,7 +55,7 @@ const getTransactionDescription = (fragments, data, value) => {
|
|
|
47
55
|
};
|
|
48
56
|
exports.getTransactionDescription = getTransactionDescription;
|
|
49
57
|
/**
|
|
50
|
-
*
|
|
58
|
+
* Gets the per second flow rate given an `amountPerYear` value.
|
|
51
59
|
* @param amountPerYear the amount you want to stream per year
|
|
52
60
|
* @returns flow rate per second
|
|
53
61
|
*/
|
|
@@ -56,7 +64,7 @@ const getPerSecondFlowRateByYear = (amountPerYear) => {
|
|
|
56
64
|
};
|
|
57
65
|
exports.getPerSecondFlowRateByYear = getPerSecondFlowRateByYear;
|
|
58
66
|
/**
|
|
59
|
-
*
|
|
67
|
+
* Gets the per second flow rate given an `amountPerMonth` value.
|
|
60
68
|
* @param amountPerMonth the amount you want to stream per month
|
|
61
69
|
* @returns flow rate per second
|
|
62
70
|
*/
|
|
@@ -65,7 +73,7 @@ const getPerSecondFlowRateByMonth = (amountPerMonth) => {
|
|
|
65
73
|
};
|
|
66
74
|
exports.getPerSecondFlowRateByMonth = getPerSecondFlowRateByMonth;
|
|
67
75
|
/**
|
|
68
|
-
*
|
|
76
|
+
* Gets the per second flow rate given an `amountPerWeek` value.
|
|
69
77
|
* @param amountPerWeek the amount you want to stream per Week
|
|
70
78
|
* @returns flow rate per second
|
|
71
79
|
*/
|
|
@@ -74,7 +82,7 @@ const getPerSecondFlowRateByWeek = (amountPerWeek) => {
|
|
|
74
82
|
};
|
|
75
83
|
exports.getPerSecondFlowRateByWeek = getPerSecondFlowRateByWeek;
|
|
76
84
|
/**
|
|
77
|
-
*
|
|
85
|
+
* Gets the per second flow rate given an `amountPerDay` value.
|
|
78
86
|
* @param amountPerDay the amount you want to stream per day
|
|
79
87
|
* @returns flow rate per second
|
|
80
88
|
*/
|
|
@@ -83,7 +91,7 @@ const getPerSecondFlowRateByDay = (amountPerDay) => {
|
|
|
83
91
|
};
|
|
84
92
|
exports.getPerSecondFlowRateByDay = getPerSecondFlowRateByDay;
|
|
85
93
|
/**
|
|
86
|
-
*
|
|
94
|
+
* Gets daily, weekly, monthly and yearly flowed amounts given a per second flow rate.
|
|
87
95
|
* @param perSecondFlowRate
|
|
88
96
|
* @returns
|
|
89
97
|
*/
|
|
@@ -98,7 +106,7 @@ const getFlowAmountByPerSecondFlowRate = (perSecondFlowRate) => {
|
|
|
98
106
|
};
|
|
99
107
|
exports.getFlowAmountByPerSecondFlowRate = getFlowAmountByPerSecondFlowRate;
|
|
100
108
|
/**
|
|
101
|
-
*
|
|
109
|
+
* The formula for calculating the flowed amount since updated using Subgraph data.
|
|
102
110
|
* @param netFlowRate the net flow rate of the user
|
|
103
111
|
* @param currentTimestamp the current timestamp
|
|
104
112
|
* @param updatedAtTimestamp the updated at timestamp of the `AccountTokenSnapshot` entity
|
|
@@ -110,7 +118,7 @@ const flowedAmountSinceUpdatedAt = ({ netFlowRate, currentTimestamp, updatedAtTi
|
|
|
110
118
|
};
|
|
111
119
|
exports.flowedAmountSinceUpdatedAt = flowedAmountSinceUpdatedAt;
|
|
112
120
|
/**
|
|
113
|
-
*
|
|
121
|
+
* The formula for calculating the total amount distributed to the subscriber (pending or received).
|
|
114
122
|
* @param indexSubscriptions the index subscriptions of a single token from an account.
|
|
115
123
|
* @returns the total amount received since updated at (both pending and actually distributed)
|
|
116
124
|
*/
|
|
@@ -121,7 +129,7 @@ const subscriptionTotalAmountDistributedSinceUpdated = (indexSubscriptions) => {
|
|
|
121
129
|
};
|
|
122
130
|
exports.subscriptionTotalAmountDistributedSinceUpdated = subscriptionTotalAmountDistributedSinceUpdated;
|
|
123
131
|
/**
|
|
124
|
-
*
|
|
132
|
+
* The formula for calculating the total amount received (approved subscriptions).
|
|
125
133
|
* @param indexSubscriptions the index subscriptions of a single token from an account.
|
|
126
134
|
* @returns the total amount received since updated at (actually distributed into wallet)
|
|
127
135
|
*/
|
|
@@ -135,7 +143,7 @@ const subscriptionTotalAmountReceivedSinceUpdated = (indexSubscriptions) => {
|
|
|
135
143
|
};
|
|
136
144
|
exports.subscriptionTotalAmountReceivedSinceUpdated = subscriptionTotalAmountReceivedSinceUpdated;
|
|
137
145
|
/**
|
|
138
|
-
*
|
|
146
|
+
* The formula for calculating the total amount that is claimable.
|
|
139
147
|
* @param indexSubscriptions the index subscriptions of a single token from an account.
|
|
140
148
|
* @returns the total amount that can be claimed since updated at
|
|
141
149
|
*/
|
|
@@ -149,7 +157,7 @@ exports.getStringCurrentTimeInSeconds = getStringCurrentTimeInSeconds;
|
|
|
149
157
|
const getSanitizedTimestamp = (timestamp) => new Date(Number(timestamp.toString()) * 1000);
|
|
150
158
|
exports.getSanitizedTimestamp = getSanitizedTimestamp;
|
|
151
159
|
/**
|
|
152
|
-
*
|
|
160
|
+
* The formula for calculating the balance until updated at of a user (claimable + received tokens from index)
|
|
153
161
|
* @param currentBalance the current balance until updated at from the `AccountTokenSnapshot` entity
|
|
154
162
|
* @param netFlowRate the net flow rate of the user
|
|
155
163
|
* @param currentTimestamp the current timestamp
|
|
@@ -179,4 +187,10 @@ exports.isInjectedEthers = isInjectedEthers;
|
|
|
179
187
|
*/
|
|
180
188
|
const typeGuard = (obj) => obj;
|
|
181
189
|
exports.typeGuard = typeGuard;
|
|
190
|
+
const getFlowOperatorId = (sender, flowOperator) => {
|
|
191
|
+
const encoder = ethers_1.ethers.utils.defaultAbiCoder;
|
|
192
|
+
const encodedData = encoder.encode(["string", "address", "address"], ["flowOperator", sender, flowOperator]);
|
|
193
|
+
return ethers_1.ethers.utils.keccak256(encodedData);
|
|
194
|
+
};
|
|
195
|
+
exports.getFlowOperatorId = getFlowOperatorId;
|
|
182
196
|
//# sourceMappingURL=utils.js.map
|
package/dist/main/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;;AAEA,mCAAgC;AAGhC,uCAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;;AAEA,mCAAgC;AAGhC,uCAAoC;AACpC,2CASqB;AAGrB,MAAM,KAAK,GAAG,IAAI,CAAC;AAEnB;;;;GAIG;AACI,MAAM,gBAAgB,GAAG,CAAC,OAAgB,EAAU,EAAE;IACzD,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IACxB,IAAI,eAAM,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,KAAK,EAAE;QAC3C,MAAM,IAAI,iBAAO,CAAC;YACd,IAAI,EAAE,iBAAiB;YAC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,gBAAgB,oBAE8C;AAE3E;;GAEG;AACI,MAAM,SAAS,GAAG,CAAI,GAAM,EAAE,EAAE,CAAC,GAAG,CAAC;AAA/B,QAAA,SAAS,aAAsB;AAErC,MAAM,iBAAiB,GAAG,CAAC,MAAc,EAAE,YAAoB,EAAE,EAAE;IACtE,MAAM,OAAO,GAAG,eAAM,CAAC,KAAK,CAAC,eAAe,CAAC;IAC7C,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,CAC9B,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,EAChC,CAAC,cAAc,EAAE,MAAM,EAAE,YAAY,CAAC,CACzC,CAAC;IACF,OAAO,eAAM,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;AAC/C,CAAC,CAAC;AAPW,QAAA,iBAAiB,qBAO5B"}
|
|
@@ -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/module/BatchCall.js
CHANGED
|
@@ -12,19 +12,19 @@ const operationTypeStringToTypeMap = new Map([
|
|
|
12
12
|
["CALL_APP_ACTION", 202],
|
|
13
13
|
]);
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* BatchCall Helper Class
|
|
16
16
|
* @description A helper class to create `BatchCall` objects which can be executed.
|
|
17
17
|
*/
|
|
18
18
|
export default class BatchCall {
|
|
19
19
|
constructor(options) {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Gets the call agreement function arguments.
|
|
22
22
|
* @param callData callData of the function
|
|
23
23
|
* @returns {ethers.utils.Result} call agreement function arguments
|
|
24
24
|
*/
|
|
25
25
|
this.getCallAgreementFunctionArgs = (callData) => getTransactionDescription(SuperfluidABI.abi, callData).args;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Given an `Operation` object, gets the `OperationStruct` object.
|
|
28
28
|
* @param operation an `Operation` object
|
|
29
29
|
* @param index the index of the `Operation` in the batchCall
|
|
30
30
|
* @returns {Promise<OperationStruct>} OperationStruct object for batchCall
|
|
@@ -66,14 +66,14 @@ export default class BatchCall {
|
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* Executes a batch call given the operations on this class.
|
|
70
70
|
* @param signer the signer of the transaction
|
|
71
71
|
* @returns {Promise<ethers.ContractTransaction>} ContractTransaction object
|
|
72
72
|
*/
|
|
73
73
|
this.exec = async (signer) => {
|
|
74
74
|
try {
|
|
75
75
|
const operationStructArray = await Promise.all(this.getOperationStructArrayPromises);
|
|
76
|
-
return await this.host.
|
|
76
|
+
return await this.host.contract
|
|
77
77
|
.connect(signer)
|
|
78
78
|
.batchCall(operationStructArray);
|
|
79
79
|
}
|
|
@@ -89,14 +89,14 @@ export default class BatchCall {
|
|
|
89
89
|
// TODO: user signs the transaction they'd like to execute and gives
|
|
90
90
|
// this data to the trusted forwarder to sign
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* Executes a forward batch call given the operations on this class.
|
|
93
93
|
* @param signer the signer of the transaction
|
|
94
94
|
* @returns {Promise<ethers.ContractTransaction>} ContractTransaction object
|
|
95
95
|
*/
|
|
96
96
|
this.execForward = async (signer) => {
|
|
97
97
|
try {
|
|
98
98
|
const operationStructArray = await Promise.all(this.getOperationStructArrayPromises);
|
|
99
|
-
return await this.host.
|
|
99
|
+
return await this.host.contract
|
|
100
100
|
.connect(signer)
|
|
101
101
|
.forwardBatchCall(operationStructArray);
|
|
102
102
|
}
|
|
@@ -112,7 +112,7 @@ export default class BatchCall {
|
|
|
112
112
|
this.host = new Host(options.hostAddress);
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
|
-
*
|
|
115
|
+
* Gets an array of `OperationStruct` objects to be passed to batchCall.
|
|
116
116
|
* @returns {Promise<OperationStruct>[]} array of operation struct promises
|
|
117
117
|
*/
|
|
118
118
|
get getOperationStructArrayPromises() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"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