@show-karma/karma-gap-sdk 0.4.15 → 0.4.16
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/.cursorrules +43 -0
- package/core/abi/AirdropNFT.json +1 -1
- package/core/abi/Allo.json +860 -860
- package/core/abi/AlloRegistry.json +578 -578
- package/core/abi/CommunityResolverABI.json +506 -506
- package/core/abi/Donations.json +251 -251
- package/core/abi/EAS.json +1 -1
- package/core/abi/MultiAttester.json +746 -746
- package/core/abi/ProjectResolver.json +574 -574
- package/core/abi/SchemaRegistry.json +1 -1
- package/core/abi/index.ts +21 -0
- package/core/class/AllGapSchemas.ts +21 -0
- package/core/class/Attestation.ts +429 -0
- package/core/class/Fetcher.ts +224 -0
- package/core/class/GAP.ts +481 -0
- package/core/class/GapSchema.ts +93 -0
- package/core/class/Gelato/{Gelato.js → Gelato.ts} +23 -0
- package/core/class/GrantProgramRegistry/Allo.ts +188 -0
- package/core/class/GrantProgramRegistry/AlloRegistry.ts +101 -0
- package/core/class/GraphQL/AxiosGQL.ts +29 -0
- package/core/class/GraphQL/EASClient.ts +34 -0
- package/core/class/GraphQL/GapEasClient.ts +869 -0
- package/core/class/Schema.ts +659 -0
- package/core/class/SchemaError.ts +42 -0
- package/core/class/contract/GapContract.ts +457 -0
- package/core/class/entities/Community.ts +148 -0
- package/core/class/entities/ContributorProfile.ts +108 -0
- package/core/class/entities/Grant.ts +321 -0
- package/core/class/entities/GrantUpdate.ts +187 -0
- package/core/class/entities/MemberOf.ts +52 -0
- package/core/class/entities/Milestone.ts +898 -0
- package/core/class/entities/Project.ts +672 -0
- package/core/class/entities/ProjectImpact.ts +170 -0
- package/core/class/entities/ProjectMilestone.ts +254 -0
- package/core/class/entities/ProjectPointer.ts +39 -0
- package/core/class/entities/ProjectUpdate.ts +176 -0
- package/core/class/entities/Track.ts +32 -0
- package/core/class/karma-indexer/GapIndexerClient.ts +383 -0
- package/core/class/karma-indexer/api/GapIndexerApi.ts +446 -0
- package/core/class/karma-indexer/api/types.ts +313 -0
- package/core/class/remote-storage/IpfsStorage.ts +76 -0
- package/core/class/remote-storage/RemoteStorage.ts +65 -0
- package/core/class/types/allo.ts +93 -0
- package/core/class/types/attestations.ts +223 -0
- package/core/consts.ts +775 -0
- package/core/scripts/create-grant.ts +102 -0
- package/core/scripts/create-program.ts +43 -0
- package/core/scripts/create-schemas.ts +65 -0
- package/core/scripts/deploy.ts +65 -0
- package/core/scripts/index.ts +1 -0
- package/core/scripts/milestone-multi-grants.ts +125 -0
- package/core/shared/types.ts +13 -0
- package/core/types.ts +224 -0
- package/core/utils/gelato/send-gelato-txn.ts +114 -0
- package/core/utils/gelato/sponsor-handler.ts +77 -0
- package/core/utils/gelato/watch-gelato-txn.ts +67 -0
- package/core/utils/get-date.ts +3 -0
- package/core/utils/get-ipfs-data.ts +13 -0
- package/core/utils/get-web3-provider.ts +18 -0
- package/core/utils/gql-queries.ts +133 -0
- package/core/utils/map-filter.ts +21 -0
- package/core/utils/serialize-bigint.ts +7 -0
- package/core/utils/to-unix.ts +18 -0
- package/create-community-example.ts +119 -0
- package/csv-upload/README.md +74 -0
- package/csv-upload/config.ts +41 -0
- package/csv-upload/example.csv +2 -0
- package/csv-upload/keys.example.json +8 -0
- package/csv-upload/scripts/run.ts +417 -0
- package/csv-upload/types.ts +39 -0
- package/docs/.gitkeep +0 -0
- package/docs/images/attestation-architecture.png +0 -0
- package/docs/images/dfd-get-projects.png +0 -0
- package/gap-schema.yaml +155 -0
- package/milestone-workflow-example.ts +353 -0
- package/package.json +45 -39
- package/readme.md +872 -0
- package/schemas/.gitkeep +0 -0
- package/schemas/GAP-schemas-1692135812877.json +33 -0
- package/test-file-indexer-api.ts +25 -0
- package/tsconfig.json +26 -0
- package/core/abi/index.d.ts +0 -1114
- package/core/abi/index.js +0 -26
- package/core/class/AllGapSchemas.d.ts +0 -9
- package/core/class/AllGapSchemas.js +0 -19
- package/core/class/Attestation.d.ts +0 -173
- package/core/class/Attestation.js +0 -333
- package/core/class/Fetcher.d.ts +0 -175
- package/core/class/Fetcher.js +0 -13
- package/core/class/GAP.d.ts +0 -254
- package/core/class/GAP.js +0 -289
- package/core/class/GapSchema.d.ts +0 -34
- package/core/class/GapSchema.js +0 -62
- package/core/class/GrantProgramRegistry/Allo.d.ts +0 -17
- package/core/class/GrantProgramRegistry/Allo.js +0 -137
- package/core/class/GrantProgramRegistry/AlloRegistry.d.ts +0 -15
- package/core/class/GrantProgramRegistry/AlloRegistry.js +0 -70
- package/core/class/GraphQL/AxiosGQL.d.ts +0 -6
- package/core/class/GraphQL/AxiosGQL.js +0 -25
- package/core/class/GraphQL/EASClient.d.ts +0 -16
- package/core/class/GraphQL/EASClient.js +0 -26
- package/core/class/GraphQL/GapEasClient.d.ts +0 -71
- package/core/class/GraphQL/GapEasClient.js +0 -451
- package/core/class/GraphQL/index.js +0 -19
- package/core/class/Schema.d.ts +0 -233
- package/core/class/Schema.js +0 -488
- package/core/class/SchemaError.d.ts +0 -30
- package/core/class/SchemaError.js +0 -39
- package/core/class/contract/GapContract.d.ts +0 -102
- package/core/class/contract/GapContract.js +0 -285
- package/core/class/entities/Community.d.ts +0 -34
- package/core/class/entities/Community.js +0 -109
- package/core/class/entities/ContributorProfile.d.ts +0 -41
- package/core/class/entities/ContributorProfile.js +0 -69
- package/core/class/entities/Grant.d.ts +0 -54
- package/core/class/entities/Grant.js +0 -223
- package/core/class/entities/GrantUpdate.d.ts +0 -40
- package/core/class/entities/GrantUpdate.js +0 -114
- package/core/class/entities/MemberOf.d.ts +0 -11
- package/core/class/entities/MemberOf.js +0 -33
- package/core/class/entities/Milestone.d.ts +0 -168
- package/core/class/entities/Milestone.js +0 -657
- package/core/class/entities/Project.d.ts +0 -92
- package/core/class/entities/Project.js +0 -418
- package/core/class/entities/ProjectImpact.d.ts +0 -50
- package/core/class/entities/ProjectImpact.js +0 -112
- package/core/class/entities/ProjectMilestone.d.ts +0 -60
- package/core/class/entities/ProjectMilestone.js +0 -174
- package/core/class/entities/ProjectPointer.d.ts +0 -12
- package/core/class/entities/ProjectPointer.js +0 -22
- package/core/class/entities/ProjectUpdate.d.ts +0 -50
- package/core/class/entities/ProjectUpdate.js +0 -110
- package/core/class/entities/Track.d.ts +0 -16
- package/core/class/entities/Track.js +0 -21
- package/core/class/entities/index.js +0 -26
- package/core/class/index.js +0 -26
- package/core/class/karma-indexer/GapIndexerClient.d.ts +0 -66
- package/core/class/karma-indexer/GapIndexerClient.js +0 -207
- package/core/class/karma-indexer/api/GapIndexerApi.d.ts +0 -73
- package/core/class/karma-indexer/api/GapIndexerApi.js +0 -256
- package/core/class/karma-indexer/api/types.d.ts +0 -295
- package/core/class/karma-indexer/api/types.js +0 -2
- package/core/class/remote-storage/IpfsStorage.d.ts +0 -23
- package/core/class/remote-storage/IpfsStorage.js +0 -56
- package/core/class/remote-storage/RemoteStorage.d.ts +0 -41
- package/core/class/remote-storage/RemoteStorage.js +0 -38
- package/core/class/types/allo.d.ts +0 -78
- package/core/class/types/allo.js +0 -2
- package/core/class/types/attestations.d.ts +0 -168
- package/core/class/types/attestations.js +0 -66
- package/core/consts.d.ts +0 -48
- package/core/consts.js +0 -641
- package/core/index.js +0 -24
- package/core/shared/types.d.ts +0 -6
- package/core/shared/types.js +0 -2
- package/core/types.d.ts +0 -131
- package/core/types.js +0 -13
- package/core/utils/gelato/index.js +0 -19
- package/core/utils/gelato/send-gelato-txn.d.ts +0 -55
- package/core/utils/gelato/send-gelato-txn.js +0 -100
- package/core/utils/gelato/sponsor-handler.d.ts +0 -9
- package/core/utils/gelato/sponsor-handler.js +0 -60
- package/core/utils/gelato/watch-gelato-txn.d.ts +0 -7
- package/core/utils/gelato/watch-gelato-txn.js +0 -63
- package/core/utils/get-date.d.ts +0 -1
- package/core/utils/get-date.js +0 -7
- package/core/utils/get-ipfs-data.d.ts +0 -1
- package/core/utils/get-ipfs-data.js +0 -20
- package/core/utils/get-web3-provider.d.ts +0 -2
- package/core/utils/get-web3-provider.js +0 -18
- package/core/utils/gql-queries.d.ts +0 -12
- package/core/utils/gql-queries.js +0 -90
- package/core/utils/index.js +0 -23
- package/core/utils/map-filter.d.ts +0 -8
- package/core/utils/map-filter.js +0 -20
- package/core/utils/serialize-bigint.d.ts +0 -1
- package/core/utils/serialize-bigint.js +0 -8
- package/core/utils/to-unix.d.ts +0 -1
- package/core/utils/to-unix.js +0 -25
- package/index.js +0 -17
- /package/core/class/GraphQL/{index.d.ts → index.ts} +0 -0
- /package/core/class/entities/{index.d.ts → index.ts} +0 -0
- /package/core/class/{index.d.ts → index.ts} +0 -0
- /package/core/{index.d.ts → index.ts} +0 -0
- /package/core/utils/gelato/{index.d.ts → index.ts} +0 -0
- /package/core/utils/{index.d.ts → index.ts} +0 -0
- /package/{core/class/Gelato/Gelato.d.ts → csv-upload/.gitkeep} +0 -0
- /package/{index.d.ts → index.ts} +0 -0
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProjectMilestoneCompleted = exports.ProjectEndorsement = exports.GrantCompleted = exports.Grantee = exports.ProjectDetails = exports.Tag = exports.MilestoneCompleted = exports.MemberDetails = exports.GrantVerified = exports.GrantRound = exports.GrantDetails = exports.CommunityDetails = void 0;
|
|
4
|
-
const Attestation_1 = require("../Attestation");
|
|
5
|
-
const GrantUpdate_1 = require("../entities/GrantUpdate");
|
|
6
|
-
class CommunityDetails extends Attestation_1.Attestation {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.links = [];
|
|
10
|
-
this.type = "community-details";
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.CommunityDetails = CommunityDetails;
|
|
14
|
-
class GrantDetails extends Attestation_1.Attestation {
|
|
15
|
-
constructor() {
|
|
16
|
-
super(...arguments);
|
|
17
|
-
this.type = "grant-details";
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.GrantDetails = GrantDetails;
|
|
21
|
-
class GrantRound extends Attestation_1.Attestation {
|
|
22
|
-
}
|
|
23
|
-
exports.GrantRound = GrantRound;
|
|
24
|
-
class GrantVerified extends Attestation_1.Attestation {
|
|
25
|
-
}
|
|
26
|
-
exports.GrantVerified = GrantVerified;
|
|
27
|
-
class MemberDetails extends Attestation_1.Attestation {
|
|
28
|
-
}
|
|
29
|
-
exports.MemberDetails = MemberDetails;
|
|
30
|
-
class MilestoneCompleted extends Attestation_1.Attestation {
|
|
31
|
-
}
|
|
32
|
-
exports.MilestoneCompleted = MilestoneCompleted;
|
|
33
|
-
class Tag extends Attestation_1.Attestation {
|
|
34
|
-
}
|
|
35
|
-
exports.Tag = Tag;
|
|
36
|
-
class ProjectDetails extends Attestation_1.Attestation {
|
|
37
|
-
constructor() {
|
|
38
|
-
super(...arguments);
|
|
39
|
-
this.links = [];
|
|
40
|
-
this.tags = [];
|
|
41
|
-
this.type = "project-details";
|
|
42
|
-
this.externalIds = [];
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.ProjectDetails = ProjectDetails;
|
|
46
|
-
class Grantee {
|
|
47
|
-
constructor(address, projects = []) {
|
|
48
|
-
this.projects = [];
|
|
49
|
-
this.address = address;
|
|
50
|
-
this.projects = projects;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.Grantee = Grantee;
|
|
54
|
-
class GrantCompleted extends GrantUpdate_1.GrantUpdate {
|
|
55
|
-
}
|
|
56
|
-
exports.GrantCompleted = GrantCompleted;
|
|
57
|
-
class ProjectEndorsement extends Attestation_1.Attestation {
|
|
58
|
-
constructor(data) {
|
|
59
|
-
data.data.type = "project-endorsement";
|
|
60
|
-
super(data);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
exports.ProjectEndorsement = ProjectEndorsement;
|
|
64
|
-
class ProjectMilestoneCompleted extends Attestation_1.Attestation {
|
|
65
|
-
}
|
|
66
|
-
exports.ProjectMilestoneCompleted = ProjectMilestoneCompleted;
|
package/core/consts.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { EASNetworkConfig, SchemaInterface, TNetwork, TSchemaName } from "./types";
|
|
2
|
-
/**
|
|
3
|
-
* Schemas that should use default EAS attestation
|
|
4
|
-
* instead of the custom contract.
|
|
5
|
-
*/
|
|
6
|
-
export declare const useDefaultAttestation: TSchemaName[];
|
|
7
|
-
export declare const chainIdToNetwork: {
|
|
8
|
-
11155420: string;
|
|
9
|
-
42161: string;
|
|
10
|
-
10: string;
|
|
11
|
-
11155111: string;
|
|
12
|
-
84532: string;
|
|
13
|
-
42220: string;
|
|
14
|
-
1328: string;
|
|
15
|
-
1329: string;
|
|
16
|
-
1135: string;
|
|
17
|
-
534352: string;
|
|
18
|
-
};
|
|
19
|
-
export declare const nullRef = "0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
20
|
-
export declare const nullResolver = "0x0000000000000000000000000000000000000000";
|
|
21
|
-
export declare const zeroAddress = "0x0000000000000000000000000000000000000000";
|
|
22
|
-
/**
|
|
23
|
-
* The networks that are supported by the EAS
|
|
24
|
-
*/
|
|
25
|
-
export declare const Networks: Record<TNetwork, EASNetworkConfig>;
|
|
26
|
-
/**
|
|
27
|
-
* Mounts the schemas for the given network and return all the settings
|
|
28
|
-
* @param network
|
|
29
|
-
* @returns
|
|
30
|
-
*/
|
|
31
|
-
export declare const MountEntities: (network: EASNetworkConfig) => Record<TSchemaName, SchemaInterface<TSchemaName>>;
|
|
32
|
-
export declare const alloSupportedNetworks: {
|
|
33
|
-
mainnet: number[];
|
|
34
|
-
testnet: number[];
|
|
35
|
-
};
|
|
36
|
-
export declare const AlloContracts: {
|
|
37
|
-
registry: string;
|
|
38
|
-
alloProxy: string;
|
|
39
|
-
alloImplementation: string;
|
|
40
|
-
strategy: {
|
|
41
|
-
DonationVotingMerkleDistributionDirectTransferStrategy: string;
|
|
42
|
-
DirectGrantsSimpleStrategy: string;
|
|
43
|
-
RFPSimpleStrategy: string;
|
|
44
|
-
RFPCommitteeStrategy: string;
|
|
45
|
-
QVSimple: string;
|
|
46
|
-
};
|
|
47
|
-
factory: string;
|
|
48
|
-
};
|