Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jackallabs/retriever-contract
RNS Name Service is an IBC name resolver that allows Cosmos addresses to be wrapped neatly into a human readable name.
https://github.com/jackallabs/retriever-contract
blockchain cosmos domain ibc juno name network secret service
Last synced: about 1 month ago
JSON representation
RNS Name Service is an IBC name resolver that allows Cosmos addresses to be wrapped neatly into a human readable name.
- Host: GitHub
- URL: https://github.com/jackallabs/retriever-contract
- Owner: JackalLabs
- License: apache-2.0
- Created: 2022-03-04T16:12:31.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-01T18:31:15.000Z (over 1 year ago)
- Last Synced: 2024-04-02T15:07:37.420Z (10 months ago)
- Topics: blockchain, cosmos, domain, ibc, juno, name, network, secret, service
- Language: Rust
- Homepage:
- Size: 545 KB
- Stars: 7
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RNS Name Service (RNS)
## Deploying the contract
Assuming you have a recent version of rust and cargo (v1.55.0+) installed
(via [rustup](https://rustup.rs/)),### Storing
```
junod tx wasm store ibc_name_service.wasm --from test --chain-id=uni-2 --gas auto
```### Instantiating
```
junod tx wasm instantiate 472 '{"blocks_per_year": 5048093, "meta_url": "https://nameserviceimage.jackaldao.com", "denom": "ujunox"}' --amount 50000ujunox --label "JACKAL Name Service" --from test --chain-id uni-2 --gas 1000000 --gas-prices 0.075ujunox -y
```### Queries
#### Contract State
```
junod query wasm contract-state smart juno1qr76sfjnr40xulzlymm2ehx5wxwv8pyqnlah5smqtnfrq446guvs42xc6l '{"contract_info": {}}'
```
#### Token Info
```
junod query wasm contract-state smart juno1qr76sfjnr40xulzlymm2ehx5wxwv8pyqnlah5smqtnfrq446guvs42xc6l '{"nft_info": {"token_id": "jackal"}}'
```
#### Resolves only the JUNO address
```
junod query wasm contract-state smart juno1qr76sfjnr40xulzlymm2ehx5wxwv8pyqnlah5smqtnfrq446guvs42xc6l '{"resolve_name": {"name": "jackal"}}'
```
#### Resolves entire metadata
```
junod query wasm contract-state smart juno1qr76sfjnr40xulzlymm2ehx5wxwv8pyqnlah5smqtnfrq446guvs42xc6l '{"resolve_attributes": {"name": "jackal"}}'
```### Executions
#### Register Name
```
junod tx wasm execute juno1qr76sfjnr40xulzlymm2ehx5wxwv8pyqnlah5smqtnfrq446guvs42xc6l'{"register_name": {"name": "jackal", "years": 2}}' --from test --chain-id uni-2 --gas 1000000 --gas-prices 0.075ujunox --amount 312500ujunox
```