Skip to content

Commit

Permalink
change address prefix to shentu (#718)
Browse files Browse the repository at this point in the history
* change address prefix to shentu

* Migrate shield (#738)

* migrate shield certik prefix to shentu

* migrate shield certik prefix to shentu

* migrate shield certik prefix to shentu

* migrate shield stored prefix to shentu

* sort import files

* update ConsensusVersion

* update pool migration

* change v280 to v4

* add v4_test package

* migrate oracle certik prefix to shentu (#740)

* migrate oracle certik prefix to shentu

* update ConsensusVersion

* update operator migration

* add oracle withdraw migration

* sort imports

* change v280 to v3

* add v3

* migrate cert stored prefix to shentu (#739)

* migrate cert stored prefix to shentu

* sort import files

* update ConsensusVersion

* add cert library migration

* change v280 to v2

* migrate certificate.content

* [prefix-trans]migrate store for staking, gov and feegrant (#747)

* initially add staking store migration

* finish store migration for staking

* add store migration for feegrant and gov

* add unit test

* fix feegrant unit test

* fix lint

* using cosmos sdk 0.45.11-3

* add negative tests

* change impl for feegrant

* simplify code

* Store migration for slashing, auth and authz (#746)

* Store migration for slashing, auth and authz

---------

Co-authored-by: zheng-bin <wenwubinzheng@gmail.com>

* skip empty certificate's proposer (#749)

add v3

* change migration certificate MustMarshalLengthPrefixed function  to M… (#750)

* change migration certificate MustMarshalLengthPrefixed function  to MustMarshal function

* change migration certificate MustMarshalLengthPrefixed function  to MustMarshal function

* Shentu prefix revoke certificate (#754)

* fix revoke-certificate, platform cmd

* fix revoke-certificate, platform cmd

* fix revoke-certificate, platform cmd

* Replace certik word (#752)

* replace shentu

* change to shentu word

* change to shentu word

* replace to shentu

* add address prefix conversion for specific gov proposal content (#758)

* add address conversion for specific proposal contens

* add more negative test

---------

Co-authored-by: haozhan9 <zhanghao_tt@sina.com>
Co-authored-by: zheng-bin <wenwubinzheng@gmail.com>
  • Loading branch information
3 people authored Aug 24, 2023
1 parent 7ef6233 commit e12ab00
Show file tree
Hide file tree
Showing 84 changed files with 2,622 additions and 593 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# include:
# - targetos: windows
# arch: amd64
name: certik ${{ matrix.arch }} for ${{ matrix.targetos }}
name: shentud ${{ matrix.arch }} for ${{ matrix.targetos }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4.0.1
Expand All @@ -33,7 +33,7 @@ jobs:
GOOS: ${{ matrix.targetos }}
GOARCH: ${{ matrix.arch }}

- name: Compile certik binary
- name: Compile shentud binary
run: |
go mod download
cd app/shentud/cmd
Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at chain@certik.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ Response:
Height: 169
TxHash: 8067DBC001BE239E5A44843CCEF4C71A87B802352989F97664AF8F265E7B888E
Data: 07BC7F3C21C34643A90AA1138C950FAC5025B693
Raw Log: [{"msg_index":"0","success":true,"log":"certik1q77870ppcdry82g25yfce9g043gztd5nd3z8uy"}]
Logs: [{"msg_index":0,"success":true,"log":"certik1q77870ppcdry82g25yfce9g043gztd5nd3z8uy"}]
Raw Log: [{"msg_index":"0","success":true,"log":"shentu1q77870ppcdry82g25yfce9g043gztd5n99x7we"}]
Logs: [{"msg_index":0,"success":true,"log":"shentu1q77870ppcdry82g25yfce9g043gztd5n99x7we"}]
GasWanted: 200000
GasUsed: 41849
Tags:
Expand All @@ -263,10 +263,10 @@ Response:
Timestamp: 2019-06-27T16:05:27Z
```

To inspect contract code bytes deployed at `certik1q77870ppcdry82g25yfce9g043gztd5nd3z8uy`
To inspect contract code bytes deployed at `shentu1q77870ppcdry82g25yfce9g043gztd5n99x7we`

```bash
$ shentud query cvm code certik1q77870ppcdry82g25yfce9g043gztd5nd3z8uy
$ shentud query cvm code shentu1q77870ppcdry82g25yfce9g043gztd5n99x7we
6080604052348015600F57600080FD5B506004361060325760003560E01C806360FE47B114603757
80636D4CE63C146062575B600080FD5B606060048036036020811015604B57600080FD5B81019080
80359060200190929190505050607E565B005B60686088565B604051808281526020019150506040
Expand All @@ -277,14 +277,14 @@ $ shentud query cvm code certik1q77870ppcdry82g25yfce9g043gztd5nd3z8uy
To call `SimpleStorage.set(123)` at the contract

```bash
$ shentud tx cvm call certik1q77870ppcdry82g25yfce9g043gztd5nd3z8uy set 123 --from node0
$ shentud tx cvm call shentu1q77870ppcdry82g25yfce9g043gztd5n99x7we set 123 --from node0
```

Then we can verify the storage setting by calling `SimpleStorage.get()` at the
contract

```bash
$ shentud tx cvm call certik1q77870ppcdry82g25yfce9g043gztd5nd3z8uy get --from node0
$ shentud tx cvm call shentu1q77870ppcdry82g25yfce9g043gztd5n99x7we get --from node0
Response:
TxHash: 6EAABFDF5022F21F88D9DBBE8A0837F3CF6819F06F801BEF301188F22DF16C9B
```
Expand Down
4 changes: 2 additions & 2 deletions app/shentud/cmd/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ type replacementKeys []map[string]interface{}
sample replacement key json
[
{"pub_key": {"@type":"/cosmos.crypto.ed25519.PubKey","key":"ggUAGDemAsE3poIz6sIhvZ66v3wzQh1eaJwHs6u5dI8="},
"valoper": "certikvaloper17dtr2l33v7zc6jwcajtex8jc2ena0msygjrcl5"},
"valoper": "shentuvaloper17dtr2l33v7zc6jwcajtex8jc2ena0msyd20rw7"},
{"pub_key": {"@type":"/cosmos.crypto.ed25519.PubKey","key":"dcRpDFrR/i5e6zYEhIduQ73bAVMNuO7YttDT8O/Bkjo="},
"valoper": "certikvaloper1v8yvepuclny9aycq5p7hthe25cer6tprky62nn"}
"valoper": "shentuvaloper1v8yvepuclny9aycq5p7hthe25cer6tprnuk3ze"}
]
*/
Expand Down
Loading

0 comments on commit e12ab00

Please sign in to comment.