Skip to content

Commit 33cb0b4

Browse files
authored
Merge pull request #11 from oraichain/feat/relayer-fee
Feat/relayer fee
2 parents f587f19 + 6e1520f commit 33cb0b4

File tree

14 files changed

+1891
-1077
lines changed

14 files changed

+1891
-1077
lines changed

Cargo.lock

Lines changed: 11 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# IBC transfer flow:
22

33
Let's assume the network that has the contract cw20-ics20 deployed is network B, the other network is A.
4+
5+
In the source code, we call the network having cw20-ics20 deployed local chain, other networks are remote chains.
6+
47
In the cw-ics20-latest contract, there are couple transfer flows in the code below:
58

69
## Network A transfers native tokens to B first (A->B, where native token is not IBC token)
@@ -26,3 +29,5 @@ This is really important because by using the CosmosMsg, we force the `allow_con
2629
If we use CosmosMsg, then the acknowledgement packet will fail entirely, and it will be retried by the relayer as long as we fix the `allow_contract`.
2730

2831
Normally, if it is a `ibctransfer` application developed as a submodule in Cosmos SDK, then the refund part must not fail, and we can trust that it will not fail. However, the `allow_contract` can be developed by anyone, and can be replaced => cannot be trusted.
32+
33+
# build packages

contracts/cw-ics20-latest/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ cosmwasm-schema = "1.1.9"
2222
cw-utils = "0.16.0"
2323
cw2 = "1.0.1"
2424
cw20 = "1.0.1"
25-
cw20-ics20-msg = "0.0.2"
26-
oraiswap = "1.0.0"
25+
cw20-ics20-msg = { path = "../../packages/cw20-ics20-msg" }
26+
oraiswap = "1.0.1"
2727
cosmwasm-std = { version = "1.1.0", features = ["stargate"] }
2828
cw-storage-plus = "1.0.1"
2929
cw-controllers = "1.0.1"

0 commit comments

Comments
 (0)