@show-karma/karma-gap-sdk 0.3.37 → 0.3.39
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.
|
@@ -89,6 +89,7 @@ class AlloBase {
|
|
|
89
89
|
}
|
|
90
90
|
catch (error) {
|
|
91
91
|
console.error(`Failed to create pool: ${error}`);
|
|
92
|
+
throw new Error(`Failed to create pool metadata: ${error}`);
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
async updatePoolMetadata(poolId, poolMetadata, callback) {
|
|
@@ -107,6 +108,7 @@ class AlloBase {
|
|
|
107
108
|
}
|
|
108
109
|
catch (error) {
|
|
109
110
|
console.error(`Failed to update pool metadata: ${error}`);
|
|
111
|
+
throw new Error(`Failed to update pool metadata: ${error}`);
|
|
110
112
|
}
|
|
111
113
|
}
|
|
112
114
|
}
|
|
@@ -32,8 +32,11 @@ export interface ISummaryProject {
|
|
|
32
32
|
uid: Hex;
|
|
33
33
|
}
|
|
34
34
|
export interface IMilestoneCompleted extends IAttestationResponse {
|
|
35
|
-
type: "
|
|
36
|
-
|
|
35
|
+
type: "MilestoneStatus";
|
|
36
|
+
data: {
|
|
37
|
+
type: "approved" | "rejected" | "completed";
|
|
38
|
+
reason?: string;
|
|
39
|
+
};
|
|
37
40
|
}
|
|
38
41
|
export interface IMilestoneResponse extends IAttestationResponse {
|
|
39
42
|
type: "Milestone";
|
|
@@ -45,15 +48,25 @@ export interface IMilestoneResponse extends IAttestationResponse {
|
|
|
45
48
|
title: string;
|
|
46
49
|
description: string;
|
|
47
50
|
endsAt: number;
|
|
51
|
+
startsAt?: number;
|
|
48
52
|
type: "milestone";
|
|
49
53
|
};
|
|
50
54
|
}
|
|
55
|
+
export interface IGrantUpdateStatus extends IAttestationResponse {
|
|
56
|
+
type: `grant-update-${IStatus}`;
|
|
57
|
+
reason?: string;
|
|
58
|
+
data: {
|
|
59
|
+
type: "approved" | "rejected" | "completed";
|
|
60
|
+
reason?: string;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
51
63
|
export interface IGrantUpdate extends IAttestationResponse {
|
|
52
64
|
data: {
|
|
53
65
|
text: string;
|
|
54
66
|
title: string;
|
|
55
67
|
type: "grant-update";
|
|
56
68
|
};
|
|
69
|
+
verified?: IGrantUpdateStatus[];
|
|
57
70
|
}
|
|
58
71
|
export interface IGrantDetails extends IAttestationResponse {
|
|
59
72
|
type: "GrantDetails";
|
|
@@ -118,6 +131,11 @@ export interface IProjectDetails extends IAttestationResponse {
|
|
|
118
131
|
pathToTake?: string;
|
|
119
132
|
};
|
|
120
133
|
}
|
|
134
|
+
type IStatus = "verified";
|
|
135
|
+
export interface IProjectImpactStatus extends IAttestationResponse {
|
|
136
|
+
type: `project-impact-${IStatus}`;
|
|
137
|
+
reason?: string;
|
|
138
|
+
}
|
|
121
139
|
export interface IProjectImpact extends IAttestationResponse {
|
|
122
140
|
type: "ProjectImpact";
|
|
123
141
|
data: {
|
|
@@ -128,6 +146,7 @@ export interface IProjectImpact extends IAttestationResponse {
|
|
|
128
146
|
completedAt: number;
|
|
129
147
|
type: "project-impact";
|
|
130
148
|
};
|
|
149
|
+
verified: IProjectImpactStatus[];
|
|
131
150
|
}
|
|
132
151
|
export interface IProjectEndorsement extends IAttestationResponse {
|
|
133
152
|
type: "ProjectEndorsement";
|
|
@@ -143,7 +162,7 @@ export interface IProjectResponse extends IAttestationResponse {
|
|
|
143
162
|
};
|
|
144
163
|
details?: IProjectDetails;
|
|
145
164
|
members: IMemberOf[];
|
|
146
|
-
grants:
|
|
165
|
+
grants: IGrantResponse[];
|
|
147
166
|
grantee: any;
|
|
148
167
|
impacts: IProjectImpact[];
|
|
149
168
|
endorsements: IProjectEndorsement[];
|
|
@@ -178,3 +197,4 @@ export interface ISearchResponse {
|
|
|
178
197
|
projects: IProjectResponse[];
|
|
179
198
|
communities: ICommunityResponse[];
|
|
180
199
|
}
|
|
200
|
+
export {};
|