Skip to content

Commit

Permalink
chore: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lukepark327 committed Jul 26, 2024
1 parent 1d10bc6 commit 05ea1be
Showing 1 changed file with 59 additions and 4 deletions.
63 changes: 59 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,47 @@

<!-- TBD -->

---
<!--
AI-driven title and description
-->

<!--
// Callee
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum OtherContractExecuteMsg {
ReceiveOutput { output: String },
}
-->

<!--
- AI 상호작용으로 대화형으로 js 배포 및 사용
-- AI 상호작용으로 자연어로부터 코드 생성
-- AI 상호작용으로 js 코드 포맷에 맞게 수정
- CLI (archway-cli 처럼 혹은 통합)
-->

## Interface

```
pub enum OtherContractExecuteMsg {
ReceiveOutput { output: String },
}
```

This interface allows for the transmission of JavaScript code execution results to another contract.
When minting, it is mandatory to set the `destination` field (address of the other contract).

# Quick Start
---

## Deploy
# Deploy

```bash
$ archway contracts build
Expand All @@ -22,11 +58,13 @@ $ archway contracts instantiate gateway721 --args '{
## Metadata & Premiums

```bash
$ archway contracts metadata gateway721 --owner-address "archway1dqqfypr9a98czeh23a64eh6a0y7cqhycrzsm6a" --rewards-address "archway1dqqfypr9a98czeh23a64eh6a0y7cqhycrzsm6a"
$ archway contracts metadata gateway721 --owner-address "archway1r0cmlns8ta3hckzlpalennsxxv5erfgnz3qq0s" --rewards-address "archway1r0cmlns8ta3hckzlpalennsxxv5erfgnz3qq0s"

# archway contracts premium gateway721 --premium-fee "1000000000000000000aconst"
```

# Examples

## Execute

```bash
Expand Down Expand Up @@ -57,6 +95,20 @@ $ archway contracts execute gateway721 --args '{
}
}'

$ archway contracts execute gateway721 --args '{
"request": {
"token_id": "0",
"input": "{ \"a\": 1, \"b\": 2 }"
}
}'

$ archway contracts execute gateway721 --args '{
"request": {
"token_id": "1",
"input": "{ \"radius\": 10 }"
}
}'

$ archway contracts execute gateway721 --args '{
"response": {
"token_id": "0",
Expand Down Expand Up @@ -88,4 +140,7 @@ $ archway contracts query smart gateway721 --args '{
"token_id": "0"
}
}'

$ archway contracts query smart gateway721 --args '{"incomplete_projects": {}}'
$ archway contracts query smart gateway721 --args '{"num_tokens": {}}'
```

0 comments on commit 05ea1be

Please sign in to comment.