From ebe2ba0a30a8fbea1ce905c395f0e23030a7942e Mon Sep 17 00:00:00 2001 From: udit-gulati Date: Mon, 11 Jul 2022 18:24:38 +0530 Subject: [PATCH] update README, gitignore and remove schema json from repo --- counter/.gitignore | 1 + counter/contracts/schema/constants.json | 18 --- counter/contracts/schema/count_response.json | 14 --- counter/contracts/schema/execute_msg.json | 39 ------- counter/contracts/schema/instantiate_msg.json | 14 --- counter/contracts/schema/query_msg.json | 18 --- erc20/.gitignore | 4 + erc20/README.md | 4 - .../contracts/schema/allowance_response.json | 19 --- erc20/contracts/schema/balance_response.json | 19 --- erc20/contracts/schema/constants.json | 23 ---- erc20/contracts/schema/execute_msg.json | 108 ------------------ erc20/contracts/schema/instantiate_msg.json | 51 --------- erc20/contracts/schema/query_msg.json | 50 -------- factorial/.gitignore | 4 + factorial/contracts/schema/constants.json | 18 --- factorial/contracts/schema/execute_msg.json | 27 ----- .../contracts/schema/factorial_response.json | 14 --- .../contracts/schema/instantiate_msg.json | 14 --- factorial/contracts/schema/query_msg.json | 18 --- multi-contract/.gitignore | 4 + .../contracts/counter/schema/constants.json | 18 --- .../counter/schema/count_response.json | 14 --- .../contracts/counter/schema/execute_msg.json | 39 ------- .../counter/schema/instantiate_msg.json | 14 --- .../contracts/counter/schema/query_msg.json | 18 --- .../contracts/factorial/schema/constants.json | 18 --- .../factorial/schema/execute_msg.json | 27 ----- .../factorial/schema/factorial_response.json | 14 --- .../factorial/schema/instantiate_msg.json | 14 --- .../contracts/factorial/schema/query_msg.json | 18 --- 31 files changed, 13 insertions(+), 662 deletions(-) delete mode 100644 counter/contracts/schema/constants.json delete mode 100644 counter/contracts/schema/count_response.json delete mode 100644 counter/contracts/schema/execute_msg.json delete mode 100644 counter/contracts/schema/instantiate_msg.json delete mode 100644 counter/contracts/schema/query_msg.json create mode 100644 erc20/.gitignore delete mode 100644 erc20/contracts/schema/allowance_response.json delete mode 100644 erc20/contracts/schema/balance_response.json delete mode 100644 erc20/contracts/schema/constants.json delete mode 100644 erc20/contracts/schema/execute_msg.json delete mode 100644 erc20/contracts/schema/instantiate_msg.json delete mode 100644 erc20/contracts/schema/query_msg.json create mode 100644 factorial/.gitignore delete mode 100644 factorial/contracts/schema/constants.json delete mode 100644 factorial/contracts/schema/execute_msg.json delete mode 100644 factorial/contracts/schema/factorial_response.json delete mode 100644 factorial/contracts/schema/instantiate_msg.json delete mode 100644 factorial/contracts/schema/query_msg.json create mode 100644 multi-contract/.gitignore delete mode 100644 multi-contract/contracts/counter/schema/constants.json delete mode 100644 multi-contract/contracts/counter/schema/count_response.json delete mode 100644 multi-contract/contracts/counter/schema/execute_msg.json delete mode 100644 multi-contract/contracts/counter/schema/instantiate_msg.json delete mode 100644 multi-contract/contracts/counter/schema/query_msg.json delete mode 100644 multi-contract/contracts/factorial/schema/constants.json delete mode 100644 multi-contract/contracts/factorial/schema/execute_msg.json delete mode 100644 multi-contract/contracts/factorial/schema/factorial_response.json delete mode 100644 multi-contract/contracts/factorial/schema/instantiate_msg.json delete mode 100644 multi-contract/contracts/factorial/schema/query_msg.json diff --git a/counter/.gitignore b/counter/.gitignore index 65dc84d..e21ac3f 100644 --- a/counter/.gitignore +++ b/counter/.gitignore @@ -2,3 +2,4 @@ node_modules/ frontend/node_modules/ target/ artifacts/ +contracts/schema/ diff --git a/counter/contracts/schema/constants.json b/counter/contracts/schema/constants.json deleted file mode 100644 index 82be698..0000000 --- a/counter/contracts/schema/constants.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "Constants", - "type": "object", - "required": [ - "count", - "owner" - ], - "properties": { - "count": { - "type": "integer", - "format": "int32" - }, - "owner": { - "type": "string" - } - } -} diff --git a/counter/contracts/schema/count_response.json b/counter/contracts/schema/count_response.json deleted file mode 100644 index fa1e81f..0000000 --- a/counter/contracts/schema/count_response.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "CountResponse", - "type": "object", - "required": [ - "count" - ], - "properties": { - "count": { - "type": "integer", - "format": "int32" - } - } -} diff --git a/counter/contracts/schema/execute_msg.json b/counter/contracts/schema/execute_msg.json deleted file mode 100644 index e46531a..0000000 --- a/counter/contracts/schema/execute_msg.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "ExecuteMsg", - "oneOf": [ - { - "type": "object", - "required": [ - "increment" - ], - "properties": { - "increment": { - "type": "object" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "reset" - ], - "properties": { - "reset": { - "type": "object", - "required": [ - "count" - ], - "properties": { - "count": { - "type": "integer", - "format": "int32" - } - } - } - }, - "additionalProperties": false - } - ] -} diff --git a/counter/contracts/schema/instantiate_msg.json b/counter/contracts/schema/instantiate_msg.json deleted file mode 100644 index e794ec1..0000000 --- a/counter/contracts/schema/instantiate_msg.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "InstantiateMsg", - "type": "object", - "required": [ - "count" - ], - "properties": { - "count": { - "type": "integer", - "format": "int32" - } - } -} diff --git a/counter/contracts/schema/query_msg.json b/counter/contracts/schema/query_msg.json deleted file mode 100644 index fd1379b..0000000 --- a/counter/contracts/schema/query_msg.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "QueryMsg", - "oneOf": [ - { - "type": "object", - "required": [ - "get_count" - ], - "properties": { - "get_count": { - "type": "object" - } - }, - "additionalProperties": false - } - ] -} diff --git a/erc20/.gitignore b/erc20/.gitignore new file mode 100644 index 0000000..d9ec919 --- /dev/null +++ b/erc20/.gitignore @@ -0,0 +1,4 @@ +node_modules/ +target/ +artifacts/ +contracts/schema/ diff --git a/erc20/README.md b/erc20/README.md index 6eb21b4..9b57e0e 100644 --- a/erc20/README.md +++ b/erc20/README.md @@ -44,7 +44,3 @@ In the project folder you'll have following items: - You can add tests for your scripts here. - `junokit.config.js`: Junokit configuration file. - -# Frontend - -This folder contains frontend code for erc-20 example. diff --git a/erc20/contracts/schema/allowance_response.json b/erc20/contracts/schema/allowance_response.json deleted file mode 100644 index 83e3318..0000000 --- a/erc20/contracts/schema/allowance_response.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "AllowanceResponse", - "type": "object", - "required": [ - "allowance" - ], - "properties": { - "allowance": { - "$ref": "#/definitions/Uint128" - } - }, - "definitions": { - "Uint128": { - "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", - "type": "string" - } - } -} diff --git a/erc20/contracts/schema/balance_response.json b/erc20/contracts/schema/balance_response.json deleted file mode 100644 index 4e1a0be..0000000 --- a/erc20/contracts/schema/balance_response.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "BalanceResponse", - "type": "object", - "required": [ - "balance" - ], - "properties": { - "balance": { - "$ref": "#/definitions/Uint128" - } - }, - "definitions": { - "Uint128": { - "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", - "type": "string" - } - } -} diff --git a/erc20/contracts/schema/constants.json b/erc20/contracts/schema/constants.json deleted file mode 100644 index e430a7a..0000000 --- a/erc20/contracts/schema/constants.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "Constants", - "type": "object", - "required": [ - "decimals", - "name", - "symbol" - ], - "properties": { - "decimals": { - "type": "integer", - "format": "uint8", - "minimum": 0.0 - }, - "name": { - "type": "string" - }, - "symbol": { - "type": "string" - } - } -} diff --git a/erc20/contracts/schema/execute_msg.json b/erc20/contracts/schema/execute_msg.json deleted file mode 100644 index 70c4347..0000000 --- a/erc20/contracts/schema/execute_msg.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "ExecuteMsg", - "oneOf": [ - { - "type": "object", - "required": [ - "approve" - ], - "properties": { - "approve": { - "type": "object", - "required": [ - "amount", - "spender" - ], - "properties": { - "amount": { - "$ref": "#/definitions/Uint128" - }, - "spender": { - "type": "string" - } - } - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "transfer" - ], - "properties": { - "transfer": { - "type": "object", - "required": [ - "amount", - "recipient" - ], - "properties": { - "amount": { - "$ref": "#/definitions/Uint128" - }, - "recipient": { - "type": "string" - } - } - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "transfer_from" - ], - "properties": { - "transfer_from": { - "type": "object", - "required": [ - "amount", - "owner", - "recipient" - ], - "properties": { - "amount": { - "$ref": "#/definitions/Uint128" - }, - "owner": { - "type": "string" - }, - "recipient": { - "type": "string" - } - } - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "burn" - ], - "properties": { - "burn": { - "type": "object", - "required": [ - "amount" - ], - "properties": { - "amount": { - "$ref": "#/definitions/Uint128" - } - } - } - }, - "additionalProperties": false - } - ], - "definitions": { - "Uint128": { - "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", - "type": "string" - } - } -} diff --git a/erc20/contracts/schema/instantiate_msg.json b/erc20/contracts/schema/instantiate_msg.json deleted file mode 100644 index 46aaeed..0000000 --- a/erc20/contracts/schema/instantiate_msg.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "InstantiateMsg", - "type": "object", - "required": [ - "decimals", - "initial_balances", - "name", - "symbol" - ], - "properties": { - "decimals": { - "type": "integer", - "format": "uint8", - "minimum": 0.0 - }, - "initial_balances": { - "type": "array", - "items": { - "$ref": "#/definitions/InitialBalance" - } - }, - "name": { - "type": "string" - }, - "symbol": { - "type": "string" - } - }, - "definitions": { - "InitialBalance": { - "type": "object", - "required": [ - "address", - "amount" - ], - "properties": { - "address": { - "type": "string" - }, - "amount": { - "$ref": "#/definitions/Uint128" - } - } - }, - "Uint128": { - "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", - "type": "string" - } - } -} diff --git a/erc20/contracts/schema/query_msg.json b/erc20/contracts/schema/query_msg.json deleted file mode 100644 index 31735a9..0000000 --- a/erc20/contracts/schema/query_msg.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "QueryMsg", - "oneOf": [ - { - "type": "object", - "required": [ - "balance" - ], - "properties": { - "balance": { - "type": "object", - "required": [ - "address" - ], - "properties": { - "address": { - "type": "string" - } - } - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "allowance" - ], - "properties": { - "allowance": { - "type": "object", - "required": [ - "owner", - "spender" - ], - "properties": { - "owner": { - "type": "string" - }, - "spender": { - "type": "string" - } - } - } - }, - "additionalProperties": false - } - ] -} diff --git a/factorial/.gitignore b/factorial/.gitignore new file mode 100644 index 0000000..d9ec919 --- /dev/null +++ b/factorial/.gitignore @@ -0,0 +1,4 @@ +node_modules/ +target/ +artifacts/ +contracts/schema/ diff --git a/factorial/contracts/schema/constants.json b/factorial/contracts/schema/constants.json deleted file mode 100644 index bfd11aa..0000000 --- a/factorial/contracts/schema/constants.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "Constants", - "type": "object", - "required": [ - "factorial", - "owner" - ], - "properties": { - "factorial": { - "type": "integer", - "format": "int32" - }, - "owner": { - "type": "string" - } - } -} diff --git a/factorial/contracts/schema/execute_msg.json b/factorial/contracts/schema/execute_msg.json deleted file mode 100644 index 4a450bf..0000000 --- a/factorial/contracts/schema/execute_msg.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "ExecuteMsg", - "oneOf": [ - { - "type": "object", - "required": [ - "factorial" - ], - "properties": { - "factorial": { - "type": "object", - "required": [ - "number" - ], - "properties": { - "number": { - "type": "integer", - "format": "int32" - } - } - } - }, - "additionalProperties": false - } - ] -} diff --git a/factorial/contracts/schema/factorial_response.json b/factorial/contracts/schema/factorial_response.json deleted file mode 100644 index 0d0be1c..0000000 --- a/factorial/contracts/schema/factorial_response.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "FactorialResponse", - "type": "object", - "required": [ - "factorial" - ], - "properties": { - "factorial": { - "type": "integer", - "format": "int32" - } - } -} diff --git a/factorial/contracts/schema/instantiate_msg.json b/factorial/contracts/schema/instantiate_msg.json deleted file mode 100644 index 1a5e91c..0000000 --- a/factorial/contracts/schema/instantiate_msg.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "InstantiateMsg", - "type": "object", - "required": [ - "factorial" - ], - "properties": { - "factorial": { - "type": "integer", - "format": "int32" - } - } -} diff --git a/factorial/contracts/schema/query_msg.json b/factorial/contracts/schema/query_msg.json deleted file mode 100644 index c5d707f..0000000 --- a/factorial/contracts/schema/query_msg.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "QueryMsg", - "oneOf": [ - { - "type": "object", - "required": [ - "get_factorial" - ], - "properties": { - "get_factorial": { - "type": "object" - } - }, - "additionalProperties": false - } - ] -} diff --git a/multi-contract/.gitignore b/multi-contract/.gitignore new file mode 100644 index 0000000..065561e --- /dev/null +++ b/multi-contract/.gitignore @@ -0,0 +1,4 @@ +node_modules/ +target/ +artifacts/ +contracts/**/schema/ diff --git a/multi-contract/contracts/counter/schema/constants.json b/multi-contract/contracts/counter/schema/constants.json deleted file mode 100644 index 82be698..0000000 --- a/multi-contract/contracts/counter/schema/constants.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "Constants", - "type": "object", - "required": [ - "count", - "owner" - ], - "properties": { - "count": { - "type": "integer", - "format": "int32" - }, - "owner": { - "type": "string" - } - } -} diff --git a/multi-contract/contracts/counter/schema/count_response.json b/multi-contract/contracts/counter/schema/count_response.json deleted file mode 100644 index fa1e81f..0000000 --- a/multi-contract/contracts/counter/schema/count_response.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "CountResponse", - "type": "object", - "required": [ - "count" - ], - "properties": { - "count": { - "type": "integer", - "format": "int32" - } - } -} diff --git a/multi-contract/contracts/counter/schema/execute_msg.json b/multi-contract/contracts/counter/schema/execute_msg.json deleted file mode 100644 index e46531a..0000000 --- a/multi-contract/contracts/counter/schema/execute_msg.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "ExecuteMsg", - "oneOf": [ - { - "type": "object", - "required": [ - "increment" - ], - "properties": { - "increment": { - "type": "object" - } - }, - "additionalProperties": false - }, - { - "type": "object", - "required": [ - "reset" - ], - "properties": { - "reset": { - "type": "object", - "required": [ - "count" - ], - "properties": { - "count": { - "type": "integer", - "format": "int32" - } - } - } - }, - "additionalProperties": false - } - ] -} diff --git a/multi-contract/contracts/counter/schema/instantiate_msg.json b/multi-contract/contracts/counter/schema/instantiate_msg.json deleted file mode 100644 index e794ec1..0000000 --- a/multi-contract/contracts/counter/schema/instantiate_msg.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "InstantiateMsg", - "type": "object", - "required": [ - "count" - ], - "properties": { - "count": { - "type": "integer", - "format": "int32" - } - } -} diff --git a/multi-contract/contracts/counter/schema/query_msg.json b/multi-contract/contracts/counter/schema/query_msg.json deleted file mode 100644 index fd1379b..0000000 --- a/multi-contract/contracts/counter/schema/query_msg.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "QueryMsg", - "oneOf": [ - { - "type": "object", - "required": [ - "get_count" - ], - "properties": { - "get_count": { - "type": "object" - } - }, - "additionalProperties": false - } - ] -} diff --git a/multi-contract/contracts/factorial/schema/constants.json b/multi-contract/contracts/factorial/schema/constants.json deleted file mode 100644 index bfd11aa..0000000 --- a/multi-contract/contracts/factorial/schema/constants.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "Constants", - "type": "object", - "required": [ - "factorial", - "owner" - ], - "properties": { - "factorial": { - "type": "integer", - "format": "int32" - }, - "owner": { - "type": "string" - } - } -} diff --git a/multi-contract/contracts/factorial/schema/execute_msg.json b/multi-contract/contracts/factorial/schema/execute_msg.json deleted file mode 100644 index 4a450bf..0000000 --- a/multi-contract/contracts/factorial/schema/execute_msg.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "ExecuteMsg", - "oneOf": [ - { - "type": "object", - "required": [ - "factorial" - ], - "properties": { - "factorial": { - "type": "object", - "required": [ - "number" - ], - "properties": { - "number": { - "type": "integer", - "format": "int32" - } - } - } - }, - "additionalProperties": false - } - ] -} diff --git a/multi-contract/contracts/factorial/schema/factorial_response.json b/multi-contract/contracts/factorial/schema/factorial_response.json deleted file mode 100644 index 0d0be1c..0000000 --- a/multi-contract/contracts/factorial/schema/factorial_response.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "FactorialResponse", - "type": "object", - "required": [ - "factorial" - ], - "properties": { - "factorial": { - "type": "integer", - "format": "int32" - } - } -} diff --git a/multi-contract/contracts/factorial/schema/instantiate_msg.json b/multi-contract/contracts/factorial/schema/instantiate_msg.json deleted file mode 100644 index 1a5e91c..0000000 --- a/multi-contract/contracts/factorial/schema/instantiate_msg.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "InstantiateMsg", - "type": "object", - "required": [ - "factorial" - ], - "properties": { - "factorial": { - "type": "integer", - "format": "int32" - } - } -} diff --git a/multi-contract/contracts/factorial/schema/query_msg.json b/multi-contract/contracts/factorial/schema/query_msg.json deleted file mode 100644 index c5d707f..0000000 --- a/multi-contract/contracts/factorial/schema/query_msg.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "QueryMsg", - "oneOf": [ - { - "type": "object", - "required": [ - "get_factorial" - ], - "properties": { - "get_factorial": { - "type": "object" - } - }, - "additionalProperties": false - } - ] -}