@algorandfoundation/algokit-client-generator 3.0.6 → 4.0.0-beta.1
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/README.md +4 -2
- package/cli.js +1 -1
- package/cli.js.map +1 -1
- package/cli.mjs +1 -1
- package/cli.mjs.map +1 -1
- package/client/{call-factory.d.ts → app-client.d.ts} +1 -1
- package/client/app-client.js +288 -0
- package/client/app-client.js.map +1 -0
- package/client/app-client.mjs +286 -0
- package/client/app-client.mjs.map +1 -0
- package/client/{call-client.d.ts → app-factory.d.ts} +1 -1
- package/client/app-factory.js +238 -0
- package/client/app-factory.js.map +1 -0
- package/client/app-factory.mjs +236 -0
- package/client/app-factory.mjs.map +1 -0
- package/client/app-types.js +196 -98
- package/client/app-types.js.map +1 -1
- package/client/app-types.mjs +196 -79
- package/client/app-types.mjs.map +1 -1
- package/client/call-composer-types.js +23 -53
- package/client/call-composer-types.js.map +1 -1
- package/client/call-composer-types.mjs +23 -34
- package/client/call-composer-types.mjs.map +1 -1
- package/client/call-composer.js +43 -57
- package/client/call-composer.js.map +1 -1
- package/client/call-composer.mjs +45 -40
- package/client/call-composer.mjs.map +1 -1
- package/client/deploy-types.d.ts +8 -4
- package/client/deploy-types.js +52 -34
- package/client/deploy-types.js.map +1 -1
- package/client/deploy-types.mjs +53 -36
- package/client/deploy-types.mjs.map +1 -1
- package/client/generate.d.ts +2 -2
- package/client/generate.js +18 -6
- package/client/generate.js.map +1 -1
- package/client/generate.mjs +18 -6
- package/client/generate.mjs.map +1 -1
- package/client/generator-context.d.ts +4 -4
- package/client/generator-context.js +5 -24
- package/client/generator-context.js.map +1 -1
- package/client/generator-context.mjs +5 -5
- package/client/generator-context.mjs.map +1 -1
- package/client/helpers/get-call-config-summary.d.ts +8 -3
- package/client/helpers/get-call-config-summary.js +22 -20
- package/client/helpers/get-call-config-summary.js.map +1 -1
- package/client/helpers/get-call-config-summary.mjs +22 -20
- package/client/helpers/get-call-config-summary.mjs.map +1 -1
- package/client/helpers/get-equivalent-type.d.ts +6 -1
- package/client/helpers/get-equivalent-type.js +10 -6
- package/client/helpers/get-equivalent-type.js.map +1 -1
- package/client/helpers/get-equivalent-type.mjs +10 -6
- package/client/helpers/get-equivalent-type.mjs.map +1 -1
- package/client/imports.js +18 -24
- package/client/imports.js.map +1 -1
- package/client/imports.mjs +18 -24
- package/client/imports.mjs.map +1 -1
- package/client/params-factory.d.ts +3 -0
- package/client/params-factory.js +126 -0
- package/client/params-factory.js.map +1 -0
- package/client/params-factory.mjs +124 -0
- package/client/params-factory.mjs.map +1 -0
- package/client/utility-types.d.ts +0 -7
- package/client/utility-types.js +37 -50
- package/client/utility-types.js.map +1 -1
- package/client/utility-types.mjs +38 -50
- package/client/utility-types.mjs.map +1 -1
- package/output/writer.js +17 -3
- package/output/writer.js.map +1 -1
- package/output/writer.mjs +17 -3
- package/output/writer.mjs.map +1 -1
- package/package.json +4 -3
- package/schema/application.schema.json.js +2 -2
- package/schema/application.schema.json.mjs +2 -2
- package/schema/arc56.schema.json.js +787 -0
- package/schema/arc56.schema.json.js.map +1 -0
- package/schema/arc56.schema.json.mjs +780 -0
- package/schema/arc56.schema.json.mjs.map +1 -0
- package/schema/load.d.ts +3 -3
- package/schema/load.js +21 -7
- package/schema/load.js.map +1 -1
- package/schema/load.mjs +22 -8
- package/schema/load.mjs.map +1 -1
- package/client/call-client.js +0 -341
- package/client/call-client.js.map +0 -1
- package/client/call-client.mjs +0 -320
- package/client/call-client.mjs.map +0 -1
- package/client/call-factory.js +0 -142
- package/client/call-factory.js.map +0 -1
- package/client/call-factory.mjs +0 -121
- package/client/call-factory.mjs.map +0 -1
|
@@ -0,0 +1,780 @@
|
|
|
1
|
+
var $ref = "#/definitions/Arc56Contract";
|
|
2
|
+
var $schema = "http://json-schema.org/draft-07/schema#";
|
|
3
|
+
var definitions = {
|
|
4
|
+
ABIType: {
|
|
5
|
+
description: "An ABI-encoded type",
|
|
6
|
+
type: "string"
|
|
7
|
+
},
|
|
8
|
+
AVMBytes: {
|
|
9
|
+
"const": "bytes",
|
|
10
|
+
description: "Raw byteslice without the length prefixed that is specified in ARC-4",
|
|
11
|
+
type: "string"
|
|
12
|
+
},
|
|
13
|
+
Arc56Contract: {
|
|
14
|
+
additionalProperties: false,
|
|
15
|
+
description: "Describes the entire contract. This interface is an extension of the interface described in ARC-4",
|
|
16
|
+
properties: {
|
|
17
|
+
arcs: {
|
|
18
|
+
description: "The ARCs used and/or supported by this contract. All contracts implicity support ARC4 and ARC56",
|
|
19
|
+
items: {
|
|
20
|
+
type: "number"
|
|
21
|
+
},
|
|
22
|
+
type: "array"
|
|
23
|
+
},
|
|
24
|
+
bareActions: {
|
|
25
|
+
additionalProperties: false,
|
|
26
|
+
description: "Supported bare actions for the contract. An action is a combination of call/create and an OnComplete",
|
|
27
|
+
properties: {
|
|
28
|
+
call: {
|
|
29
|
+
description: "OnCompletes this method allows when appID !== 0",
|
|
30
|
+
items: {
|
|
31
|
+
"enum": [
|
|
32
|
+
"NoOp",
|
|
33
|
+
"OptIn",
|
|
34
|
+
"CloseOut",
|
|
35
|
+
"ClearState",
|
|
36
|
+
"UpdateApplication",
|
|
37
|
+
"DeleteApplication"
|
|
38
|
+
],
|
|
39
|
+
type: "string"
|
|
40
|
+
},
|
|
41
|
+
type: "array"
|
|
42
|
+
},
|
|
43
|
+
create: {
|
|
44
|
+
description: "OnCompletes this method allows when appID === 0",
|
|
45
|
+
items: {
|
|
46
|
+
"enum": [
|
|
47
|
+
"NoOp",
|
|
48
|
+
"OptIn",
|
|
49
|
+
"DeleteApplication"
|
|
50
|
+
],
|
|
51
|
+
type: "string"
|
|
52
|
+
},
|
|
53
|
+
type: "array"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
required: [
|
|
57
|
+
"create",
|
|
58
|
+
"call"
|
|
59
|
+
],
|
|
60
|
+
type: "object"
|
|
61
|
+
},
|
|
62
|
+
byteCode: {
|
|
63
|
+
additionalProperties: false,
|
|
64
|
+
description: "The compiled bytecode for the application. MUST be omitted if included as part of ARC23",
|
|
65
|
+
properties: {
|
|
66
|
+
approval: {
|
|
67
|
+
description: "The approval program",
|
|
68
|
+
type: "string"
|
|
69
|
+
},
|
|
70
|
+
clear: {
|
|
71
|
+
description: "The clear program",
|
|
72
|
+
type: "string"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
required: [
|
|
76
|
+
"approval",
|
|
77
|
+
"clear"
|
|
78
|
+
],
|
|
79
|
+
type: "object"
|
|
80
|
+
},
|
|
81
|
+
compilerInfo: {
|
|
82
|
+
additionalProperties: false,
|
|
83
|
+
description: "Information used to get the given byteCode and/or PC values in sourceInfo. MUST be given if byteCode or PC values are present",
|
|
84
|
+
properties: {
|
|
85
|
+
compiler: {
|
|
86
|
+
description: "The name of the compiler",
|
|
87
|
+
"enum": [
|
|
88
|
+
"algod",
|
|
89
|
+
"puya"
|
|
90
|
+
],
|
|
91
|
+
type: "string"
|
|
92
|
+
},
|
|
93
|
+
compilerVersion: {
|
|
94
|
+
additionalProperties: false,
|
|
95
|
+
description: "Compiler version information",
|
|
96
|
+
properties: {
|
|
97
|
+
commit: {
|
|
98
|
+
type: "string"
|
|
99
|
+
},
|
|
100
|
+
major: {
|
|
101
|
+
type: "number"
|
|
102
|
+
},
|
|
103
|
+
minor: {
|
|
104
|
+
type: "number"
|
|
105
|
+
},
|
|
106
|
+
patch: {
|
|
107
|
+
type: "number"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
required: [
|
|
111
|
+
"major",
|
|
112
|
+
"minor",
|
|
113
|
+
"patch"
|
|
114
|
+
],
|
|
115
|
+
type: "object"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
required: [
|
|
119
|
+
"compiler",
|
|
120
|
+
"compilerVersion"
|
|
121
|
+
],
|
|
122
|
+
type: "object"
|
|
123
|
+
},
|
|
124
|
+
desc: {
|
|
125
|
+
description: "Optional, user-friendly description for the interface",
|
|
126
|
+
type: "string"
|
|
127
|
+
},
|
|
128
|
+
events: {
|
|
129
|
+
description: "ARC-28 events that MAY be emitted by this contract",
|
|
130
|
+
items: {
|
|
131
|
+
$ref: "#/definitions/Event"
|
|
132
|
+
},
|
|
133
|
+
type: "array"
|
|
134
|
+
},
|
|
135
|
+
methods: {
|
|
136
|
+
description: "All of the methods that the contract implements",
|
|
137
|
+
items: {
|
|
138
|
+
$ref: "#/definitions/Method"
|
|
139
|
+
},
|
|
140
|
+
type: "array"
|
|
141
|
+
},
|
|
142
|
+
name: {
|
|
143
|
+
description: "A user-friendly name for the contract",
|
|
144
|
+
type: "string"
|
|
145
|
+
},
|
|
146
|
+
networks: {
|
|
147
|
+
additionalProperties: {
|
|
148
|
+
additionalProperties: false,
|
|
149
|
+
description: "The key is the base64 genesis hash of the network, and the value contains information about the deployed contract in the network indicated by the key. A key containing the human-readable name of the network MAY be included, but the corresponding genesis hash key MUST also be defined",
|
|
150
|
+
properties: {
|
|
151
|
+
appID: {
|
|
152
|
+
description: "The app ID of the deployed contract in this network",
|
|
153
|
+
type: "number"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
required: [
|
|
157
|
+
"appID"
|
|
158
|
+
],
|
|
159
|
+
type: "object"
|
|
160
|
+
},
|
|
161
|
+
description: "Optional object listing the contract instances across different networks",
|
|
162
|
+
type: "object"
|
|
163
|
+
},
|
|
164
|
+
scratchVariables: {
|
|
165
|
+
additionalProperties: {
|
|
166
|
+
additionalProperties: false,
|
|
167
|
+
properties: {
|
|
168
|
+
slot: {
|
|
169
|
+
type: "number"
|
|
170
|
+
},
|
|
171
|
+
type: {
|
|
172
|
+
anyOf: [
|
|
173
|
+
{
|
|
174
|
+
$ref: "#/definitions/ABIType"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
$ref: "#/definitions/AVMBytes"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
$ref: "#/definitions/StructName"
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
required: [
|
|
186
|
+
"slot",
|
|
187
|
+
"type"
|
|
188
|
+
],
|
|
189
|
+
type: "object"
|
|
190
|
+
},
|
|
191
|
+
description: "The scratch variables used during runtime",
|
|
192
|
+
type: "object"
|
|
193
|
+
},
|
|
194
|
+
source: {
|
|
195
|
+
additionalProperties: false,
|
|
196
|
+
description: "The pre-compiled TEAL that may contain template variables. MUST be omitted if included as part of ARC23",
|
|
197
|
+
properties: {
|
|
198
|
+
approval: {
|
|
199
|
+
description: "The approval program",
|
|
200
|
+
type: "string"
|
|
201
|
+
},
|
|
202
|
+
clear: {
|
|
203
|
+
description: "The clear program",
|
|
204
|
+
type: "string"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
required: [
|
|
208
|
+
"approval",
|
|
209
|
+
"clear"
|
|
210
|
+
],
|
|
211
|
+
type: "object"
|
|
212
|
+
},
|
|
213
|
+
sourceInfo: {
|
|
214
|
+
additionalProperties: false,
|
|
215
|
+
description: "Information about the TEAL programs",
|
|
216
|
+
properties: {
|
|
217
|
+
approval: {
|
|
218
|
+
description: "Approval program information",
|
|
219
|
+
items: {
|
|
220
|
+
$ref: "#/definitions/SourceInfo"
|
|
221
|
+
},
|
|
222
|
+
type: "array"
|
|
223
|
+
},
|
|
224
|
+
clear: {
|
|
225
|
+
description: "Clear program information",
|
|
226
|
+
items: {
|
|
227
|
+
$ref: "#/definitions/SourceInfo"
|
|
228
|
+
},
|
|
229
|
+
type: "array"
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
required: [
|
|
233
|
+
"approval",
|
|
234
|
+
"clear"
|
|
235
|
+
],
|
|
236
|
+
type: "object"
|
|
237
|
+
},
|
|
238
|
+
state: {
|
|
239
|
+
additionalProperties: false,
|
|
240
|
+
properties: {
|
|
241
|
+
keys: {
|
|
242
|
+
additionalProperties: false,
|
|
243
|
+
description: "Mapping of human-readable names to StorageKey objects",
|
|
244
|
+
properties: {
|
|
245
|
+
box: {
|
|
246
|
+
additionalProperties: {
|
|
247
|
+
$ref: "#/definitions/StorageKey"
|
|
248
|
+
},
|
|
249
|
+
type: "object"
|
|
250
|
+
},
|
|
251
|
+
global: {
|
|
252
|
+
additionalProperties: {
|
|
253
|
+
$ref: "#/definitions/StorageKey"
|
|
254
|
+
},
|
|
255
|
+
type: "object"
|
|
256
|
+
},
|
|
257
|
+
local: {
|
|
258
|
+
additionalProperties: {
|
|
259
|
+
$ref: "#/definitions/StorageKey"
|
|
260
|
+
},
|
|
261
|
+
type: "object"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
required: [
|
|
265
|
+
"global",
|
|
266
|
+
"local",
|
|
267
|
+
"box"
|
|
268
|
+
],
|
|
269
|
+
type: "object"
|
|
270
|
+
},
|
|
271
|
+
maps: {
|
|
272
|
+
additionalProperties: false,
|
|
273
|
+
description: "Mapping of human-readable names to StorageMap objects",
|
|
274
|
+
properties: {
|
|
275
|
+
box: {
|
|
276
|
+
additionalProperties: {
|
|
277
|
+
$ref: "#/definitions/StorageMap"
|
|
278
|
+
},
|
|
279
|
+
type: "object"
|
|
280
|
+
},
|
|
281
|
+
global: {
|
|
282
|
+
additionalProperties: {
|
|
283
|
+
$ref: "#/definitions/StorageMap"
|
|
284
|
+
},
|
|
285
|
+
type: "object"
|
|
286
|
+
},
|
|
287
|
+
local: {
|
|
288
|
+
additionalProperties: {
|
|
289
|
+
$ref: "#/definitions/StorageMap"
|
|
290
|
+
},
|
|
291
|
+
type: "object"
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
required: [
|
|
295
|
+
"global",
|
|
296
|
+
"local",
|
|
297
|
+
"box"
|
|
298
|
+
],
|
|
299
|
+
type: "object"
|
|
300
|
+
},
|
|
301
|
+
schema: {
|
|
302
|
+
additionalProperties: false,
|
|
303
|
+
description: "Defines the values that should be used for GlobalNumUint, GlobalNumByteSlice, LocalNumUint, and LocalNumByteSlice when creating the application",
|
|
304
|
+
properties: {
|
|
305
|
+
global: {
|
|
306
|
+
additionalProperties: false,
|
|
307
|
+
properties: {
|
|
308
|
+
bytes: {
|
|
309
|
+
type: "number"
|
|
310
|
+
},
|
|
311
|
+
ints: {
|
|
312
|
+
type: "number"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
required: [
|
|
316
|
+
"ints",
|
|
317
|
+
"bytes"
|
|
318
|
+
],
|
|
319
|
+
type: "object"
|
|
320
|
+
},
|
|
321
|
+
local: {
|
|
322
|
+
additionalProperties: false,
|
|
323
|
+
properties: {
|
|
324
|
+
bytes: {
|
|
325
|
+
type: "number"
|
|
326
|
+
},
|
|
327
|
+
ints: {
|
|
328
|
+
type: "number"
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
required: [
|
|
332
|
+
"ints",
|
|
333
|
+
"bytes"
|
|
334
|
+
],
|
|
335
|
+
type: "object"
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
required: [
|
|
339
|
+
"global",
|
|
340
|
+
"local"
|
|
341
|
+
],
|
|
342
|
+
type: "object"
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
required: [
|
|
346
|
+
"schema",
|
|
347
|
+
"keys",
|
|
348
|
+
"maps"
|
|
349
|
+
],
|
|
350
|
+
type: "object"
|
|
351
|
+
},
|
|
352
|
+
structs: {
|
|
353
|
+
additionalProperties: {
|
|
354
|
+
$ref: "#/definitions/StructFields"
|
|
355
|
+
},
|
|
356
|
+
description: "Named structs use by the application",
|
|
357
|
+
type: "object"
|
|
358
|
+
},
|
|
359
|
+
templateVariables: {
|
|
360
|
+
additionalProperties: {
|
|
361
|
+
additionalProperties: false,
|
|
362
|
+
properties: {
|
|
363
|
+
type: {
|
|
364
|
+
anyOf: [
|
|
365
|
+
{
|
|
366
|
+
$ref: "#/definitions/ABIType"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
$ref: "#/definitions/AVMBytes"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
$ref: "#/definitions/StructName"
|
|
373
|
+
}
|
|
374
|
+
],
|
|
375
|
+
description: "The type of the template variable"
|
|
376
|
+
},
|
|
377
|
+
value: {
|
|
378
|
+
description: "If given, the the base64 encoded value used for the given app/program",
|
|
379
|
+
type: "string"
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
required: [
|
|
383
|
+
"type"
|
|
384
|
+
],
|
|
385
|
+
type: "object"
|
|
386
|
+
},
|
|
387
|
+
description: "A mapping of template variable names as they appear in the teal (not including TMPL_ prefix) to their respecive types and values (if applicable)",
|
|
388
|
+
type: "object"
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
required: [
|
|
392
|
+
"arcs",
|
|
393
|
+
"name",
|
|
394
|
+
"structs",
|
|
395
|
+
"methods",
|
|
396
|
+
"state",
|
|
397
|
+
"bareActions"
|
|
398
|
+
],
|
|
399
|
+
type: "object"
|
|
400
|
+
},
|
|
401
|
+
Event: {
|
|
402
|
+
additionalProperties: false,
|
|
403
|
+
description: "ARC-28 event",
|
|
404
|
+
properties: {
|
|
405
|
+
args: {
|
|
406
|
+
description: "The arguments of the event, in order",
|
|
407
|
+
items: {
|
|
408
|
+
additionalProperties: false,
|
|
409
|
+
properties: {
|
|
410
|
+
desc: {
|
|
411
|
+
description: "Optional, user-friendly description for the argument",
|
|
412
|
+
type: "string"
|
|
413
|
+
},
|
|
414
|
+
name: {
|
|
415
|
+
description: "Optional, user-friendly name for the argument",
|
|
416
|
+
type: "string"
|
|
417
|
+
},
|
|
418
|
+
struct: {
|
|
419
|
+
$ref: "#/definitions/StructName",
|
|
420
|
+
description: "If the type is a struct, the name of the struct"
|
|
421
|
+
},
|
|
422
|
+
type: {
|
|
423
|
+
$ref: "#/definitions/ABIType",
|
|
424
|
+
description: "The type of the argument"
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
required: [
|
|
428
|
+
"type"
|
|
429
|
+
],
|
|
430
|
+
type: "object"
|
|
431
|
+
},
|
|
432
|
+
type: "array"
|
|
433
|
+
},
|
|
434
|
+
desc: {
|
|
435
|
+
description: "Optional, user-friendly description for the event",
|
|
436
|
+
type: "string"
|
|
437
|
+
},
|
|
438
|
+
name: {
|
|
439
|
+
description: "The name of the event",
|
|
440
|
+
type: "string"
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
required: [
|
|
444
|
+
"name",
|
|
445
|
+
"args"
|
|
446
|
+
],
|
|
447
|
+
type: "object"
|
|
448
|
+
},
|
|
449
|
+
Method: {
|
|
450
|
+
additionalProperties: false,
|
|
451
|
+
description: "Describes a method in the contract. This interface is an extension of the interface described in ARC-4",
|
|
452
|
+
properties: {
|
|
453
|
+
actions: {
|
|
454
|
+
additionalProperties: false,
|
|
455
|
+
description: "an action is a combination of call/create and an OnComplete",
|
|
456
|
+
properties: {
|
|
457
|
+
call: {
|
|
458
|
+
description: "OnCompletes this method allows when appID !== 0",
|
|
459
|
+
items: {
|
|
460
|
+
"enum": [
|
|
461
|
+
"NoOp",
|
|
462
|
+
"OptIn",
|
|
463
|
+
"CloseOut",
|
|
464
|
+
"ClearState",
|
|
465
|
+
"UpdateApplication",
|
|
466
|
+
"DeleteApplication"
|
|
467
|
+
],
|
|
468
|
+
type: "string"
|
|
469
|
+
},
|
|
470
|
+
type: "array"
|
|
471
|
+
},
|
|
472
|
+
create: {
|
|
473
|
+
description: "OnCompletes this method allows when appID === 0",
|
|
474
|
+
items: {
|
|
475
|
+
"enum": [
|
|
476
|
+
"NoOp",
|
|
477
|
+
"OptIn",
|
|
478
|
+
"DeleteApplication"
|
|
479
|
+
],
|
|
480
|
+
type: "string"
|
|
481
|
+
},
|
|
482
|
+
type: "array"
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
required: [
|
|
486
|
+
"create",
|
|
487
|
+
"call"
|
|
488
|
+
],
|
|
489
|
+
type: "object"
|
|
490
|
+
},
|
|
491
|
+
args: {
|
|
492
|
+
description: "The arguments of the method, in order",
|
|
493
|
+
items: {
|
|
494
|
+
additionalProperties: false,
|
|
495
|
+
properties: {
|
|
496
|
+
defaultValue: {
|
|
497
|
+
description: "The default value that clients should use. MUST be base64 encoded bytes",
|
|
498
|
+
type: "string"
|
|
499
|
+
},
|
|
500
|
+
desc: {
|
|
501
|
+
description: "Optional, user-friendly description for the argument",
|
|
502
|
+
type: "string"
|
|
503
|
+
},
|
|
504
|
+
name: {
|
|
505
|
+
description: "Optional, user-friendly name for the argument",
|
|
506
|
+
type: "string"
|
|
507
|
+
},
|
|
508
|
+
struct: {
|
|
509
|
+
$ref: "#/definitions/StructName",
|
|
510
|
+
description: "If the type is a struct, the name of the struct"
|
|
511
|
+
},
|
|
512
|
+
type: {
|
|
513
|
+
$ref: "#/definitions/ABIType",
|
|
514
|
+
description: "The type of the argument"
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
required: [
|
|
518
|
+
"type"
|
|
519
|
+
],
|
|
520
|
+
type: "object"
|
|
521
|
+
},
|
|
522
|
+
type: "array"
|
|
523
|
+
},
|
|
524
|
+
desc: {
|
|
525
|
+
description: "Optional, user-friendly description for the method",
|
|
526
|
+
type: "string"
|
|
527
|
+
},
|
|
528
|
+
events: {
|
|
529
|
+
description: "ARC-28 events that MAY be emitted by this method",
|
|
530
|
+
items: {
|
|
531
|
+
$ref: "#/definitions/Event"
|
|
532
|
+
},
|
|
533
|
+
type: "array"
|
|
534
|
+
},
|
|
535
|
+
name: {
|
|
536
|
+
description: "The name of the method",
|
|
537
|
+
type: "string"
|
|
538
|
+
},
|
|
539
|
+
readonly: {
|
|
540
|
+
description: "If this method does not write anything to the ledger (ARC-22)",
|
|
541
|
+
type: "boolean"
|
|
542
|
+
},
|
|
543
|
+
recommendations: {
|
|
544
|
+
additionalProperties: false,
|
|
545
|
+
description: "Information that clients can use when calling the method",
|
|
546
|
+
properties: {
|
|
547
|
+
accounts: {
|
|
548
|
+
description: "Recommended foreign accounts",
|
|
549
|
+
items: {
|
|
550
|
+
type: "string"
|
|
551
|
+
},
|
|
552
|
+
type: "array"
|
|
553
|
+
},
|
|
554
|
+
apps: {
|
|
555
|
+
description: "Recommended foreign apps",
|
|
556
|
+
items: {
|
|
557
|
+
type: "number"
|
|
558
|
+
},
|
|
559
|
+
type: "array"
|
|
560
|
+
},
|
|
561
|
+
assets: {
|
|
562
|
+
description: "Recommended foreign assets",
|
|
563
|
+
items: {
|
|
564
|
+
type: "number"
|
|
565
|
+
},
|
|
566
|
+
type: "array"
|
|
567
|
+
},
|
|
568
|
+
boxes: {
|
|
569
|
+
additionalProperties: false,
|
|
570
|
+
description: "Recommended box references to include",
|
|
571
|
+
properties: {
|
|
572
|
+
app: {
|
|
573
|
+
description: "The app ID for the box",
|
|
574
|
+
type: "number"
|
|
575
|
+
},
|
|
576
|
+
key: {
|
|
577
|
+
description: "The base64 encoded box key",
|
|
578
|
+
type: "string"
|
|
579
|
+
},
|
|
580
|
+
readBytes: {
|
|
581
|
+
description: "The number of bytes being read from the box",
|
|
582
|
+
type: "number"
|
|
583
|
+
},
|
|
584
|
+
writeBytes: {
|
|
585
|
+
description: "The number of bytes being written to the box",
|
|
586
|
+
type: "number"
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
required: [
|
|
590
|
+
"key",
|
|
591
|
+
"readBytes",
|
|
592
|
+
"writeBytes"
|
|
593
|
+
],
|
|
594
|
+
type: "object"
|
|
595
|
+
},
|
|
596
|
+
innerTransactionCount: {
|
|
597
|
+
description: "The number of inner transactions the caller should cover the fees for",
|
|
598
|
+
type: "number"
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
type: "object"
|
|
602
|
+
},
|
|
603
|
+
returns: {
|
|
604
|
+
additionalProperties: false,
|
|
605
|
+
description: "Information about the method's return value",
|
|
606
|
+
properties: {
|
|
607
|
+
desc: {
|
|
608
|
+
description: "Optional, user-friendly description for the return value",
|
|
609
|
+
type: "string"
|
|
610
|
+
},
|
|
611
|
+
struct: {
|
|
612
|
+
$ref: "#/definitions/StructName",
|
|
613
|
+
description: "If the type is a struct, the name of the struct"
|
|
614
|
+
},
|
|
615
|
+
type: {
|
|
616
|
+
$ref: "#/definitions/ABIType",
|
|
617
|
+
description: "The type of the return value, or \"void\" to indicate no return value."
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
required: [
|
|
621
|
+
"type"
|
|
622
|
+
],
|
|
623
|
+
type: "object"
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
required: [
|
|
627
|
+
"name",
|
|
628
|
+
"args",
|
|
629
|
+
"returns",
|
|
630
|
+
"actions"
|
|
631
|
+
],
|
|
632
|
+
type: "object"
|
|
633
|
+
},
|
|
634
|
+
SourceInfo: {
|
|
635
|
+
additionalProperties: true,
|
|
636
|
+
properties: {
|
|
637
|
+
disassembledTeal: {
|
|
638
|
+
description: "The line of the dissasembled TEAL this line of pre-compiled TEAL corresponds to",
|
|
639
|
+
type: "number"
|
|
640
|
+
},
|
|
641
|
+
errorMessage: {
|
|
642
|
+
description: "A human-readable string that describes the error when the program fails at this given line of TEAL",
|
|
643
|
+
type: "string"
|
|
644
|
+
},
|
|
645
|
+
pc: {
|
|
646
|
+
description: "The program counter offset(s) that correspond to this line of TEAL",
|
|
647
|
+
items: {
|
|
648
|
+
type: "number"
|
|
649
|
+
},
|
|
650
|
+
type: "array"
|
|
651
|
+
},
|
|
652
|
+
teal: {
|
|
653
|
+
description: "The line of pre-compiled TEAL",
|
|
654
|
+
type: "number"
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
type: "object"
|
|
658
|
+
},
|
|
659
|
+
StorageKey: {
|
|
660
|
+
additionalProperties: false,
|
|
661
|
+
description: "Describes a single key in app storage",
|
|
662
|
+
properties: {
|
|
663
|
+
desc: {
|
|
664
|
+
description: "Description of what this storage key holds",
|
|
665
|
+
type: "string"
|
|
666
|
+
},
|
|
667
|
+
key: {
|
|
668
|
+
description: "The bytes of the key encoded as base64",
|
|
669
|
+
type: "string"
|
|
670
|
+
},
|
|
671
|
+
keyType: {
|
|
672
|
+
anyOf: [
|
|
673
|
+
{
|
|
674
|
+
$ref: "#/definitions/ABIType"
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
$ref: "#/definitions/AVMBytes"
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
$ref: "#/definitions/StructName"
|
|
681
|
+
}
|
|
682
|
+
],
|
|
683
|
+
description: "The type of the key"
|
|
684
|
+
},
|
|
685
|
+
valueType: {
|
|
686
|
+
anyOf: [
|
|
687
|
+
{
|
|
688
|
+
$ref: "#/definitions/ABIType"
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
$ref: "#/definitions/AVMBytes"
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
$ref: "#/definitions/StructName"
|
|
695
|
+
}
|
|
696
|
+
],
|
|
697
|
+
description: "The type of the value"
|
|
698
|
+
}
|
|
699
|
+
},
|
|
700
|
+
required: [
|
|
701
|
+
"keyType",
|
|
702
|
+
"valueType",
|
|
703
|
+
"key"
|
|
704
|
+
],
|
|
705
|
+
type: "object"
|
|
706
|
+
},
|
|
707
|
+
StorageMap: {
|
|
708
|
+
additionalProperties: false,
|
|
709
|
+
description: "Describes a mapping of key-value pairs in storage",
|
|
710
|
+
properties: {
|
|
711
|
+
desc: {
|
|
712
|
+
description: "Description of what the key-value pairs in this mapping hold",
|
|
713
|
+
type: "string"
|
|
714
|
+
},
|
|
715
|
+
keyType: {
|
|
716
|
+
anyOf: [
|
|
717
|
+
{
|
|
718
|
+
$ref: "#/definitions/ABIType"
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
$ref: "#/definitions/AVMBytes"
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
$ref: "#/definitions/StructName"
|
|
725
|
+
}
|
|
726
|
+
],
|
|
727
|
+
description: "The type of the keys in the map"
|
|
728
|
+
},
|
|
729
|
+
prefix: {
|
|
730
|
+
description: "The base64-encoded prefix of the map keys",
|
|
731
|
+
type: "string"
|
|
732
|
+
},
|
|
733
|
+
valueType: {
|
|
734
|
+
anyOf: [
|
|
735
|
+
{
|
|
736
|
+
$ref: "#/definitions/ABIType"
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
$ref: "#/definitions/AVMBytes"
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
$ref: "#/definitions/StructName"
|
|
743
|
+
}
|
|
744
|
+
],
|
|
745
|
+
description: "The type of the values in the map"
|
|
746
|
+
}
|
|
747
|
+
},
|
|
748
|
+
required: [
|
|
749
|
+
"keyType",
|
|
750
|
+
"valueType"
|
|
751
|
+
],
|
|
752
|
+
type: "object"
|
|
753
|
+
},
|
|
754
|
+
StructFields: {
|
|
755
|
+
additionalProperties: {
|
|
756
|
+
anyOf: [
|
|
757
|
+
{
|
|
758
|
+
$ref: "#/definitions/ABIType"
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
$ref: "#/definitions/StructFields"
|
|
762
|
+
}
|
|
763
|
+
]
|
|
764
|
+
},
|
|
765
|
+
description: "Mapping of named structs to the ABI type of their fields",
|
|
766
|
+
type: "object"
|
|
767
|
+
},
|
|
768
|
+
StructName: {
|
|
769
|
+
description: "The name of a defined struct",
|
|
770
|
+
type: "string"
|
|
771
|
+
}
|
|
772
|
+
};
|
|
773
|
+
var arc56Schema = {
|
|
774
|
+
$ref: $ref,
|
|
775
|
+
$schema: $schema,
|
|
776
|
+
definitions: definitions
|
|
777
|
+
};
|
|
778
|
+
|
|
779
|
+
export { $ref, $schema, arc56Schema as default, definitions };
|
|
780
|
+
//# sourceMappingURL=arc56.schema.json.mjs.map
|