sigil-protocol-sdk 1.0.0

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/src/types.d.ts ADDED
@@ -0,0 +1,262 @@
1
+ export type SigilRegistry = {
2
+ "address": "BWppEKBBET8EJWsi1QaudVWwhaPX7JhNLDDpfHcCjmwe";
3
+ "metadata": {
4
+ "name": "sigil_registry";
5
+ "version": "0.1.0";
6
+ "spec": "0.1.0";
7
+ "description": "Sigil Protocol - Trust Layer for AI Agent Skills";
8
+ };
9
+ "instructions": [
10
+ {
11
+ "name": "initializeRegistry";
12
+ "discriminator": [189, 181, 20, 17, 174, 57, 249, 59];
13
+ "accounts": [
14
+ {
15
+ "name": "registry";
16
+ "writable": true;
17
+ },
18
+ {
19
+ "name": "authority";
20
+ "writable": true;
21
+ "signer": true;
22
+ },
23
+ {
24
+ "name": "systemProgram";
25
+ "address": "11111111111111111111111111111111";
26
+ }
27
+ ];
28
+ "args": [];
29
+ },
30
+ {
31
+ "name": "mintSkill";
32
+ "discriminator": [189, 4, 3, 82, 182, 158, 59, 160];
33
+ "accounts": [
34
+ {
35
+ "name": "skill";
36
+ "writable": true;
37
+ },
38
+ {
39
+ "name": "creator";
40
+ "writable": true;
41
+ "signer": true;
42
+ },
43
+ {
44
+ "name": "registry";
45
+ "writable": true;
46
+ },
47
+ {
48
+ "name": "systemProgram";
49
+ "address": "11111111111111111111111111111111";
50
+ }
51
+ ];
52
+ "args": [
53
+ {
54
+ "name": "skillId";
55
+ "type": {
56
+ "array": ["u8", 32];
57
+ };
58
+ },
59
+ {
60
+ "name": "priceUsdc";
61
+ "type": "u64";
62
+ },
63
+ {
64
+ "name": "ipfsHash";
65
+ "type": "string";
66
+ },
67
+ {
68
+ "name": "creatorSignature";
69
+ "type": {
70
+ "array": ["u8", 64];
71
+ };
72
+ }
73
+ ];
74
+ },
75
+ {
76
+ "name": "addAuditorSignature";
77
+ "discriminator": [58, 218, 50, 166, 77, 67, 230, 112];
78
+ "accounts": [
79
+ {
80
+ "name": "skill";
81
+ "writable": true;
82
+ },
83
+ {
84
+ "name": "auditor";
85
+ "writable": false;
86
+ },
87
+ {
88
+ "name": "auditorSigner";
89
+ "writable": true;
90
+ "signer": true;
91
+ }
92
+ ];
93
+ "args": [
94
+ {
95
+ "name": "signature";
96
+ "type": {
97
+ "array": ["u8", 64];
98
+ };
99
+ },
100
+ {
101
+ "name": "auditReportHash";
102
+ "type": "string";
103
+ }
104
+ ];
105
+ },
106
+ {
107
+ "name": "logExecution";
108
+ "discriminator": [138, 115, 51, 156, 87, 89, 71, 134];
109
+ "accounts": [
110
+ {
111
+ "name": "skill";
112
+ "writable": true;
113
+ },
114
+ {
115
+ "name": "executionLog";
116
+ "writable": true;
117
+ "signer": true;
118
+ },
119
+ {
120
+ "name": "executor";
121
+ "writable": true;
122
+ "signer": true;
123
+ },
124
+ {
125
+ "name": "executorUsdc";
126
+ "writable": true;
127
+ },
128
+ {
129
+ "name": "creatorUsdc";
130
+ "writable": true;
131
+ },
132
+ {
133
+ "name": "protocolUsdc";
134
+ "writable": true;
135
+ },
136
+ {
137
+ "name": "tokenProgram";
138
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
139
+ },
140
+ {
141
+ "name": "systemProgram";
142
+ "address": "11111111111111111111111111111111";
143
+ }
144
+ ];
145
+ "args": [
146
+ {
147
+ "name": "success";
148
+ "type": "bool";
149
+ },
150
+ {
151
+ "name": "latencyMs";
152
+ "type": "u32";
153
+ }
154
+ ];
155
+ },
156
+ {
157
+ "name": "recordConsensus";
158
+ "discriminator": [28, 112, 16, 180, 233, 204, 109, 19];
159
+ "accounts": [
160
+ {
161
+ "name": "consensusRecord";
162
+ "writable": true;
163
+ },
164
+ {
165
+ "name": "skill";
166
+ "writable": true;
167
+ },
168
+ {
169
+ "name": "registry";
170
+ "writable": true;
171
+ },
172
+ {
173
+ "name": "authority";
174
+ "writable": true;
175
+ "signer": true;
176
+ },
177
+ {
178
+ "name": "systemProgram";
179
+ "address": "11111111111111111111111111111111";
180
+ }
181
+ ];
182
+ "args": [
183
+ {
184
+ "name": "verdict";
185
+ "type": {
186
+ "defined": {
187
+ "name": "ConsensusVerdict";
188
+ };
189
+ };
190
+ },
191
+ {
192
+ "name": "confidence";
193
+ "type": "u8";
194
+ },
195
+ {
196
+ "name": "trustScore";
197
+ "type": "u16";
198
+ },
199
+ {
200
+ "name": "evaluatorCount";
201
+ "type": "u8";
202
+ },
203
+ {
204
+ "name": "meanScore";
205
+ "type": "u16";
206
+ },
207
+ {
208
+ "name": "scoreVariance";
209
+ "type": "u16";
210
+ },
211
+ {
212
+ "name": "criticalOverlap";
213
+ "type": "u16";
214
+ },
215
+ {
216
+ "name": "methodologyCount";
217
+ "type": "u8";
218
+ },
219
+ {
220
+ "name": "reportsIpfsHash";
221
+ "type": "string";
222
+ },
223
+ {
224
+ "name": "reasoningIpfsHash";
225
+ "type": "string";
226
+ }
227
+ ];
228
+ }
229
+ ];
230
+ "accounts": [
231
+ {
232
+ "name": "SkillRegistry";
233
+ "discriminator": [100, 187, 221, 130, 166, 188, 159, 174];
234
+ },
235
+ {
236
+ "name": "Skill";
237
+ "discriminator": [53, 13, 242, 204, 77, 249, 1, 215];
238
+ }
239
+ ];
240
+ "types": [
241
+ {
242
+ "name": "ConsensusVerdict";
243
+ "type": {
244
+ "kind": "enum";
245
+ "variants": [
246
+ {
247
+ "name": "Pending";
248
+ },
249
+ {
250
+ "name": "Approved";
251
+ },
252
+ {
253
+ "name": "Rejected";
254
+ },
255
+ {
256
+ "name": "Inconclusive";
257
+ }
258
+ ];
259
+ };
260
+ }
261
+ ];
262
+ };
package/src/types.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });