archid-registry

Crates.ioarchid-registry
lib.rsarchid-registry
version1.0.4
sourcesrc
created_at2023-08-03 18:11:43.528132
updated_at2024-06-17 16:26:06.033865
descriptionArchID name service registry contract
homepagehttps://archid.app
repositoryhttps://github.com/archid-protocol/archid-registry
max_upload_size
id933907
size143,060
Drew Taylor (drewstaylor)

documentation

https://docs.rs/archid-registry/latest/archid_registry

README

ArchID Name Service for Archway Network

Deployed mainnet contract (archway-1):

archway1275jwjpktae4y4y0cdq274a2m0jnpekhttnfuljm6n59wnpyd62qppqxq0

Deployed testnet contract (constantine-3):

archway1lr8rstt40s697hqpedv2nvt27f4cuccqwvly9gnvuszxmcevrlns60xw4r

Instantiate Registry contract:

# Using Archway Developer CLI
archway instantiate --args '{ "admin": "archway1f395p0gg67mmfd5zcqvpnp9cxnu0hg6r9hfczq", "wallet": "archway1f395p0gg67mmfd5zcqvpnp9cxnu0hg6r9hfczq", "cw721": "tbd", "base_cost": "250000000000000000", "base_expiration": 31536000 }'

Configure Registry contract:

# Using archwayd (e.g. add correct "cw721" value)
archwayd tx wasm execute archway1lr8rstt40s697hqpedv2nvt27f4cuccqwvly9gnvuszxmcevrlns60xw4r '{ "update_config": { "config": { "admin": "archway1f395p0gg67mmfd5zcqvpnp9cxnu0hg6r9hfczq", "wallet": "archway1f395p0gg67mmfd5zcqvpnp9cxnu0hg6r9hfczq", "cw721": "archway146htsfvftmq8fl26977w9xgdwmsptr2quuf7yyra4j0gttx32z3secq008", "base_cost": "250000000000000000", "base_expiration": 31536000 } } }' --from keplr --chain-id "constantine-3" --node "https://rpc.constantine.archway.tech:443" --broadcast-mode sync --output json -y --gas-prices $(archwayd q rewards estimate-fees 1 --node 'https://rpc.constantine.archway.tech:443' --output json | jq -r '.gas_unit_price | (.amount + .denom)')

Register a domain:

# Using Archway Developer CLI
archway tx --args '{ "register": {"name": "archid"}}'
# Using archwayd
 archwayd tx wasm execute archway1lr8rstt40s697hqpedv2nvt27f4cuccqwvly9gnvuszxmcevrlns60xw4r '{"register": {"name": "archid"}}' --from keplr --chain-id "constantine-3" --node "https://rpc.constantine.archway.tech:443" --broadcast-mode sync --output json -y --gas-prices $(archwayd q rewards estimate-fees 1 --node 'https://rpc.constantine.archway.tech:443' --output json | jq -r '.gas_unit_price | (.amount + .denom)')

Resolve a record:

# Using Archway Developer CLI
archway query contract-state smart --args '{"resolve_record": { "name": "archid.arch" }}'
# Using archwayd
archwayd query wasm contract-state smart "archway1lr8rstt40s697hqpedv2nvt27f4cuccqwvly9gnvuszxmcevrlns60xw4r" '{"resolve_record": { "name": "archid.arch" }}' --node "https://rpc.constantine.archway.tech:443"
Commit count: 163

cargo fmt