Skip to content

Commit

Permalink
schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Buckram123 committed Jan 10, 2023
1 parent 66859c6 commit 87bb486
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 20 deletions.
6 changes: 4 additions & 2 deletions packages/cw-croncat-core/schema/croncat.json
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,8 @@
"amount": {
"$ref": "#/definitions/Uint128"
}
}
},
"additionalProperties": false
},
"Cw20CoinVerified": {
"type": "object",
Expand All @@ -800,7 +801,8 @@
"amount": {
"$ref": "#/definitions/Uint128"
}
}
},
"additionalProperties": false
},
"DistributionMsg": {
"description": "The message types of the distribution module.\n\nSee https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto",
Expand Down
9 changes: 6 additions & 3 deletions packages/cw-croncat-core/schema/execute_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,8 @@
"amount": {
"$ref": "#/definitions/Uint128"
}
}
},
"additionalProperties": false
},
"Cw20CoinVerified": {
"type": "object",
Expand All @@ -883,7 +884,8 @@
"amount": {
"$ref": "#/definitions/Uint128"
}
}
},
"additionalProperties": false
},
"Cw20ReceiveMsg": {
"description": "Cw20ReceiveMsg should be de/serialized under `Receive()` variant in a ExecuteMsg",
Expand All @@ -903,7 +905,8 @@
"sender": {
"type": "string"
}
}
},
"additionalProperties": false
},
"DistributionMsg": {
"description": "The message types of the distribution module.\n\nSee https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto",
Expand Down
3 changes: 2 additions & 1 deletion packages/cw-croncat-core/schema/get_agent_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@
"amount": {
"$ref": "#/definitions/Uint128"
}
}
},
"additionalProperties": false
},
"GenericBalance": {
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,8 @@
"amount": {
"$ref": "#/definitions/Uint128"
}
}
},
"additionalProperties": false
},
"DistributionMsg": {
"description": "The message types of the distribution module.\n\nSee https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto",
Expand Down
3 changes: 2 additions & 1 deletion packages/cw-croncat-core/schema/get_task_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,8 @@
"amount": {
"$ref": "#/definitions/Uint128"
}
}
},
"additionalProperties": false
},
"DistributionMsg": {
"description": "The message types of the distribution module.\n\nSee https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,8 @@
"amount": {
"$ref": "#/definitions/Uint128"
}
}
},
"additionalProperties": false
},
"DistributionMsg": {
"description": "The message types of the distribution module.\n\nSee https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto",
Expand Down
3 changes: 2 additions & 1 deletion packages/cw-croncat-core/schema/get_tasks_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,8 @@
"amount": {
"$ref": "#/definitions/Uint128"
}
}
},
"additionalProperties": false
},
"DistributionMsg": {
"description": "The message types of the distribution module.\n\nSee https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@
"amount": {
"$ref": "#/definitions/Uint128"
}
}
},
"additionalProperties": false
},
"GenericQuery": {
"type": "object",
Expand Down
3 changes: 2 additions & 1 deletion packages/cw-croncat-core/schema/query_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,8 @@
"amount": {
"$ref": "#/definitions/Uint128"
}
}
},
"additionalProperties": false
},
"DistributionMsg": {
"description": "The message types of the distribution module.\n\nSee https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto",
Expand Down
3 changes: 2 additions & 1 deletion packages/cw-rules-core/schema/croncat_query.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@
"amount": {
"$ref": "#/definitions/Uint128"
}
}
},
"additionalProperties": false
},
"GenericQuery": {
"type": "object",
Expand Down
3 changes: 2 additions & 1 deletion packages/cw-rules-core/schema/has_balance_gte.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
"amount": {
"$ref": "#/definitions/Uint128"
}
}
},
"additionalProperties": false
},
"NativeBalance": {
"type": "array",
Expand Down
3 changes: 2 additions & 1 deletion packages/cw-rules-core/schema/query_construct.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@
"amount": {
"$ref": "#/definitions/Uint128"
}
}
},
"additionalProperties": false
},
"GenericQuery": {
"type": "object",
Expand Down
3 changes: 2 additions & 1 deletion packages/cw-rules-core/schema/query_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,8 @@
"amount": {
"$ref": "#/definitions/Uint128"
}
}
},
"additionalProperties": false
},
"GenericQuery": {
"type": "object",
Expand Down
3 changes: 0 additions & 3 deletions typescript/contracts/cw-croncat-core/CwCroncatCore.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ export interface GenericBalance {
export interface Cw20CoinVerified {
address: Addr;
amount: Uint128;
[k: string]: unknown;
}
export interface Coin {
amount: Uint128;
Expand Down Expand Up @@ -421,7 +420,6 @@ export interface TaskRequest {
export interface Cw20Coin {
address: string;
amount: Uint128;
[k: string]: unknown;
}
export type ExecuteMsg = {
update_settings: {
Expand Down Expand Up @@ -510,7 +508,6 @@ export interface Cw20ReceiveMsg {
amount: Uint128;
msg: Binary;
sender: string;
[k: string]: unknown;
}
export type GetAgentResponse = AgentResponse | null;
export type GetAgentTasksResponse = TaskResponse | null;
Expand Down
1 change: 0 additions & 1 deletion typescript/contracts/cw-rules-core/CwRulesCore.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ export interface Coin {
export interface Cw20CoinVerified {
address: Addr;
amount: Uint128;
[k: string]: unknown;
}
export interface GenericQuery {
contract_addr: string;
Expand Down

0 comments on commit 87bb486

Please sign in to comment.