Skip to content

Commit

Permalink
chore: use ve3-shared 0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kerber0x committed Jun 24, 2024
1 parent 0113542 commit 16f022b
Show file tree
Hide file tree
Showing 10 changed files with 223 additions and 70 deletions.
19 changes: 17 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ thiserror = { version = "1.0.38" }
cw2 = "1.1.2"
cw20 ="1.1.2"
semver = "1.0.22"
ve3-shared = "0.9.0"
ve3-shared = "0.9.1"

alliance-protocol = { path = "./packages/alliance-protocol" }
111 changes: 90 additions & 21 deletions contracts/alliance-hub/schema/alliance-hub.json
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,33 @@
"description": "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
"type": "string"
},
"AssetBase_for_Addr": {
"description": "Represents a fungible asset with a known amount\n\nEach asset instance contains two values: `info`, which specifies the asset's type (CW20 or native), and its `amount`, which specifies the asset's amount.",
"type": "object",
"required": [
"amount",
"info"
],
"properties": {
"amount": {
"description": "Specifies the asset's amount",
"allOf": [
{
"$ref": "#/definitions/Uint128"
}
]
},
"info": {
"description": "Specifies the asset's type (CW20 or native)",
"allOf": [
{
"$ref": "#/definitions/AssetInfoBase_for_Addr"
}
]
}
},
"additionalProperties": false
},
"AssetConfigRuntime": {
"type": "object",
"required": [
Expand All @@ -847,7 +874,7 @@
"minimum": 0.0
},
"stake_config": {
"$ref": "#/definitions/StakeConfig"
"$ref": "#/definitions/StakeConfig_for_Addr"
},
"taken": {
"$ref": "#/definitions/Uint128"
Expand Down Expand Up @@ -891,7 +918,7 @@
"description": "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)",
"type": "string"
},
"StakeConfig": {
"StakeConfig_for_Addr": {
"oneOf": [
{
"type": "string",
Expand Down Expand Up @@ -961,16 +988,12 @@
"type": "object",
"required": [
"asset",
"balance",
"config",
"shares"
],
"properties": {
"asset": {
"$ref": "#/definitions/AssetInfoBase_for_Addr"
},
"balance": {
"$ref": "#/definitions/Uint128"
"$ref": "#/definitions/AssetBase_for_Addr"
},
"config": {
"$ref": "#/definitions/AssetConfigRuntime"
Expand Down Expand Up @@ -1193,16 +1216,12 @@
"type": "object",
"required": [
"asset",
"balance",
"config",
"shares"
],
"properties": {
"asset": {
"$ref": "#/definitions/AssetInfoBase_for_Addr"
},
"balance": {
"$ref": "#/definitions/Uint128"
"$ref": "#/definitions/AssetBase_for_Addr"
},
"config": {
"$ref": "#/definitions/AssetConfigRuntime"
Expand All @@ -1217,6 +1236,33 @@
"description": "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
"type": "string"
},
"AssetBase_for_Addr": {
"description": "Represents a fungible asset with a known amount\n\nEach asset instance contains two values: `info`, which specifies the asset's type (CW20 or native), and its `amount`, which specifies the asset's amount.",
"type": "object",
"required": [
"amount",
"info"
],
"properties": {
"amount": {
"description": "Specifies the asset's amount",
"allOf": [
{
"$ref": "#/definitions/Uint128"
}
]
},
"info": {
"description": "Specifies the asset's type (CW20 or native)",
"allOf": [
{
"$ref": "#/definitions/AssetInfoBase_for_Addr"
}
]
}
},
"additionalProperties": false
},
"AssetConfigRuntime": {
"type": "object",
"required": [
Expand All @@ -1236,7 +1282,7 @@
"minimum": 0.0
},
"stake_config": {
"$ref": "#/definitions/StakeConfig"
"$ref": "#/definitions/StakeConfig_for_Addr"
},
"taken": {
"$ref": "#/definitions/Uint128"
Expand Down Expand Up @@ -1280,7 +1326,7 @@
"description": "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)",
"type": "string"
},
"StakeConfig": {
"StakeConfig_for_Addr": {
"oneOf": [
{
"type": "string",
Expand Down Expand Up @@ -1364,6 +1410,33 @@
"description": "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
"type": "string"
},
"AssetBase_for_Addr": {
"description": "Represents a fungible asset with a known amount\n\nEach asset instance contains two values: `info`, which specifies the asset's type (CW20 or native), and its `amount`, which specifies the asset's amount.",
"type": "object",
"required": [
"amount",
"info"
],
"properties": {
"amount": {
"description": "Specifies the asset's amount",
"allOf": [
{
"$ref": "#/definitions/Uint128"
}
]
},
"info": {
"description": "Specifies the asset's type (CW20 or native)",
"allOf": [
{
"$ref": "#/definitions/AssetInfoBase_for_Addr"
}
]
}
},
"additionalProperties": false
},
"AssetConfigRuntime": {
"type": "object",
"required": [
Expand All @@ -1383,7 +1456,7 @@
"minimum": 0.0
},
"stake_config": {
"$ref": "#/definitions/StakeConfig"
"$ref": "#/definitions/StakeConfig_for_Addr"
},
"taken": {
"$ref": "#/definitions/Uint128"
Expand Down Expand Up @@ -1427,7 +1500,7 @@
"description": "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)",
"type": "string"
},
"StakeConfig": {
"StakeConfig_for_Addr": {
"oneOf": [
{
"type": "string",
Expand Down Expand Up @@ -1497,16 +1570,12 @@
"type": "object",
"required": [
"asset",
"balance",
"config",
"shares"
],
"properties": {
"asset": {
"$ref": "#/definitions/AssetInfoBase_for_Addr"
},
"balance": {
"$ref": "#/definitions/Uint128"
"$ref": "#/definitions/AssetBase_for_Addr"
},
"config": {
"$ref": "#/definitions/AssetConfigRuntime"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,33 @@
"description": "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
"type": "string"
},
"AssetBase_for_Addr": {
"description": "Represents a fungible asset with a known amount\n\nEach asset instance contains two values: `info`, which specifies the asset's type (CW20 or native), and its `amount`, which specifies the asset's amount.",
"type": "object",
"required": [
"amount",
"info"
],
"properties": {
"amount": {
"description": "Specifies the asset's amount",
"allOf": [
{
"$ref": "#/definitions/Uint128"
}
]
},
"info": {
"description": "Specifies the asset's type (CW20 or native)",
"allOf": [
{
"$ref": "#/definitions/AssetInfoBase_for_Addr"
}
]
}
},
"additionalProperties": false
},
"AssetConfigRuntime": {
"type": "object",
"required": [
Expand All @@ -29,7 +56,7 @@
"minimum": 0.0
},
"stake_config": {
"$ref": "#/definitions/StakeConfig"
"$ref": "#/definitions/StakeConfig_for_Addr"
},
"taken": {
"$ref": "#/definitions/Uint128"
Expand Down Expand Up @@ -73,7 +100,7 @@
"description": "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)",
"type": "string"
},
"StakeConfig": {
"StakeConfig_for_Addr": {
"oneOf": [
{
"type": "string",
Expand Down Expand Up @@ -143,16 +170,12 @@
"type": "object",
"required": [
"asset",
"balance",
"config",
"shares"
],
"properties": {
"asset": {
"$ref": "#/definitions/AssetInfoBase_for_Addr"
},
"balance": {
"$ref": "#/definitions/Uint128"
"$ref": "#/definitions/AssetBase_for_Addr"
},
"config": {
"$ref": "#/definitions/AssetConfigRuntime"
Expand Down
37 changes: 30 additions & 7 deletions contracts/alliance-hub/schema/raw/response_to_staked_balance.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@
"type": "object",
"required": [
"asset",
"balance",
"config",
"shares"
],
"properties": {
"asset": {
"$ref": "#/definitions/AssetInfoBase_for_Addr"
},
"balance": {
"$ref": "#/definitions/Uint128"
"$ref": "#/definitions/AssetBase_for_Addr"
},
"config": {
"$ref": "#/definitions/AssetConfigRuntime"
Expand All @@ -28,6 +24,33 @@
"description": "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
"type": "string"
},
"AssetBase_for_Addr": {
"description": "Represents a fungible asset with a known amount\n\nEach asset instance contains two values: `info`, which specifies the asset's type (CW20 or native), and its `amount`, which specifies the asset's amount.",
"type": "object",
"required": [
"amount",
"info"
],
"properties": {
"amount": {
"description": "Specifies the asset's amount",
"allOf": [
{
"$ref": "#/definitions/Uint128"
}
]
},
"info": {
"description": "Specifies the asset's type (CW20 or native)",
"allOf": [
{
"$ref": "#/definitions/AssetInfoBase_for_Addr"
}
]
}
},
"additionalProperties": false
},
"AssetConfigRuntime": {
"type": "object",
"required": [
Expand All @@ -47,7 +70,7 @@
"minimum": 0.0
},
"stake_config": {
"$ref": "#/definitions/StakeConfig"
"$ref": "#/definitions/StakeConfig_for_Addr"
},
"taken": {
"$ref": "#/definitions/Uint128"
Expand Down Expand Up @@ -91,7 +114,7 @@
"description": "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)",
"type": "string"
},
"StakeConfig": {
"StakeConfig_for_Addr": {
"oneOf": [
{
"type": "string",
Expand Down
Loading

0 comments on commit 16f022b

Please sign in to comment.