Skip to content

Commit

Permalink
chore: replace commit hash with tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
liyukun committed Jan 23, 2024
1 parent b2e9bdf commit b562411
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 31 deletions.
23 changes: 1 addition & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,28 +54,7 @@ The versioning philosophy is **"Using code_hash as version"** for Spore Protocol

Make sure you are using the proper version you want, because there's no such an "upgrade/downgrade" method but we suggest to use "destroy/reconstruct" method instead, which requires no modification of any fields in Spore cell.

Our `forzen` versions of contract, which are our prior versions, can be found in [directory](https://github.com/sporeprotocol/spore-contract/tree/master/deployment/frozen) `./deployment/frozen`. To describe more clearly, the `frozen` information contains each avaliable `code_hash` generated from Spore contracts with corresponding commit hash for the rolling back help.

`./deployment/migration` recorded the deployment detail for each Spore contract. Here's a list about the newest versions:

#### Spore
Pudge Testnet:
- data_hash: `0xa32df38d2de1da82cbcb9e4467f8c18479596394eea977e471b75be5fe3e9c67`

#### Cluster
Pudge Testnet:
- data_hash: `0x5203a3baf931c15a809c4a0bb7041aebb73118281e31e8d104d926b8523977b1`

#### Cluster Proxy
Pudge Testnet:
- data_hash: `0x08e5cecab2bbdea9139534a822d46b82929e06f12f00c68343a88a58827cd3db`

#### Cluster Agent
- data_hash: `0x88850ac632eed604f0ad784394004db384d0eea8038a24eee83439687d79343f`

#### Mutant (Lua Extension)
Pudge Testnet:
- data_hash: `0x94a9b875911ace20f1f0d063a26495d14e4b04e32fd218261bb747f34e71ae47`
Our `forzen` versions of contract, which are our prior versions, can be found in [directory](https://github.com/sporeprotocol/spore-contract/tree/master/deployment/frozen) `./deployment/frozen`. To describe more clearly, the `frozen` information contains each avaliable `code_hash` generated from Spore contracts. Historical version refers to [here](https://github.com/sporeprotocol/spore-contract/blob/master/docs/VERSIONS.md).

In addition, using Mutant contract requires the binary of Lua library. Information are recorded [here](https://github.com/sporeprotocol/spore-contract/tree/master/contracts/spore_extension_lua/lua). For simplicity, it's already deployed in the Pudge Testnet:

Expand Down
1 change: 0 additions & 1 deletion deployment/frozen/mainnet.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# version v0.2.2
[[code_hash_list]]
commit_hash = "40ef57a2d3689740bf0c6fa47938e52948252179"
cluster = "7366a61534fa7c7e6225ecc0d828ea3b5366adec2b58206f2ee84995fe030075"
spore = "9cb02fa8621d79fff300b910d52665f594d3ad468142a66213cfaaca0409502c"
2 changes: 0 additions & 2 deletions deployment/frozen/testnet.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# version v0.1.0
[[code_hash_list]]
commit_hash = "457e32d23b5f401cad837e52a568281784943e18"
cluster = "598d793defef36e2eeba54a9b45130e4ca92822e1d193671f490950c3b856080"
spore = "bbad126377d45f90a8ee120da988a2d7332c78ba8fd679aab478a19d6c133494"

# version v0.2.1
[[code_hash_list]]
commit_hash = "53bfd4d4bbbee773ca10c1181982d9a27718826d"
cluster = "7366a61534fa7c7e6225ecc0d828ea3b5366adec2b58206f2ee84995fe030075"
spore = "5e063b4c0e7abeaa6a428df3b693521a3050934cf3b0ae97a800d1bc31449398"
cluster_agent = "c986099b41d79ca1b2a56ce5874bcda8175440a17298ea5e2bbc3897736b8c21"
Expand Down
4 changes: 0 additions & 4 deletions docs/VERSIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

## tag 0.2.1 (testnet)

commit hash: 53bfd4d4bbbee773ca10c1181982d9a27718826d

**spore**:
| | |
|-|-|
Expand Down Expand Up @@ -34,8 +32,6 @@ commit hash: 53bfd4d4bbbee773ca10c1181982d9a27718826d

## tag 0.2.2 (mainnet)

commit hash: 7867692a0e26b08cc713ece96cfb054b92a47337

**spore**:
| | |
|-|-|
Expand Down
2 changes: 0 additions & 2 deletions lib/build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ pub struct FrozenVersions {

#[derive(serde::Deserialize)]
pub struct PublishedCodeHash {
#[serde(rename(deserialize = "commit_hash"))]
_commit_hash: Option<String>,
#[serde(default)]
spore: String,
#[serde(default)]
Expand Down

0 comments on commit b562411

Please sign in to comment.