Skip to content

Commit

Permalink
Prepare code for release 0.1.5 (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
Art3miX authored Jul 15, 2024
1 parent e634a3e commit 799e194
Show file tree
Hide file tree
Showing 21 changed files with 345 additions and 94 deletions.
20 changes: 10 additions & 10 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 @@ -12,7 +12,7 @@ members = [
[workspace.package]
edition = "2021"
license = "BSL"
version = "0.1.4"
version = "0.1.5"
repository = "https://github.com/timewave-computer/valence-services"

rust-version = "1.66"
Expand Down
2 changes: 1 addition & 1 deletion contracts/account/schema/valence-account.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"contract_name": "valence-account",
"contract_version": "0.1.0",
"contract_version": "0.1.5",
"idl_version": "1.0.0",
"instantiate": {
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
2 changes: 1 addition & 1 deletion contracts/auction/auction/schema/auction.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"contract_name": "auction",
"contract_version": "0.1.0",
"contract_version": "0.1.5",
"idl_version": "1.0.0",
"instantiate": {
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"contract_name": "auctions-manager",
"contract_version": "0.1.0",
"contract_version": "0.1.5",
"idl_version": "1.0.0",
"instantiate": {
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
102 changes: 100 additions & 2 deletions contracts/auction/price_oracle/schema/price-oracle.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"contract_name": "price-oracle",
"contract_version": "0.1.0",
"contract_version": "0.1.5",
"idl_version": "1.0.0",
"instantiate": {
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down Expand Up @@ -358,6 +358,39 @@
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"get_all_prices"
],
"properties": {
"get_all_prices": {
"type": "object",
"properties": {
"from": {
"anyOf": [
{
"$ref": "#/definitions/Pair"
},
{
"type": "null"
}
]
},
"limit": {
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
],
"definitions": {
Expand Down Expand Up @@ -385,6 +418,71 @@
"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"
},
"get_all_prices": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Array_of_Tuple_of_Pair_and_Price",
"type": "array",
"items": {
"type": "array",
"items": [
{
"$ref": "#/definitions/Pair"
},
{
"$ref": "#/definitions/Price"
}
],
"maxItems": 2,
"minItems": 2
},
"definitions": {
"Decimal": {
"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"
},
"Pair": {
"type": "array",
"items": [
{
"type": "string"
},
{
"type": "string"
}
],
"maxItems": 2,
"minItems": 2
},
"Price": {
"type": "object",
"required": [
"price",
"time"
],
"properties": {
"price": {
"$ref": "#/definitions/Decimal"
},
"time": {
"$ref": "#/definitions/Timestamp"
}
},
"additionalProperties": false
},
"Timestamp": {
"description": "A point in time in nanosecond precision.\n\nThis type can represent times from 1970-01-01T00:00:00Z to 2554-07-21T23:34:33Z.\n\n## Examples\n\n``` # use cosmwasm_std::Timestamp; let ts = Timestamp::from_nanos(1_000_000_202); assert_eq!(ts.nanos(), 1_000_000_202); assert_eq!(ts.seconds(), 1); assert_eq!(ts.subsec_nanos(), 202);\n\nlet ts = ts.plus_seconds(2); assert_eq!(ts.nanos(), 3_000_000_202); assert_eq!(ts.seconds(), 3); assert_eq!(ts.subsec_nanos(), 202); ```",
"allOf": [
{
"$ref": "#/definitions/Uint64"
}
]
},
"Uint64": {
"description": "A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 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 `u64` to get the value out:\n\n``` # use cosmwasm_std::Uint64; let a = Uint64::from(42u64); assert_eq!(a.u64(), 42);\n\nlet b = Uint64::from(70u32); assert_eq!(b.u64(), 70); ```",
"type": "string"
}
}
},
"get_config": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Config",
Expand Down Expand Up @@ -426,7 +524,7 @@
},
"get_price": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "GetPriceResponse",
"title": "Price",
"type": "object",
"required": [
"price",
Expand Down
Loading

0 comments on commit 799e194

Please sign in to comment.