Skip to content
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

feat: airdrop transfer contract #ntrn-116 #1

Merged
merged 19 commits into from
Oct 17, 2023

Conversation

NeverHappened
Copy link
Collaborator

@NeverHappened NeverHappened commented Oct 6, 2023

https://hadronlabs.atlassian.net/browse/NTRN-116

How to run integration tests:

  1. in root: make build
  2. cd integration-tests
  3. run yarn
  4. run yarn test
  5. tests should pass!

@NeverHappened NeverHappened self-assigned this Oct 6, 2023
@NeverHappened NeverHappened force-pushed the feat/implement-contract branch 2 times, most recently from 3389c25 to 80b6a38 Compare October 9, 2023 11:56
@NeverHappened NeverHappened force-pushed the feat/implement-contract branch from 80b6a38 to 23489f6 Compare October 9, 2023 11:58
Copy link
Collaborator

@pr0n00gler pr0n00gler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't check that neither your IBCTransfer messager or ICA::SubmitTX was executed successfully. Why?

build_release.sh Outdated Show resolved Hide resolved
src/contract.rs Outdated Show resolved Hide resolved
src/contract.rs Outdated Show resolved Hide resolved
src/contract.rs Outdated Show resolved Hide resolved
src/contract.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@pr0n00gler pr0n00gler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the flow if Error/Timeout happens during IBC transfer / ICA execution?

Like, in case of ICA execution timeout, an underlying channel for ICA will be closed.

How to recover it?
As far as i see, there is no way to recover an ICA via a usual call if RegisterICA method, since the contract doesn't allow it, because the registering phase is passed.

What will happen if IBC transfer fails?

src/contract.rs Outdated Show resolved Hide resolved
src/contract.rs Outdated Show resolved Hide resolved
src/contract.rs Show resolved Hide resolved
src/contract.rs Outdated Show resolved Hide resolved
@pr0n00gler
Copy link
Collaborator

Also please attach rust-toolchain.toml file with a proper rust version

* tmp: add integration tests

* fix: fix

* fix tests

* ignore cosmopark file

* tmp

* kek

* tests run

* add gaia client for tests

* review fixes

* add waitResult

* tests almost pass

* fix tests

* add incorrect stage checks

* finish tests

* remove old manual tests

---------

Co-authored-by: Sergey Ratiashvili <[email protected]>
@NeverHappened NeverHappened merged commit c5b82cf into main Oct 17, 2023
2 of 4 checks passed
NeverHappened added a commit that referenced this pull request Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants