Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/boscore/ibc_contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
justfortest2 committed Apr 9, 2020
2 parents 66d9770 + a4d2e06 commit 3c0bc1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
9 changes: 6 additions & 3 deletions docs/Upgrade_v3_to_v4.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Upgrade_v3_to_v4
----------------

## Overview

In v4, the definitions of tables `accept` and `stats` have been modified,
so we need to delete these two tables first, then deploy ibc.token v4 contract and set the corresponding values of the tables.
Expand All @@ -26,14 +26,17 @@ this branch add a new action:
cleos push action <ibc_token_contract> deltokentbl '[]' -p <some_account>
```


#### Step4: set v4 ibc.token contract


#### Step5: register token
register accepts and pegtokens again use the data obtained previously
```
cleos push action <ibc_token_contract> regacpttoken '[....]' ...
cleos push action <ibc_token_contract> regpegtoken '[....]' ...
```

## Guide

This article give a detail and directive steps to upgrade EOS & BOS & TELOS.

[ibc_token_upgrade_v3_to_v4.md](mainnet_upgrade/ibc_token_upgrade_v3_to_v4.md)
5 changes: 2 additions & 3 deletions docs/mainnet_upgrade/ibc_token_upgrade_v3_to_v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ cleos_eos='cleos -u http://peer1.eoshuobipool.com:8181'
base_dir=/Users/song/Code/github.com/boscore/bos.contract-prebuild/bosibc
```

set global active false
set global active false to pause IBC function for the upgrading.
```
$cleos_eos push action bosibc.io setglobal '["eos",false]' -p bosibc.io
```
Expand Down Expand Up @@ -264,12 +264,11 @@ $cleos_eos push action bosibc.io regpegtoken \
```

#### step end
set global active true
set global active true to enable IBC function.
```
$cleos_eos push action bosibc.io setglobal '["eos",true]' -p bosibc.io
```


### 2. BOSCORE mainnet ibc.token upgrade process

#### step 1 : set global and get info
Expand Down

0 comments on commit 3c0bc1f

Please sign in to comment.