@gooddollar/goodcollective-contracts 1.3.0 → 1.4.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.
Files changed (98) hide show
  1. package/artifacts/contracts/DirectPayments/DirectPaymentsFactory.sol/DirectPaymentsFactory.dbg.json +4 -0
  2. package/artifacts/contracts/DirectPayments/DirectPaymentsFactory.sol/DirectPaymentsFactory.json +995 -0
  3. package/artifacts/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPaymentsLibrary.dbg.json +4 -0
  4. package/artifacts/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPaymentsLibrary.json +113 -0
  5. package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.dbg.json +4 -0
  6. package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.json +2210 -0
  7. package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/IIdentityV2.dbg.json +4 -0
  8. package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/IIdentityV2.json +30 -0
  9. package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/IMembersValidator.dbg.json +4 -0
  10. package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/IMembersValidator.json +45 -0
  11. package/artifacts/contracts/DirectPayments/ProvableNFT.sol/ProvableNFT.dbg.json +4 -0
  12. package/artifacts/contracts/DirectPayments/ProvableNFT.sol/ProvableNFT.json +1187 -0
  13. package/artifacts/contracts/GoodCollective/GoodCollectiveSuperApp.sol/GoodCollectiveSuperApp.dbg.json +4 -0
  14. package/artifacts/contracts/GoodCollective/GoodCollectiveSuperApp.sol/GoodCollectiveSuperApp.json +831 -0
  15. package/artifacts/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp.dbg.json +4 -0
  16. package/artifacts/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp.json +42 -0
  17. package/artifacts/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry.dbg.json +4 -0
  18. package/artifacts/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry.json +61 -0
  19. package/artifacts/contracts/GoodCollective/SuperAppBaseFlow.sol/IRegisterSuperapp.dbg.json +4 -0
  20. package/artifacts/contracts/GoodCollective/SuperAppBaseFlow.sol/IRegisterSuperapp.json +47 -0
  21. package/artifacts/contracts/GoodCollective/SuperAppBaseFlow.sol/SuperAppBaseFlow.dbg.json +4 -0
  22. package/artifacts/contracts/GoodCollective/SuperAppBaseFlow.sol/SuperAppBaseFlow.json +320 -0
  23. package/artifacts/contracts/Interfaces.sol/IIdentityV2.dbg.json +4 -0
  24. package/artifacts/contracts/Interfaces.sol/IIdentityV2.json +30 -0
  25. package/artifacts/contracts/Interfaces.sol/IMembersValidator.dbg.json +4 -0
  26. package/artifacts/contracts/Interfaces.sol/IMembersValidator.json +45 -0
  27. package/artifacts/contracts/UBI/UBIPool.sol/UBIPool.dbg.json +4 -0
  28. package/artifacts/contracts/UBI/UBIPool.sol/UBIPool.json +2078 -0
  29. package/artifacts/contracts/UBI/UBIPoolFactory.sol/UBIPoolFactory.dbg.json +4 -0
  30. package/artifacts/contracts/UBI/UBIPoolFactory.sol/UBIPoolFactory.json +1011 -0
  31. package/artifacts/contracts/test/HelperLibraryTest.sol/HelperLibraryTest.dbg.json +4 -0
  32. package/artifacts/contracts/test/HelperLibraryTest.sol/HelperLibraryTest.json +90 -0
  33. package/artifacts/contracts/utils/HelperLibrary.sol/HelperLibrary.dbg.json +4 -0
  34. package/artifacts/contracts/utils/HelperLibrary.sol/HelperLibrary.json +117 -0
  35. package/artifacts/contracts/utils/SwapRouterMock.sol/SwapRouterMock.dbg.json +4 -0
  36. package/artifacts/contracts/utils/SwapRouterMock.sol/SwapRouterMock.json +119 -0
  37. package/contracts/DirectPayments/DirectPaymentsFactory.sol +32 -6
  38. package/contracts/DirectPayments/DirectPaymentsLibrary.sol +168 -14
  39. package/contracts/DirectPayments/DirectPaymentsPool.sol +31 -116
  40. package/contracts/GoodCollective/GoodCollectiveSuperApp.sol +7 -6
  41. package/contracts/GoodCollective/IGoodCollectiveSuperApp.sol +4 -0
  42. package/contracts/GoodCollective/SuperAppBaseFlow.sol +6 -0
  43. package/contracts/UBI/UBIPool.sol +62 -18
  44. package/contracts/UBI/UBIPoolFactory.sol +32 -4
  45. package/contracts/utils/HelperLibrary.sol +10 -0
  46. package/contracts/utils/Recover.sol +16 -0
  47. package/package.json +4 -4
  48. package/releases/deployment.json +7417 -30724
  49. package/typechain-types/contracts/DirectPayments/DirectPaymentsFactory.ts +54 -0
  50. package/typechain-types/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPayemntsLibrary.ts +77 -0
  51. package/typechain-types/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPaymentsLibrary.ts +77 -0
  52. package/typechain-types/contracts/DirectPayments/DirectPaymentsLibrary.sol/index.ts +5 -0
  53. package/typechain-types/contracts/DirectPayments/DirectPaymentsLibrary.ts +146 -0
  54. package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.ts +90 -11
  55. package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/IMembersValidator.ts +6 -8
  56. package/typechain-types/contracts/DirectPayments/index.ts +1 -0
  57. package/typechain-types/contracts/GoodCollective/GoodCollectiveSuperApp.ts +40 -0
  58. package/typechain-types/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp.ts +22 -1
  59. package/typechain-types/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry.ts +38 -1
  60. package/typechain-types/contracts/GoodCollective/SuperAppBaseFlow.sol/IRegisterSuperapp.ts +152 -0
  61. package/typechain-types/contracts/GoodCollective/SuperAppBaseFlow.sol/SuperAppBaseFlow.ts +523 -0
  62. package/typechain-types/contracts/GoodCollective/SuperAppBaseFlow.sol/index.ts +5 -0
  63. package/typechain-types/contracts/GoodCollective/index.ts +2 -1
  64. package/typechain-types/contracts/UBI/MultiClaimModule.sol/IClaimable.ts +92 -0
  65. package/typechain-types/contracts/UBI/MultiClaimModule.sol/IModule.ts +196 -0
  66. package/typechain-types/contracts/UBI/MultiClaimModule.sol/MultiClaimModule.ts +242 -0
  67. package/typechain-types/contracts/UBI/MultiClaimModule.sol/index.ts +6 -0
  68. package/typechain-types/contracts/UBI/UBIPool.ts +77 -0
  69. package/typechain-types/contracts/UBI/UBIPoolFactory.ts +54 -0
  70. package/typechain-types/contracts/utils/Recover.ts +263 -0
  71. package/typechain-types/contracts/utils/index.ts +1 -0
  72. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory__factory.ts +38 -1
  73. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPayemntsLibrary__factory.ts +96 -0
  74. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPaymentsLibrary__factory.ts +96 -0
  75. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsLibrary.sol/index.ts +5 -0
  76. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsLibrary__factory.ts +169 -0
  77. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool__factory.ts +53 -2
  78. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/IMembersValidator__factory.ts +1 -1
  79. package/typechain-types/factories/contracts/DirectPayments/index.ts +1 -0
  80. package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp__factory.ts +18 -0
  81. package/typechain-types/factories/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp__factory.ts +13 -0
  82. package/typechain-types/factories/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry__factory.ts +24 -0
  83. package/typechain-types/factories/contracts/GoodCollective/SuperAppBaseFlow.sol/IRegisterSuperapp__factory.ts +62 -0
  84. package/typechain-types/factories/contracts/GoodCollective/SuperAppBaseFlow.sol/SuperAppBaseFlow__factory.ts +335 -0
  85. package/typechain-types/factories/contracts/GoodCollective/SuperAppBaseFlow.sol/index.ts +5 -0
  86. package/typechain-types/factories/contracts/GoodCollective/index.ts +1 -1
  87. package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/IClaimable__factory.ts +33 -0
  88. package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/IModule__factory.ts +84 -0
  89. package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/MultiClaimModule__factory.ts +150 -0
  90. package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/index.ts +6 -0
  91. package/typechain-types/factories/contracts/UBI/UBIPoolFactory__factory.ts +38 -1
  92. package/typechain-types/factories/contracts/UBI/UBIPool__factory.ts +42 -1
  93. package/typechain-types/factories/contracts/test/HelperLibraryTest__factory.ts +1 -1
  94. package/typechain-types/factories/contracts/utils/HelperLibrary__factory.ts +11 -1
  95. package/typechain-types/factories/contracts/utils/Recover__factory.ts +172 -0
  96. package/typechain-types/factories/contracts/utils/index.ts +1 -0
  97. package/typechain-types/hardhat.d.ts +27 -0
  98. package/typechain-types/index.ts +8 -2
@@ -77,6 +77,7 @@ export interface DirectPaymentsFactoryInterface extends utils.Interface {
77
77
  functions: {
78
78
  "DEFAULT_ADMIN_ROLE()": FunctionFragment;
79
79
  "addMember(address)": FunctionFragment;
80
+ "addMembers(address[])": FunctionFragment;
80
81
  "changePoolDetails(address,string)": FunctionFragment;
81
82
  "createBeaconPool(string,string,(uint32,uint16[],uint128[],address,address,address,address,bool),(uint256,uint256,uint256),uint32)": FunctionFragment;
82
83
  "createPool(string,string,(uint32,uint16[],uint128[],address,address,address,address,bool),(uint256,uint256,uint256),uint32)": FunctionFragment;
@@ -109,6 +110,7 @@ export interface DirectPaymentsFactoryInterface extends utils.Interface {
109
110
  nameOrSignatureOrTopic:
110
111
  | "DEFAULT_ADMIN_ROLE"
111
112
  | "addMember"
113
+ | "addMembers"
112
114
  | "changePoolDetails"
113
115
  | "createBeaconPool"
114
116
  | "createPool"
@@ -145,6 +147,10 @@ export interface DirectPaymentsFactoryInterface extends utils.Interface {
145
147
  functionFragment: "addMember",
146
148
  values: [PromiseOrValue<string>]
147
149
  ): string;
150
+ encodeFunctionData(
151
+ functionFragment: "addMembers",
152
+ values: [PromiseOrValue<string>[]]
153
+ ): string;
148
154
  encodeFunctionData(
149
155
  functionFragment: "changePoolDetails",
150
156
  values: [PromiseOrValue<string>, PromiseOrValue<string>]
@@ -264,6 +270,7 @@ export interface DirectPaymentsFactoryInterface extends utils.Interface {
264
270
  data: BytesLike
265
271
  ): Result;
266
272
  decodeFunctionResult(functionFragment: "addMember", data: BytesLike): Result;
273
+ decodeFunctionResult(functionFragment: "addMembers", data: BytesLike): Result;
267
274
  decodeFunctionResult(
268
275
  functionFragment: "changePoolDetails",
269
276
  data: BytesLike
@@ -334,6 +341,7 @@ export interface DirectPaymentsFactoryInterface extends utils.Interface {
334
341
  "AdminChanged(address,address)": EventFragment;
335
342
  "BeaconUpgraded(address)": EventFragment;
336
343
  "Initialized(uint8)": EventFragment;
344
+ "MemberAdded(address,address)": EventFragment;
337
345
  "PoolCreated(address,string,string,uint32,tuple,tuple)": EventFragment;
338
346
  "PoolDetailsChanged(address,string)": EventFragment;
339
347
  "PoolVerifiedChanged(address,bool)": EventFragment;
@@ -347,6 +355,7 @@ export interface DirectPaymentsFactoryInterface extends utils.Interface {
347
355
  getEvent(nameOrSignatureOrTopic: "AdminChanged"): EventFragment;
348
356
  getEvent(nameOrSignatureOrTopic: "BeaconUpgraded"): EventFragment;
349
357
  getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment;
358
+ getEvent(nameOrSignatureOrTopic: "MemberAdded"): EventFragment;
350
359
  getEvent(nameOrSignatureOrTopic: "PoolCreated"): EventFragment;
351
360
  getEvent(nameOrSignatureOrTopic: "PoolDetailsChanged"): EventFragment;
352
361
  getEvent(nameOrSignatureOrTopic: "PoolVerifiedChanged"): EventFragment;
@@ -385,6 +394,17 @@ export type InitializedEvent = TypedEvent<[number], InitializedEventObject>;
385
394
 
386
395
  export type InitializedEventFilter = TypedEventFilter<InitializedEvent>;
387
396
 
397
+ export interface MemberAddedEventObject {
398
+ member: string;
399
+ pool: string;
400
+ }
401
+ export type MemberAddedEvent = TypedEvent<
402
+ [string, string],
403
+ MemberAddedEventObject
404
+ >;
405
+
406
+ export type MemberAddedEventFilter = TypedEventFilter<MemberAddedEvent>;
407
+
388
408
  export interface PoolCreatedEventObject {
389
409
  pool: string;
390
410
  projectId: string;
@@ -516,6 +536,11 @@ export interface DirectPaymentsFactory extends BaseContract {
516
536
  overrides?: Overrides & { from?: PromiseOrValue<string> }
517
537
  ): Promise<ContractTransaction>;
518
538
 
539
+ addMembers(
540
+ members: PromiseOrValue<string>[],
541
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
542
+ ): Promise<ContractTransaction>;
543
+
519
544
  changePoolDetails(
520
545
  _pool: PromiseOrValue<string>,
521
546
  _ipfs: PromiseOrValue<string>,
@@ -663,6 +688,11 @@ export interface DirectPaymentsFactory extends BaseContract {
663
688
  overrides?: Overrides & { from?: PromiseOrValue<string> }
664
689
  ): Promise<ContractTransaction>;
665
690
 
691
+ addMembers(
692
+ members: PromiseOrValue<string>[],
693
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
694
+ ): Promise<ContractTransaction>;
695
+
666
696
  changePoolDetails(
667
697
  _pool: PromiseOrValue<string>,
668
698
  _ipfs: PromiseOrValue<string>,
@@ -810,6 +840,11 @@ export interface DirectPaymentsFactory extends BaseContract {
810
840
  overrides?: CallOverrides
811
841
  ): Promise<void>;
812
842
 
843
+ addMembers(
844
+ members: PromiseOrValue<string>[],
845
+ overrides?: CallOverrides
846
+ ): Promise<void>;
847
+
813
848
  changePoolDetails(
814
849
  _pool: PromiseOrValue<string>,
815
850
  _ipfs: PromiseOrValue<string>,
@@ -970,6 +1005,15 @@ export interface DirectPaymentsFactory extends BaseContract {
970
1005
  "Initialized(uint8)"(version?: null): InitializedEventFilter;
971
1006
  Initialized(version?: null): InitializedEventFilter;
972
1007
 
1008
+ "MemberAdded(address,address)"(
1009
+ member?: PromiseOrValue<string> | null,
1010
+ pool?: PromiseOrValue<string> | null
1011
+ ): MemberAddedEventFilter;
1012
+ MemberAdded(
1013
+ member?: PromiseOrValue<string> | null,
1014
+ pool?: PromiseOrValue<string> | null
1015
+ ): MemberAddedEventFilter;
1016
+
973
1017
  "PoolCreated(address,string,string,uint32,tuple,tuple)"(
974
1018
  pool?: PromiseOrValue<string> | null,
975
1019
  projectId?: PromiseOrValue<string> | null,
@@ -1059,6 +1103,11 @@ export interface DirectPaymentsFactory extends BaseContract {
1059
1103
  overrides?: Overrides & { from?: PromiseOrValue<string> }
1060
1104
  ): Promise<BigNumber>;
1061
1105
 
1106
+ addMembers(
1107
+ members: PromiseOrValue<string>[],
1108
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1109
+ ): Promise<BigNumber>;
1110
+
1062
1111
  changePoolDetails(
1063
1112
  _pool: PromiseOrValue<string>,
1064
1113
  _ipfs: PromiseOrValue<string>,
@@ -1203,6 +1252,11 @@ export interface DirectPaymentsFactory extends BaseContract {
1203
1252
  overrides?: Overrides & { from?: PromiseOrValue<string> }
1204
1253
  ): Promise<PopulatedTransaction>;
1205
1254
 
1255
+ addMembers(
1256
+ members: PromiseOrValue<string>[],
1257
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1258
+ ): Promise<PopulatedTransaction>;
1259
+
1206
1260
  changePoolDetails(
1207
1261
  _pool: PromiseOrValue<string>,
1208
1262
  _ipfs: PromiseOrValue<string>,
@@ -0,0 +1,77 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type { BaseContract, Signer, utils } from "ethers";
5
+ import type { EventFragment } from "@ethersproject/abi";
6
+ import type { Listener, Provider } from "@ethersproject/providers";
7
+ import type {
8
+ TypedEventFilter,
9
+ TypedEvent,
10
+ TypedListener,
11
+ OnEvent,
12
+ } from "../../../common";
13
+
14
+ export interface DirectPayemntsLibraryInterface extends utils.Interface {
15
+ functions: {};
16
+
17
+ events: {
18
+ "NOT_MEMBER_OR_WHITELISTED(address)": EventFragment;
19
+ };
20
+
21
+ getEvent(nameOrSignatureOrTopic: "NOT_MEMBER_OR_WHITELISTED"): EventFragment;
22
+ }
23
+
24
+ export interface NOT_MEMBER_OR_WHITELISTEDEventObject {
25
+ contributer: string;
26
+ }
27
+ export type NOT_MEMBER_OR_WHITELISTEDEvent = TypedEvent<
28
+ [string],
29
+ NOT_MEMBER_OR_WHITELISTEDEventObject
30
+ >;
31
+
32
+ export type NOT_MEMBER_OR_WHITELISTEDEventFilter =
33
+ TypedEventFilter<NOT_MEMBER_OR_WHITELISTEDEvent>;
34
+
35
+ export interface DirectPayemntsLibrary extends BaseContract {
36
+ connect(signerOrProvider: Signer | Provider | string): this;
37
+ attach(addressOrName: string): this;
38
+ deployed(): Promise<this>;
39
+
40
+ interface: DirectPayemntsLibraryInterface;
41
+
42
+ queryFilter<TEvent extends TypedEvent>(
43
+ event: TypedEventFilter<TEvent>,
44
+ fromBlockOrBlockhash?: string | number | undefined,
45
+ toBlock?: string | number | undefined
46
+ ): Promise<Array<TEvent>>;
47
+
48
+ listeners<TEvent extends TypedEvent>(
49
+ eventFilter?: TypedEventFilter<TEvent>
50
+ ): Array<TypedListener<TEvent>>;
51
+ listeners(eventName?: string): Array<Listener>;
52
+ removeAllListeners<TEvent extends TypedEvent>(
53
+ eventFilter: TypedEventFilter<TEvent>
54
+ ): this;
55
+ removeAllListeners(eventName?: string): this;
56
+ off: OnEvent<this>;
57
+ on: OnEvent<this>;
58
+ once: OnEvent<this>;
59
+ removeListener: OnEvent<this>;
60
+
61
+ functions: {};
62
+
63
+ callStatic: {};
64
+
65
+ filters: {
66
+ "NOT_MEMBER_OR_WHITELISTED(address)"(
67
+ contributer?: null
68
+ ): NOT_MEMBER_OR_WHITELISTEDEventFilter;
69
+ NOT_MEMBER_OR_WHITELISTED(
70
+ contributer?: null
71
+ ): NOT_MEMBER_OR_WHITELISTEDEventFilter;
72
+ };
73
+
74
+ estimateGas: {};
75
+
76
+ populateTransaction: {};
77
+ }
@@ -0,0 +1,77 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type { BaseContract, Signer, utils } from "ethers";
5
+ import type { EventFragment } from "@ethersproject/abi";
6
+ import type { Listener, Provider } from "@ethersproject/providers";
7
+ import type {
8
+ TypedEventFilter,
9
+ TypedEvent,
10
+ TypedListener,
11
+ OnEvent,
12
+ } from "../../../common";
13
+
14
+ export interface DirectPaymentsLibraryInterface extends utils.Interface {
15
+ functions: {};
16
+
17
+ events: {
18
+ "NOT_MEMBER_OR_WHITELISTED(address)": EventFragment;
19
+ };
20
+
21
+ getEvent(nameOrSignatureOrTopic: "NOT_MEMBER_OR_WHITELISTED"): EventFragment;
22
+ }
23
+
24
+ export interface NOT_MEMBER_OR_WHITELISTEDEventObject {
25
+ contributer: string;
26
+ }
27
+ export type NOT_MEMBER_OR_WHITELISTEDEvent = TypedEvent<
28
+ [string],
29
+ NOT_MEMBER_OR_WHITELISTEDEventObject
30
+ >;
31
+
32
+ export type NOT_MEMBER_OR_WHITELISTEDEventFilter =
33
+ TypedEventFilter<NOT_MEMBER_OR_WHITELISTEDEvent>;
34
+
35
+ export interface DirectPaymentsLibrary extends BaseContract {
36
+ connect(signerOrProvider: Signer | Provider | string): this;
37
+ attach(addressOrName: string): this;
38
+ deployed(): Promise<this>;
39
+
40
+ interface: DirectPaymentsLibraryInterface;
41
+
42
+ queryFilter<TEvent extends TypedEvent>(
43
+ event: TypedEventFilter<TEvent>,
44
+ fromBlockOrBlockhash?: string | number | undefined,
45
+ toBlock?: string | number | undefined
46
+ ): Promise<Array<TEvent>>;
47
+
48
+ listeners<TEvent extends TypedEvent>(
49
+ eventFilter?: TypedEventFilter<TEvent>
50
+ ): Array<TypedListener<TEvent>>;
51
+ listeners(eventName?: string): Array<Listener>;
52
+ removeAllListeners<TEvent extends TypedEvent>(
53
+ eventFilter: TypedEventFilter<TEvent>
54
+ ): this;
55
+ removeAllListeners(eventName?: string): this;
56
+ off: OnEvent<this>;
57
+ on: OnEvent<this>;
58
+ once: OnEvent<this>;
59
+ removeListener: OnEvent<this>;
60
+
61
+ functions: {};
62
+
63
+ callStatic: {};
64
+
65
+ filters: {
66
+ "NOT_MEMBER_OR_WHITELISTED(address)"(
67
+ contributer?: null
68
+ ): NOT_MEMBER_OR_WHITELISTEDEventFilter;
69
+ NOT_MEMBER_OR_WHITELISTED(
70
+ contributer?: null
71
+ ): NOT_MEMBER_OR_WHITELISTEDEventFilter;
72
+ };
73
+
74
+ estimateGas: {};
75
+
76
+ populateTransaction: {};
77
+ }
@@ -0,0 +1,5 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export type { DirectPayemntsLibrary } from "./DirectPayemntsLibrary";
5
+ export type { DirectPaymentsLibrary } from "./DirectPaymentsLibrary";
@@ -0,0 +1,146 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ BigNumber,
7
+ BigNumberish,
8
+ Signer,
9
+ utils,
10
+ } from "ethers";
11
+ import type { EventFragment } from "@ethersproject/abi";
12
+ import type { Listener, Provider } from "@ethersproject/providers";
13
+ import type {
14
+ TypedEventFilter,
15
+ TypedEvent,
16
+ TypedListener,
17
+ OnEvent,
18
+ PromiseOrValue,
19
+ } from "../../common";
20
+
21
+ export interface DirectPaymentsLibraryInterface extends utils.Interface {
22
+ functions: {};
23
+
24
+ events: {
25
+ "EventRewardClaimed(uint256,uint16,uint32,uint256,string,address[],uint256)": EventFragment;
26
+ "NFTClaimed(uint256,uint256)": EventFragment;
27
+ "NOT_MEMBER_OR_WHITELISTED_OR_LIMITS(address)": EventFragment;
28
+ };
29
+
30
+ getEvent(nameOrSignatureOrTopic: "EventRewardClaimed"): EventFragment;
31
+ getEvent(nameOrSignatureOrTopic: "NFTClaimed"): EventFragment;
32
+ getEvent(
33
+ nameOrSignatureOrTopic: "NOT_MEMBER_OR_WHITELISTED_OR_LIMITS"
34
+ ): EventFragment;
35
+ }
36
+
37
+ export interface EventRewardClaimedEventObject {
38
+ tokenId: BigNumber;
39
+ eventType: number;
40
+ eventTimestamp: number;
41
+ eventQuantity: BigNumber;
42
+ eventUri: string;
43
+ contributers: string[];
44
+ rewardPerContributer: BigNumber;
45
+ }
46
+ export type EventRewardClaimedEvent = TypedEvent<
47
+ [BigNumber, number, number, BigNumber, string, string[], BigNumber],
48
+ EventRewardClaimedEventObject
49
+ >;
50
+
51
+ export type EventRewardClaimedEventFilter =
52
+ TypedEventFilter<EventRewardClaimedEvent>;
53
+
54
+ export interface NFTClaimedEventObject {
55
+ tokenId: BigNumber;
56
+ totalRewards: BigNumber;
57
+ }
58
+ export type NFTClaimedEvent = TypedEvent<
59
+ [BigNumber, BigNumber],
60
+ NFTClaimedEventObject
61
+ >;
62
+
63
+ export type NFTClaimedEventFilter = TypedEventFilter<NFTClaimedEvent>;
64
+
65
+ export interface NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEventObject {
66
+ contributer: string;
67
+ }
68
+ export type NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEvent = TypedEvent<
69
+ [string],
70
+ NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEventObject
71
+ >;
72
+
73
+ export type NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEventFilter =
74
+ TypedEventFilter<NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEvent>;
75
+
76
+ export interface DirectPaymentsLibrary extends BaseContract {
77
+ connect(signerOrProvider: Signer | Provider | string): this;
78
+ attach(addressOrName: string): this;
79
+ deployed(): Promise<this>;
80
+
81
+ interface: DirectPaymentsLibraryInterface;
82
+
83
+ queryFilter<TEvent extends TypedEvent>(
84
+ event: TypedEventFilter<TEvent>,
85
+ fromBlockOrBlockhash?: string | number | undefined,
86
+ toBlock?: string | number | undefined
87
+ ): Promise<Array<TEvent>>;
88
+
89
+ listeners<TEvent extends TypedEvent>(
90
+ eventFilter?: TypedEventFilter<TEvent>
91
+ ): Array<TypedListener<TEvent>>;
92
+ listeners(eventName?: string): Array<Listener>;
93
+ removeAllListeners<TEvent extends TypedEvent>(
94
+ eventFilter: TypedEventFilter<TEvent>
95
+ ): this;
96
+ removeAllListeners(eventName?: string): this;
97
+ off: OnEvent<this>;
98
+ on: OnEvent<this>;
99
+ once: OnEvent<this>;
100
+ removeListener: OnEvent<this>;
101
+
102
+ functions: {};
103
+
104
+ callStatic: {};
105
+
106
+ filters: {
107
+ "EventRewardClaimed(uint256,uint16,uint32,uint256,string,address[],uint256)"(
108
+ tokenId?: PromiseOrValue<BigNumberish> | null,
109
+ eventType?: null,
110
+ eventTimestamp?: null,
111
+ eventQuantity?: null,
112
+ eventUri?: null,
113
+ contributers?: null,
114
+ rewardPerContributer?: null
115
+ ): EventRewardClaimedEventFilter;
116
+ EventRewardClaimed(
117
+ tokenId?: PromiseOrValue<BigNumberish> | null,
118
+ eventType?: null,
119
+ eventTimestamp?: null,
120
+ eventQuantity?: null,
121
+ eventUri?: null,
122
+ contributers?: null,
123
+ rewardPerContributer?: null
124
+ ): EventRewardClaimedEventFilter;
125
+
126
+ "NFTClaimed(uint256,uint256)"(
127
+ tokenId?: PromiseOrValue<BigNumberish> | null,
128
+ totalRewards?: null
129
+ ): NFTClaimedEventFilter;
130
+ NFTClaimed(
131
+ tokenId?: PromiseOrValue<BigNumberish> | null,
132
+ totalRewards?: null
133
+ ): NFTClaimedEventFilter;
134
+
135
+ "NOT_MEMBER_OR_WHITELISTED_OR_LIMITS(address)"(
136
+ contributer?: null
137
+ ): NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEventFilter;
138
+ NOT_MEMBER_OR_WHITELISTED_OR_LIMITS(
139
+ contributer?: null
140
+ ): NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEventFilter;
141
+ };
142
+
143
+ estimateGas: {};
144
+
145
+ populateTransaction: {};
146
+ }