Skip to content

Commit

Permalink
msig_court artifacts; build, verify & deploy instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
kacperzuk-neti committed Oct 3, 2024
1 parent 3eb7784 commit 02abe3e
Show file tree
Hide file tree
Showing 12 changed files with 1,515 additions and 1,059 deletions.
1,046 changes: 0 additions & 1,046 deletions contracts/Cargo.lock

This file was deleted.

6 changes: 0 additions & 6 deletions contracts/Cargo.toml

This file was deleted.

10 changes: 10 additions & 0 deletions contracts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Deploying contracts to production

1. Open https://ui.use.ink/
2. Connect to network you want to deploy to
3. Click `Add New Contract` -> `Upload New Contract Code`
4. Select deployer account
5. Give some descriptive name (this will only be stored in local browser, not public)
6. Upload `*.contract` file from the `artifacts/` directory as Contract Bundle
7. Click `Next` -> `Next` -> `Upload & Instantiate`
8. Update contract's README.md with the new address if applicable
2 changes: 2 additions & 0 deletions contracts/msig_court/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ version = "0.1.0"
authors = ["[your_name] <[your_email]>"]
edition = "2021"

[workspace]

[dependencies]
ink = { version = "5.0.0", default-features = false }
liberland-extension = { path = "../../liberland-extension/ink", default-features = false}
Expand Down
26 changes: 26 additions & 0 deletions contracts/msig_court/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Multisig Court

This repository contains an ink! smart contract for Liberland blockchain which acts as a simplified court for force transferring staked LLM.

The artifacts folder contains the exact compiled binary that has been deployed, as well as all other compilation artifacts for verification purposes.

Contract is deployed on:
* Bastiat: TBD
* Mainnet: TBD

# Building

Run in root of the repository (NOT in the `contracts` directory):
```
cargo install --force --locked cargo-contract
cargo contract build --verifiable --manifest-path ./contracts/msig_court/Cargo.toml
```

Build output can be found in `./contracts/msig_court/target/ink`.

# Verifying integrity

Run in root of the repository (NOT in the `contracts` directory):
```
cargo contract verify --contract=./contracts/msig_court/artifacts/msig_court.contract --manifest-path=./contracts/msig_court/Cargo.toml
```
1 change: 1 addition & 0 deletions contracts/msig_court/artifacts/msig_court.contract

Large diffs are not rendered by default.

Loading

0 comments on commit 02abe3e

Please sign in to comment.