@gooddollar/goodcollective-contracts 1.2.0 → 1.3.1
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/contracts/DirectPayments/DirectPaymentsFactory.sol +31 -12
- package/contracts/DirectPayments/DirectPaymentsLibrary.sol +208 -0
- package/contracts/DirectPayments/DirectPaymentsPool.sol +19 -151
- package/contracts/GoodCollective/GoodCollectiveSuperApp.sol +72 -19
- package/contracts/GoodCollective/IGoodCollectiveSuperApp.sol +10 -0
- package/contracts/GoodCollective/SuperAppBaseFlow.sol +6 -0
- package/contracts/Interfaces.sol +25 -0
- package/contracts/UBI/UBIPool.sol +76 -75
- package/contracts/UBI/UBIPoolFactory.sol +34 -13
- package/contracts/utils/HelperLibrary.sol +66 -23
- package/package.json +3 -3
- package/releases/deployment.json +8486 -30703
- package/typechain-types/contracts/DirectPayments/DirectPaymentsFactory.ts +16 -4
- package/typechain-types/contracts/DirectPayments/DirectPaymentsLibrary.ts +146 -0
- package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.ts +191 -20
- package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/IMembersValidator.ts +6 -8
- package/typechain-types/contracts/DirectPayments/index.ts +1 -0
- package/typechain-types/contracts/GoodCollective/GoodCollectiveSuperApp.ts +141 -6
- package/typechain-types/contracts/{DirectPayments/DirectPaymentsFactory.sol/IRegistry.ts → GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp.ts} +32 -20
- package/typechain-types/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry.ts +38 -1
- package/typechain-types/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/index.ts +1 -0
- package/typechain-types/contracts/GoodCollective/SuperAppBaseFlow.sol/IRegisterSuperapp.ts +152 -0
- package/typechain-types/contracts/GoodCollective/SuperAppBaseFlow.sol/SuperAppBaseFlow.ts +523 -0
- package/typechain-types/contracts/GoodCollective/SuperAppBaseFlow.sol/index.ts +5 -0
- package/typechain-types/contracts/GoodCollective/index.ts +2 -1
- package/typechain-types/contracts/{UBI/UBIPool.sol → Interfaces.sol}/IIdentityV2.ts +1 -1
- package/typechain-types/contracts/{UBI/UBIPool.sol → Interfaces.sol}/IMembersValidator.ts +1 -1
- package/typechain-types/contracts/{UBI/UBIPool.sol → Interfaces.sol}/index.ts +0 -1
- package/typechain-types/contracts/UBI/{UBIPool.sol/UBIPool.ts → UBIPool.ts} +279 -47
- package/typechain-types/contracts/UBI/UBIPoolFactory.ts +58 -34
- package/typechain-types/contracts/UBI/index.ts +1 -2
- package/typechain-types/contracts/index.ts +2 -0
- package/typechain-types/contracts/utils/HelperLibrary.ts +46 -4
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory__factory.ts +16 -1
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsLibrary__factory.ts +169 -0
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool__factory.ts +101 -2
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/IMembersValidator__factory.ts +1 -1
- package/typechain-types/factories/contracts/DirectPayments/index.ts +1 -0
- package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp__factory.ts +66 -0
- package/typechain-types/factories/contracts/{DirectPayments/DirectPaymentsFactory.sol/IRegistry__factory.ts → GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp__factory.ts} +21 -12
- package/typechain-types/factories/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry__factory.ts +24 -0
- package/typechain-types/factories/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/index.ts +1 -0
- package/typechain-types/factories/contracts/GoodCollective/SuperAppBaseFlow.sol/IRegisterSuperapp__factory.ts +62 -0
- package/typechain-types/factories/contracts/GoodCollective/SuperAppBaseFlow.sol/SuperAppBaseFlow__factory.ts +335 -0
- package/typechain-types/factories/contracts/GoodCollective/SuperAppBaseFlow.sol/index.ts +5 -0
- package/typechain-types/factories/contracts/GoodCollective/index.ts +1 -1
- package/typechain-types/factories/contracts/{UBI/UBIPool.sol → Interfaces.sol}/IIdentityV2__factory.ts +1 -1
- package/typechain-types/factories/contracts/{UBI/UBIPool.sol → Interfaces.sol}/IMembersValidator__factory.ts +1 -1
- package/typechain-types/factories/contracts/{UBI/UBIPool.sol → Interfaces.sol}/index.ts +0 -1
- package/typechain-types/factories/contracts/UBI/UBIPoolFactory__factory.ts +56 -7
- package/typechain-types/factories/contracts/UBI/UBIPool__factory.ts +2070 -0
- package/typechain-types/factories/contracts/UBI/index.ts +1 -1
- package/typechain-types/factories/contracts/index.ts +1 -0
- package/typechain-types/factories/contracts/test/HelperLibraryTest__factory.ts +1 -1
- package/typechain-types/factories/contracts/utils/HelperLibrary__factory.ts +41 -1
- package/typechain-types/hardhat.d.ts +35 -8
- package/typechain-types/index.ts +10 -4
- package/typechain-types/contracts/DirectPayments/DirectPaymentsFactory.sol/DirectPaymentsFactory.ts +0 -1327
- package/typechain-types/contracts/DirectPayments/DirectPaymentsFactory.sol/index.ts +0 -5
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory.sol/DirectPaymentsFactory__factory.ts +0 -1004
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory.sol/index.ts +0 -5
- package/typechain-types/factories/contracts/UBI/UBIPool.sol/UBIPool__factory.ts +0 -1916
package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp__factory.ts
CHANGED
|
@@ -414,6 +414,24 @@ const _abi = [
|
|
|
414
414
|
stateMutability: "view",
|
|
415
415
|
type: "function",
|
|
416
416
|
},
|
|
417
|
+
{
|
|
418
|
+
inputs: [],
|
|
419
|
+
name: "getManagerFee",
|
|
420
|
+
outputs: [
|
|
421
|
+
{
|
|
422
|
+
internalType: "address",
|
|
423
|
+
name: "admin",
|
|
424
|
+
type: "address",
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
internalType: "uint32",
|
|
428
|
+
name: "feeBps",
|
|
429
|
+
type: "uint32",
|
|
430
|
+
},
|
|
431
|
+
],
|
|
432
|
+
stateMutability: "view",
|
|
433
|
+
type: "function",
|
|
434
|
+
},
|
|
417
435
|
{
|
|
418
436
|
inputs: [
|
|
419
437
|
{
|
|
@@ -447,6 +465,16 @@ const _abi = [
|
|
|
447
465
|
name: "totalFees",
|
|
448
466
|
type: "uint256",
|
|
449
467
|
},
|
|
468
|
+
{
|
|
469
|
+
internalType: "uint256",
|
|
470
|
+
name: "protocolFees",
|
|
471
|
+
type: "uint256",
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
internalType: "uint256",
|
|
475
|
+
name: "managerFees",
|
|
476
|
+
type: "uint256",
|
|
477
|
+
},
|
|
450
478
|
{
|
|
451
479
|
internalType: "int96",
|
|
452
480
|
name: "incomeFlowRate",
|
|
@@ -457,6 +485,11 @@ const _abi = [
|
|
|
457
485
|
name: "feeRate",
|
|
458
486
|
type: "int96",
|
|
459
487
|
},
|
|
488
|
+
{
|
|
489
|
+
internalType: "int96",
|
|
490
|
+
name: "managerFeeRate",
|
|
491
|
+
type: "int96",
|
|
492
|
+
},
|
|
460
493
|
],
|
|
461
494
|
stateMutability: "view",
|
|
462
495
|
type: "function",
|
|
@@ -591,6 +624,24 @@ const _abi = [
|
|
|
591
624
|
stateMutability: "nonpayable",
|
|
592
625
|
type: "function",
|
|
593
626
|
},
|
|
627
|
+
{
|
|
628
|
+
inputs: [
|
|
629
|
+
{
|
|
630
|
+
internalType: "address",
|
|
631
|
+
name: "_recipient",
|
|
632
|
+
type: "address",
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
internalType: "uint256",
|
|
636
|
+
name: "amount",
|
|
637
|
+
type: "uint256",
|
|
638
|
+
},
|
|
639
|
+
],
|
|
640
|
+
name: "recoverFunds",
|
|
641
|
+
outputs: [],
|
|
642
|
+
stateMutability: "nonpayable",
|
|
643
|
+
type: "function",
|
|
644
|
+
},
|
|
594
645
|
{
|
|
595
646
|
inputs: [],
|
|
596
647
|
name: "stats",
|
|
@@ -620,6 +671,21 @@ const _abi = [
|
|
|
620
671
|
name: "lastIncomeRate",
|
|
621
672
|
type: "int96",
|
|
622
673
|
},
|
|
674
|
+
{
|
|
675
|
+
internalType: "address",
|
|
676
|
+
name: "lastManagerFeeRecipient",
|
|
677
|
+
type: "address",
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
internalType: "uint256",
|
|
681
|
+
name: "protocolFees",
|
|
682
|
+
type: "uint256",
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
internalType: "uint256",
|
|
686
|
+
name: "managerFees",
|
|
687
|
+
type: "uint256",
|
|
688
|
+
},
|
|
623
689
|
],
|
|
624
690
|
stateMutability: "view",
|
|
625
691
|
type: "function",
|
|
@@ -5,18 +5,23 @@
|
|
|
5
5
|
import { Contract, Signer, utils } from "ethers";
|
|
6
6
|
import type { Provider } from "@ethersproject/providers";
|
|
7
7
|
import type {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "../../../../contracts/
|
|
8
|
+
IGoodCollectiveSuperApp,
|
|
9
|
+
IGoodCollectiveSuperAppInterface,
|
|
10
|
+
} from "../../../../contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp";
|
|
11
11
|
|
|
12
12
|
const _abi = [
|
|
13
13
|
{
|
|
14
14
|
inputs: [],
|
|
15
|
-
name: "
|
|
15
|
+
name: "getAdminFee",
|
|
16
16
|
outputs: [
|
|
17
|
+
{
|
|
18
|
+
internalType: "address",
|
|
19
|
+
name: "admin",
|
|
20
|
+
type: "address",
|
|
21
|
+
},
|
|
17
22
|
{
|
|
18
23
|
internalType: "uint32",
|
|
19
|
-
name: "",
|
|
24
|
+
name: "feeBps",
|
|
20
25
|
type: "uint32",
|
|
21
26
|
},
|
|
22
27
|
],
|
|
@@ -25,10 +30,10 @@ const _abi = [
|
|
|
25
30
|
},
|
|
26
31
|
{
|
|
27
32
|
inputs: [],
|
|
28
|
-
name: "
|
|
33
|
+
name: "getRegistry",
|
|
29
34
|
outputs: [
|
|
30
35
|
{
|
|
31
|
-
internalType: "
|
|
36
|
+
internalType: "contract IRegistry",
|
|
32
37
|
name: "",
|
|
33
38
|
type: "address",
|
|
34
39
|
},
|
|
@@ -38,15 +43,19 @@ const _abi = [
|
|
|
38
43
|
},
|
|
39
44
|
] as const;
|
|
40
45
|
|
|
41
|
-
export class
|
|
46
|
+
export class IGoodCollectiveSuperApp__factory {
|
|
42
47
|
static readonly abi = _abi;
|
|
43
|
-
static createInterface():
|
|
44
|
-
return new utils.Interface(_abi) as
|
|
48
|
+
static createInterface(): IGoodCollectiveSuperAppInterface {
|
|
49
|
+
return new utils.Interface(_abi) as IGoodCollectiveSuperAppInterface;
|
|
45
50
|
}
|
|
46
51
|
static connect(
|
|
47
52
|
address: string,
|
|
48
53
|
signerOrProvider: Signer | Provider
|
|
49
|
-
):
|
|
50
|
-
return new Contract(
|
|
54
|
+
): IGoodCollectiveSuperApp {
|
|
55
|
+
return new Contract(
|
|
56
|
+
address,
|
|
57
|
+
_abi,
|
|
58
|
+
signerOrProvider
|
|
59
|
+
) as IGoodCollectiveSuperApp;
|
|
51
60
|
}
|
|
52
61
|
}
|
|
@@ -36,6 +36,30 @@ const _abi = [
|
|
|
36
36
|
stateMutability: "view",
|
|
37
37
|
type: "function",
|
|
38
38
|
},
|
|
39
|
+
{
|
|
40
|
+
inputs: [
|
|
41
|
+
{
|
|
42
|
+
internalType: "bytes32",
|
|
43
|
+
name: "role",
|
|
44
|
+
type: "bytes32",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
internalType: "address",
|
|
48
|
+
name: "account",
|
|
49
|
+
type: "address",
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
name: "hasRole",
|
|
53
|
+
outputs: [
|
|
54
|
+
{
|
|
55
|
+
internalType: "bool",
|
|
56
|
+
name: "",
|
|
57
|
+
type: "bool",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
stateMutability: "view",
|
|
61
|
+
type: "function",
|
|
62
|
+
},
|
|
39
63
|
] as const;
|
|
40
64
|
|
|
41
65
|
export class IRegistry__factory {
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import type { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
IRegisterSuperapp,
|
|
9
|
+
IRegisterSuperappInterface,
|
|
10
|
+
} from "../../../../contracts/GoodCollective/SuperAppBaseFlow.sol/IRegisterSuperapp";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
internalType: "address",
|
|
17
|
+
name: "app",
|
|
18
|
+
type: "address",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
internalType: "uint256",
|
|
22
|
+
name: "configWord",
|
|
23
|
+
type: "uint256",
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
name: "registerApp",
|
|
27
|
+
outputs: [],
|
|
28
|
+
stateMutability: "nonpayable",
|
|
29
|
+
type: "function",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
inputs: [
|
|
33
|
+
{
|
|
34
|
+
internalType: "address",
|
|
35
|
+
name: "app",
|
|
36
|
+
type: "address",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
internalType: "uint256",
|
|
40
|
+
name: "configWord",
|
|
41
|
+
type: "uint256",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
name: "registerAppByFactory",
|
|
45
|
+
outputs: [],
|
|
46
|
+
stateMutability: "nonpayable",
|
|
47
|
+
type: "function",
|
|
48
|
+
},
|
|
49
|
+
] as const;
|
|
50
|
+
|
|
51
|
+
export class IRegisterSuperapp__factory {
|
|
52
|
+
static readonly abi = _abi;
|
|
53
|
+
static createInterface(): IRegisterSuperappInterface {
|
|
54
|
+
return new utils.Interface(_abi) as IRegisterSuperappInterface;
|
|
55
|
+
}
|
|
56
|
+
static connect(
|
|
57
|
+
address: string,
|
|
58
|
+
signerOrProvider: Signer | Provider
|
|
59
|
+
): IRegisterSuperapp {
|
|
60
|
+
return new Contract(address, _abi, signerOrProvider) as IRegisterSuperapp;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import type { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
SuperAppBaseFlow,
|
|
9
|
+
SuperAppBaseFlowInterface,
|
|
10
|
+
} from "../../../../contracts/GoodCollective/SuperAppBaseFlow.sol/SuperAppBaseFlow";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [],
|
|
15
|
+
name: "NotAcceptedSuperToken",
|
|
16
|
+
type: "error",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
inputs: [],
|
|
20
|
+
name: "NotImplemented",
|
|
21
|
+
type: "error",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
inputs: [],
|
|
25
|
+
name: "UnauthorizedHost",
|
|
26
|
+
type: "error",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
inputs: [],
|
|
30
|
+
name: "CFAV1_TYPE",
|
|
31
|
+
outputs: [
|
|
32
|
+
{
|
|
33
|
+
internalType: "bytes32",
|
|
34
|
+
name: "",
|
|
35
|
+
type: "bytes32",
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
stateMutability: "view",
|
|
39
|
+
type: "function",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
inputs: [
|
|
43
|
+
{
|
|
44
|
+
internalType: "contract ISuperToken",
|
|
45
|
+
name: "superToken",
|
|
46
|
+
type: "address",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
internalType: "address",
|
|
50
|
+
name: "",
|
|
51
|
+
type: "address",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
internalType: "bytes32",
|
|
55
|
+
name: "",
|
|
56
|
+
type: "bytes32",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
internalType: "bytes",
|
|
60
|
+
name: "agreementData",
|
|
61
|
+
type: "bytes",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
internalType: "bytes",
|
|
65
|
+
name: "",
|
|
66
|
+
type: "bytes",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
internalType: "bytes",
|
|
70
|
+
name: "ctx",
|
|
71
|
+
type: "bytes",
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
name: "afterAgreementCreated",
|
|
75
|
+
outputs: [
|
|
76
|
+
{
|
|
77
|
+
internalType: "bytes",
|
|
78
|
+
name: "newCtx",
|
|
79
|
+
type: "bytes",
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
stateMutability: "nonpayable",
|
|
83
|
+
type: "function",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
inputs: [
|
|
87
|
+
{
|
|
88
|
+
internalType: "contract ISuperToken",
|
|
89
|
+
name: "superToken",
|
|
90
|
+
type: "address",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
internalType: "address",
|
|
94
|
+
name: "agreementClass",
|
|
95
|
+
type: "address",
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
internalType: "bytes32",
|
|
99
|
+
name: "",
|
|
100
|
+
type: "bytes32",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
internalType: "bytes",
|
|
104
|
+
name: "agreementData",
|
|
105
|
+
type: "bytes",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
internalType: "bytes",
|
|
109
|
+
name: "cbdata",
|
|
110
|
+
type: "bytes",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
internalType: "bytes",
|
|
114
|
+
name: "ctx",
|
|
115
|
+
type: "bytes",
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
name: "afterAgreementTerminated",
|
|
119
|
+
outputs: [
|
|
120
|
+
{
|
|
121
|
+
internalType: "bytes",
|
|
122
|
+
name: "newCtx",
|
|
123
|
+
type: "bytes",
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
stateMutability: "nonpayable",
|
|
127
|
+
type: "function",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
inputs: [
|
|
131
|
+
{
|
|
132
|
+
internalType: "contract ISuperToken",
|
|
133
|
+
name: "superToken",
|
|
134
|
+
type: "address",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
internalType: "address",
|
|
138
|
+
name: "",
|
|
139
|
+
type: "address",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
internalType: "bytes32",
|
|
143
|
+
name: "",
|
|
144
|
+
type: "bytes32",
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
internalType: "bytes",
|
|
148
|
+
name: "agreementData",
|
|
149
|
+
type: "bytes",
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
internalType: "bytes",
|
|
153
|
+
name: "cbdata",
|
|
154
|
+
type: "bytes",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
internalType: "bytes",
|
|
158
|
+
name: "ctx",
|
|
159
|
+
type: "bytes",
|
|
160
|
+
},
|
|
161
|
+
],
|
|
162
|
+
name: "afterAgreementUpdated",
|
|
163
|
+
outputs: [
|
|
164
|
+
{
|
|
165
|
+
internalType: "bytes",
|
|
166
|
+
name: "newCtx",
|
|
167
|
+
type: "bytes",
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
stateMutability: "nonpayable",
|
|
171
|
+
type: "function",
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
inputs: [
|
|
175
|
+
{
|
|
176
|
+
internalType: "contract ISuperToken",
|
|
177
|
+
name: "superToken",
|
|
178
|
+
type: "address",
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
internalType: "address",
|
|
182
|
+
name: "agreementClass",
|
|
183
|
+
type: "address",
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
internalType: "bytes32",
|
|
187
|
+
name: "",
|
|
188
|
+
type: "bytes32",
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
internalType: "bytes",
|
|
192
|
+
name: "",
|
|
193
|
+
type: "bytes",
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
internalType: "bytes",
|
|
197
|
+
name: "",
|
|
198
|
+
type: "bytes",
|
|
199
|
+
},
|
|
200
|
+
],
|
|
201
|
+
name: "beforeAgreementCreated",
|
|
202
|
+
outputs: [
|
|
203
|
+
{
|
|
204
|
+
internalType: "bytes",
|
|
205
|
+
name: "",
|
|
206
|
+
type: "bytes",
|
|
207
|
+
},
|
|
208
|
+
],
|
|
209
|
+
stateMutability: "view",
|
|
210
|
+
type: "function",
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
inputs: [
|
|
214
|
+
{
|
|
215
|
+
internalType: "contract ISuperToken",
|
|
216
|
+
name: "superToken",
|
|
217
|
+
type: "address",
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
internalType: "address",
|
|
221
|
+
name: "agreementClass",
|
|
222
|
+
type: "address",
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
internalType: "bytes32",
|
|
226
|
+
name: "",
|
|
227
|
+
type: "bytes32",
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
internalType: "bytes",
|
|
231
|
+
name: "agreementData",
|
|
232
|
+
type: "bytes",
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
internalType: "bytes",
|
|
236
|
+
name: "",
|
|
237
|
+
type: "bytes",
|
|
238
|
+
},
|
|
239
|
+
],
|
|
240
|
+
name: "beforeAgreementTerminated",
|
|
241
|
+
outputs: [
|
|
242
|
+
{
|
|
243
|
+
internalType: "bytes",
|
|
244
|
+
name: "",
|
|
245
|
+
type: "bytes",
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
stateMutability: "view",
|
|
249
|
+
type: "function",
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
inputs: [
|
|
253
|
+
{
|
|
254
|
+
internalType: "contract ISuperToken",
|
|
255
|
+
name: "superToken",
|
|
256
|
+
type: "address",
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
internalType: "address",
|
|
260
|
+
name: "agreementClass",
|
|
261
|
+
type: "address",
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
internalType: "bytes32",
|
|
265
|
+
name: "",
|
|
266
|
+
type: "bytes32",
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
internalType: "bytes",
|
|
270
|
+
name: "agreementData",
|
|
271
|
+
type: "bytes",
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
internalType: "bytes",
|
|
275
|
+
name: "",
|
|
276
|
+
type: "bytes",
|
|
277
|
+
},
|
|
278
|
+
],
|
|
279
|
+
name: "beforeAgreementUpdated",
|
|
280
|
+
outputs: [
|
|
281
|
+
{
|
|
282
|
+
internalType: "bytes",
|
|
283
|
+
name: "",
|
|
284
|
+
type: "bytes",
|
|
285
|
+
},
|
|
286
|
+
],
|
|
287
|
+
stateMutability: "view",
|
|
288
|
+
type: "function",
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
inputs: [],
|
|
292
|
+
name: "host",
|
|
293
|
+
outputs: [
|
|
294
|
+
{
|
|
295
|
+
internalType: "contract ISuperfluid",
|
|
296
|
+
name: "",
|
|
297
|
+
type: "address",
|
|
298
|
+
},
|
|
299
|
+
],
|
|
300
|
+
stateMutability: "view",
|
|
301
|
+
type: "function",
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
inputs: [
|
|
305
|
+
{
|
|
306
|
+
internalType: "contract ISuperToken",
|
|
307
|
+
name: "",
|
|
308
|
+
type: "address",
|
|
309
|
+
},
|
|
310
|
+
],
|
|
311
|
+
name: "isAcceptedSuperToken",
|
|
312
|
+
outputs: [
|
|
313
|
+
{
|
|
314
|
+
internalType: "bool",
|
|
315
|
+
name: "",
|
|
316
|
+
type: "bool",
|
|
317
|
+
},
|
|
318
|
+
],
|
|
319
|
+
stateMutability: "view",
|
|
320
|
+
type: "function",
|
|
321
|
+
},
|
|
322
|
+
] as const;
|
|
323
|
+
|
|
324
|
+
export class SuperAppBaseFlow__factory {
|
|
325
|
+
static readonly abi = _abi;
|
|
326
|
+
static createInterface(): SuperAppBaseFlowInterface {
|
|
327
|
+
return new utils.Interface(_abi) as SuperAppBaseFlowInterface;
|
|
328
|
+
}
|
|
329
|
+
static connect(
|
|
330
|
+
address: string,
|
|
331
|
+
signerOrProvider: Signer | Provider
|
|
332
|
+
): SuperAppBaseFlow {
|
|
333
|
+
return new Contract(address, _abi, signerOrProvider) as SuperAppBaseFlow;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
export * as iGoodCollectiveSuperAppSol from "./IGoodCollectiveSuperApp.sol";
|
|
5
|
+
export * as superAppBaseFlowSol from "./SuperAppBaseFlow.sol";
|
|
5
6
|
export { GoodCollectiveSuperApp__factory } from "./GoodCollectiveSuperApp__factory";
|
|
6
|
-
export { SuperAppBaseFlow__factory } from "./SuperAppBaseFlow__factory";
|
|
@@ -7,7 +7,7 @@ import type { Provider } from "@ethersproject/providers";
|
|
|
7
7
|
import type {
|
|
8
8
|
IMembersValidator,
|
|
9
9
|
IMembersValidatorInterface,
|
|
10
|
-
} from "
|
|
10
|
+
} from "../../../contracts/Interfaces.sol/IMembersValidator";
|
|
11
11
|
|
|
12
12
|
const _abi = [
|
|
13
13
|
{
|