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

pre-release: ASI upgrade #392

Merged
merged 7 commits into from
Jun 19, 2024
Merged

Conversation

MissingNO57
Copy link
Contributor

@MissingNO57 MissingNO57 commented Jun 3, 2024

Proposed changes

  • Changed default prefix to asi
  • Added Eridanus configuration
  • Changed all fetch addresses to asi addresses in examples, tests, and docs.

Do we know new chain-id for fetchhub-4 ?

Issues

Links to any issues resolved.

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply

  • Bugfix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to stop working as expected)
  • Something else (e.g. tests, scripts, example, deployment, infrastructure, ...)

Checklist

Put an x in the boxes that apply.

  • I have read the CONTRIBUTING document.
  • I have based my branch, and I am making a pull request against, the main branch.
  • Checks and tests pass locally.

If applicable

  • I have added tests that prove my fix is effective or that my feature works.
  • I have checked that code coverage does not decrease.
  • I have added/updated the documentations.

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did, what alternatives you considered, etc.

@MissingNO57 MissingNO57 changed the title [WiP[ eridanus config [WiP] ASI preparation - Eridanus config Jun 3, 2024
Copy link

github-actions bot commented Jun 10, 2024

Visit the preview URL for this PR (updated for commit 2b8f849):

https://fetch-docs-preview--pr392-feat-asi-upgrade-con-pyqiamkm.web.app

(expires Thu, 20 Jun 2024 10:08:42 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: f2de39fd4e81249941960b74fbab0a62d90d69f8

@@ -177,12 +177,12 @@ class TestContractRestAPI(TestContract):

def _get_network_config(self):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In some integration tests we deploy sample contracts on testnet in every run! This leads to adding unnecessary data there.

Copy link
Contributor

Choose a reason for hiding this comment

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

It would be nice to add better support for simulating txs for tests like these, because I think in almost all cases, that is all that really needs to be tested.

@MissingNO57 MissingNO57 changed the title [WiP] ASI preparation - Eridanus config ASI preparation - Eridanus config Jun 10, 2024
Copy link
Contributor

@jrriehl jrriehl left a comment

Choose a reason for hiding this comment

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

LGTM!

@MissingNO57 MissingNO57 changed the title ASI preparation - Eridanus config pre-release: ASI preparation - Eridanus config Jun 11, 2024
@@ -125,8 +140,8 @@ def fetchai_mainnet(cls) -> "NetworkConfig":
chain_id="fetchhub-4",
url="grpc+https://grpc-fetchhub.fetch.ai",
fee_minimum_gas_price=0,
Copy link
Contributor

Choose a reason for hiding this comment

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

Note: We have been considering setting this default minimum gas price here to non-zero value (the same value as for testnet). Even though this is not enforceable, practically speaking, this is what we want - if nothing else, then at least defaulting to non-zero Tx gas price value will make it less straightforward for users to use zero Tx fee.

Copy link
Contributor

Choose a reason for hiding this comment

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

For now (for ASI umgrade release), please ignore my comment above. We will touch on thsese kind of things in later releases.

Copy link
Contributor

Choose a reason for hiding this comment

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

Note: In this sense (= not now), we shall also extend the NetworkConfig class with address prefix data member.

cosmpy/aerial/config.py Outdated Show resolved Hide resolved
cosmpy/aerial/config.py Outdated Show resolved Hide resolved
Copy link
Contributor

@pbukva pbukva left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@pbukva pbukva left a comment

Choose a reason for hiding this comment

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

Please create the feature branch feat/asi_upgrade on the tip of the current main branch and set this feat/asi_upgrade branch as landing branch opf this PR.

@MissingNO57 MissingNO57 changed the base branch from main to feat/asi_upgrade June 18, 2024 13:29
@MissingNO57 MissingNO57 requested a review from pbukva June 18, 2024 13:30
Copy link
Contributor

@pbukva pbukva left a comment

Choose a reason for hiding this comment

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

LGTM

@pbukva pbukva changed the title pre-release: ASI preparation - Eridanus config pre-release: ASI upgrade Jun 18, 2024
@MissingNO57 MissingNO57 merged commit 7c3ae99 into feat/asi_upgrade Jun 19, 2024
38 checks passed
@MissingNO57 MissingNO57 deleted the feat/asi_upgrade_config branch June 19, 2024 08:32
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.

3 participants