Skip to content

Commit

Permalink
Rename membrane to MOST (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofziobro authored Dec 12, 2023
1 parent 9106541 commit b638d6a
Show file tree
Hide file tree
Showing 28 changed files with 408 additions and 406 deletions.
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,19 @@ setup-eth: compile-eth
cd eth && \
npx hardhat run --network $(NETWORK) scripts/2_setup_contracts.js

.PHONY: membrane-builder
membrane-builder: # Build an image in which contracts can be built
membrane-builder:
docker build -t membrane-builder -f docker/membrane_builder.dockerfile .
.PHONY: most-builder
most-builder: # Build an image in which contracts can be built
most-builder:
docker build -t most-builder -f docker/most_builder.dockerfile .

.PHONY: compile-azero-docker
compile-azero-docker: # Compile azero contracts in docker
compile-azero-docker: azero-deps membrane-builder
compile-azero-docker: azero-deps most-builder
docker run --rm --network host \
--volume "$(shell pwd)":/code \
--workdir /code \
--name membrane-builder \
membrane-builder \
--name most-builder \
most-builder \
make compile-azero

.PHONY: deploy-azero-docker
Expand Down Expand Up @@ -143,7 +143,7 @@ bridge: local-bridgenet deploy run-relayer
.PHONY: test-solidity
test-solidity: # Run solidity tests
test-solidity: eth-deps
cd eth && npx hardhat test ./test/Membrane.js ./test/WrappedEther.js
cd eth && npx hardhat test ./test/Most.js ./test/WrappedEther.js

.PHONY: test-ink-e2e
test-ink-e2e: # Run ink e2e tests
Expand All @@ -155,7 +155,7 @@ test-ink-e2e: bootstrap-azero
.PHONY: test-ink
test-ink: # Run ink tests
test-ink: test-ink-e2e
cd azero/contracts/membrane && \
cd azero/contracts/most && \
cargo test && \
cd ../governance && \
cargo test && \
Expand All @@ -180,7 +180,7 @@ relayer-lint: compile-azero-docker compile-eth
.PHONY: ink-lint
ink-lint: # Lint ink contracts
ink-lint:
cd azero/contracts/membrane && cargo clippy -- --no-deps -D warnings
cd azero/contracts/most && cargo clippy -- --no-deps -D warnings
cd azero/contracts/governance && cargo clippy -- --no-deps -D warnings
cd azero/contracts/token && cargo clippy -- --no-deps -D warnings
cd azero/contracts/psp22-traits && cargo clippy -- --no-deps -D warnings
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Built with ink!](https://raw.githubusercontent.com/paritytech/ink/master/.images/badge_flat.svg)](https://github.com/paritytech/ink)

# AlephZero Membrane (Guardian) Bridge
# AlephZero MOST (Guardian) Bridge

## Prerequisites

Expand All @@ -24,7 +24,7 @@ This will start a local development environment with the following components:
## Running local development chains

To run the development chain without deploying the contracts or running the relayer, run:

```bash
make devnet-eth
```
Expand Down Expand Up @@ -81,12 +81,12 @@ cd eth && npx hardhat console --network development
Interact with the deployed contracts instance:

```javascript
let Membrane = await ethers.getContractFactory("Membrane")
let membrane = Membrane.attach("insert contract address here")
let Most = await ethers.getContractFactory("Most")
let most = most.attach("insert contract address here")
let accounts = await ethers.getSigners();

await membrane.isGuardian(accounts[0])
await membrane.isGuardian(accounts[1])
await most.isGuardian(accounts[0])
await most.isGuardian(accounts[1])
```

To deploy the contracts on the azero chain:
Expand Down
2 changes: 1 addition & 1 deletion azero/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"projectFiles": ["contracts/membrane/*", "contracts/token/*", "contracts/governance/*"],
"projectFiles": ["contracts/most/*", "contracts/token/*", "contracts/governance/*"],
"typechainGeneratedPath": "types",
"workspacePath": "./contracts"
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "membrane"
name = "most"
version = "1.0.0"
authors = ["Cardinal Cryptography"]
edition = "2021"
Expand Down
Loading

0 comments on commit b638d6a

Please sign in to comment.