Skip to content

Commit

Permalink
Update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Jul 6, 2020
1 parent c1a7640 commit 73eb5a6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions contracts/cw20-escrow/schema/handle_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,16 @@
}
]
},
"cw20_whitelist": {
"description": "Besides any possible tokens sent with the CreateMsg, this is a list of all cw20 token addresses that are accepted by the escrow during a top-up. This is required to avoid a DoS attack by topping-up with an invalid cw20 contract. See https://github.com/CosmWasm/cosmwasm-plus/issues/19",
"type": [
"array",
"null"
],
"items": {
"$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": [
Expand Down
10 changes: 10 additions & 0 deletions contracts/cw20-escrow/schema/receive_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@
}
]
},
"cw20_whitelist": {
"description": "Besides any possible tokens sent with the CreateMsg, this is a list of all cw20 token addresses that are accepted by the escrow during a top-up. This is required to avoid a DoS attack by topping-up with an invalid cw20 contract. See https://github.com/CosmWasm/cosmwasm-plus/issues/19",
"type": [
"array",
"null"
],
"items": {
"$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": [
Expand Down

0 comments on commit 73eb5a6

Please sign in to comment.