Skip to content

Commit f7585cd

Browse files
authored
Merge pull request #14 from enigmampc/batched-operations
SNIP-22 - Batched Operations
2 parents 6b7e750 + 8e11aff commit f7585cd

File tree

7 files changed

+1170
-152
lines changed

7 files changed

+1170
-152
lines changed

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ test: unit-test unit-test-receiver integration-test
2424

2525
.PHONY: unit-test
2626
unit-test:
27-
cargo test
27+
RUST_BACKTRACE=1 cargo test
28+
29+
.PHONY: unit-test-nocapture
30+
unit-test-nocapture:
31+
RUST_BACKTRACE=1 cargo test -- --nocapture
2832

2933
.PHONY: unit-test-receiver
3034
unit-test-receiver:

schema/handle_answer.json

+114
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,44 @@
7878
}
7979
}
8080
},
81+
{
82+
"type": "object",
83+
"required": [
84+
"batch_transfer"
85+
],
86+
"properties": {
87+
"batch_transfer": {
88+
"type": "object",
89+
"required": [
90+
"status"
91+
],
92+
"properties": {
93+
"status": {
94+
"$ref": "#/definitions/ResponseStatus"
95+
}
96+
}
97+
}
98+
}
99+
},
100+
{
101+
"type": "object",
102+
"required": [
103+
"batch_send"
104+
],
105+
"properties": {
106+
"batch_send": {
107+
"type": "object",
108+
"required": [
109+
"status"
110+
],
111+
"properties": {
112+
"status": {
113+
"$ref": "#/definitions/ResponseStatus"
114+
}
115+
}
116+
}
117+
}
118+
},
81119
{
82120
"type": "object",
83121
"required": [
@@ -246,6 +284,44 @@
246284
}
247285
}
248286
},
287+
{
288+
"type": "object",
289+
"required": [
290+
"batch_transfer_from"
291+
],
292+
"properties": {
293+
"batch_transfer_from": {
294+
"type": "object",
295+
"required": [
296+
"status"
297+
],
298+
"properties": {
299+
"status": {
300+
"$ref": "#/definitions/ResponseStatus"
301+
}
302+
}
303+
}
304+
}
305+
},
306+
{
307+
"type": "object",
308+
"required": [
309+
"batch_send_from"
310+
],
311+
"properties": {
312+
"batch_send_from": {
313+
"type": "object",
314+
"required": [
315+
"status"
316+
],
317+
"properties": {
318+
"status": {
319+
"$ref": "#/definitions/ResponseStatus"
320+
}
321+
}
322+
}
323+
}
324+
},
249325
{
250326
"type": "object",
251327
"required": [
@@ -265,6 +341,25 @@
265341
}
266342
}
267343
},
344+
{
345+
"type": "object",
346+
"required": [
347+
"batch_burn_from"
348+
],
349+
"properties": {
350+
"batch_burn_from": {
351+
"type": "object",
352+
"required": [
353+
"status"
354+
],
355+
"properties": {
356+
"status": {
357+
"$ref": "#/definitions/ResponseStatus"
358+
}
359+
}
360+
}
361+
}
362+
},
268363
{
269364
"type": "object",
270365
"required": [
@@ -284,6 +379,25 @@
284379
}
285380
}
286381
},
382+
{
383+
"type": "object",
384+
"required": [
385+
"batch_mint"
386+
],
387+
"properties": {
388+
"batch_mint": {
389+
"type": "object",
390+
"required": [
391+
"status"
392+
],
393+
"properties": {
394+
"status": {
395+
"$ref": "#/definitions/ResponseStatus"
396+
}
397+
}
398+
}
399+
}
400+
},
287401
{
288402
"type": "object",
289403
"required": [

0 commit comments

Comments
 (0)