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

fix(vm-config): always use init-localchain and init-transfer #9672

Merged
merged 4 commits into from
Jul 9, 2024

Conversation

michaelfig
Copy link
Member

Description

While working on orchnet, I discovered that decentral-itest-vaults-config.json lacked references to the init-localchain.js and init-transfer.js core-evals.

This PR:

  • enables them for future chains, since we intend to use them wherever init-network.js is present
  • removes config references to Pegasus, since it is an obsolete demonstration of an IBC contract, and now we have newer and better examples,
  • reduces loud warnings from vat-bank.js when unregistered asset balances were detected, since we expect this to be commonplace when dealing with IBC assets from many chains

Security Considerations

n/a

Scaling Considerations

Less logging from vat-bank.js, once it is upgraded (or started on a new chain).

Testing Considerations

Upgrade Considerations

The vat-bank.js changes do not modify functionality except logging, so I consider it safe to include for future chains without requiring mainnet's bank vat to be upgraded.

Copy link

cloudflare-workers-and-pages bot commented Jul 9, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9b317a0
Status: ✅  Deploy successful!
Preview URL: https://391de217.agoric-sdk.pages.dev
Branch Preview URL: https://mfig-update-swingset-configs.agoric-sdk.pages.dev

View logs

@michaelfig michaelfig requested a review from turadg July 9, 2024 08:47
@michaelfig michaelfig self-assigned this Jul 9, 2024
@michaelfig michaelfig added the cosmic-swingset package: cosmic-swingset label Jul 9, 2024
@michaelfig michaelfig requested a review from 0xpatrickdev July 9, 2024 08:49
"@agoric/builders/scripts/pegasus/init-core.js",
"@agoric/builders/scripts/vats/init-transfer.js"
"@agoric/builders/scripts/vats/init-localchain.js",
"@agoric/builders/scripts/vats/init-transfer.js"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"@agoric/builders/scripts/vats/init-transfer.js"
"@agoric/builders/scripts/vats/init-transfer.js"

@mhofman
Copy link
Member

mhofman commented Jul 9, 2024

Is the problem here that there are no config that does both orch core and inter protocol ?

I believe the need is for networks like devnet

@mhofman mhofman added the automerge:rebase Automatically rebase updates, then merge label Jul 9, 2024
@michaelfig michaelfig force-pushed the mfig-update-swingset-configs branch from 4015084 to 03538ea Compare July 9, 2024 20:30
@michaelfig michaelfig force-pushed the mfig-update-swingset-configs branch from 03538ea to 9b317a0 Compare July 9, 2024 21:18
@mergify mergify bot merged commit 8f019c0 into master Jul 9, 2024
78 checks passed
@mergify mergify bot deleted the mfig-update-swingset-configs branch July 9, 2024 21:51
gibson042 pushed a commit that referenced this pull request Jul 9, 2024
## Description

While working on orchnet, I discovered that `decentral-itest-vaults-config.json` lacked references to the `init-localchain.js` and `init-transfer.js` core-evals.

This PR:
- enables them for future chains, since we intend to use them wherever `init-network.js` is present
- removes config references to Pegasus, since it is an obsolete demonstration of an IBC contract, and now we have newer and better examples,
- reduces loud warnings from `vat-bank.js` when unregistered asset balances were detected, since we expect this to be commonplace when dealing with IBC assets from many chains

### Security Considerations
n/a

### Scaling Considerations
Less logging from `vat-bank.js`, once it is upgraded (or started on a new chain).

### Testing Considerations


### Upgrade Considerations
The `vat-bank.js` changes do not modify functionality except logging, so I consider it safe to include for future chains without requiring mainnet's bank vat to be upgraded.
gibson042 added a commit that referenced this pull request Jul 10, 2024
## Description

Includes commits from the following PRs:
* #9671
* #9672

...plus a new commit introducing upgrade name "agoric-upgrade-16-2".

Constructed using the following `git rebase -i HEAD` todo list:
```
# pull request #9671
# resolve conflicts by:
# * `git rm packages/orchestration/test/supports.ts`
# * in packages/vats/src/proposals/transfer-proposal.js, take the proposed imports
# * in packages/vats/test/localchain.test.js, leave `import { NonNullish } from '@agoric/assert'`
#   but take the VTRANSFER_IBC_EVENT change
pick 217005a fix: adopt `VTRANSFER_IBC_EVENT` as an action-type (#9671)

# pull request #9672 branch mfig-update-swingset-configs
label base-mfig-update-swingset-configs
pick 870d205 fix(vm-config): always use `init-localchain` and `init-transfer`
pick 236a3f0 chore(vm-config): remove obsolete `pegasus/init-core.js`
pick 7f7a8bd chore(bank): demote noisy logs to `debug` level
pick 9b317a0 docs: purpose of itest-vaults config
label mfig-update-swingset-configs
reset base-mfig-update-swingset-configs
merge -C 8f019c0 mfig-update-swingset-configs # fix(vm-config): always use `init-localchain` and `init-transfer` (#9672)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:rebase Automatically rebase updates, then merge cosmic-swingset package: cosmic-swingset
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants