@algorandfoundation/algokit-client-generator 4.0.0-beta.5 → 4.0.0-beta.7

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