@show-karma/karma-gap-sdk 0.4.1 → 0.4.5
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.
|
@@ -230,7 +230,7 @@ class GapContract {
|
|
|
230
230
|
*/
|
|
231
231
|
static async isProjectOwner(signer, projectUID, projectChainId, publicAddress) {
|
|
232
232
|
const contract = await GAP_1.GAP.getProjectResolver(signer, projectChainId);
|
|
233
|
-
const address = publicAddress || await this.getSignerAddress(signer);
|
|
233
|
+
const address = publicAddress || (await this.getSignerAddress(signer));
|
|
234
234
|
const isOwner = await contract.isOwner(projectUID, address);
|
|
235
235
|
return isOwner;
|
|
236
236
|
}
|
|
@@ -244,7 +244,7 @@ class GapContract {
|
|
|
244
244
|
*/
|
|
245
245
|
static async isProjectAdmin(signer, projectUID, projectChainId, publicAddress) {
|
|
246
246
|
const contract = await GAP_1.GAP.getProjectResolver(signer, projectChainId);
|
|
247
|
-
const address = publicAddress || await this.getSignerAddress(signer);
|
|
247
|
+
const address = publicAddress || (await this.getSignerAddress(signer));
|
|
248
248
|
const isAdmin = await contract.isAdmin(projectUID, address);
|
|
249
249
|
return isAdmin;
|
|
250
250
|
}
|
|
@@ -277,7 +277,7 @@ class GapContract {
|
|
|
277
277
|
*/
|
|
278
278
|
static async removeProjectAdmin(signer, projectUID, oldAdmin) {
|
|
279
279
|
const contract = await GAP_1.GAP.getProjectResolver(signer);
|
|
280
|
-
const tx = await contract.
|
|
280
|
+
const tx = await contract.removeAdmin(projectUID, oldAdmin);
|
|
281
281
|
return tx.wait?.();
|
|
282
282
|
}
|
|
283
283
|
}
|
package/package.json
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.4.
|
|
6
|
+
"version": "0.4.5",
|
|
7
7
|
"description": "Simple and easy interface between EAS and Karma GAP.",
|
|
8
8
|
"main": "./index.js",
|
|
9
9
|
"author": "KarmaHQ",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"private": false,
|
|
12
12
|
"repository": {
|
|
13
|
-
"url": "https://github.com/show-karma/karma-gap-sdk",
|
|
13
|
+
"url": "git+https://github.com/show-karma/karma-gap-sdk.git",
|
|
14
14
|
"type": "git"
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
package/core/abi/AlloCaller.json
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"inputs": [
|
|
4
|
-
{
|
|
5
|
-
"internalType": "bytes32",
|
|
6
|
-
"name": "_profileId",
|
|
7
|
-
"type": "bytes32"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"internalType": "address",
|
|
11
|
-
"name": "_strategy",
|
|
12
|
-
"type": "address"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"internalType": "bytes",
|
|
16
|
-
"name": "_initStrategyData",
|
|
17
|
-
"type": "bytes"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"internalType": "address",
|
|
21
|
-
"name": "_token",
|
|
22
|
-
"type": "address"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"internalType": "uint256",
|
|
26
|
-
"name": "_amount",
|
|
27
|
-
"type": "uint256"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"components": [
|
|
31
|
-
{
|
|
32
|
-
"internalType": "uint256",
|
|
33
|
-
"name": "protocol",
|
|
34
|
-
"type": "uint256"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"internalType": "string",
|
|
38
|
-
"name": "pointer",
|
|
39
|
-
"type": "string"
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
"internalType": "struct IAllo.Metadata",
|
|
43
|
-
"name": "_metadata",
|
|
44
|
-
"type": "tuple"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"internalType": "address[]",
|
|
48
|
-
"name": "_managers",
|
|
49
|
-
"type": "address[]"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"name": "createPool",
|
|
53
|
-
"outputs": [
|
|
54
|
-
{
|
|
55
|
-
"internalType": "uint256",
|
|
56
|
-
"name": "poolId",
|
|
57
|
-
"type": "uint256"
|
|
58
|
-
}
|
|
59
|
-
],
|
|
60
|
-
"stateMutability": "payable",
|
|
61
|
-
"type": "function"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"inputs": [
|
|
65
|
-
{
|
|
66
|
-
"internalType": "uint256",
|
|
67
|
-
"name": "_poolId",
|
|
68
|
-
"type": "uint256"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"components": [
|
|
72
|
-
{
|
|
73
|
-
"internalType": "uint256",
|
|
74
|
-
"name": "protocol",
|
|
75
|
-
"type": "uint256"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"internalType": "string",
|
|
79
|
-
"name": "pointer",
|
|
80
|
-
"type": "string"
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
"internalType": "struct IAllo.Metadata",
|
|
84
|
-
"name": "_metadata",
|
|
85
|
-
"type": "tuple"
|
|
86
|
-
}
|
|
87
|
-
],
|
|
88
|
-
"name": "updatePoolMetadata",
|
|
89
|
-
"outputs": [],
|
|
90
|
-
"stateMutability": "nonpayable",
|
|
91
|
-
"type": "function"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"inputs": [
|
|
95
|
-
{
|
|
96
|
-
"internalType": "address",
|
|
97
|
-
"name": "_alloAddress",
|
|
98
|
-
"type": "address"
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
"stateMutability": "nonpayable",
|
|
102
|
-
"type": "constructor"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"inputs": [],
|
|
106
|
-
"name": "allo",
|
|
107
|
-
"outputs": [
|
|
108
|
-
{
|
|
109
|
-
"internalType": "contract IAllo",
|
|
110
|
-
"name": "",
|
|
111
|
-
"type": "address"
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
"stateMutability": "view",
|
|
115
|
-
"type": "function"
|
|
116
|
-
}
|
|
117
|
-
]
|