From 0789b93cd02a6943db3c951e7f19da326c3370e8 Mon Sep 17 00:00:00 2001 From: Bot Anik <98603954+bot-anik@users.noreply.github.com> Date: Tue, 17 Oct 2023 12:36:28 +0000 Subject: [PATCH] docs: update draft docs for contracts --- contracts/okp4-law-stone.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/contracts/okp4-law-stone.md b/contracts/okp4-law-stone.md index d1a628a8f98..8297613cc34 100644 --- a/contracts/okp4-law-stone.md +++ b/contracts/okp4-law-stone.md @@ -56,6 +56,14 @@ If not broken, returns the law program location information. |-------| |`"program"`| +### QueryMsg::ProgramCode + +ProgramCode returns the law program code. + +|literal| +|-------| +|`"program_code"`| + ## Responses ### ask @@ -77,6 +85,16 @@ ProgramResponse carry elements to locate the program in a `okp4-objectarium` con |`object_id`|*(Required.) * **string**. The program object id in the `okp4-objectarium` contract.| |`storage_address`|*(Required.) * **string**. The `okp4-objectarium` contract address on which the law program is stored.| +### program_code + +Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline. + +This 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**.| + ## Definitions ### Answer @@ -126,4 +144,4 @@ A string containing Base64-encoded data. --- -*Rendered by [Fadroma](https://fadroma.tech) ([@fadroma/schema 1.1.0](https://www.npmjs.com/package/@fadroma/schema)) from `okp4-law-stone.json` (`023b72150b485c6b`)* \ No newline at end of file +*Rendered by [Fadroma](https://fadroma.tech) ([@fadroma/schema 1.1.0](https://www.npmjs.com/package/@fadroma/schema)) from `okp4-law-stone.json` (`092608edf6c36d25`)* \ No newline at end of file