-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R4R: Implement BEP84 #809
R4R: Implement BEP84 #809
Conversation
8385ee7
to
eaa2cb5
Compare
// TODO: distribute fee | ||
|
||
return sdk.ExecuteResult{ | ||
Payload: ackPackage, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need more tags here to indicate what happend in this oracle claim. We have many oracle claims for one cross chain package, need to know which one take effect and what happens inside.
plugins/bridge/cross_app.go
Outdated
|
||
// TODO: distribute fee | ||
|
||
return sdk.ExecuteResult{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need more tags here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No ACK
package return here, I guess BSC is expecting aj ack package when sync success.
d7392b4
to
0736700
Compare
update cosmos dependency
register channel
update token supply
func (app *MirrorApp) checkMirrorSynPackage(ctx sdk.Context, mirrorPackage *types.MirrorSynPackage) uint8 { | ||
// check expire time | ||
if ctx.BlockHeader().Time.Unix() > int64(mirrorPackage.ExpireTime) { | ||
return types.MirrorErrCodeExpired |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MirrorErrCodeExpired
is not proper here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I mean MirrorErrCodeUnknown
plugins/bridge/cross_app.go
Outdated
symbol := types.BytesToSymbol(mirrorPackage.BEP20Symbol) | ||
err := ctypes.ValidateIssueSymbol(symbol) | ||
if err != nil { | ||
return types.MirrorErrCodeUnknown |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just check all the place that use MirrorErrCodeUnknown
.
"type": "array", | ||
"items": { | ||
"type": "record", | ||
"name": "Mirror", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't redefine: org.binance.dex.explorer.work.domain.avro.mirror.Mirror , the name is duplicate to line 895
Can you change it to "MirrorData"?
* implement bep100 update cosmos dependency * add upgrade height for FixFailAckPackage register channel * convert to bep20 supply in sync update token supply * distribute fee * the mirror and sync fee in package is already converted into BC amount * update dependency * enable account scripts for cross chain transfer * register upgrade height * send only no script execution error * include refund package into result * add transfer in tag * use idx other than address as refund exclude flag * use full refund instead of partial refund * publish mirror related events (#813) * update mirror config * move deduct fee from deliverTx * fix comments * add missing tags * fix transfer out fail ack handler issue * update schmema * update dependency * add old total supply for mirror sync event * fix mirror event Co-authored-by: HaoyangLiu <[email protected]>
* implement bep100 update cosmos dependency * add upgrade height for FixFailAckPackage register channel * convert to bep20 supply in sync update token supply * distribute fee * the mirror and sync fee in package is already converted into BC amount * update dependency * enable account scripts for cross chain transfer * register upgrade height * send only no script execution error * include refund package into result * add transfer in tag * use idx other than address as refund exclude flag * use full refund instead of partial refund * publish mirror related events (#813) * update mirror config * move deduct fee from deliverTx * fix comments * add missing tags * fix transfer out fail ack handler issue * update schmema * update dependency * add old total supply for mirror sync event * fix mirror event Co-authored-by: HaoyangLiu <[email protected]>
* implement bep100 update cosmos dependency * add upgrade height for FixFailAckPackage register channel * convert to bep20 supply in sync update token supply * distribute fee * the mirror and sync fee in package is already converted into BC amount * update dependency * enable account scripts for cross chain transfer * register upgrade height * send only no script execution error * include refund package into result * add transfer in tag * use idx other than address as refund exclude flag * use full refund instead of partial refund * publish mirror related events (#813) * update mirror config * move deduct fee from deliverTx * fix comments * add missing tags * fix transfer out fail ack handler issue * update schmema * update dependency * add old total supply for mirror sync event * fix mirror event Co-authored-by: HaoyangLiu <[email protected]>
* implement bep100 update cosmos dependency * add upgrade height for FixFailAckPackage register channel * convert to bep20 supply in sync update token supply * distribute fee * the mirror and sync fee in package is already converted into BC amount * update dependency * enable account scripts for cross chain transfer * register upgrade height * send only no script execution error * include refund package into result * add transfer in tag * use idx other than address as refund exclude flag * use full refund instead of partial refund * publish mirror related events (#813) * update mirror config * move deduct fee from deliverTx * fix comments * add missing tags * fix transfer out fail ack handler issue * update schmema * update dependency * add old total supply for mirror sync event * fix mirror event Co-authored-by: HaoyangLiu <[email protected]>
* implement bep100 update cosmos dependency * add upgrade height for FixFailAckPackage register channel * convert to bep20 supply in sync update token supply * distribute fee * the mirror and sync fee in package is already converted into BC amount * update dependency * enable account scripts for cross chain transfer * register upgrade height * send only no script execution error * include refund package into result * add transfer in tag * use idx other than address as refund exclude flag * use full refund instead of partial refund * publish mirror related events (#813) * update mirror config * move deduct fee from deliverTx * fix comments * add missing tags * fix transfer out fail ack handler issue * update schmema * update dependency * add old total supply for mirror sync event * fix mirror event Co-authored-by: HaoyangLiu <[email protected]>
* implement bep100 update cosmos dependency * add upgrade height for FixFailAckPackage register channel * convert to bep20 supply in sync update token supply * distribute fee * the mirror and sync fee in package is already converted into BC amount * update dependency * enable account scripts for cross chain transfer * register upgrade height * send only no script execution error * include refund package into result * add transfer in tag * use idx other than address as refund exclude flag * use full refund instead of partial refund * publish mirror related events (#813) * update mirror config * move deduct fee from deliverTx * fix comments * add missing tags * fix transfer out fail ack handler issue * update schmema * update dependency * add old total supply for mirror sync event * fix mirror event Co-authored-by: HaoyangLiu <[email protected]>
* implement bep100 update cosmos dependency * add upgrade height for FixFailAckPackage register channel * convert to bep20 supply in sync update token supply * distribute fee * the mirror and sync fee in package is already converted into BC amount * update dependency * enable account scripts for cross chain transfer * register upgrade height * send only no script execution error * include refund package into result * add transfer in tag * use idx other than address as refund exclude flag * use full refund instead of partial refund * publish mirror related events (#813) * update mirror config * move deduct fee from deliverTx * fix comments * add missing tags * fix transfer out fail ack handler issue * update schmema * update dependency * add old total supply for mirror sync event * fix mirror event Co-authored-by: HaoyangLiu <[email protected]>
* implement bep100 update cosmos dependency * add upgrade height for FixFailAckPackage register channel * convert to bep20 supply in sync update token supply * distribute fee * the mirror and sync fee in package is already converted into BC amount * update dependency * enable account scripts for cross chain transfer * register upgrade height * send only no script execution error * include refund package into result * add transfer in tag * use idx other than address as refund exclude flag * use full refund instead of partial refund * publish mirror related events (#813) * update mirror config * move deduct fee from deliverTx * fix comments * add missing tags * fix transfer out fail ack handler issue * update schmema * update dependency * add old total supply for mirror sync event * fix mirror event Co-authored-by: HaoyangLiu <[email protected]>
* implement bep100 update cosmos dependency * add upgrade height for FixFailAckPackage register channel * convert to bep20 supply in sync update token supply * distribute fee * the mirror and sync fee in package is already converted into BC amount * update dependency * enable account scripts for cross chain transfer * register upgrade height * send only no script execution error * include refund package into result * add transfer in tag * use idx other than address as refund exclude flag * use full refund instead of partial refund * publish mirror related events (#813) * update mirror config * move deduct fee from deliverTx * fix comments * add missing tags * fix transfer out fail ack handler issue * update schmema * update dependency * add old total supply for mirror sync event * fix mirror event Co-authored-by: HaoyangLiu <[email protected]>
* implement bep100 update cosmos dependency * add upgrade height for FixFailAckPackage register channel * convert to bep20 supply in sync update token supply * distribute fee * the mirror and sync fee in package is already converted into BC amount * update dependency * enable account scripts for cross chain transfer * register upgrade height * send only no script execution error * include refund package into result * add transfer in tag * use idx other than address as refund exclude flag * use full refund instead of partial refund * publish mirror related events (#813) * update mirror config * move deduct fee from deliverTx * fix comments * add missing tags * fix transfer out fail ack handler issue * update schmema * update dependency * add old total supply for mirror sync event * fix mirror event Co-authored-by: HaoyangLiu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[- LICENSE]
Description
add a description of your changes here...
Rationale
tell us why we need these changes...
Example
add an example CLI or API response...
Changes
Notable changes:
Preflight checks
make build
)make test
)make integration_test
)Already reviewed by
...
Related issues
... reference related issue #'s here ...