Skip to content

Commit 8334f34

Browse files
authored
Merge pull request #2 from baedrik/minor-changes
update package name
2 parents 4a97ef4 + eca32ba commit 8334f34

File tree

8 files changed

+272
-164
lines changed

8 files changed

+272
-164
lines changed

Cargo.lock

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "secret-secret"
2+
name = "snip20-reference-impl"
33
version = "0.1.0"
44
authors = ["Itzik <[email protected]>"]
55
edition = "2018"

examples/schema.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::fs::create_dir_all;
33

44
use cosmwasm_schema::{export_schema, remove_schemas, schema_for};
55

6-
use secret_secret::msg::{HandleAnswer, HandleMsg, InitMsg, QueryAnswer, QueryMsg};
6+
use snip20_reference_impl::msg::{HandleAnswer, HandleMsg, InitMsg, QueryAnswer, QueryMsg};
77

88
fn main() {
99
let mut out_dir = current_dir().unwrap();

schema/handle_answer.json

Lines changed: 59 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,6 @@
4040
}
4141
}
4242
},
43-
{
44-
"type": "object",
45-
"required": [
46-
"balance"
47-
],
48-
"properties": {
49-
"balance": {
50-
"type": "object",
51-
"required": [
52-
"amount"
53-
],
54-
"properties": {
55-
"amount": {
56-
"$ref": "#/definitions/Uint128"
57-
}
58-
}
59-
}
60-
}
61-
},
6243
{
6344
"type": "object",
6445
"required": [
@@ -306,21 +287,53 @@
306287
{
307288
"type": "object",
308289
"required": [
309-
"swap"
290+
"add_minters"
310291
],
311292
"properties": {
312-
"swap": {
293+
"add_minters": {
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+
"remove_minters"
310+
],
311+
"properties": {
312+
"remove_minters": {
313+
"type": "object",
314+
"required": [
315+
"status"
316+
],
317+
"properties": {
318+
"status": {
319+
"$ref": "#/definitions/ResponseStatus"
320+
}
321+
}
322+
}
323+
}
324+
},
325+
{
326+
"type": "object",
327+
"required": [
328+
"set_minters"
329+
],
330+
"properties": {
331+
"set_minters": {
313332
"type": "object",
314333
"required": [
315-
"nonce",
316334
"status"
317335
],
318336
"properties": {
319-
"nonce": {
320-
"type": "integer",
321-
"format": "uint32",
322-
"minimum": 0.0
323-
},
324337
"status": {
325338
"$ref": "#/definitions/ResponseStatus"
326339
}
@@ -346,6 +359,25 @@
346359
}
347360
}
348361
}
362+
},
363+
{
364+
"type": "object",
365+
"required": [
366+
"set_contract_status"
367+
],
368+
"properties": {
369+
"set_contract_status": {
370+
"type": "object",
371+
"required": [
372+
"status"
373+
],
374+
"properties": {
375+
"status": {
376+
"$ref": "#/definitions/ResponseStatus"
377+
}
378+
}
379+
}
380+
}
349381
}
350382
],
351383
"definitions": {

schema/handle_msg.json

Lines changed: 116 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,12 @@
1717
"amount": {
1818
"$ref": "#/definitions/Uint128"
1919
},
20-
"padding": {
20+
"denom": {
2121
"type": [
2222
"string",
2323
"null"
2424
]
25-
}
26-
}
27-
}
28-
}
29-
},
30-
{
31-
"type": "object",
32-
"required": [
33-
"deposit"
34-
],
35-
"properties": {
36-
"deposit": {
37-
"type": "object",
38-
"properties": {
25+
},
3926
"padding": {
4027
"type": [
4128
"string",
@@ -49,10 +36,10 @@
4936
{
5037
"type": "object",
5138
"required": [
52-
"balance"
39+
"deposit"
5340
],
5441
"properties": {
55-
"balance": {
42+
"deposit": {
5643
"type": "object",
5744
"properties": {
5845
"padding": {
@@ -421,15 +408,21 @@
421408
"mint": {
422409
"type": "object",
423410
"required": [
424-
"address",
425-
"amount"
411+
"amount",
412+
"recipient"
426413
],
427414
"properties": {
428-
"address": {
429-
"$ref": "#/definitions/HumanAddr"
430-
},
431415
"amount": {
432416
"$ref": "#/definitions/Uint128"
417+
},
418+
"padding": {
419+
"type": [
420+
"string",
421+
"null"
422+
]
423+
},
424+
"recipient": {
425+
"$ref": "#/definitions/HumanAddr"
433426
}
434427
}
435428
}
@@ -438,25 +431,76 @@
438431
{
439432
"type": "object",
440433
"required": [
441-
"swap"
434+
"add_minters"
442435
],
443436
"properties": {
444-
"swap": {
437+
"add_minters": {
445438
"type": "object",
446439
"required": [
447-
"amount",
448-
"destination",
449-
"network"
440+
"minters"
450441
],
451442
"properties": {
452-
"amount": {
453-
"$ref": "#/definitions/Uint128"
443+
"minters": {
444+
"type": "array",
445+
"items": {
446+
"$ref": "#/definitions/HumanAddr"
447+
}
454448
},
455-
"destination": {
456-
"type": "string"
449+
"padding": {
450+
"type": [
451+
"string",
452+
"null"
453+
]
454+
}
455+
}
456+
}
457+
}
458+
},
459+
{
460+
"type": "object",
461+
"required": [
462+
"remove_minters"
463+
],
464+
"properties": {
465+
"remove_minters": {
466+
"type": "object",
467+
"required": [
468+
"minters"
469+
],
470+
"properties": {
471+
"minters": {
472+
"type": "array",
473+
"items": {
474+
"$ref": "#/definitions/HumanAddr"
475+
}
457476
},
458-
"network": {
459-
"type": "string"
477+
"padding": {
478+
"type": [
479+
"string",
480+
"null"
481+
]
482+
}
483+
}
484+
}
485+
}
486+
},
487+
{
488+
"type": "object",
489+
"required": [
490+
"set_minters"
491+
],
492+
"properties": {
493+
"set_minters": {
494+
"type": "object",
495+
"required": [
496+
"minters"
497+
],
498+
"properties": {
499+
"minters": {
500+
"type": "array",
501+
"items": {
502+
"$ref": "#/definitions/HumanAddr"
503+
}
460504
},
461505
"padding": {
462506
"type": [
@@ -482,6 +526,37 @@
482526
"properties": {
483527
"address": {
484528
"$ref": "#/definitions/HumanAddr"
529+
},
530+
"padding": {
531+
"type": [
532+
"string",
533+
"null"
534+
]
535+
}
536+
}
537+
}
538+
}
539+
},
540+
{
541+
"type": "object",
542+
"required": [
543+
"set_contract_status"
544+
],
545+
"properties": {
546+
"set_contract_status": {
547+
"type": "object",
548+
"required": [
549+
"level"
550+
],
551+
"properties": {
552+
"level": {
553+
"$ref": "#/definitions/ContractStatusLevel"
554+
},
555+
"padding": {
556+
"type": [
557+
"string",
558+
"null"
559+
]
485560
}
486561
}
487562
}
@@ -493,6 +568,14 @@
493568
"description": "Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec<u8>",
494569
"type": "string"
495570
},
571+
"ContractStatusLevel": {
572+
"type": "string",
573+
"enum": [
574+
"normal_run",
575+
"stop_all_but_redeems",
576+
"stop_all"
577+
]
578+
},
496579
"HumanAddr": {
497580
"type": "string"
498581
},

0 commit comments

Comments
 (0)