-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow create/top up with cw20 tokens
- Loading branch information
Showing
5 changed files
with
258 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "ReceiveMsg", | ||
"anyOf": [ | ||
{ | ||
"type": "object", | ||
"required": [ | ||
"create" | ||
], | ||
"properties": { | ||
"create": { | ||
"$ref": "#/definitions/CreateMsg" | ||
} | ||
} | ||
}, | ||
{ | ||
"description": "Adds all sent native tokens to the contract", | ||
"type": "object", | ||
"required": [ | ||
"top_up" | ||
], | ||
"properties": { | ||
"top_up": { | ||
"type": "object", | ||
"required": [ | ||
"id" | ||
], | ||
"properties": { | ||
"id": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"definitions": { | ||
"CreateMsg": { | ||
"type": "object", | ||
"required": [ | ||
"arbiter", | ||
"id", | ||
"recipient" | ||
], | ||
"properties": { | ||
"arbiter": { | ||
"description": "arbiter can decide to approve or refund the escrow", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/HumanAddr" | ||
} | ||
] | ||
}, | ||
"end_height": { | ||
"description": "When end height set and block height exceeds this value, the escrow is expired. Once an escrow is expired, it can be returned to the original funder (via \"refund\").", | ||
"type": [ | ||
"integer", | ||
"null" | ||
], | ||
"format": "uint64", | ||
"minimum": 0.0 | ||
}, | ||
"end_time": { | ||
"description": "When end time (in seconds since epoch 00:00:00 UTC on 1 January 1970) is set and block time exceeds this value, the escrow is expired. Once an escrow is expired, it can be returned to the original funder (via \"refund\").", | ||
"type": [ | ||
"integer", | ||
"null" | ||
], | ||
"format": "uint64", | ||
"minimum": 0.0 | ||
}, | ||
"id": { | ||
"description": "id is a human-readable name for the escrow to use later 3-20 bytes of utf-8 text", | ||
"type": "string" | ||
}, | ||
"recipient": { | ||
"description": "if approved, funds go to the recipient", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/HumanAddr" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"HumanAddr": { | ||
"type": "string" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters