@agoric/builders 0.1.1-dev-c5c52ec.0 → 0.1.1-dev-01a1123.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/builders",
3
- "version": "0.1.1-dev-c5c52ec.0+c5c52ec",
3
+ "version": "0.1.1-dev-01a1123.0+01a1123",
4
4
  "description": "Build scripts for proposals to an Agoric chain",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -23,13 +23,13 @@
23
23
  "author": "Agoric",
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@agoric/ertp": "0.16.3-dev-c5c52ec.0+c5c52ec",
27
- "@agoric/internal": "0.3.3-dev-c5c52ec.0+c5c52ec",
28
- "@agoric/notifier": "0.6.3-dev-c5c52ec.0+c5c52ec",
29
- "@agoric/smart-wallet": "0.5.4-dev-c5c52ec.0+c5c52ec",
30
- "@agoric/vat-data": "0.5.3-dev-c5c52ec.0+c5c52ec",
31
- "@agoric/vats": "0.15.2-dev-c5c52ec.0+c5c52ec",
32
- "@agoric/zoe": "0.26.3-dev-c5c52ec.0+c5c52ec",
26
+ "@agoric/ertp": "0.16.3-dev-01a1123.0+01a1123",
27
+ "@agoric/internal": "0.3.3-dev-01a1123.0+01a1123",
28
+ "@agoric/notifier": "0.6.3-dev-01a1123.0+01a1123",
29
+ "@agoric/smart-wallet": "0.5.4-dev-01a1123.0+01a1123",
30
+ "@agoric/vat-data": "0.5.3-dev-01a1123.0+01a1123",
31
+ "@agoric/vats": "0.15.2-dev-01a1123.0+01a1123",
32
+ "@agoric/zoe": "0.26.3-dev-01a1123.0+01a1123",
33
33
  "@endo/bundle-source": "^3.2.3",
34
34
  "@endo/captp": "^4.2.0",
35
35
  "@endo/eventual-send": "^1.2.2",
@@ -41,14 +41,14 @@
41
41
  "import-meta-resolve": "^2.2.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@agoric/assert": "0.6.1-dev-c5c52ec.0+c5c52ec",
45
- "@agoric/deploy-script-support": "0.10.4-dev-c5c52ec.0+c5c52ec",
46
- "@agoric/governance": "0.10.4-dev-c5c52ec.0+c5c52ec",
47
- "@agoric/inter-protocol": "0.16.2-dev-c5c52ec.0+c5c52ec",
48
- "@agoric/store": "0.9.3-dev-c5c52ec.0+c5c52ec",
49
- "@agoric/swing-store": "0.9.2-dev-c5c52ec.0+c5c52ec",
50
- "@agoric/swingset-liveslots": "0.10.3-dev-c5c52ec.0+c5c52ec",
51
- "@agoric/time": "0.3.3-dev-c5c52ec.0+c5c52ec",
44
+ "@agoric/assert": "0.6.1-dev-01a1123.0+01a1123",
45
+ "@agoric/deploy-script-support": "0.10.4-dev-01a1123.0+01a1123",
46
+ "@agoric/governance": "0.10.4-dev-01a1123.0+01a1123",
47
+ "@agoric/inter-protocol": "0.16.2-dev-01a1123.0+01a1123",
48
+ "@agoric/store": "0.9.3-dev-01a1123.0+01a1123",
49
+ "@agoric/swing-store": "0.9.2-dev-01a1123.0+01a1123",
50
+ "@agoric/swingset-liveslots": "0.10.3-dev-01a1123.0+01a1123",
51
+ "@agoric/time": "0.3.3-dev-01a1123.0+01a1123",
52
52
  "ava": "^5.3.0",
53
53
  "c8": "^9.1.0"
54
54
  },
@@ -80,5 +80,5 @@
80
80
  "typeCoverage": {
81
81
  "atLeast": 74.36
82
82
  },
83
- "gitHead": "c5c52ec69b4befd3cf5c7eedc817904978599ec6"
83
+ "gitHead": "01a1123a526b11e11fa1ef80e0c532a616cd29b9"
84
84
  }
@@ -3,7 +3,7 @@ import { defaultProposalBuilder as vaultProposalBuilder } from './add-collateral
3
3
  import { defaultProposalBuilder as oraclesProposalBuilder } from './price-feed-core.js';
4
4
 
5
5
  /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
6
- export const starsVaultProposalBuilder = async powers => {
6
+ const starsVaultProposalBuilder = async powers => {
7
7
  return vaultProposalBuilder(powers, {
8
8
  interchainAssetOptions: {
9
9
  // Values for the Stargaze token on Osmosis
@@ -18,7 +18,7 @@ export const starsVaultProposalBuilder = async powers => {
18
18
  };
19
19
 
20
20
  /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
21
- export const starsOraclesProposalBuilder = async powers => {
21
+ const starsOraclesProposalBuilder = async powers => {
22
22
  return oraclesProposalBuilder(powers, {
23
23
  AGORIC_INSTANCE_NAME: `STARS-USD price feed`,
24
24
  IN_BRAND_LOOKUP: ['agoricNames', 'oracleBrand', 'STARS'],
@@ -9,7 +9,7 @@ import { makeHelpers } from '@agoric/deploy-script-support';
9
9
  import { getManifestForGame1 } from '@agoric/smart-wallet/test/start-game1-proposal.js';
10
10
 
11
11
  /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
12
- export const game1ProposalBuilder = async ({ publishRef, install }) => {
12
+ const game1ProposalBuilder = async ({ publishRef, install }) => {
13
13
  return harden({
14
14
  sourceSpec: '@agoric/smart-wallet/test/start-game1-proposal.js',
15
15
  getManifestCall: [
@@ -4,7 +4,7 @@ import { defaultProposalBuilder as vaultProposalBuilder } from '../inter-protoco
4
4
  /** @file This is for use in tests in a3p-integration */
5
5
 
6
6
  /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
7
- export const starsVaultProposalBuilder = async powers => {
7
+ const starsVaultProposalBuilder = async powers => {
8
8
  return vaultProposalBuilder(powers, {
9
9
  interchainAssetOptions: {
10
10
  denom: 'ibc/000C0FFEECAFE000',
@@ -4,7 +4,7 @@ import { defaultProposalBuilder as vaultProposalBuilder } from '../inter-protoco
4
4
  /** @file This is for use in tests in a3p-integration */
5
5
 
6
6
  /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
7
- export const stars2VaultProposalBuilder = async powers => {
7
+ const stars2VaultProposalBuilder = async powers => {
8
8
  return vaultProposalBuilder(powers, {
9
9
  interchainAssetOptions: {
10
10
  denom: 'ibc/111C0FFEECAFE111',
@@ -0,0 +1,50 @@
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
+ hot: {
7
+ allegedName: 'Hot New Chain',
8
+ chainId: 'hot-1',
9
+ connections: {
10
+ 'cosmoshub-4': {
11
+ id: 'connection-99',
12
+ client_id: '07-tendermint-3',
13
+ counterparty: {
14
+ client_id: '07-tendermint-2',
15
+ connection_id: 'connection-1',
16
+ prefix: {
17
+ key_prefix: '',
18
+ },
19
+ },
20
+ state: 3 /* IBCConnectionState.STATE_OPEN */,
21
+ transferChannel: {
22
+ portId: 'transfer',
23
+ channelId: 'channel-1',
24
+ counterPartyChannelId: 'channel-1',
25
+ counterPartyPortId: 'transfer',
26
+ ordering: 1 /* Order.ORDER_UNORDERED */,
27
+ state: 3 /* IBCConnectionState.STATE_OPEN */,
28
+ version: 'ics20-1',
29
+ },
30
+ },
31
+ },
32
+ },
33
+ };
34
+
35
+ /** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
36
+ export const defaultProposalBuilder = async () =>
37
+ harden({
38
+ sourceSpec: '@agoric/orchestration/src/proposals/revise-chain-info.js',
39
+ getManifestCall: [
40
+ 'getManifestForReviseChains',
41
+ {
42
+ chainInfo,
43
+ },
44
+ ],
45
+ });
46
+
47
+ export default async (homeP, endowments) => {
48
+ const { writeCoreEval } = await makeHelpers(homeP, endowments);
49
+ await writeCoreEval('revise-chain-info', defaultProposalBuilder);
50
+ };
@@ -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
+ };