The Agoric OpCo engineering team is pleased to publish the agoric-upgrade-11wf release. This release is primarily intended to expand the functionality of the walletFactory (aka smart wallet) contract to support NFTs etc. (#8156).
NOTE: This is release is not intended for use in a chain software upgrade. Instead, it includes bundles for use in a swingset core-eval
proposal to upgrade the walletFactory
contract.
How To Verify Bundles and Prepare a SwingSet Core.Eval Proposal
- Download the source and unpack
cd agoric-sdk
cd packages/vats
agoric run scripts/build-walletFactory-upgrade.js
.
The output should be as follows, modulo the /home/ME/projects/agoric-sdk
path and the /home/ME/.agoric
path. In particular, the hashes should match exactly:
$ agoric run scripts/build-walletFactory-upgrade.js
agoric: run: running /home/ME/projects/agoric-sdk/packages/vats/scripts/build-walletFactory-upgrade.js
agoric: run: Deploy script will run with Node.js ESM
upgrade-walletFactory-proposal.js module evaluating
bundle-source --to /home/ME/projects/agoric-sdk/packages/vats/bundles /home/ME/projects/agoric-sdk/packages/smart-wallet/src/walletFactory.js walletFactory
/home/ME/projects/agoric-sdk/packages/vats/bundles bundle-walletFactory.js valid: 148 files bundled at 2023-09-08T22:21:08.871Z
creating upgrade-walletFactory-permit.json
creating upgrade-walletFactory.js
You can now run a governance submission command like:
agd tx gov submit-proposal swingset-core-eval upgrade-walletFactory-permit.json upgrade-walletFactory.js \
--title="Enable <something>" --description="Evaluate upgrade-walletFactory.js" --deposit=1000000ubld \
--gas=auto --gas-adjustment=1.2
Remember to install bundles before submitting the proposal:
agd tx swingset install-bundle @/home/ME/.agoric/cache/b1-fa06290e58e5df0b5e8e26ebf7926176770bee5d32f42bcaa62bb77737955a8d9da2922760e644e26643b36ec3118c3c0d546f2af4faf717fdb6ae1fb36773d0.json
agd tx swingset install-bundle @/home/ME/.agoric/cache/b1-e229e4bb6c8720016d92116e3dccaebec20a43699d5547a1c815f8710985ba897e825cbe4cd5b80c1d9d674f086bcaf3981b82a0d5546a095542c14174d5f942.json