-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 parent
1884c4b
commit e249d5e
Showing
5 changed files
with
161 additions
and
611 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,128 +1,78 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "ExecuteMsg", | ||
"oneOf": [ | ||
{ | ||
"description": "Releasing all funds in the contract to the beneficiary. This is the only \"proper\" action of this demo contract.", | ||
"type": "object", | ||
"required": [ | ||
"release" | ||
], | ||
"properties": { | ||
"release": { | ||
"type": "object", | ||
"additionalProperties": false | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
{ | ||
"description": "Infinite loop to burn cpu cycles (only run when metering is enabled)", | ||
"type": "object", | ||
"required": [ | ||
"cpu_loop" | ||
], | ||
"properties": { | ||
"cpu_loop": { | ||
"type": "object", | ||
"additionalProperties": false | ||
} | ||
}, | ||
"additionalProperties": false | ||
"type": "object", | ||
"required": [ | ||
"exec_error", | ||
"messages", | ||
"msg_id", | ||
"reply_error", | ||
"return_order_resp", | ||
"set_data_resp" | ||
], | ||
"properties": { | ||
"exec_error": { | ||
"type": "boolean" | ||
}, | ||
{ | ||
"description": "Infinite loop making storage calls (to test when their limit hits)", | ||
"type": "object", | ||
"required": [ | ||
"storage_loop" | ||
], | ||
"properties": { | ||
"storage_loop": { | ||
"type": "object", | ||
"additionalProperties": false | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
{ | ||
"description": "Infinite loop reading and writing memory", | ||
"type": "object", | ||
"required": [ | ||
"memory_loop" | ||
], | ||
"properties": { | ||
"memory_loop": { | ||
"type": "object", | ||
"additionalProperties": false | ||
} | ||
}, | ||
"additionalProperties": false | ||
"messages": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ExecuteMsg" | ||
} | ||
}, | ||
{ | ||
"description": "Infinite loop sending message to itself", | ||
"type": "object", | ||
"required": [ | ||
"message_loop" | ||
], | ||
"properties": { | ||
"message_loop": { | ||
"type": "object", | ||
"additionalProperties": false | ||
} | ||
}, | ||
"additionalProperties": false | ||
"msg_id": { | ||
"type": "integer", | ||
"format": "uint8", | ||
"minimum": 0.0 | ||
}, | ||
{ | ||
"description": "Allocate large amounts of memory without consuming much gas", | ||
"type": "object", | ||
"required": [ | ||
"allocate_large_memory" | ||
], | ||
"properties": { | ||
"allocate_large_memory": { | ||
"type": "object", | ||
"required": [ | ||
"pages" | ||
], | ||
"properties": { | ||
"pages": { | ||
"type": "integer", | ||
"format": "uint32", | ||
"minimum": 0.0 | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
}, | ||
"additionalProperties": false | ||
"reply_error": { | ||
"type": "boolean" | ||
}, | ||
{ | ||
"description": "Trigger a panic to ensure framework handles gracefully", | ||
"type": "object", | ||
"required": [ | ||
"panic" | ||
], | ||
"properties": { | ||
"panic": { | ||
"type": "object", | ||
"additionalProperties": false | ||
} | ||
}, | ||
"additionalProperties": false | ||
"return_order_resp": { | ||
"type": "boolean" | ||
}, | ||
{ | ||
"description": "Starting with CosmWasm 0.10, some API calls return user errors back to the contract. This triggers such user errors, ensuring the transaction does not fail in the backend.", | ||
"set_data_resp": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"definitions": { | ||
"ExecuteMsg": { | ||
"type": "object", | ||
"required": [ | ||
"user_errors_in_api_calls" | ||
"exec_error", | ||
"messages", | ||
"msg_id", | ||
"reply_error", | ||
"return_order_resp", | ||
"set_data_resp" | ||
], | ||
"properties": { | ||
"user_errors_in_api_calls": { | ||
"type": "object", | ||
"additionalProperties": false | ||
"exec_error": { | ||
"type": "boolean" | ||
}, | ||
"messages": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ExecuteMsg" | ||
} | ||
}, | ||
"msg_id": { | ||
"type": "integer", | ||
"format": "uint8", | ||
"minimum": 0.0 | ||
}, | ||
"reply_error": { | ||
"type": "boolean" | ||
}, | ||
"return_order_resp": { | ||
"type": "boolean" | ||
}, | ||
"set_data_resp": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -1,86 +1,6 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "QueryMsg", | ||
"oneOf": [ | ||
{ | ||
"description": "returns a human-readable representation of the verifier use to ensure query path works in integration tests", | ||
"type": "object", | ||
"required": [ | ||
"verifier" | ||
], | ||
"properties": { | ||
"verifier": { | ||
"type": "object", | ||
"additionalProperties": false | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
{ | ||
"description": "This returns cosmwasm_std::AllBalanceResponse to demo use of the querier", | ||
"type": "object", | ||
"required": [ | ||
"other_balance" | ||
], | ||
"properties": { | ||
"other_balance": { | ||
"type": "object", | ||
"required": [ | ||
"address" | ||
], | ||
"properties": { | ||
"address": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
{ | ||
"description": "Recurse will execute a query into itself up to depth-times and return Each step of the recursion may perform some extra work to test gas metering (`work` rounds of sha256 on contract). Now that we have Env, we can auto-calculate the address to recurse into", | ||
"type": "object", | ||
"required": [ | ||
"recurse" | ||
], | ||
"properties": { | ||
"recurse": { | ||
"type": "object", | ||
"required": [ | ||
"depth", | ||
"work" | ||
], | ||
"properties": { | ||
"depth": { | ||
"type": "integer", | ||
"format": "uint32", | ||
"minimum": 0.0 | ||
}, | ||
"work": { | ||
"type": "integer", | ||
"format": "uint32", | ||
"minimum": 0.0 | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
{ | ||
"description": "GetInt returns a hardcoded u32 value", | ||
"type": "object", | ||
"required": [ | ||
"get_int" | ||
], | ||
"properties": { | ||
"get_int": { | ||
"type": "object", | ||
"additionalProperties": false | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
] | ||
"type": "string", | ||
"enum": [] | ||
} |
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,98 @@ | ||
{ | ||
"contract_name": "replier", | ||
"contract_version": "0.0.0", | ||
"idl_version": "1.0.0", | ||
"instantiate": { | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "InstantiateMsg", | ||
"type": "object", | ||
"additionalProperties": false | ||
}, | ||
"execute": { | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "ExecuteMsg", | ||
"type": "object", | ||
"required": [ | ||
"exec_error", | ||
"messages", | ||
"msg_id", | ||
"reply_error", | ||
"return_order_resp", | ||
"set_data_resp" | ||
], | ||
"properties": { | ||
"exec_error": { | ||
"type": "boolean" | ||
}, | ||
"messages": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ExecuteMsg" | ||
} | ||
}, | ||
"msg_id": { | ||
"type": "integer", | ||
"format": "uint8", | ||
"minimum": 0.0 | ||
}, | ||
"reply_error": { | ||
"type": "boolean" | ||
}, | ||
"return_order_resp": { | ||
"type": "boolean" | ||
}, | ||
"set_data_resp": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"definitions": { | ||
"ExecuteMsg": { | ||
"type": "object", | ||
"required": [ | ||
"exec_error", | ||
"messages", | ||
"msg_id", | ||
"reply_error", | ||
"return_order_resp", | ||
"set_data_resp" | ||
], | ||
"properties": { | ||
"exec_error": { | ||
"type": "boolean" | ||
}, | ||
"messages": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ExecuteMsg" | ||
} | ||
}, | ||
"msg_id": { | ||
"type": "integer", | ||
"format": "uint8", | ||
"minimum": 0.0 | ||
}, | ||
"reply_error": { | ||
"type": "boolean" | ||
}, | ||
"return_order_resp": { | ||
"type": "boolean" | ||
}, | ||
"set_data_resp": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
} | ||
}, | ||
"query": { | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "QueryMsg", | ||
"type": "string", | ||
"enum": [] | ||
}, | ||
"migrate": null, | ||
"sudo": null, | ||
"responses": {} | ||
} |