Skip to content

Commit

Permalink
docs: update draft docs for contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
bot-anik committed Oct 17, 2023
1 parent dc2aead commit 0789b93
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion contracts/okp4-law-stone.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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`)*
*Rendered by [Fadroma](https://fadroma.tech) ([@fadroma/schema 1.1.0](https://www.npmjs.com/package/@fadroma/schema)) from `okp4-law-stone.json` (`092608edf6c36d25`)*

0 comments on commit 0789b93

Please sign in to comment.