@show-karma/karma-gap-sdk 0.4.1 → 0.4.7
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.
|
@@ -81,9 +81,9 @@ class AlloBase {
|
|
|
81
81
|
const receipt = await tx.wait();
|
|
82
82
|
callback?.("confirmed");
|
|
83
83
|
// Get ProfileCreated event
|
|
84
|
-
const poolId = receipt.logs[receipt.logs.length - 1].topics[
|
|
84
|
+
const poolId = receipt.logs[receipt.logs.length - 1].topics[1];
|
|
85
85
|
return {
|
|
86
|
-
poolId: poolId,
|
|
86
|
+
poolId: BigInt(poolId).toString(),
|
|
87
87
|
txHash: tx.hash,
|
|
88
88
|
};
|
|
89
89
|
}
|
|
@@ -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
|
}
|
|
@@ -146,6 +146,9 @@ export interface IGrantResponse extends IAttestationResponse {
|
|
|
146
146
|
externalAddresses?: {
|
|
147
147
|
[key: string]: string;
|
|
148
148
|
};
|
|
149
|
+
external?: {
|
|
150
|
+
[key: string]: string[];
|
|
151
|
+
};
|
|
149
152
|
}
|
|
150
153
|
export interface IMemberDetails extends IAttestationResponse {
|
|
151
154
|
name: string;
|
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.7",
|
|
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": {
|