Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/archway-network/contract-register
Register of CW contracts deployed on Archway.
https://github.com/archway-network/contract-register
Last synced: 1 day ago
JSON representation
Register of CW contracts deployed on Archway.
- Host: GitHub
- URL: https://github.com/archway-network/contract-register
- Owner: archway-network
- License: apache-2.0
- Created: 2023-10-11T07:34:05.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-26T16:55:34.000Z (about 1 year ago)
- Last Synced: 2024-08-04T03:03:55.703Z (3 months ago)
- Size: 106 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# contract-register
Register of CW contracts deployed on Archway.The following [GitHub Issue](https://github.com/archway-network/archway/issues/471) describes an Archway Improvement Proposal (AIP) for the inclusion of a module which can be used by contract deployers to provide metadata about their contracts.
This repository follows the same technical specification format to ensure future compatibility with such a module.
The repository directory is structured as follows:
```
.
|-- LICENSE
|-- README.md
|-- mainnet
| |-- 1 # this corresponds to the code id on mainnet
| |-- metadata.json # this will hold the metadata object as below
| |-- schema.json # this will hold schema document contents for the code id
| |-- contracts.json # this will hold all the instances of the contracts
| |-- 2
| |-- 3
| |-- ...
|-- testnet
| |-- ...
| |-- x # this corresponds to the code id on testnet
| |-- metadata.json # this will hold the metadata object as below
| |-- schema.json # this will hold schema document contents for the code id
| |-- contracts.json # this will hold all the instances of the contracts
| |-- ...
```## Register your contracts
- Create a directory under the corresponding network using the appropriate code id;
- Create the following files in this new directory:
1. `metadata.json` - contains metadata object;
2. `schema.json` - contains schema contents for corresponding code id;
3. `contracts.json` - contains instances of deployed contracts;
- Create a PR to get it merged into this repository;`metadata.json` example:
```json
{
"code_id": ,
"source": {
"repository": "https://github.com/archway-network/archway",
"tag": "v1.0.2",
"license": "Apache-2.0"
},
"source_builder": {
"image": "cosmwasm/rust-optimizer",
"tag": "0.12.6",
"contract_name": "counter.wasm"
},
"schema": "",
"contacts": [
"[email protected]",
"[email protected]",
]
}
````contracts.json` example:
```json
[
{
"label": "My Contract",
"address": "archway1...",
"memo": "Any additional information to provide more context, e.g. Responsible for the voting mechanism of x multisig."
}
]
```