Skip to content

Commit cca3dfd

Browse files
committedJun 27, 2023
chore(release): perform release 2.1.0
1 parent 938860e commit cca3dfd

File tree

9 files changed

+24
-8
lines changed

9 files changed

+24
-8
lines changed
 

‎CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# ØKP4 contracts
22

3+
## [2.1.0](https://github.com/okp4/contracts/compare/v2.0.0...v2.1.0) (2023-06-27)
4+
5+
6+
### Features
7+
8+
* **cognitarium:** add expand uri utility function ([af26038](https://github.com/okp4/contracts/commit/af2603843cb761da8c4ec6ff8d7bbbd7f6ee2d1c))
9+
* **cognitarium:** add support for blank nodes in describe ([8e736f1](https://github.com/okp4/contracts/commit/8e736f10b95c6540d9432c18b0346396ab28c24d))
10+
* **cognitarium:** add support for triples serialization ([2bf805f](https://github.com/okp4/contracts/commit/2bf805f1f51850f1026ca01ed3f1a1dd743dfd23))
11+
* **cognitarium:** implement describe query ([e21edc4](https://github.com/okp4/contracts/commit/e21edc40859e1632ad2a64039c71a69f14a4849b))
12+
13+
14+
### Bug Fixes
15+
16+
* **cognitarium:** ensure different object hash on named nodes ([92656ae](https://github.com/okp4/contracts/commit/92656ae4e257e331bec9ca86a29193ea39af81b2))
17+
* **cognitarium:** fix incorrect resource type for describe ([5876c74](https://github.com/okp4/contracts/commit/5876c745e03debe7d292d10e38df4ab600502b99))
18+
319
## [2.0.0](https://github.com/okp4/contracts/compare/v1.0.0...v2.0.0) (2023-06-13)
420

521

‎contracts/okp4-cognitarium/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["OKP4"]
33
edition = "2021"
44
name = "okp4-cognitarium"
5-
version = "2.0.0"
5+
version = "2.1.0"
66

77
exclude = [
88
# Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.

‎contracts/okp4-law-stone/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["OKP4"]
33
edition = "2021"
44
name = "okp4-law-stone"
5-
version = "2.0.0"
5+
version = "2.1.0"
66

77
exclude = [
88
# Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.

‎contracts/okp4-objectarium/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["OKP4"]
33
edition = "2021"
44
name = "okp4-objectarium"
5-
version = "2.0.0"
5+
version = "2.1.0"
66

77
exclude = [
88
# Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.

‎docs/schema/okp4-cognitarium.json

+1-1
Large diffs are not rendered by default.

‎docs/schema/okp4-law-stone.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"contract_name":"okp4-law-stone","contract_version":"2.0.0","idl_version":"1.0.0","instantiate":{"$schema":"http://json-schema.org/draft-07/schema#","title":"InstantiateMsg","description":"Instantiate message","type":"object","required":["program","storage_address"],"properties":{"program":{"description":"The Prolog program carrying law rules and facts.","allOf":[{"$ref":"./okp4-law-stone.json/#/definitions/Binary"}]},"storage_address":{"description":"The `okp4-objectarium` contract address on which to store the law program.","type":"string"}},"additionalProperties":false,"definitions":{"Binary":{"description":"Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec<u8>. See also <https://github.com/CosmWasm/cosmwasm/blob/main/docs/MESSAGE_TYPES.md>.","type":"string"}}},"execute":{"$schema":"http://json-schema.org/draft-07/schema#","title":"ExecuteMsg","description":"Execute messages","oneOf":[{"title":"BreakStone","description":"Break the stone making this contract unusable, by clearing all the related resources: - Unpin all the pinned objects on `okp4-objectarium` contracts, if any. - Forget the main program (i.e. or at least unpin it). Only the contract admin is authorized to break it, if any. If already broken, this is a no-op.","type":"string","enum":["break_stone"]}]},"query":{"$schema":"http://json-schema.org/draft-07/schema#","title":"QueryMsg","description":"Query messages","oneOf":[{"title":"Ask","description":"If not broken, ask the logic module the provided query with the law program loaded.","type":"object","required":["ask"],"properties":{"ask":{"type":"object","required":["query"],"properties":{"query":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false},{"title":"Program","description":"If not broken, returns the law program location information.","type":"string","enum":["program"]}]},"migrate":null,"sudo":null,"responses":{"ask":{"$schema":"http://json-schema.org/draft-07/schema#","title":"AskResponse","type":"object","required":["gas_used","height"],"properties":{"answer":{"anyOf":[{"$ref":"./okp4-law-stone.json/#/definitions/Answer"},{"type":"null"}]},"gas_used":{"type":"integer","format":"uint64","minimum":0},"height":{"type":"integer","format":"uint64","minimum":0}},"definitions":{"Answer":{"type":"object","required":["has_more","results","success","variables"],"properties":{"has_more":{"type":"boolean"},"results":{"type":"array","items":{"$ref":"./okp4-law-stone.json/#/definitions/Result"}},"success":{"type":"boolean"},"variables":{"type":"array","items":{"type":"string"}}}},"Result":{"type":"object","required":["substitutions"],"properties":{"substitutions":{"type":"array","items":{"$ref":"./okp4-law-stone.json/#/definitions/Substitution"}}}},"Substitution":{"type":"object","required":["term","variable"],"properties":{"term":{"$ref":"./okp4-law-stone.json/#/definitions/Term"},"variable":{"type":"string"}}},"Term":{"type":"object","required":["arguments","name"],"properties":{"arguments":{"type":"array","items":{"$ref":"./okp4-law-stone.json/#/definitions/Term"}},"name":{"type":"string"}}}}},"program":{"$schema":"http://json-schema.org/draft-07/schema#","title":"ProgramResponse","description":"ProgramResponse carry elements to locate the program in a `okp4-objectarium` contract.","type":"object","required":["object_id","storage_address"],"properties":{"object_id":{"description":"The program object id in the `okp4-objectarium` contract.","type":"string"},"storage_address":{"description":"The `okp4-objectarium` contract address on which the law program is stored.","type":"string"}},"additionalProperties":false}},"description":"# Law Stone\n\n## Overview\n\nThe `okp4-law-stone` smart contract aims to provide GaaS (i.e. Governance as a Service) in any [Cosmos blockchains](https://cosmos.network/) using the [CosmWasm](https://cosmwasm.com/) framework and the [Logic](https://docs.okp4.network/modules/next/logic) OKP4 module.\n\nThis contract is built around a Prolog program describing the law by rules and facts. The law stone is immutable, this means it can only been questioned, there is no update mechanisms.\n\nThe `okp4-law-stone` responsibility is to guarantee the availability of its rules in order to question them, but not to ensure the rules application.\n\nTo ensure reliability over time, the associated Prolog program is stored and pinned in a `okp4-objectarium` contract. Moreover, all the eventual loaded files must be stored in a `okp4-objectarium` contract as well, allowing the contract to pin them.\n\nTo be able to free the underlying resources (i.e. objects in `okp4-objectarium`) if not used anymore, the contract admin can break the stone.\n\n➡️ Checkout the [examples](https://github.com/okp4/contracts/tree/main/contracts/okp4-law-stone/examples/) for usage information.","title":"okp4-law-stone"}
1+
{"contract_name":"okp4-law-stone","contract_version":"2.1.0","idl_version":"1.0.0","instantiate":{"$schema":"http://json-schema.org/draft-07/schema#","title":"InstantiateMsg","description":"Instantiate message","type":"object","required":["program","storage_address"],"properties":{"program":{"description":"The Prolog program carrying law rules and facts.","allOf":[{"$ref":"./okp4-law-stone.json/#/definitions/Binary"}]},"storage_address":{"description":"The `okp4-objectarium` contract address on which to store the law program.","type":"string"}},"additionalProperties":false,"definitions":{"Binary":{"description":"Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec<u8>. See also <https://github.com/CosmWasm/cosmwasm/blob/main/docs/MESSAGE_TYPES.md>.","type":"string"}}},"execute":{"$schema":"http://json-schema.org/draft-07/schema#","title":"ExecuteMsg","description":"Execute messages","oneOf":[{"title":"BreakStone","description":"Break the stone making this contract unusable, by clearing all the related resources: - Unpin all the pinned objects on `okp4-objectarium` contracts, if any. - Forget the main program (i.e. or at least unpin it). Only the contract admin is authorized to break it, if any. If already broken, this is a no-op.","type":"string","enum":["break_stone"]}]},"query":{"$schema":"http://json-schema.org/draft-07/schema#","title":"QueryMsg","description":"Query messages","oneOf":[{"title":"Ask","description":"If not broken, ask the logic module the provided query with the law program loaded.","type":"object","required":["ask"],"properties":{"ask":{"type":"object","required":["query"],"properties":{"query":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false},{"title":"Program","description":"If not broken, returns the law program location information.","type":"string","enum":["program"]}]},"migrate":null,"sudo":null,"responses":{"ask":{"$schema":"http://json-schema.org/draft-07/schema#","title":"AskResponse","type":"object","required":["gas_used","height"],"properties":{"answer":{"anyOf":[{"$ref":"./okp4-law-stone.json/#/definitions/Answer"},{"type":"null"}]},"gas_used":{"type":"integer","format":"uint64","minimum":0},"height":{"type":"integer","format":"uint64","minimum":0}},"definitions":{"Answer":{"type":"object","required":["has_more","results","success","variables"],"properties":{"has_more":{"type":"boolean"},"results":{"type":"array","items":{"$ref":"./okp4-law-stone.json/#/definitions/Result"}},"success":{"type":"boolean"},"variables":{"type":"array","items":{"type":"string"}}}},"Result":{"type":"object","required":["substitutions"],"properties":{"substitutions":{"type":"array","items":{"$ref":"./okp4-law-stone.json/#/definitions/Substitution"}}}},"Substitution":{"type":"object","required":["term","variable"],"properties":{"term":{"$ref":"./okp4-law-stone.json/#/definitions/Term"},"variable":{"type":"string"}}},"Term":{"type":"object","required":["arguments","name"],"properties":{"arguments":{"type":"array","items":{"$ref":"./okp4-law-stone.json/#/definitions/Term"}},"name":{"type":"string"}}}}},"program":{"$schema":"http://json-schema.org/draft-07/schema#","title":"ProgramResponse","description":"ProgramResponse carry elements to locate the program in a `okp4-objectarium` contract.","type":"object","required":["object_id","storage_address"],"properties":{"object_id":{"description":"The program object id in the `okp4-objectarium` contract.","type":"string"},"storage_address":{"description":"The `okp4-objectarium` contract address on which the law program is stored.","type":"string"}},"additionalProperties":false}},"description":"# Law Stone\n\n## Overview\n\nThe `okp4-law-stone` smart contract aims to provide GaaS (i.e. Governance as a Service) in any [Cosmos blockchains](https://cosmos.network/) using the [CosmWasm](https://cosmwasm.com/) framework and the [Logic](https://docs.okp4.network/modules/next/logic) OKP4 module.\n\nThis contract is built around a Prolog program describing the law by rules and facts. The law stone is immutable, this means it can only been questioned, there is no update mechanisms.\n\nThe `okp4-law-stone` responsibility is to guarantee the availability of its rules in order to question them, but not to ensure the rules application.\n\nTo ensure reliability over time, the associated Prolog program is stored and pinned in a `okp4-objectarium` contract. Moreover, all the eventual loaded files must be stored in a `okp4-objectarium` contract as well, allowing the contract to pin them.\n\nTo be able to free the underlying resources (i.e. objects in `okp4-objectarium`) if not used anymore, the contract admin can break the stone.\n\n➡️ Checkout the [examples](https://github.com/okp4/contracts/tree/main/contracts/okp4-law-stone/examples/) for usage information.","title":"okp4-law-stone"}

‎docs/schema/okp4-objectarium.json

+1-1
Large diffs are not rendered by default.

‎packages/okp4-logic-bindings/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["OKP4"]
33
edition = "2021"
44
name = "okp4-logic-bindings"
5-
version = "2.0.0"
5+
version = "2.1.0"
66

77
[dependencies]
88
cosmwasm-std.workspace = true

‎packages/okp4-objectarium-client/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["OKP4"]
33
edition = "2021"
44
name = "okp4-objectarium-client"
5-
version = "2.0.0"
5+
version = "2.1.0"
66

77
[dependencies]
88
cosmwasm-std.workspace = true

0 commit comments

Comments
 (0)
Please sign in to comment.