Skip to content

Commit 49c09a9

Browse files
authored
Change ChainDescriptions into blobs (#3787)
## Motivation This will allow for easier initialization of the network at genesis, among other things. ## Proposal `ChainDescription` will become a blob, and `OpenChain` messages will be removed. Calling `open_chain` will create the blob, and the chain will actually get initialized when a block is proposed for it. ## Test Plan Should be covered by CI. ## Release Plan - Nothing to do / These changes follow the usual release cycle. ## Links - [reviewer checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist) - #2390
1 parent b780463 commit 49c09a9

File tree

100 files changed

+3589
-3359
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+3589
-3359
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
cargo build --bin linera
6565
cargo run --bin linera -- resource-control-policy --block 0.0000001
6666
cargo run --bin linera -- resource-control-policy --block 0.000000
67-
cargo run --bin linera -- faucet --amount 1000 --port 8079 a3edc33d8e951a1139333be8a4b56646b5598a8f51216e86592d881808972b07 &
67+
cargo run --bin linera -- faucet --amount 1000 --port 8079 &
6868
- name: Run the remote-net tests
6969
run: |
7070
cargo test -p linera-service remote_net_grpc --features remote-net

CLI.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,12 +720,12 @@ Create an unassigned key pair
720720

721721
Link an owner with a key pair in the wallet to a chain that was created for that owner
722722

723-
**Usage:** `linera assign --owner <OWNER> --message-id <MESSAGE_ID>`
723+
**Usage:** `linera assign --owner <OWNER> --chain-id <CHAIN_ID>`
724724

725725
###### **Options:**
726726

727727
* `--owner <OWNER>` — The owner to assign
728-
* `--message-id <MESSAGE_ID>` — The ID of the message that created the chain. (This uniquely describes the chain and where it was created.)
728+
* `--chain-id <CHAIN_ID>` — The ID of the chain
729729

730730

731731

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ linera wallet init --faucet $FAUCET_URL
9999
INFO1=($(linera wallet request-chain --faucet $FAUCET_URL))
100100
INFO2=($(linera wallet request-chain --faucet $FAUCET_URL))
101101
CHAIN1="${INFO1[0]}"
102-
ACCOUNT1="${INFO1[3]}"
102+
ACCOUNT1="${INFO1[2]}"
103103
CHAIN2="${INFO2[0]}"
104-
ACCOUNT2="${INFO2[3]}"
104+
ACCOUNT2="${INFO2[2]}"
105105

106106
# Show the different chains tracked by the wallet.
107107
linera wallet show

examples/Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
resolver = "2"
33
members = [
44
"amm",
5-
"counter",
65
"call-evm-counter",
6+
"counter",
77
"counter-no-graphql",
88
"crowd-funding",
99
"ethereum-tracker",
1010
"fungible",
1111
"gen-nft",
12-
"how-to/perform-http-requests",
1312
"hex-game",
13+
"how-to/perform-http-requests",
1414
"llm",
1515
"matching-engine",
1616
"meta-counter",

examples/amm/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ INFO_2=($(linera wallet request-chain --faucet $FAUCET_URL))
6464
CHAIN_AMM="${INFO_AMM[0]}"
6565
CHAIN_1="${INFO_1[0]}"
6666
CHAIN_2="${INFO_2[0]}"
67-
OWNER_AMM="${INFO_AMM[3]}"
68-
OWNER_1="${INFO_1[3]}"
69-
OWNER_2="${INFO_2[3]}"
67+
OWNER_AMM="${INFO_AMM[2]}"
68+
OWNER_1="${INFO_1[2]}"
69+
OWNER_2="${INFO_2[2]}"
7070
```
7171

7272
Now we have to publish and create the fungible applications. The flag `--wait-for-outgoing-messages` waits until a quorum of validators has confirmed that all sent cross-chain messages have been delivered.

examples/counter/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ linera wallet init --faucet $FAUCET_URL
4949

5050
INFO_1=($(linera wallet request-chain --faucet $FAUCET_URL))
5151
CHAIN_1="${INFO_1[0]}"
52-
OWNER_1="${INFO_1[3]}"
52+
OWNER_1="${INFO_1[2]}"
5353
```
5454

5555
Now, compile the `counter` application WebAssembly binaries, publish and create an application instance.

examples/crowd-funding/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ INFO_1=($(linera --with-wallet 1 wallet request-chain --faucet $FAUCET_URL))
7777
INFO_2=($(linera --with-wallet 2 wallet request-chain --faucet $FAUCET_URL))
7878
CHAIN_1="${INFO_1[0]}"
7979
CHAIN_2="${INFO_2[0]}"
80-
OWNER_1="${INFO_1[3]}"
81-
OWNER_2="${INFO_2[3]}"
80+
OWNER_1="${INFO_1[2]}"
81+
OWNER_2="${INFO_2[2]}"
8282
```
8383

8484
Note that `linera --with-wallet 1` is equivalent to `linera --wallet "$LINERA_WALLET_1"

examples/fungible/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ linera wallet init --faucet $FAUCET_URL
6464

6565
INFO_1=($(linera wallet request-chain --faucet $FAUCET_URL))
6666
CHAIN_1="${INFO_1[0]}"
67-
OWNER_1="${INFO_1[3]}"
67+
OWNER_1="${INFO_1[2]}"
6868
INFO_2=($(linera wallet request-chain --faucet $FAUCET_URL))
6969
CHAIN_2="${INFO_2[0]}"
70-
OWNER_2="${INFO_2[3]}"
70+
OWNER_2="${INFO_2[2]}"
7171
```
7272

7373
Now, compile the `fungible` application WebAssembly binaries, and publish them as an application

examples/gen-nft/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ INFO_1=($(linera wallet request-chain --faucet $FAUCET_URL))
6161
INFO_2=($(linera wallet request-chain --faucet $FAUCET_URL))
6262
CHAIN_1="${INFO_1[0]}"
6363
CHAIN_2="${INFO_2[0]}"
64-
OWNER_1="${INFO_1[3]}"
65-
OWNER_2="${INFO_2[3]}"
64+
OWNER_1="${INFO_1[2]}"
65+
OWNER_2="${INFO_2[2]}"
6666
```
6767

6868
Next, compile the `non-fungible` application WebAssembly binaries, and publish them as an application module:

0 commit comments

Comments
 (0)