@show-karma/karma-gap-sdk 0.3.12 → 0.3.13
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.
|
@@ -79,7 +79,7 @@ class Grant extends Attestation_1.Attestation {
|
|
|
79
79
|
payload.push([this.details, await this.details.payloadFor(grantIdx)]);
|
|
80
80
|
}
|
|
81
81
|
if (this.milestones.length) {
|
|
82
|
-
await Promise.all(this.milestones.map(async (m) => payload.push(...(await m.multiAttestPayload(
|
|
82
|
+
await Promise.all(this.milestones.map(async (m) => payload.push(...(await m.multiAttestPayload(payload, grantIdx)))));
|
|
83
83
|
}
|
|
84
84
|
if (this.updates.length) {
|
|
85
85
|
await Promise.all(this.updates.map(async (u) => payload.push([u, await u.payloadFor(grantIdx)])));
|
|
@@ -6,6 +6,6 @@ export interface IMemberOf {
|
|
|
6
6
|
}
|
|
7
7
|
export declare class MemberOf extends Attestation<IMemberOf> {
|
|
8
8
|
details?: MemberDetails;
|
|
9
|
-
multiAttestPayload(currentPayload?: MultiAttestPayload, projectIdx?: number): Promise<[Attestation<unknown, import("
|
|
9
|
+
multiAttestPayload(currentPayload?: MultiAttestPayload, projectIdx?: number): Promise<[Attestation<unknown, import("core").GapSchema>, import("core/types").RawMultiAttestPayload][]>;
|
|
10
10
|
attest(signer: SignerOrProvider): Promise<void>;
|
|
11
11
|
}
|
package/core/consts.js
CHANGED
|
@@ -33,7 +33,7 @@ exports.Networks = {
|
|
|
33
33
|
contracts: {
|
|
34
34
|
eas: "0x4200000000000000000000000000000000000021",
|
|
35
35
|
schema: "0x4200000000000000000000000000000000000020",
|
|
36
|
-
multicall: "0xd2eD366393FDfd243931Fe48e9fb65A192B0018c",
|
|
36
|
+
multicall: "0xd2eD366393FDfd243931Fe48e9fb65A192B0018c", //proxy,
|
|
37
37
|
projectResolver: "0x7177AdC0f924b695C0294A40C4C5FEFf5EE1E141",
|
|
38
38
|
communityResolver: "0x6dC1D6b864e8BEf815806f9e4677123496e12026",
|
|
39
39
|
},
|
|
@@ -77,7 +77,7 @@ exports.Networks = {
|
|
|
77
77
|
contracts: {
|
|
78
78
|
eas: "0xbD75f629A22Dc1ceD33dDA0b68c546A1c035c458",
|
|
79
79
|
schema: "0xA310da9c5B885E7fb3fbA9D66E9Ba6Df512b78eB",
|
|
80
|
-
multicall: "0x6dC1D6b864e8BEf815806f9e4677123496e12026",
|
|
80
|
+
multicall: "0x6dC1D6b864e8BEf815806f9e4677123496e12026", //proxy,
|
|
81
81
|
projectResolver: "0x28BE0b0515be8BB8822aF1467A6613795E74717b",
|
|
82
82
|
communityResolver: "0xD534C4704F82494aBbc901560046fB62Ac63E9C4",
|
|
83
83
|
},
|
|
@@ -104,10 +104,10 @@ exports.Networks = {
|
|
|
104
104
|
communityResolver: "0xa9E55D9F52d7B47792d2Db15F6A9674c56ccc5C9",
|
|
105
105
|
},
|
|
106
106
|
schemas: {
|
|
107
|
-
Community: "0xf3d790c7fdab6c1b1f25ffcc9289e5be2792eb596d2851a4d059c8aae1bc8b2e",
|
|
107
|
+
Community: "0xf3d790c7fdab6c1b1f25ffcc9289e5be2792eb596d2851a4d059c8aae1bc8b2e", //test with resolver
|
|
108
108
|
// "0x1954572e3fe21bf4334afdaf1358ed7098af1ed136e76dc93c2fdc25e83934c1", // original without resolver
|
|
109
109
|
Details: "0x2c270e35bfcdc4d611f0e9d3d2ab6924ec6c673505abc22a1dd07e19b67211af",
|
|
110
|
-
Grant: "0x09697aeeb3ae71de1cc19e388fd74264f11af5fba3016094764553ac341fdc72",
|
|
110
|
+
Grant: "0x09697aeeb3ae71de1cc19e388fd74264f11af5fba3016094764553ac341fdc72", // with communityUID/resolver
|
|
111
111
|
GrantVerified: "0x0be8952e2dd74ffd63a02f4d55b20b603fe7a60130cb9d70de31feb9c52fdd37",
|
|
112
112
|
MemberOf: "0xdd87b3500457931252424f4439365534ba72a367503a8805ff3482353fb90301",
|
|
113
113
|
MilestoneApproved: "0xcdef0e492d2e7ad25d0b0fdb868f6dcd1f5e5c30e42fd5fa0debdc12f7618322",
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.3.
|
|
6
|
+
"version": "0.3.13",
|
|
7
7
|
"description": "Simple and easy interface between EAS and Karma GAP.",
|
|
8
8
|
"main": "./index.js",
|
|
9
9
|
"author": "KarmaHQ",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"publish-npm": "npm version patch && tsc && cd .dist && npm publish --scope=@show-karma/karma-gap-sdk --access public"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@ethereum-attestation-service/eas-sdk": "
|
|
22
|
+
"@ethereum-attestation-service/eas-sdk": "1.4.2",
|
|
23
23
|
"@gelatonetwork/relay-sdk": "^5.2.0",
|
|
24
24
|
"@types/sha256": "^0.2.0",
|
|
25
25
|
"axios": "^1.4.0",
|