@superfluid-finance/sdk-core 0.1.1-dev.640e6ae.0 → 0.1.1-dev.bc1d5ba.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -11
- package/dist/main/BatchCall.d.ts +1 -1
- package/dist/main/ConstantFlowAgreementV1.d.ts +2 -2
- package/dist/main/Framework.d.ts +5 -5
- package/dist/main/InstantDistributionAgreementV1.d.ts +2 -2
- package/dist/main/Query.d.ts +3 -3
- package/dist/main/SuperToken.d.ts +2 -2
- package/dist/main/Token.d.ts +1 -1
- package/dist/main/index.d.ts +5 -5
- package/dist/main/index.js +6069 -6048
- package/dist/main/interfaces.d.ts +3 -6
- package/dist/main/ordering.d.ts +1 -1
- package/dist/main/pagination.d.ts +2 -2
- package/dist/main/subgraph/queries/getAllEvents.generated.d.ts +4 -4
- package/dist/main/subgraph/schema.generated.d.ts +33 -42
- package/dist/main/typechain/IResolver.d.ts +17 -3
- package/dist/main/typechain/TestToken.d.ts +8 -0
- package/dist/main/typechain/factories/IResolver__factory.d.ts +15 -2
- package/dist/main/validation.d.ts +1 -1
- package/dist/module/BatchCall.d.ts +1 -1
- package/dist/module/ConstantFlowAgreementV1.d.ts +2 -2
- package/dist/module/Framework.d.ts +5 -5
- package/dist/module/InstantDistributionAgreementV1.d.ts +2 -2
- package/dist/module/Query.d.ts +3 -3
- package/dist/module/SuperToken.d.ts +2 -2
- package/dist/module/Token.d.ts +1 -1
- package/dist/module/index.d.ts +5 -5
- package/dist/module/index.js +6069 -6048
- package/dist/module/interfaces.d.ts +3 -6
- package/dist/module/ordering.d.ts +1 -1
- package/dist/module/pagination.d.ts +2 -2
- package/dist/module/subgraph/queries/getAllEvents.generated.d.ts +4 -4
- package/dist/module/subgraph/schema.generated.d.ts +33 -42
- package/dist/module/typechain/IResolver.d.ts +17 -3
- package/dist/module/typechain/TestToken.d.ts +8 -0
- package/dist/module/typechain/factories/IResolver__factory.d.ts +15 -2
- package/dist/module/validation.d.ts +1 -1
- package/dist/umd/BatchCall.d.ts +1 -1
- package/dist/umd/ConstantFlowAgreementV1.d.ts +2 -2
- package/dist/umd/Framework.d.ts +5 -5
- package/dist/umd/InstantDistributionAgreementV1.d.ts +2 -2
- package/dist/umd/Query.d.ts +3 -3
- package/dist/umd/SuperToken.d.ts +2 -2
- package/dist/umd/Token.d.ts +1 -1
- package/dist/umd/index.d.ts +5 -5
- package/dist/umd/index.js +4162 -4141
- package/dist/umd/interfaces.d.ts +3 -6
- package/dist/umd/ordering.d.ts +1 -1
- package/dist/umd/pagination.d.ts +2 -2
- package/dist/umd/subgraph/queries/getAllEvents.generated.d.ts +4 -4
- package/dist/umd/subgraph/schema.generated.d.ts +33 -42
- package/dist/umd/typechain/IResolver.d.ts +17 -3
- package/dist/umd/typechain/TestToken.d.ts +8 -0
- package/dist/umd/typechain/factories/IResolver__factory.d.ts +15 -2
- package/dist/umd/validation.d.ts +1 -1
- package/package.json +13 -8
|
@@ -34,8 +34,7 @@ export interface ISuperTokenCreateFlowParams extends ISuperTokenModifyFlowParams
|
|
|
34
34
|
readonly flowRate: string;
|
|
35
35
|
readonly sender: string;
|
|
36
36
|
}
|
|
37
|
-
export
|
|
38
|
-
}
|
|
37
|
+
export declare type ISuperTokenUpdateFlowParams = ISuperTokenCreateFlowParams;
|
|
39
38
|
export interface ISuperTokenDeleteFlowParams extends ISuperTokenModifyFlowParams {
|
|
40
39
|
readonly sender: string;
|
|
41
40
|
}
|
|
@@ -95,8 +94,7 @@ export interface IModifyFlowParams {
|
|
|
95
94
|
export interface ICreateFlowParams extends IModifyFlowParams {
|
|
96
95
|
readonly flowRate: string;
|
|
97
96
|
}
|
|
98
|
-
export
|
|
99
|
-
}
|
|
97
|
+
export declare type IUpdateFlowParams = ICreateFlowParams;
|
|
100
98
|
export interface IDeleteFlowParams extends IModifyFlowParams {
|
|
101
99
|
readonly sender: string;
|
|
102
100
|
}
|
|
@@ -228,8 +226,7 @@ export interface IStream extends IHOLUpdateable {
|
|
|
228
226
|
readonly receiver: string;
|
|
229
227
|
readonly flowUpdatedEvents: IStreamFlowUpdatedEvent[];
|
|
230
228
|
}
|
|
231
|
-
export
|
|
232
|
-
}
|
|
229
|
+
export declare type IStreamFlowUpdatedEvent = IFlowUpdatedEvent;
|
|
233
230
|
export interface ISuperToken extends IHOLEntityBase {
|
|
234
231
|
readonly name: string;
|
|
235
232
|
readonly symbol: string;
|
package/dist/main/ordering.d.ts
CHANGED
|
@@ -44,11 +44,11 @@ export interface PagedResult<T extends ILightEntity> {
|
|
|
44
44
|
* @param paging
|
|
45
45
|
*/
|
|
46
46
|
export declare const createPagedResult: <T extends ILightEntity>(dataPlusOne: T[], paging: Paging) => PagedResult<T>;
|
|
47
|
-
export declare const createSkipPaging: ({ skip, take }?: {
|
|
47
|
+
export declare const createSkipPaging: ({ skip, take, }?: {
|
|
48
48
|
skip?: number | undefined;
|
|
49
49
|
take?: number | undefined;
|
|
50
50
|
}) => SkipPaging;
|
|
51
|
-
export declare const createLastIdPaging: ({ lastId, take }?: {
|
|
51
|
+
export declare const createLastIdPaging: ({ lastId, take, }?: {
|
|
52
52
|
lastId?: string | undefined;
|
|
53
53
|
take?: number | undefined;
|
|
54
54
|
}) => LastIdPaging;
|
|
@@ -61,7 +61,7 @@ export declare type GetAllEventsQuery = {
|
|
|
61
61
|
superToken: string;
|
|
62
62
|
host: string;
|
|
63
63
|
liquidationPeriod: string;
|
|
64
|
-
|
|
64
|
+
isKeySet: boolean;
|
|
65
65
|
id: string;
|
|
66
66
|
blockNumber: string;
|
|
67
67
|
transactionHash: string;
|
|
@@ -71,7 +71,7 @@ export declare type GetAllEventsQuery = {
|
|
|
71
71
|
value: string;
|
|
72
72
|
superToken: string;
|
|
73
73
|
key: string;
|
|
74
|
-
|
|
74
|
+
isKeySet: boolean;
|
|
75
75
|
host: string;
|
|
76
76
|
id: string;
|
|
77
77
|
blockNumber: string;
|
|
@@ -215,7 +215,7 @@ export declare type GetAllEventsQuery = {
|
|
|
215
215
|
__typename: 'RewardAddressChangedEvent';
|
|
216
216
|
superToken: string;
|
|
217
217
|
rewardAddress: string;
|
|
218
|
-
|
|
218
|
+
isKeySet: boolean;
|
|
219
219
|
host: string;
|
|
220
220
|
id: string;
|
|
221
221
|
blockNumber: string;
|
|
@@ -384,7 +384,7 @@ export declare type GetAllEventsQuery = {
|
|
|
384
384
|
};
|
|
385
385
|
} | {
|
|
386
386
|
__typename: 'TrustedForwarderChangedEvent';
|
|
387
|
-
|
|
387
|
+
isKeySet: boolean;
|
|
388
388
|
host: string;
|
|
389
389
|
forwarder: string;
|
|
390
390
|
enabled: boolean;
|
|
@@ -811,7 +811,7 @@ export declare type CfAv1LiquidationPeriodChangedEvent = Event & {
|
|
|
811
811
|
blockNumber: Scalars['BigInt'];
|
|
812
812
|
host: Scalars['Bytes'];
|
|
813
813
|
id: Scalars['ID'];
|
|
814
|
-
|
|
814
|
+
isKeySet: Scalars['Boolean'];
|
|
815
815
|
liquidationPeriod: Scalars['BigInt'];
|
|
816
816
|
name: Scalars['String'];
|
|
817
817
|
superToken: Scalars['Bytes'];
|
|
@@ -845,10 +845,10 @@ export declare type CfAv1LiquidationPeriodChangedEvent_Filter = {
|
|
|
845
845
|
id_lte?: InputMaybe<Scalars['ID']>;
|
|
846
846
|
id_not?: InputMaybe<Scalars['ID']>;
|
|
847
847
|
id_not_in?: InputMaybe<Array<Scalars['ID']>>;
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
848
|
+
isKeySet?: InputMaybe<Scalars['Boolean']>;
|
|
849
|
+
isKeySet_in?: InputMaybe<Array<Scalars['Boolean']>>;
|
|
850
|
+
isKeySet_not?: InputMaybe<Scalars['Boolean']>;
|
|
851
|
+
isKeySet_not_in?: InputMaybe<Array<Scalars['Boolean']>>;
|
|
852
852
|
liquidationPeriod?: InputMaybe<Scalars['BigInt']>;
|
|
853
853
|
liquidationPeriod_gt?: InputMaybe<Scalars['BigInt']>;
|
|
854
854
|
liquidationPeriod_gte?: InputMaybe<Scalars['BigInt']>;
|
|
@@ -892,7 +892,7 @@ export declare type CfAv1LiquidationPeriodChangedEvent_Filter = {
|
|
|
892
892
|
transactionHash_not_contains?: InputMaybe<Scalars['Bytes']>;
|
|
893
893
|
transactionHash_not_in?: InputMaybe<Array<Scalars['Bytes']>>;
|
|
894
894
|
};
|
|
895
|
-
export declare type CfAv1LiquidationPeriodChangedEvent_OrderBy = 'addresses' | 'blockNumber' | 'host' | 'id' | '
|
|
895
|
+
export declare type CfAv1LiquidationPeriodChangedEvent_OrderBy = 'addresses' | 'blockNumber' | 'host' | 'id' | 'isKeySet' | 'liquidationPeriod' | 'name' | 'superToken' | 'timestamp' | 'transactionHash';
|
|
896
896
|
export declare type ConfigChangedEvent = Event & {
|
|
897
897
|
__typename?: 'ConfigChangedEvent';
|
|
898
898
|
/** Empty addresses array. */
|
|
@@ -900,7 +900,7 @@ export declare type ConfigChangedEvent = Event & {
|
|
|
900
900
|
blockNumber: Scalars['BigInt'];
|
|
901
901
|
host: Scalars['Bytes'];
|
|
902
902
|
id: Scalars['ID'];
|
|
903
|
-
|
|
903
|
+
isKeySet: Scalars['Boolean'];
|
|
904
904
|
key: Scalars['Bytes'];
|
|
905
905
|
name: Scalars['String'];
|
|
906
906
|
superToken: Scalars['Bytes'];
|
|
@@ -935,10 +935,10 @@ export declare type ConfigChangedEvent_Filter = {
|
|
|
935
935
|
id_lte?: InputMaybe<Scalars['ID']>;
|
|
936
936
|
id_not?: InputMaybe<Scalars['ID']>;
|
|
937
937
|
id_not_in?: InputMaybe<Array<Scalars['ID']>>;
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
938
|
+
isKeySet?: InputMaybe<Scalars['Boolean']>;
|
|
939
|
+
isKeySet_in?: InputMaybe<Array<Scalars['Boolean']>>;
|
|
940
|
+
isKeySet_not?: InputMaybe<Scalars['Boolean']>;
|
|
941
|
+
isKeySet_not_in?: InputMaybe<Array<Scalars['Boolean']>>;
|
|
942
942
|
key?: InputMaybe<Scalars['Bytes']>;
|
|
943
943
|
key_contains?: InputMaybe<Scalars['Bytes']>;
|
|
944
944
|
key_in?: InputMaybe<Array<Scalars['Bytes']>>;
|
|
@@ -988,7 +988,7 @@ export declare type ConfigChangedEvent_Filter = {
|
|
|
988
988
|
value_not?: InputMaybe<Scalars['BigInt']>;
|
|
989
989
|
value_not_in?: InputMaybe<Array<Scalars['BigInt']>>;
|
|
990
990
|
};
|
|
991
|
-
export declare type ConfigChangedEvent_OrderBy = 'addresses' | 'blockNumber' | 'host' | 'id' | '
|
|
991
|
+
export declare type ConfigChangedEvent_OrderBy = 'addresses' | 'blockNumber' | 'host' | 'id' | 'isKeySet' | 'key' | 'name' | 'superToken' | 'timestamp' | 'transactionHash' | 'value';
|
|
992
992
|
export declare type CustomSuperTokenCreatedEvent = Event & {
|
|
993
993
|
__typename?: 'CustomSuperTokenCreatedEvent';
|
|
994
994
|
/** Holds the token address. */
|
|
@@ -3438,7 +3438,7 @@ export declare type RewardAddressChangedEvent = Event & {
|
|
|
3438
3438
|
blockNumber: Scalars['BigInt'];
|
|
3439
3439
|
host: Scalars['Bytes'];
|
|
3440
3440
|
id: Scalars['ID'];
|
|
3441
|
-
|
|
3441
|
+
isKeySet: Scalars['Boolean'];
|
|
3442
3442
|
name: Scalars['String'];
|
|
3443
3443
|
rewardAddress: Scalars['Bytes'];
|
|
3444
3444
|
superToken: Scalars['Bytes'];
|
|
@@ -3472,10 +3472,10 @@ export declare type RewardAddressChangedEvent_Filter = {
|
|
|
3472
3472
|
id_lte?: InputMaybe<Scalars['ID']>;
|
|
3473
3473
|
id_not?: InputMaybe<Scalars['ID']>;
|
|
3474
3474
|
id_not_in?: InputMaybe<Array<Scalars['ID']>>;
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3475
|
+
isKeySet?: InputMaybe<Scalars['Boolean']>;
|
|
3476
|
+
isKeySet_in?: InputMaybe<Array<Scalars['Boolean']>>;
|
|
3477
|
+
isKeySet_not?: InputMaybe<Scalars['Boolean']>;
|
|
3478
|
+
isKeySet_not_in?: InputMaybe<Array<Scalars['Boolean']>>;
|
|
3479
3479
|
name?: InputMaybe<Scalars['String']>;
|
|
3480
3480
|
name_contains?: InputMaybe<Scalars['String']>;
|
|
3481
3481
|
name_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -3517,7 +3517,7 @@ export declare type RewardAddressChangedEvent_Filter = {
|
|
|
3517
3517
|
transactionHash_not_contains?: InputMaybe<Scalars['Bytes']>;
|
|
3518
3518
|
transactionHash_not_in?: InputMaybe<Array<Scalars['Bytes']>>;
|
|
3519
3519
|
};
|
|
3520
|
-
export declare type RewardAddressChangedEvent_OrderBy = 'addresses' | 'blockNumber' | 'host' | 'id' | '
|
|
3520
|
+
export declare type RewardAddressChangedEvent_OrderBy = 'addresses' | 'blockNumber' | 'host' | 'id' | 'isKeySet' | 'name' | 'rewardAddress' | 'superToken' | 'timestamp' | 'transactionHash';
|
|
3521
3521
|
export declare type RoleAdminChangedEvent = Event & {
|
|
3522
3522
|
__typename?: 'RoleAdminChangedEvent';
|
|
3523
3523
|
/** Empty addresses array. */
|
|
@@ -3773,8 +3773,6 @@ export declare type SfMeta = {
|
|
|
3773
3773
|
configuration: Scalars['String'];
|
|
3774
3774
|
/** The id is the commit hash. */
|
|
3775
3775
|
id: Scalars['ID'];
|
|
3776
|
-
/** The release tag if it exists. */
|
|
3777
|
-
tag?: Maybe<Scalars['String']>;
|
|
3778
3776
|
timestamp: Scalars['BigInt'];
|
|
3779
3777
|
};
|
|
3780
3778
|
export declare type SfMeta_Filter = {
|
|
@@ -3822,20 +3820,6 @@ export declare type SfMeta_Filter = {
|
|
|
3822
3820
|
id_lte?: InputMaybe<Scalars['ID']>;
|
|
3823
3821
|
id_not?: InputMaybe<Scalars['ID']>;
|
|
3824
3822
|
id_not_in?: InputMaybe<Array<Scalars['ID']>>;
|
|
3825
|
-
tag?: InputMaybe<Scalars['String']>;
|
|
3826
|
-
tag_contains?: InputMaybe<Scalars['String']>;
|
|
3827
|
-
tag_ends_with?: InputMaybe<Scalars['String']>;
|
|
3828
|
-
tag_gt?: InputMaybe<Scalars['String']>;
|
|
3829
|
-
tag_gte?: InputMaybe<Scalars['String']>;
|
|
3830
|
-
tag_in?: InputMaybe<Array<Scalars['String']>>;
|
|
3831
|
-
tag_lt?: InputMaybe<Scalars['String']>;
|
|
3832
|
-
tag_lte?: InputMaybe<Scalars['String']>;
|
|
3833
|
-
tag_not?: InputMaybe<Scalars['String']>;
|
|
3834
|
-
tag_not_contains?: InputMaybe<Scalars['String']>;
|
|
3835
|
-
tag_not_ends_with?: InputMaybe<Scalars['String']>;
|
|
3836
|
-
tag_not_in?: InputMaybe<Array<Scalars['String']>>;
|
|
3837
|
-
tag_not_starts_with?: InputMaybe<Scalars['String']>;
|
|
3838
|
-
tag_starts_with?: InputMaybe<Scalars['String']>;
|
|
3839
3823
|
timestamp?: InputMaybe<Scalars['BigInt']>;
|
|
3840
3824
|
timestamp_gt?: InputMaybe<Scalars['BigInt']>;
|
|
3841
3825
|
timestamp_gte?: InputMaybe<Scalars['BigInt']>;
|
|
@@ -3845,7 +3829,7 @@ export declare type SfMeta_Filter = {
|
|
|
3845
3829
|
timestamp_not?: InputMaybe<Scalars['BigInt']>;
|
|
3846
3830
|
timestamp_not_in?: InputMaybe<Array<Scalars['BigInt']>>;
|
|
3847
3831
|
};
|
|
3848
|
-
export declare type SfMeta_OrderBy = 'blockNumber' | 'branch' | 'configuration' | 'id' | '
|
|
3832
|
+
export declare type SfMeta_OrderBy = 'blockNumber' | 'branch' | 'configuration' | 'id' | 'timestamp';
|
|
3849
3833
|
export declare type SentEvent = Event & {
|
|
3850
3834
|
__typename?: 'SentEvent';
|
|
3851
3835
|
/** Holds the token, operator and from addresses. */
|
|
@@ -3853,6 +3837,7 @@ export declare type SentEvent = Event & {
|
|
|
3853
3837
|
amount: Scalars['BigInt'];
|
|
3854
3838
|
blockNumber: Scalars['BigInt'];
|
|
3855
3839
|
data: Scalars['Bytes'];
|
|
3840
|
+
from: Scalars['Bytes'];
|
|
3856
3841
|
id: Scalars['ID'];
|
|
3857
3842
|
name: Scalars['String'];
|
|
3858
3843
|
operator: Scalars['Bytes'];
|
|
@@ -3888,6 +3873,12 @@ export declare type SentEvent_Filter = {
|
|
|
3888
3873
|
data_not?: InputMaybe<Scalars['Bytes']>;
|
|
3889
3874
|
data_not_contains?: InputMaybe<Scalars['Bytes']>;
|
|
3890
3875
|
data_not_in?: InputMaybe<Array<Scalars['Bytes']>>;
|
|
3876
|
+
from?: InputMaybe<Scalars['Bytes']>;
|
|
3877
|
+
from_contains?: InputMaybe<Scalars['Bytes']>;
|
|
3878
|
+
from_in?: InputMaybe<Array<Scalars['Bytes']>>;
|
|
3879
|
+
from_not?: InputMaybe<Scalars['Bytes']>;
|
|
3880
|
+
from_not_contains?: InputMaybe<Scalars['Bytes']>;
|
|
3881
|
+
from_not_in?: InputMaybe<Array<Scalars['Bytes']>>;
|
|
3891
3882
|
id?: InputMaybe<Scalars['ID']>;
|
|
3892
3883
|
id_gt?: InputMaybe<Scalars['ID']>;
|
|
3893
3884
|
id_gte?: InputMaybe<Scalars['ID']>;
|
|
@@ -3943,7 +3934,7 @@ export declare type SentEvent_Filter = {
|
|
|
3943
3934
|
transactionHash_not_contains?: InputMaybe<Scalars['Bytes']>;
|
|
3944
3935
|
transactionHash_not_in?: InputMaybe<Array<Scalars['Bytes']>>;
|
|
3945
3936
|
};
|
|
3946
|
-
export declare type SentEvent_OrderBy = 'addresses' | 'amount' | 'blockNumber' | 'data' | 'id' | 'name' | 'operator' | 'operatorData' | 'timestamp' | 'to' | 'transactionHash';
|
|
3937
|
+
export declare type SentEvent_OrderBy = 'addresses' | 'amount' | 'blockNumber' | 'data' | 'from' | 'id' | 'name' | 'operator' | 'operatorData' | 'timestamp' | 'to' | 'transactionHash';
|
|
3947
3938
|
/**
|
|
3948
3939
|
* Stream: A HOL entity that represents the lifetime of a stream between a `sender` and a `receiver`.
|
|
3949
3940
|
* A account can start a stream, update the flow rate, but when they close it, it is
|
|
@@ -6375,7 +6366,7 @@ export declare type TrustedForwarderChangedEvent = Event & {
|
|
|
6375
6366
|
forwarder: Scalars['Bytes'];
|
|
6376
6367
|
host: Scalars['Bytes'];
|
|
6377
6368
|
id: Scalars['ID'];
|
|
6378
|
-
|
|
6369
|
+
isKeySet: Scalars['Boolean'];
|
|
6379
6370
|
name: Scalars['String'];
|
|
6380
6371
|
superToken: Scalars['Bytes'];
|
|
6381
6372
|
timestamp: Scalars['BigInt'];
|
|
@@ -6418,10 +6409,10 @@ export declare type TrustedForwarderChangedEvent_Filter = {
|
|
|
6418
6409
|
id_lte?: InputMaybe<Scalars['ID']>;
|
|
6419
6410
|
id_not?: InputMaybe<Scalars['ID']>;
|
|
6420
6411
|
id_not_in?: InputMaybe<Array<Scalars['ID']>>;
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6412
|
+
isKeySet?: InputMaybe<Scalars['Boolean']>;
|
|
6413
|
+
isKeySet_in?: InputMaybe<Array<Scalars['Boolean']>>;
|
|
6414
|
+
isKeySet_not?: InputMaybe<Scalars['Boolean']>;
|
|
6415
|
+
isKeySet_not_in?: InputMaybe<Array<Scalars['Boolean']>>;
|
|
6425
6416
|
name?: InputMaybe<Scalars['String']>;
|
|
6426
6417
|
name_contains?: InputMaybe<Scalars['String']>;
|
|
6427
6418
|
name_ends_with?: InputMaybe<Scalars['String']>;
|
|
@@ -6457,7 +6448,7 @@ export declare type TrustedForwarderChangedEvent_Filter = {
|
|
|
6457
6448
|
transactionHash_not_contains?: InputMaybe<Scalars['Bytes']>;
|
|
6458
6449
|
transactionHash_not_in?: InputMaybe<Array<Scalars['Bytes']>>;
|
|
6459
6450
|
};
|
|
6460
|
-
export declare type TrustedForwarderChangedEvent_OrderBy = 'addresses' | 'blockNumber' | 'enabled' | 'forwarder' | 'host' | 'id' | '
|
|
6451
|
+
export declare type TrustedForwarderChangedEvent_OrderBy = 'addresses' | 'blockNumber' | 'enabled' | 'forwarder' | 'host' | 'id' | 'isKeySet' | 'name' | 'superToken' | 'timestamp' | 'transactionHash';
|
|
6461
6452
|
export declare type _Block_ = {
|
|
6462
6453
|
__typename?: '_Block_';
|
|
6463
6454
|
/** The hash of the block */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseContract, BigNumber, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
2
|
-
import { FunctionFragment, Result } from "@ethersproject/abi";
|
|
2
|
+
import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
|
|
3
3
|
import { Listener, Provider } from "@ethersproject/providers";
|
|
4
4
|
import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
|
|
5
5
|
export interface IResolverInterface extends utils.Interface {
|
|
@@ -11,8 +11,19 @@ export interface IResolverInterface extends utils.Interface {
|
|
|
11
11
|
encodeFunctionData(functionFragment: "get", values: [string]): string;
|
|
12
12
|
decodeFunctionResult(functionFragment: "set", data: BytesLike): Result;
|
|
13
13
|
decodeFunctionResult(functionFragment: "get", data: BytesLike): Result;
|
|
14
|
-
events: {
|
|
14
|
+
events: {
|
|
15
|
+
"NameSet(string,address)": EventFragment;
|
|
16
|
+
};
|
|
17
|
+
getEvent(nameOrSignatureOrTopic: "NameSet"): EventFragment;
|
|
15
18
|
}
|
|
19
|
+
export declare type NameSetEvent = TypedEvent<[
|
|
20
|
+
string,
|
|
21
|
+
string
|
|
22
|
+
], {
|
|
23
|
+
name: string;
|
|
24
|
+
target: string;
|
|
25
|
+
}>;
|
|
26
|
+
export declare type NameSetEventFilter = TypedEventFilter<NameSetEvent>;
|
|
16
27
|
export interface IResolver extends BaseContract {
|
|
17
28
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
18
29
|
attach(addressOrName: string): this;
|
|
@@ -41,7 +52,10 @@ export interface IResolver extends BaseContract {
|
|
|
41
52
|
set(name: string, target: string, overrides?: CallOverrides): Promise<void>;
|
|
42
53
|
get(name: string, overrides?: CallOverrides): Promise<string>;
|
|
43
54
|
};
|
|
44
|
-
filters: {
|
|
55
|
+
filters: {
|
|
56
|
+
"NameSet(string,address)"(name?: string | null, target?: null): NameSetEventFilter;
|
|
57
|
+
NameSet(name?: string | null, target?: null): NameSetEventFilter;
|
|
58
|
+
};
|
|
45
59
|
estimateGas: {
|
|
46
60
|
set(name: string, target: string, overrides?: Overrides & {
|
|
47
61
|
from?: string | Promise<string>;
|
|
@@ -4,6 +4,7 @@ import { Listener, Provider } from "@ethersproject/providers";
|
|
|
4
4
|
import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
|
|
5
5
|
export interface TestTokenInterface extends utils.Interface {
|
|
6
6
|
functions: {
|
|
7
|
+
"MINT_LIMIT()": FunctionFragment;
|
|
7
8
|
"allowance(address,address)": FunctionFragment;
|
|
8
9
|
"approve(address,uint256)": FunctionFragment;
|
|
9
10
|
"balanceOf(address)": FunctionFragment;
|
|
@@ -17,6 +18,7 @@ export interface TestTokenInterface extends utils.Interface {
|
|
|
17
18
|
"transferFrom(address,address,uint256)": FunctionFragment;
|
|
18
19
|
"mint(address,uint256)": FunctionFragment;
|
|
19
20
|
};
|
|
21
|
+
encodeFunctionData(functionFragment: "MINT_LIMIT", values?: undefined): string;
|
|
20
22
|
encodeFunctionData(functionFragment: "allowance", values: [string, string]): string;
|
|
21
23
|
encodeFunctionData(functionFragment: "approve", values: [string, BigNumberish]): string;
|
|
22
24
|
encodeFunctionData(functionFragment: "balanceOf", values: [string]): string;
|
|
@@ -29,6 +31,7 @@ export interface TestTokenInterface extends utils.Interface {
|
|
|
29
31
|
encodeFunctionData(functionFragment: "transfer", values: [string, BigNumberish]): string;
|
|
30
32
|
encodeFunctionData(functionFragment: "transferFrom", values: [string, string, BigNumberish]): string;
|
|
31
33
|
encodeFunctionData(functionFragment: "mint", values: [string, BigNumberish]): string;
|
|
34
|
+
decodeFunctionResult(functionFragment: "MINT_LIMIT", data: BytesLike): Result;
|
|
32
35
|
decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
|
|
33
36
|
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
|
34
37
|
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
@@ -83,6 +86,7 @@ export interface TestToken extends BaseContract {
|
|
|
83
86
|
once: OnEvent<this>;
|
|
84
87
|
removeListener: OnEvent<this>;
|
|
85
88
|
functions: {
|
|
89
|
+
MINT_LIMIT(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
86
90
|
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
87
91
|
approve(spender: string, amount: BigNumberish, overrides?: Overrides & {
|
|
88
92
|
from?: string | Promise<string>;
|
|
@@ -108,6 +112,7 @@ export interface TestToken extends BaseContract {
|
|
|
108
112
|
from?: string | Promise<string>;
|
|
109
113
|
}): Promise<ContractTransaction>;
|
|
110
114
|
};
|
|
115
|
+
MINT_LIMIT(overrides?: CallOverrides): Promise<BigNumber>;
|
|
111
116
|
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
112
117
|
approve(spender: string, amount: BigNumberish, overrides?: Overrides & {
|
|
113
118
|
from?: string | Promise<string>;
|
|
@@ -133,6 +138,7 @@ export interface TestToken extends BaseContract {
|
|
|
133
138
|
from?: string | Promise<string>;
|
|
134
139
|
}): Promise<ContractTransaction>;
|
|
135
140
|
callStatic: {
|
|
141
|
+
MINT_LIMIT(overrides?: CallOverrides): Promise<BigNumber>;
|
|
136
142
|
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
137
143
|
approve(spender: string, amount: BigNumberish, overrides?: CallOverrides): Promise<boolean>;
|
|
138
144
|
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -153,6 +159,7 @@ export interface TestToken extends BaseContract {
|
|
|
153
159
|
Transfer(from?: string | null, to?: string | null, value?: null): TransferEventFilter;
|
|
154
160
|
};
|
|
155
161
|
estimateGas: {
|
|
162
|
+
MINT_LIMIT(overrides?: CallOverrides): Promise<BigNumber>;
|
|
156
163
|
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
157
164
|
approve(spender: string, amount: BigNumberish, overrides?: Overrides & {
|
|
158
165
|
from?: string | Promise<string>;
|
|
@@ -179,6 +186,7 @@ export interface TestToken extends BaseContract {
|
|
|
179
186
|
}): Promise<BigNumber>;
|
|
180
187
|
};
|
|
181
188
|
populateTransaction: {
|
|
189
|
+
MINT_LIMIT(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
182
190
|
allowance(owner: string, spender: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
183
191
|
approve(spender: string, amount: BigNumberish, overrides?: Overrides & {
|
|
184
192
|
from?: string | Promise<string>;
|
|
@@ -2,7 +2,19 @@ import { Signer } from "ethers";
|
|
|
2
2
|
import { Provider } from "@ethersproject/providers";
|
|
3
3
|
import type { IResolver, IResolverInterface } from "../IResolver";
|
|
4
4
|
export declare class IResolver__factory {
|
|
5
|
-
static readonly abi: {
|
|
5
|
+
static readonly abi: ({
|
|
6
|
+
anonymous: boolean;
|
|
7
|
+
inputs: {
|
|
8
|
+
indexed: boolean;
|
|
9
|
+
internalType: string;
|
|
10
|
+
name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
}[];
|
|
13
|
+
name: string;
|
|
14
|
+
type: string;
|
|
15
|
+
outputs?: undefined;
|
|
16
|
+
stateMutability?: undefined;
|
|
17
|
+
} | {
|
|
6
18
|
inputs: {
|
|
7
19
|
internalType: string;
|
|
8
20
|
name: string;
|
|
@@ -16,7 +28,8 @@ export declare class IResolver__factory {
|
|
|
16
28
|
}[];
|
|
17
29
|
stateMutability: string;
|
|
18
30
|
type: string;
|
|
19
|
-
|
|
31
|
+
anonymous?: undefined;
|
|
32
|
+
})[];
|
|
20
33
|
static createInterface(): IResolverInterface;
|
|
21
34
|
static connect(address: string, signerOrProvider: Signer | Provider): IResolver;
|
|
22
35
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IEventFilter } from ".";
|
|
2
1
|
import { IAccountTokenSnapshotFilter, IIndexRequestFilter, IIndexSubscriptionRequestFilter, IStreamRequestFilter, ISuperTokenRequestFilter } from "./interfaces";
|
|
2
|
+
import { IEventFilter } from ".";
|
|
3
3
|
export declare const validateSuperTokenRequest: (filter: ISuperTokenRequestFilter) => void;
|
|
4
4
|
export declare const validateEventRequest: (filter: IEventFilter) => void;
|
|
5
5
|
export declare const validateIndexRequest: (filter: IIndexRequestFilter) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ethers } from "ethers";
|
|
2
2
|
import Host from "./Host";
|
|
3
|
-
import { IConfig } from "./interfaces";
|
|
4
3
|
import Operation from "./Operation";
|
|
4
|
+
import { IConfig } from "./interfaces";
|
|
5
5
|
interface IBatchCallOptions {
|
|
6
6
|
config: IConfig;
|
|
7
7
|
operations: ReadonlyArray<Operation>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IAgreementV1Options, ICreateFlowParams, IDeleteFlowParams, IUpdateFlowParams, IGetFlowParams, IGetAccountFlowInfoParams, IWeb3FlowInfoParams, IWeb3FlowInfo } from "./interfaces";
|
|
2
|
-
import Operation from "./Operation";
|
|
3
1
|
import Host from "./Host";
|
|
2
|
+
import Operation from "./Operation";
|
|
3
|
+
import { IAgreementV1Options, ICreateFlowParams, IDeleteFlowParams, IGetAccountFlowInfoParams, IGetFlowParams, IUpdateFlowParams, IWeb3FlowInfo, IWeb3FlowInfoParams } from "./interfaces";
|
|
4
4
|
/**
|
|
5
5
|
* @dev Constant Flow Agreement V1 Helper Class
|
|
6
6
|
* @description A helper class to interact with the CFAV1 contract.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ethers } from "ethers";
|
|
2
1
|
import { Signer } from "@ethersproject/abstract-signer";
|
|
3
|
-
import {
|
|
4
|
-
import { DataMode } from "./types";
|
|
2
|
+
import { ethers } from "ethers";
|
|
5
3
|
import BatchCall from "./BatchCall";
|
|
6
4
|
import ConstantFlowAgreementV1 from "./ConstantFlowAgreementV1";
|
|
7
5
|
import Host from "./Host";
|
|
8
6
|
import InstantDistributionAgreementV1 from "./InstantDistributionAgreementV1";
|
|
9
|
-
import SuperToken from "./SuperToken";
|
|
10
|
-
import Query from "./Query";
|
|
11
7
|
import Operation from "./Operation";
|
|
8
|
+
import Query from "./Query";
|
|
9
|
+
import SuperToken from "./SuperToken";
|
|
10
|
+
import { IConfig, ISignerConstructorOptions } from "./interfaces";
|
|
11
|
+
import { DataMode } from "./types";
|
|
12
12
|
export interface IFrameworkOptions {
|
|
13
13
|
chainId?: number;
|
|
14
14
|
customSubgraphQueriesEndpoint?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IAgreementV1Options, IBaseIDAParams, IBaseSubscriptionParams, IDistributeParams, IGetIndexParams, IGetSubscriptionParams, IUpdateIndexValueParams, IUpdateSubscriptionUnitsParams, IWeb3Index, IWeb3Subscription } from "./interfaces";
|
|
2
|
-
import Operation from "./Operation";
|
|
3
1
|
import Host from "./Host";
|
|
2
|
+
import Operation from "./Operation";
|
|
3
|
+
import { IAgreementV1Options, IBaseIDAParams, IBaseSubscriptionParams, IDistributeParams, IGetIndexParams, IGetSubscriptionParams, IUpdateIndexValueParams, IUpdateSubscriptionUnitsParams, IWeb3Index, IWeb3Subscription } from "./interfaces";
|
|
4
4
|
/**
|
|
5
5
|
* @dev Instant Distribution Agreement V1 Helper Class
|
|
6
6
|
* @description A helper class to interact with the IDAV1 contract.
|
package/dist/module/Query.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IAccountTokenSnapshotFilter, IIndex, IIndexRequestFilter, IIndexSubscription, IIndexSubscriptionRequestFilter, ILightAccountTokenSnapshot, ILightEntity, IStream, IStreamRequestFilter, ISuperToken, ISuperTokenRequestFilter } from "./interfaces";
|
|
2
|
-
import { DataMode } from "./types";
|
|
3
|
-
import { PagedResult, Paging } from "./pagination";
|
|
4
1
|
import { AllEvents, IEventFilter } from "./events";
|
|
2
|
+
import { IAccountTokenSnapshotFilter, IIndex, IIndexRequestFilter, IIndexSubscription, IIndexSubscriptionRequestFilter, ILightAccountTokenSnapshot, ILightEntity, IStream, IStreamRequestFilter, ISuperToken, ISuperTokenRequestFilter } from "./interfaces";
|
|
5
3
|
import { Ordering } from "./ordering";
|
|
4
|
+
import { PagedResult, Paging } from "./pagination";
|
|
6
5
|
import { AccountTokenSnapshot_OrderBy, Event_OrderBy, Index_OrderBy, IndexSubscription_OrderBy, Stream_OrderBy, Token_OrderBy } from "./subgraph/schema.generated";
|
|
6
|
+
import { DataMode } from "./types";
|
|
7
7
|
export interface IQueryOptions {
|
|
8
8
|
readonly customSubgraphQueriesEndpoint: string;
|
|
9
9
|
readonly dataMode: DataMode;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ethers } from "ethers";
|
|
2
|
-
import { IConfig, IRealtimeBalanceOfParams, ISuperTokenBaseIDAParams, ISuperTokenCreateFlowParams, ISuperTokenDeleteFlowParams, ISuperTokenDistributeParams, ISuperTokenGetFlowInfoParams, ISuperTokenGetFlowParams, ISuperTokenGetIndexParams, ISuperTokenGetSubscriptionParams, ISuperTokenPublisherOperationParams, ISuperTokenPubSubParams, ISuperTokenUpdateFlowParams, ISuperTokenUpdateIndexValueParams, ISuperTokenUpdateSubscriptionUnitsParams, IWeb3FlowInfo, IWeb3Index, IWeb3RealTimeBalanceOf, IWeb3Subscription } from "./interfaces";
|
|
3
|
-
import Operation from "./Operation";
|
|
4
2
|
import ConstantFlowAgreementV1 from "./ConstantFlowAgreementV1";
|
|
5
3
|
import InstantDistributionAgreementV1 from "./InstantDistributionAgreementV1";
|
|
4
|
+
import Operation from "./Operation";
|
|
6
5
|
import Token from "./Token";
|
|
6
|
+
import { IConfig, IRealtimeBalanceOfParams, ISuperTokenBaseIDAParams, ISuperTokenCreateFlowParams, ISuperTokenDeleteFlowParams, ISuperTokenDistributeParams, ISuperTokenGetFlowInfoParams, ISuperTokenGetFlowParams, ISuperTokenGetIndexParams, ISuperTokenGetSubscriptionParams, ISuperTokenPublisherOperationParams, ISuperTokenPubSubParams, ISuperTokenUpdateFlowParams, ISuperTokenUpdateIndexValueParams, ISuperTokenUpdateSubscriptionUnitsParams, IWeb3FlowInfo, IWeb3Index, IWeb3RealTimeBalanceOf, IWeb3Subscription } from "./interfaces";
|
|
7
7
|
export interface ITokenSettings {
|
|
8
8
|
readonly address: string;
|
|
9
9
|
readonly config: IConfig;
|
package/dist/module/Token.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ethers } from "ethers";
|
|
2
|
-
import { IBaseSuperTokenParams, ITransferFromParams } from "./interfaces";
|
|
3
2
|
import Operation from "./Operation";
|
|
3
|
+
import { IBaseSuperTokenParams, ITransferFromParams } from "./interfaces";
|
|
4
4
|
export default class Token {
|
|
5
5
|
readonly address: string;
|
|
6
6
|
constructor(address: string);
|
package/dist/module/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import SuperToken from "./SuperToken";
|
|
3
|
-
import Query from "./Query";
|
|
1
|
+
import BatchCall from "./BatchCall";
|
|
4
2
|
import ConstantFlowAgreementV1 from "./ConstantFlowAgreementV1";
|
|
5
|
-
import
|
|
3
|
+
import Framework from "./Framework";
|
|
6
4
|
import Host from "./Host";
|
|
7
|
-
import
|
|
5
|
+
import InstantDistributionAgreementV1 from "./InstantDistributionAgreementV1";
|
|
6
|
+
import Query from "./Query";
|
|
7
|
+
import SuperToken from "./SuperToken";
|
|
8
8
|
export * from "./interfaces";
|
|
9
9
|
export * from "./utils";
|
|
10
10
|
export * from "./pagination";
|