@agoric/builders 0.2.0-u16.2 → 0.2.0-u17.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.
@@ -0,0 +1,53 @@
1
+ /// <reference types="ses" />
2
+ import { makeHelpers } from '@agoric/deploy-script-support';
3
+
4
+ /** @type {Record<string, import('@agoric/orchestration/src/chain-info.js').ChainInfo>} */
5
+ const chainInfo = {
6
+ agoric: {
7
+ chainId: 'agoric-4',
8
+ },
9
+ hot: {
10
+ allegedName: 'Hot New Chain',
11
+ chainId: 'hot-1',
12
+ connections: {
13
+ 'cosmoshub-4': {
14
+ id: 'connection-99',
15
+ client_id: '07-tendermint-3',
16
+ counterparty: {
17
+ client_id: '07-tendermint-2',
18
+ connection_id: 'connection-1',
19
+ prefix: {
20
+ key_prefix: '',
21
+ },
22
+ },
23
+ state: 3 /* IBCConnectionState.STATE_OPEN */,
24
+ transferChannel: {
25
+ portId: 'transfer',
26
+ channelId: 'channel-1',
27
+ counterPartyChannelId: 'channel-1',
28
+ counterPartyPortId: 'transfer',
29
+ ordering: 1 /* Order.ORDER_UNORDERED */,
30
+ state: 3 /* IBCConnectionState.STATE_OPEN */,
31
+ version: 'ics20-1',
32
+ },
33
+ },
34
+ },
35
+ },
36
+ };
37
+
38
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
39
+ export const defaultProposalBuilder = async () =>
40
+ harden({
41
+ sourceSpec: '@agoric/orchestration/src/proposals/revise-chain-info.js',
42
+ getManifestCall: [
43
+ 'getManifestForReviseChains',
44
+ {
45
+ chainInfo,
46
+ },
47
+ ],
48
+ });
49
+
50
+ export default async (homeP, endowments) => {
51
+ const { writeCoreEval } = await makeHelpers(homeP, endowments);
52
+ await writeCoreEval('revise-chain-info', defaultProposalBuilder);
53
+ };
@@ -1,10 +1,20 @@
1
1
  import { makeHelpers } from '@agoric/deploy-script-support';
2
2
 
3
3
  /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
4
- export const defaultProposalBuilder = async () => {
4
+ export const defaultProposalBuilder = async ({ publishRef, install }) => {
5
5
  return harden({
6
6
  sourceSpec: '@agoric/inter-protocol/src/proposals/add-auction.js',
7
- getManifestCall: ['getManifestForAddAuction'],
7
+ getManifestCall: [
8
+ 'getManifestForAddAuction',
9
+ {
10
+ auctionsRef: publishRef(
11
+ install(
12
+ '@agoric/inter-protocol/src/auction/auctioneer.js',
13
+ '../../inter-protocol/bundles/bundle-auctioneer.js',
14
+ ),
15
+ ),
16
+ },
17
+ ],
8
18
  });
9
19
  };
10
20
 
@@ -0,0 +1,20 @@
1
+ import { makeHelpers } from '@agoric/deploy-script-support';
2
+
3
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
4
+ export const defaultProposalBuilder = async ({ publishRef, install }) =>
5
+ harden({
6
+ sourceSpec: '@agoric/orchestration/src/proposals/orchestration-proposal.js',
7
+ getManifestCall: [
8
+ 'getManifestForOrchestration',
9
+ {
10
+ orchestrationRef: publishRef(
11
+ install('@agoric/orchestration/src/vat-orchestration.js'),
12
+ ),
13
+ },
14
+ ],
15
+ });
16
+
17
+ export default async (homeP, endowments) => {
18
+ const { writeCoreEval } = await makeHelpers(homeP, endowments);
19
+ await writeCoreEval('gov-orchestration', defaultProposalBuilder);
20
+ };
@@ -0,0 +1,18 @@
1
+ import { makeHelpers } from '@agoric/deploy-script-support';
2
+
3
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
4
+ export const defaultProposalBuilder = async ({ publishRef, install }) =>
5
+ harden({
6
+ sourceSpec: '@agoric/vats/src/proposals/upgrade-bank-proposal.js',
7
+ getManifestCall: [
8
+ 'getManifestForUpgradingBank',
9
+ {
10
+ bankRef: publishRef(install('@agoric/vats/src/vat-bank.js')),
11
+ },
12
+ ],
13
+ });
14
+
15
+ export default async (homeP, endowments) => {
16
+ const { writeCoreProposal } = await makeHelpers(homeP, endowments);
17
+ await writeCoreProposal('upgrade-bank', defaultProposalBuilder);
18
+ };
@@ -0,0 +1,23 @@
1
+ import { makeHelpers } from '@agoric/deploy-script-support';
2
+
3
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
4
+ export const defaultProposalBuilder = async ({ publishRef, install }) =>
5
+ harden({
6
+ sourceSpec: '@agoric/vats/src/proposals/upgrade-orch-core-proposal.js',
7
+ getManifestCall: [
8
+ 'getManifestForUpgradingOrchCore',
9
+ {
10
+ bundleRefs: {
11
+ ibc: publishRef(install('@agoric/vats/src/vat-ibc.js')),
12
+ network: publishRef(install('@agoric/vats/src/vat-network.js')),
13
+ localchain: publishRef(install('@agoric/vats/src/vat-localchain.js')),
14
+ transfer: publishRef(install('@agoric/vats/src/vat-transfer.js')),
15
+ },
16
+ },
17
+ ],
18
+ });
19
+
20
+ export default async (homeP, endowments) => {
21
+ const { writeCoreProposal } = await makeHelpers(homeP, endowments);
22
+ await writeCoreProposal('upgrade-network', defaultProposalBuilder);
23
+ };
@@ -0,0 +1,20 @@
1
+ import { makeHelpers } from '@agoric/deploy-script-support';
2
+
3
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
4
+ export const defaultProposalBuilder = async ({ publishRef, install }) =>
5
+ harden({
6
+ sourceSpec: '@agoric/vats/src/proposals/upgrade-provisionPool-proposal.js',
7
+ getManifestCall: [
8
+ 'getManifestForUpgradingProvisionPool',
9
+ {
10
+ provisionPoolRef: publishRef(
11
+ install('@agoric/inter-protocol/src/provisionPool.js'),
12
+ ),
13
+ },
14
+ ],
15
+ });
16
+
17
+ export default async (homeP, endowments) => {
18
+ const { writeCoreProposal } = await makeHelpers(homeP, endowments);
19
+ await writeCoreProposal('upgrade-provision-pool', defaultProposalBuilder);
20
+ };