@agoric/builders 0.1.1-upgrade-18-dev-6ddbef0.0 → 0.1.1-upgrade-19-dev-c605745.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/package.json +31 -29
  2. package/scripts/fast-usdc/add-operators.build.js +83 -0
  3. package/scripts/fast-usdc/fast-usdc-fees.build.js +75 -0
  4. package/scripts/fast-usdc/fast-usdc-update.build.js +65 -0
  5. package/scripts/fast-usdc/start-fast-usdc.build.js +207 -0
  6. package/scripts/inter-protocol/replace-feeDistributor-combo.js +82 -0
  7. package/scripts/inter-protocol/replace-feeDistributor.js +36 -0
  8. package/scripts/inter-protocol/updatePriceFeeds.js +11 -1
  9. package/scripts/orchestration/init-basic-flows.js +42 -2
  10. package/scripts/testing/add-USD-LEMONS.js +19 -0
  11. package/scripts/testing/add-USD-OLIVES.js +19 -0
  12. package/scripts/testing/init-auto-stake-it.js +73 -0
  13. package/scripts/testing/init-send-anywhere.js +67 -0
  14. package/scripts/testing/provokeBOYD.js +54 -0
  15. package/scripts/testing/publish-test-info.js +79 -0
  16. package/scripts/testing/recorded-retired-instances.js +81 -0
  17. package/scripts/testing/register-interchain-bank-assets.js +199 -0
  18. package/scripts/testing/replace-feeDistributor-short.js +33 -0
  19. package/scripts/testing/test-upgraded-board.js +15 -0
  20. package/scripts/testing/{fix-buggy-sendAnywhere.js → upgrade-send-anywhere.js} +14 -18
  21. package/scripts/testing/upgrade-vaultFactory.js +21 -0
  22. package/scripts/vats/terminate-governor-instance.js +134 -0
  23. package/scripts/vats/upgrade-agoricNames.js +21 -0
  24. package/scripts/vats/upgrade-asset-reserve.js +21 -0
  25. package/scripts/vats/upgrade-bank.js +2 -2
  26. package/scripts/vats/upgrade-board.js +20 -0
  27. package/scripts/vats/upgrade-mintHolder.js +105 -0
  28. package/scripts/vats/{upgrade-orch-core.js → upgrade-orchestration.js} +5 -2
  29. package/scripts/vats/upgrade-paRegistry.js +21 -0
  30. package/scripts/vats/upgrade-psm.js +19 -0
  31. package/scripts/testing/start-auto-stake-it.js +0 -128
  32. package/scripts/testing/start-buggy-sendAnywhere.js +0 -143
  33. package/scripts/testing/start-send-anywhere.js +0 -136
@@ -1,143 +0,0 @@
1
- /**
2
- * @file This is for use in tests in a3p-integration
3
- * Unlike most builder scripts, this one includes the proposal exports as well.
4
- */
5
- import {
6
- deeplyFulfilledObject,
7
- makeTracer,
8
- NonNullish,
9
- } from '@agoric/internal';
10
- import { E, Far } from '@endo/far';
11
-
12
- /// <reference types="@agoric/vats/src/core/types-ambient"/>
13
- /**
14
- * @import {Installation} from '@agoric/zoe/src/zoeService/utils.js';
15
- */
16
-
17
- const trace = makeTracer('StartBuggySA', true);
18
-
19
- /**
20
- * @import {start as StartFn} from '@agoric/orchestration/src/examples/send-anywhere.contract.js';
21
- */
22
-
23
- /**
24
- * @param {BootstrapPowers & {
25
- * installation: {
26
- * consume: {
27
- * sendAnywhere: Installation<StartFn>;
28
- * };
29
- * };
30
- * }} powers
31
- */
32
- export const startSendAnywhere = async ({
33
- consume: {
34
- agoricNames,
35
- board,
36
- chainStorage,
37
- chainTimerService,
38
- cosmosInterchainService,
39
- localchain,
40
- startUpgradable,
41
- },
42
- installation: {
43
- consume: { sendAnywhere },
44
- },
45
- instance: {
46
- // @ts-expect-error unknown instance
47
- produce: { sendAnywhere: produceInstance },
48
- },
49
- }) => {
50
- trace(startSendAnywhere.name);
51
-
52
- const marshaller = await E(board).getReadonlyMarshaller();
53
-
54
- const privateArgs = await deeplyFulfilledObject(
55
- harden({
56
- agoricNames,
57
- localchain,
58
- marshaller,
59
- orchestrationService: cosmosInterchainService,
60
- storageNode: E(NonNullish(await chainStorage)).makeChildNode(
61
- 'sendAnywhere',
62
- ),
63
- timerService: chainTimerService,
64
- }),
65
- );
66
-
67
- /** @type {import('@agoric/vats').NameHub} */
68
- // @ts-expect-error intentional fake
69
- const agoricNamesHangs = Far('agoricNames that hangs', {
70
- lookup: async () => {
71
- trace('agoricNames.lookup being called that will never resolve');
72
- // BUG: this never resolves
73
- return new Promise(() => {});
74
- },
75
- });
76
-
77
- const { instance } = await E(startUpgradable)({
78
- label: 'sendAnywhere',
79
- installation: sendAnywhere,
80
- privateArgs: {
81
- ...privateArgs,
82
- agoricNames: agoricNamesHangs,
83
- },
84
- });
85
- produceInstance.resolve(instance);
86
- trace('done');
87
- };
88
- harden(startSendAnywhere);
89
-
90
- export const getManifestForValueVow = ({ restoreRef }, { sendAnywhereRef }) => {
91
- trace('sendAnywhereRef', sendAnywhereRef);
92
- return {
93
- manifest: {
94
- [startSendAnywhere.name]: {
95
- consume: {
96
- agoricNames: true,
97
- board: true,
98
- chainStorage: true,
99
- chainTimerService: true,
100
- cosmosInterchainService: true,
101
- localchain: true,
102
-
103
- startUpgradable: true,
104
- },
105
- installation: {
106
- consume: { sendAnywhere: true },
107
- },
108
- instance: {
109
- produce: { sendAnywhere: true },
110
- },
111
- },
112
- },
113
- installations: {
114
- sendAnywhere: restoreRef(sendAnywhereRef),
115
- },
116
- };
117
- };
118
-
119
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
120
- export const defaultProposalBuilder = async ({ publishRef, install }) =>
121
- harden({
122
- // Somewhat unorthodox, source the exports from this builder module
123
- sourceSpec: '@agoric/builders/scripts/testing/start-buggy-sendAnywhere.js',
124
- getManifestCall: [
125
- 'getManifestForValueVow',
126
- {
127
- sendAnywhereRef: publishRef(
128
- install(
129
- '@agoric/orchestration/src/examples/send-anywhere.contract.js',
130
- ),
131
- ),
132
- },
133
- ],
134
- });
135
-
136
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
137
- export default async (homeP, endowments) => {
138
- // import dynamically so the module can work in CoreEval environment
139
- const dspModule = await import('@agoric/deploy-script-support');
140
- const { makeHelpers } = dspModule;
141
- const { writeCoreEval } = await makeHelpers(homeP, endowments);
142
- await writeCoreEval(startSendAnywhere.name, defaultProposalBuilder);
143
- };
@@ -1,136 +0,0 @@
1
- /**
2
- * @file This is for use in tests in a3p-integration
3
- * Unlike most builder scripts, this one includes the proposal exports as well.
4
- */
5
- import {
6
- deeplyFulfilledObject,
7
- makeTracer,
8
- NonNullish,
9
- } from '@agoric/internal';
10
- import { E } from '@endo/far';
11
-
12
- /// <reference types="@agoric/vats/src/core/types-ambient"/>
13
- /**
14
- * @import {Installation} from '@agoric/zoe/src/zoeService/utils.js';
15
- */
16
-
17
- const trace = makeTracer('StartSA', true);
18
-
19
- /**
20
- * @import {start as StartFn} from '@agoric/orchestration/src/examples/send-anywhere.contract.js';
21
- */
22
-
23
- /**
24
- * @param {BootstrapPowers & {
25
- * installation: {
26
- * consume: {
27
- * sendAnywhere: Installation<StartFn>;
28
- * };
29
- * };
30
- * }} powers
31
- */
32
- export const startSendAnywhere = async ({
33
- consume: {
34
- agoricNames,
35
- board,
36
- chainStorage,
37
- chainTimerService,
38
- cosmosInterchainService,
39
- localchain,
40
- startUpgradable,
41
- },
42
- installation: {
43
- consume: { sendAnywhere },
44
- },
45
- instance: {
46
- // @ts-expect-error unknown instance
47
- produce: { sendAnywhere: produceInstance },
48
- },
49
- issuer: {
50
- consume: { IST },
51
- },
52
- }) => {
53
- trace(startSendAnywhere.name);
54
-
55
- const marshaller = await E(board).getReadonlyMarshaller();
56
-
57
- const privateArgs = await deeplyFulfilledObject(
58
- harden({
59
- agoricNames,
60
- localchain,
61
- marshaller,
62
- orchestrationService: cosmosInterchainService,
63
- storageNode: E(NonNullish(await chainStorage)).makeChildNode(
64
- 'send-anywhere',
65
- ),
66
- timerService: chainTimerService,
67
- }),
68
- );
69
-
70
- const { instance } = await E(startUpgradable)({
71
- label: 'send-anywhere',
72
- installation: sendAnywhere,
73
- issuerKeywordRecord: { Stable: await IST },
74
- privateArgs,
75
- });
76
- produceInstance.resolve(instance);
77
- trace('done');
78
- };
79
- harden(startSendAnywhere);
80
-
81
- export const getManifest = ({ restoreRef }, { installationRef }) => {
82
- return {
83
- manifest: {
84
- [startSendAnywhere.name]: {
85
- consume: {
86
- agoricNames: true,
87
- board: true,
88
- chainStorage: true,
89
- chainTimerService: true,
90
- cosmosInterchainService: true,
91
- localchain: true,
92
-
93
- startUpgradable: true,
94
- },
95
- installation: {
96
- consume: { sendAnywhere: true },
97
- },
98
- instance: {
99
- produce: { sendAnywhere: true },
100
- },
101
- issuer: {
102
- consume: { IST: true },
103
- },
104
- },
105
- },
106
- installations: {
107
- sendAnywhere: restoreRef(installationRef),
108
- },
109
- };
110
- };
111
-
112
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
113
- export const defaultProposalBuilder = async ({ publishRef, install }) =>
114
- harden({
115
- // Somewhat unorthodox, source the exports from this builder module
116
- sourceSpec: '@agoric/builders/scripts/testing/start-send-anywhere.js',
117
- getManifestCall: [
118
- getManifest.name,
119
- {
120
- installationRef: publishRef(
121
- install(
122
- '@agoric/orchestration/src/examples/send-anywhere.contract.js',
123
- ),
124
- ),
125
- },
126
- ],
127
- });
128
-
129
- /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
130
- export default async (homeP, endowments) => {
131
- // import dynamically so the module can work in CoreEval environment
132
- const dspModule = await import('@agoric/deploy-script-support');
133
- const { makeHelpers } = dspModule;
134
- const { writeCoreEval } = await makeHelpers(homeP, endowments);
135
- await writeCoreEval(startSendAnywhere.name, defaultProposalBuilder);
136
- };