@agoric/orchestration 0.2.0-upgrade-18-dev-aaebae4.0 → 0.2.0-upgrade-18-dev-bd8fd54.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 (116) hide show
  1. package/index.d.ts +3 -0
  2. package/index.js +3 -0
  3. package/package.json +30 -29
  4. package/src/chain-capabilities.d.ts +15 -0
  5. package/src/chain-capabilities.d.ts.map +1 -0
  6. package/src/chain-capabilities.js +60 -0
  7. package/src/chain-info.d.ts +33 -20
  8. package/src/chain-info.d.ts.map +1 -1
  9. package/src/cosmos-api.d.ts +96 -21
  10. package/src/cosmos-api.d.ts.map +1 -1
  11. package/src/cosmos-api.ts +115 -28
  12. package/src/examples/auto-stake-it.contract.d.ts +19 -2
  13. package/src/examples/auto-stake-it.contract.d.ts.map +1 -1
  14. package/src/examples/auto-stake-it.contract.js +13 -2
  15. package/src/examples/auto-stake-it.flows.d.ts +1 -1
  16. package/src/examples/basic-flows.contract.d.ts +16 -1
  17. package/src/examples/basic-flows.contract.d.ts.map +1 -1
  18. package/src/examples/basic-flows.contract.js +14 -3
  19. package/src/examples/basic-flows.flows.d.ts +1 -1
  20. package/src/examples/send-anywhere.contract.d.ts +28 -5
  21. package/src/examples/send-anywhere.contract.d.ts.map +1 -1
  22. package/src/examples/send-anywhere.contract.js +11 -0
  23. package/src/examples/stake-bld.contract.d.ts +2 -2
  24. package/src/examples/stake-ica.contract.d.ts +5 -0
  25. package/src/examples/stake-ica.contract.d.ts.map +1 -1
  26. package/src/examples/staking-combinations.contract.d.ts +2 -0
  27. package/src/examples/staking-combinations.contract.d.ts.map +1 -1
  28. package/src/examples/staking-combinations.contract.js +1 -2
  29. package/src/examples/staking-combinations.flows.d.ts +4 -2
  30. package/src/examples/staking-combinations.flows.d.ts.map +1 -1
  31. package/src/examples/staking-combinations.flows.js +9 -4
  32. package/src/examples/swap.contract.d.ts +18 -2
  33. package/src/examples/swap.contract.d.ts.map +1 -1
  34. package/src/examples/swap.contract.js +6 -0
  35. package/src/exos/README.md +5 -4
  36. package/src/exos/chain-hub-admin.d.ts.map +1 -1
  37. package/src/exos/chain-hub-admin.js +1 -2
  38. package/src/exos/chain-hub.d.ts +37 -25
  39. package/src/exos/chain-hub.d.ts.map +1 -1
  40. package/src/exos/chain-hub.js +203 -18
  41. package/src/exos/cosmos-interchain-service.d.ts +5 -5
  42. package/src/exos/cosmos-interchain-service.d.ts.map +1 -1
  43. package/src/exos/cosmos-interchain-service.js +3 -3
  44. package/src/exos/cosmos-orchestration-account.d.ts +7 -24
  45. package/src/exos/cosmos-orchestration-account.d.ts.map +1 -1
  46. package/src/exos/cosmos-orchestration-account.js +27 -14
  47. package/src/exos/ibc-packet.d.ts.map +1 -1
  48. package/src/exos/ica-account-kit.d.ts +1 -3
  49. package/src/exos/ica-account-kit.d.ts.map +1 -1
  50. package/src/exos/local-chain-facade.d.ts +4 -2
  51. package/src/exos/local-chain-facade.d.ts.map +1 -1
  52. package/src/exos/local-orchestration-account.d.ts +13 -50
  53. package/src/exos/local-orchestration-account.d.ts.map +1 -1
  54. package/src/exos/local-orchestration-account.js +50 -53
  55. package/src/exos/orchestrator.d.ts +5 -7
  56. package/src/exos/orchestrator.d.ts.map +1 -1
  57. package/src/exos/orchestrator.js +12 -6
  58. package/src/exos/packet-tools.d.ts +1 -6
  59. package/src/exos/packet-tools.d.ts.map +1 -1
  60. package/src/exos/packet-tools.js +8 -12
  61. package/src/exos/portfolio-holder-kit.d.ts +4 -4
  62. package/src/exos/portfolio-holder-kit.d.ts.map +1 -1
  63. package/src/exos/portfolio-holder-kit.js +1 -1
  64. package/src/exos/remote-chain-facade.d.ts +3 -8
  65. package/src/exos/remote-chain-facade.d.ts.map +1 -1
  66. package/src/exos/remote-chain-facade.js +0 -2
  67. package/src/facade.d.ts.map +1 -1
  68. package/src/facade.js +0 -1
  69. package/src/fetched-chain-info.d.ts +43 -18
  70. package/src/fetched-chain-info.js +31 -18
  71. package/src/orchestration-api.d.ts +8 -5
  72. package/src/orchestration-api.d.ts.map +1 -1
  73. package/src/orchestration-api.ts +15 -14
  74. package/src/proposals/start-auto-stake-it.d.ts +52 -0
  75. package/src/proposals/start-auto-stake-it.d.ts.map +1 -0
  76. package/src/proposals/start-auto-stake-it.js +108 -0
  77. package/src/proposals/start-basic-flows.d.ts +39 -6
  78. package/src/proposals/start-basic-flows.d.ts.map +1 -1
  79. package/src/proposals/start-basic-flows.js +60 -21
  80. package/src/proposals/start-send-anywhere.d.ts +105 -0
  81. package/src/proposals/start-send-anywhere.d.ts.map +1 -0
  82. package/src/proposals/start-send-anywhere.js +150 -0
  83. package/src/proposals/start-stakeAtom.d.ts +5 -0
  84. package/src/proposals/start-stakeAtom.d.ts.map +1 -1
  85. package/src/proposals/start-stakeBld.d.ts +2 -2
  86. package/src/proposals/start-stakeOsmo.d.ts +5 -0
  87. package/src/proposals/start-stakeOsmo.d.ts.map +1 -1
  88. package/src/typeGuards.d.ts +27 -4
  89. package/src/typeGuards.d.ts.map +1 -1
  90. package/src/typeGuards.js +103 -26
  91. package/src/types.d.ts +1 -0
  92. package/src/types.d.ts.map +1 -1
  93. package/src/types.ts +1 -0
  94. package/src/utils/address.d.ts +2 -1
  95. package/src/utils/address.d.ts.map +1 -1
  96. package/src/utils/address.js +18 -1
  97. package/src/utils/asset.d.ts +5 -0
  98. package/src/utils/asset.d.ts.map +1 -0
  99. package/src/utils/asset.js +33 -0
  100. package/src/utils/chain-hub-helper.d.ts +8 -0
  101. package/src/utils/chain-hub-helper.d.ts.map +1 -0
  102. package/src/utils/chain-hub-helper.js +60 -0
  103. package/src/utils/orchestrationAccount.js +2 -2
  104. package/src/utils/packet.d.ts +1 -1
  105. package/src/utils/packet.d.ts.map +1 -1
  106. package/src/utils/registry.d.ts +2 -0
  107. package/src/utils/registry.d.ts.map +1 -1
  108. package/src/utils/registry.js +3 -1
  109. package/src/utils/start-helper.d.ts +7 -4
  110. package/src/utils/start-helper.d.ts.map +1 -1
  111. package/src/utils/start-helper.js +6 -4
  112. package/src/utils/time.d.ts +1 -1
  113. package/src/utils/time.d.ts.map +1 -1
  114. package/src/vat-orchestration.d.ts +9 -9
  115. package/src/vat-orchestration.d.ts.map +1 -1
  116. package/src/vat-orchestration.js +2 -2
@@ -6,6 +6,7 @@ import { makeStorageNodeChild } from '@agoric/internal/src/lib-chainStorage.js';
6
6
  import { E } from '@endo/far';
7
7
 
8
8
  /**
9
+ * @import {CosmosChainInfo, Denom, DenomDetail} from '@agoric/orchestration';
9
10
  * @import {BasicFlowsSF} from '../examples/basic-flows.contract.js';
10
11
  */
11
12
 
@@ -15,30 +16,59 @@ const contractName = 'basicFlows';
15
16
  /**
16
17
  * See `@agoric/builders/builders/scripts/orchestration/init-basic-flows.js` for
17
18
  * the accompanying proposal builder. Run `agoric run
18
- * packages/builders/scripts/orchestration/init-basic-flows.js` to build the
19
+ * packages/builders/scripts/orchestration/init-basic-flows.js --chainInfo
20
+ * 'chainName:CosmosChainInfo' --assetInfo 'denom:DenomDetail'` to build the
19
21
  * contract and proposal files.
20
22
  *
21
- * @param {BootstrapPowers} powers
23
+ * @param {BootstrapPowers & {
24
+ * installation: {
25
+ * consume: {
26
+ * basicFlows: Installation<BasicFlowsSF>;
27
+ * };
28
+ * };
29
+ * instance: {
30
+ * produce: {
31
+ * basicFlows: Producer<Instance>;
32
+ * };
33
+ * };
34
+ * issuer: {
35
+ * consume: {
36
+ * BLD: Issuer<'nat'>;
37
+ * IST: Issuer<'nat'>;
38
+ * USDC: Issuer<'nat'>;
39
+ * };
40
+ * };
41
+ * }} powers
42
+ * @param {{
43
+ * options: {
44
+ * chainInfo: Record<string, CosmosChainInfo>;
45
+ * assetInfo: [Denom, DenomDetail & { brandKey?: string }][];
46
+ * };
47
+ * }} config
22
48
  */
23
- export const startBasicFlows = async ({
24
- consume: {
25
- agoricNames,
26
- board,
27
- chainStorage,
28
- chainTimerService,
29
- cosmosInterchainService,
30
- localchain,
31
- startUpgradable,
32
- },
33
- installation: {
34
- // @ts-expect-error not a WellKnownName
35
- consume: { [contractName]: installation },
36
- },
37
- instance: {
38
- // @ts-expect-error not a WellKnownName
39
- produce: { [contractName]: produceInstance },
49
+ export const startBasicFlows = async (
50
+ {
51
+ consume: {
52
+ agoricNames,
53
+ board,
54
+ chainStorage,
55
+ chainTimerService,
56
+ cosmosInterchainService,
57
+ localchain,
58
+ startUpgradable,
59
+ },
60
+ installation: {
61
+ consume: { [contractName]: installation },
62
+ },
63
+ instance: {
64
+ produce: { [contractName]: produceInstance },
65
+ },
66
+ issuer: {
67
+ consume: { BLD, IST },
68
+ },
40
69
  },
41
- }) => {
70
+ { options: { chainInfo, assetInfo } },
71
+ ) => {
42
72
  trace(`start ${contractName}`);
43
73
  await null;
44
74
 
@@ -49,6 +79,10 @@ export const startBasicFlows = async ({
49
79
  const startOpts = {
50
80
  label: 'basicFlows',
51
81
  installation,
82
+ issuerKeywordRecord: {
83
+ BLD: await BLD,
84
+ IST: await IST,
85
+ },
52
86
  terms: undefined,
53
87
  privateArgs: {
54
88
  agoricNames: await agoricNames,
@@ -57,6 +91,8 @@ export const startBasicFlows = async ({
57
91
  storageNode,
58
92
  marshaller,
59
93
  timerService: await chainTimerService,
94
+ chainInfo,
95
+ assetInfo,
60
96
  },
61
97
  };
62
98
 
@@ -67,7 +103,7 @@ harden(startBasicFlows);
67
103
 
68
104
  export const getManifestForContract = (
69
105
  { restoreRef },
70
- { installKeys, ...options },
106
+ { installKeys, options },
71
107
  ) => {
72
108
  return {
73
109
  manifest: {
@@ -87,6 +123,9 @@ export const getManifestForContract = (
87
123
  instance: {
88
124
  produce: { [contractName]: true },
89
125
  },
126
+ issuer: {
127
+ consume: { BLD: true, IST: true },
128
+ },
90
129
  },
91
130
  },
92
131
  installations: {
@@ -0,0 +1,105 @@
1
+ export function startSendAnywhere({ consume: { agoricNames, board, chainStorage, chainTimerService, cosmosInterchainService, localchain, startUpgradable, }, installation: { consume: { sendAnywhere }, }, instance: { produce: { sendAnywhere: produceInstance }, }, issuer: { consume: { BLD, IST }, }, }: BootstrapPowers & {
2
+ installation: {
3
+ consume: {
4
+ sendAnywhere: Installation<(zcf: ZCF<Record<string, unknown>>, privateArgs: import("@agoric/orchestration").OrchestrationPowers & {
5
+ marshaller: Marshaller;
6
+ chainInfo?: Record<string, Readonly<{
7
+ bech32Prefix?: string;
8
+ chainId: string;
9
+ connections?: Record<string, import("@agoric/orchestration").IBCConnectionInfo>;
10
+ icqEnabled?: boolean;
11
+ pfmEnabled?: boolean;
12
+ stakingTokens?: Readonly<Array<{
13
+ denom: string;
14
+ }>>;
15
+ }>>;
16
+ assetInfo?: [Denom, DenomDetail & {
17
+ brandKey?: string;
18
+ }][];
19
+ }, baggage: import("@agoric/vat-data").Baggage) => Promise<{
20
+ publicFacet: import("@endo/exo").Guarded<{
21
+ makeSendInvitation(): Promise<Invitation<import("@agoric/vow").Vow<void>, {
22
+ chainName: string;
23
+ destAddr: string;
24
+ }>>;
25
+ }>;
26
+ creatorFacet: import("@endo/exo").Guarded<{
27
+ registerChain(chainName: string, chainInfo: Readonly<{
28
+ bech32Prefix?: string;
29
+ chainId: string;
30
+ connections?: Record<string, import("@agoric/orchestration").IBCConnectionInfo>;
31
+ icqEnabled?: boolean;
32
+ pfmEnabled?: boolean;
33
+ stakingTokens?: Readonly<Array<{
34
+ denom: string;
35
+ }>>;
36
+ }>, connectionInfo: import("@agoric/orchestration").IBCConnectionInfo): Promise<void>;
37
+ registerAsset(denom: Denom, detail: DenomDetail): Promise<void>;
38
+ }>;
39
+ }>>;
40
+ };
41
+ };
42
+ instance: {
43
+ produce: {
44
+ sendAnywhere: Producer<Instance>;
45
+ };
46
+ };
47
+ issuer: {
48
+ consume: {
49
+ BLD: Issuer<"nat">;
50
+ IST: Issuer<"nat">;
51
+ };
52
+ };
53
+ }, { options: { chainInfo, assetInfo } }: {
54
+ options: {
55
+ chainInfo: Record<string, CosmosChainInfo>;
56
+ assetInfo: [Denom, DenomDetail & {
57
+ brandKey?: string;
58
+ }][];
59
+ };
60
+ }): Promise<void>;
61
+ export function getManifest({ restoreRef }: {
62
+ restoreRef: any;
63
+ }, { installationRef, options }: {
64
+ installationRef: any;
65
+ options: any;
66
+ }): {
67
+ manifest: {
68
+ [x: string]: {
69
+ consume: {
70
+ agoricNames: boolean;
71
+ board: boolean;
72
+ chainStorage: boolean;
73
+ chainTimerService: boolean;
74
+ cosmosInterchainService: boolean;
75
+ localchain: boolean;
76
+ startUpgradable: boolean;
77
+ };
78
+ installation: {
79
+ consume: {
80
+ sendAnywhere: boolean;
81
+ };
82
+ };
83
+ instance: {
84
+ produce: {
85
+ sendAnywhere: boolean;
86
+ };
87
+ };
88
+ issuer: {
89
+ consume: {
90
+ BLD: boolean;
91
+ IST: boolean;
92
+ };
93
+ };
94
+ };
95
+ };
96
+ installations: {
97
+ sendAnywhere: any;
98
+ };
99
+ options: any;
100
+ };
101
+ import type { Denom } from '@agoric/orchestration';
102
+ import type { DenomDetail } from '@agoric/orchestration';
103
+ import type { Installation } from '@agoric/zoe/src/zoeService/utils.js';
104
+ import type { CosmosChainInfo } from '@agoric/orchestration';
105
+ //# sourceMappingURL=start-send-anywhere.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start-send-anywhere.d.ts","sourceRoot":"","sources":["start-send-anywhere.js"],"names":[],"mappings":"AA2CO,6SAzBI,eAAe,GAAG;IACxB,YAAY,EAAE;QACZ,OAAO,EAAE;YACP,YAAY,EAAE;;;;;;;;;;;;;4BA6BM,CAAC;;;;;;;;;;;;;;;;;;;;;;eA7Bc,CAAC;SACrC,CAAC;KACH,CAAC;IACF,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,YAAY,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;SAClC,CAAC;KACH,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE;YACP,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;YACnB,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;SACpB,CAAC;KACH,CAAC;CACH,yCACO;IACN,OAAO,EAAE;QACP,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;QAC3C,SAAS,EAAE,CAAC,KAAK,EAAE,WAAW,GAAG;YAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,EAAE,CAAC;KAC3D,CAAC;CACH,iBA2EH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BN;2BA1IqD,uBAAuB;iCAAvB,uBAAuB;kCAD9C,qCAAqC;qCACd,uBAAuB"}
@@ -0,0 +1,150 @@
1
+ import {
2
+ deeplyFulfilledObject,
3
+ makeTracer,
4
+ NonNullish,
5
+ } from '@agoric/internal';
6
+ import { E } from '@endo/far';
7
+
8
+ /// <reference types="@agoric/vats/src/core/types-ambient"/>
9
+
10
+ /**
11
+ * @import {Installation} from '@agoric/zoe/src/zoeService/utils.js';
12
+ * @import {CosmosChainInfo, Denom, DenomDetail} from '@agoric/orchestration';
13
+ * @import {start as StartFn} from '@agoric/orchestration/src/examples/send-anywhere.contract.js';
14
+ */
15
+
16
+ const trace = makeTracer('StartSA', true);
17
+
18
+ /**
19
+ * @param {BootstrapPowers & {
20
+ * installation: {
21
+ * consume: {
22
+ * sendAnywhere: Installation<StartFn>;
23
+ * };
24
+ * };
25
+ * instance: {
26
+ * produce: {
27
+ * sendAnywhere: Producer<Instance>;
28
+ * };
29
+ * };
30
+ * issuer: {
31
+ * consume: {
32
+ * BLD: Issuer<'nat'>;
33
+ * IST: Issuer<'nat'>;
34
+ * };
35
+ * };
36
+ * }} powers
37
+ * @param {{
38
+ * options: {
39
+ * chainInfo: Record<string, CosmosChainInfo>;
40
+ * assetInfo: [Denom, DenomDetail & { brandKey?: string }][];
41
+ * };
42
+ * }} config
43
+ */
44
+ export const startSendAnywhere = async (
45
+ {
46
+ consume: {
47
+ agoricNames,
48
+ board,
49
+ chainStorage,
50
+ chainTimerService,
51
+ cosmosInterchainService,
52
+ localchain,
53
+ startUpgradable,
54
+ },
55
+ installation: {
56
+ consume: { sendAnywhere },
57
+ },
58
+ instance: {
59
+ produce: { sendAnywhere: produceInstance },
60
+ },
61
+ issuer: {
62
+ consume: { BLD, IST },
63
+ },
64
+ },
65
+ { options: { chainInfo, assetInfo } },
66
+ ) => {
67
+ trace(startSendAnywhere.name);
68
+
69
+ const marshaller = await E(board).getReadonlyMarshaller();
70
+
71
+ const privateArgs = await deeplyFulfilledObject(
72
+ harden({
73
+ agoricNames,
74
+ localchain,
75
+ marshaller,
76
+ orchestrationService: cosmosInterchainService,
77
+ storageNode: E(NonNullish(await chainStorage)).makeChildNode(
78
+ 'send-anywhere',
79
+ ),
80
+ timerService: chainTimerService,
81
+ chainInfo,
82
+ assetInfo,
83
+ }),
84
+ );
85
+
86
+ /** @param {() => Promise<Issuer>} p */
87
+ const safeFulfill = async p =>
88
+ E.when(
89
+ p(),
90
+ i => i,
91
+ () => undefined,
92
+ );
93
+
94
+ const atomIssuer = await safeFulfill(() =>
95
+ E(agoricNames).lookup('issuer', 'ATOM'),
96
+ );
97
+ const osmoIssuer = await safeFulfill(() =>
98
+ E(agoricNames).lookup('issuer', 'OSMO'),
99
+ );
100
+
101
+ const issuerKeywordRecord = harden({
102
+ BLD: await BLD,
103
+ IST: await IST,
104
+ ...(atomIssuer && { ATOM: atomIssuer }),
105
+ ...(osmoIssuer && { OSMO: osmoIssuer }),
106
+ });
107
+ trace('issuerKeywordRecord', issuerKeywordRecord);
108
+
109
+ const { instance } = await E(startUpgradable)({
110
+ label: 'send-anywhere',
111
+ installation: sendAnywhere,
112
+ issuerKeywordRecord,
113
+ privateArgs,
114
+ });
115
+ produceInstance.resolve(instance);
116
+ trace('done');
117
+ };
118
+ harden(startSendAnywhere);
119
+
120
+ export const getManifest = ({ restoreRef }, { installationRef, options }) => {
121
+ return {
122
+ manifest: {
123
+ [startSendAnywhere.name]: {
124
+ consume: {
125
+ agoricNames: true,
126
+ board: true,
127
+ chainStorage: true,
128
+ chainTimerService: true,
129
+ cosmosInterchainService: true,
130
+ localchain: true,
131
+
132
+ startUpgradable: true,
133
+ },
134
+ installation: {
135
+ consume: { sendAnywhere: true },
136
+ },
137
+ instance: {
138
+ produce: { sendAnywhere: true },
139
+ },
140
+ issuer: {
141
+ consume: { BLD: true, IST: true },
142
+ },
143
+ },
144
+ },
145
+ installations: {
146
+ sendAnywhere: restoreRef(installationRef),
147
+ },
148
+ options,
149
+ };
150
+ };
@@ -91,6 +91,11 @@ export function startStakeAtom({ consume: { agoricNames, board, chainStorage, ch
91
91
  }[]>;
92
92
  getReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>;
93
93
  getRewards(): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../cosmos-api.js").CosmosRewardsResponse>>;
94
+ executeEncodedTx(msgs: {
95
+ $typeUrl?: "/google.protobuf.Any" | string | undefined;
96
+ typeUrl: string;
97
+ value: string;
98
+ }[], opts?: Partial<Omit<import("@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js").TxBody, "messages">> | undefined): import("@agoric/vow").Vow<string>;
94
99
  }>>;
95
100
  makeAccountInvitationMaker(): Promise<Invitation<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult, undefined>>;
96
101
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"start-stakeAtom.d.ts","sourceRoot":"","sources":["start-stakeAtom.js"],"names":[],"mappings":"AAyBO,0PAVI,eAAe,GAAG;IACxB,YAAY,EAAE;QACZ,OAAO,EAAE;YACP,QAAQ,EAAE,YAAY,CAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA2D,CAClD,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBA4DH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN;mCAzG4C,gCAAgC"}
1
+ {"version":3,"file":"start-stakeAtom.d.ts","sourceRoot":"","sources":["start-stakeAtom.js"],"names":[],"mappings":"AAyBO,0PAVI,eAAe,GAAG;IACxB,YAAY,EAAE;QACZ,OAAO,EAAE;YACP,QAAQ,EAAE,YAAY,CAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA2D,CAClD,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBA4DH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN;mCAzG4C,gCAAgC"}
@@ -17,7 +17,7 @@ export function startStakeBld({ consume: { agoricNames: agoricNamesP, board, cha
17
17
  getPublicTopics(): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>>>>;
18
18
  delegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").Vow<Record<unknown, unknown>>;
19
19
  undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").Vow<void | import("@agoric/time").TimestampRecord>;
20
- deposit(payment: globalThis.Payment<"nat">): import("@agoric/vow").Vow<void>;
20
+ deposit(payment: globalThis.Payment<"nat">): import("@agoric/vow").Vow<import("@agoric/ertp").NatAmount>;
21
21
  withdraw(amount: import("@agoric/ertp").NatAmount): import("@agoric/vow").Vow<globalThis.Payment<"nat">>;
22
22
  executeTx(messages: {
23
23
  '@type': string;
@@ -27,7 +27,7 @@ export function startStakeBld({ consume: { agoricNames: agoricNamesP, board, cha
27
27
  getAddress(): import("../orchestration-api.js").ChainAddress;
28
28
  send(toAccount: import("../orchestration-api.js").ChainAddress, amounts: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void>;
29
29
  sendAll(toAccount: import("../orchestration-api.js").ChainAddress, amounts: import("../orchestration-api.js").AmountArg[]): import("@agoric/vow").Vow<void>;
30
- transfer(destination: import("../orchestration-api.js").ChainAddress, amount: import("../orchestration-api.js").AmountArg, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): import("@agoric/vow").Vow<any>;
30
+ transfer(destination: import("../orchestration-api.js").ChainAddress, amount: import("../orchestration-api.js").AmountArg, opts?: import("../cosmos-api.js").IBCMsgTransferOptions): import("@agoric/vow").Vow<any>;
31
31
  transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): import("@agoric/vow").Vow<void>;
32
32
  sendThenWaitForAck(packetSender: import("@agoric/internal").Remote<import("../exos/packet-tools.js").PacketSender>, opts?: import("../exos/packet-tools.js").PacketOptions | undefined): import("@agoric/async-flow").HostInterface<import("@agoric/vow").Vow<any>>;
33
33
  matchFirstPacket(args_0?: import("@agoric/vow").EVow<globalThis.Pattern>): import("@agoric/async-flow").HostInterface<import("@agoric/vow").Vow<{
@@ -91,6 +91,11 @@ export function startStakeOsmo({ consume: { agoricNames, board, chainStorage, ch
91
91
  }[]>;
92
92
  getReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>;
93
93
  getRewards(): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../cosmos-api.js").CosmosRewardsResponse>>;
94
+ executeEncodedTx(msgs: {
95
+ $typeUrl?: "/google.protobuf.Any" | string | undefined;
96
+ typeUrl: string;
97
+ value: string;
98
+ }[], opts?: Partial<Omit<import("@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js").TxBody, "messages">> | undefined): import("@agoric/vow").Vow<string>;
94
99
  }>>;
95
100
  makeAccountInvitationMaker(): Promise<Invitation<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult, undefined>>;
96
101
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"start-stakeOsmo.d.ts","sourceRoot":"","sources":["start-stakeOsmo.js"],"names":[],"mappings":"AA8BO,0PAfI,eAAe,GAAG;IACxB,YAAY,EAAE;QACZ,OAAO,EAAE;YACP,QAAQ,EAAE,YAAY,CAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA2D,CAClD,CAAC;SACH,CAAC;KACH,CAAC;IACF,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,SAAS,EAAE,GAAG,CAAC;SAChB,CAAC;KACH,CAAC;CACH,iBA4DH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN"}
1
+ {"version":3,"file":"start-stakeOsmo.d.ts","sourceRoot":"","sources":["start-stakeOsmo.js"],"names":[],"mappings":"AA8BO,0PAfI,eAAe,GAAG;IACxB,YAAY,EAAE;QACZ,OAAO,EAAE;YACP,QAAQ,EAAE,YAAY,CAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA2D,CAClD,CAAC;SACH,CAAC;KACH,CAAC;IACF,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,SAAS,EAAE,GAAG,CAAC;SAChB,CAAC;KACH,CAAC;CACH,iBA4DH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN"}
@@ -1,10 +1,11 @@
1
1
  /**
2
2
  * @import {TypedPattern} from '@agoric/internal';
3
- * @import {ChainAddress, CosmosAssetInfo, Chain, ChainInfo, CosmosChainInfo, DenomAmount, DenomDetail, DenomInfo, AmountArg, CosmosValidatorAddress} from './types.js';
3
+ * @import {ChainAddress, CosmosAssetInfo, Chain, ChainInfo, CosmosChainInfo, DenomAmount, DenomInfo, AmountArg, CosmosValidatorAddress, OrchestrationPowers, ForwardInfo, IBCMsgTransferOptions} from './types.js';
4
4
  * @import {Any as Proto3Msg} from '@agoric/cosmic-proto/google/protobuf/any.js';
5
- * @import {Delegation} from '@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js';
6
5
  * @import {TxBody} from '@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js';
6
+ * @import {Coin} from '@agoric/cosmic-proto/cosmos/base/v1beta1/coin.js';
7
7
  * @import {TypedJson} from '@agoric/cosmic-proto';
8
+ * @import {DenomDetail} from './exos/chain-hub.js';
8
9
  */
9
10
  /**
10
11
  * Used for IBC Channel Connections that only send outgoing transactions. If
@@ -20,8 +21,6 @@ export const ChainAddressShape: TypedPattern<ChainAddress>;
20
21
  /** @type {TypedPattern<Proto3Msg>} */
21
22
  export const Proto3Shape: TypedPattern<Proto3Msg>;
22
23
  /** @internal */
23
- export const IBCTransferOptionsShape: import("@endo/patterns").Matcher;
24
- /** @internal */
25
24
  export const IBCChannelIDShape: import("@endo/patterns").Matcher;
26
25
  /** @internal */
27
26
  export const IBCChannelInfoShape: import("@endo/patterns").Matcher;
@@ -36,8 +35,12 @@ export const CosmosChainInfoShape: TypedPattern<CosmosChainInfo>;
36
35
  /** @type {TypedPattern<ChainInfo>} */
37
36
  export const ChainInfoShape: TypedPattern<ChainInfo>;
38
37
  export const DenomShape: import("@endo/patterns").Matcher;
38
+ /** @type {TypedPattern<Coin>} */
39
+ export const CoinShape: TypedPattern<Coin>;
39
40
  /** @type {TypedPattern<DenomInfo<any, any>>} */
40
41
  export const DenomInfoShape: TypedPattern<DenomInfo<any, any>>;
42
+ /** @type {TypedPattern<DenomDetail>} */
43
+ export const DenomDetailShape: TypedPattern<DenomDetail>;
41
44
  /** @type {TypedPattern<DenomAmount>} */
42
45
  export const DenomAmountShape: TypedPattern<DenomAmount>;
43
46
  /** @type {TypedPattern<Amount<'nat'>>} */
@@ -77,15 +80,35 @@ export const TxBodyOptsShape: import("@endo/patterns").Matcher;
77
80
  * permits Nat (fungible) amounts.
78
81
  */
79
82
  export const AnyNatAmountsRecord: import("@endo/patterns").Matcher;
83
+ /** @type {TypedPattern<OrchestrationPowers>} */
84
+ export const OrchestrationPowersShape: TypedPattern<OrchestrationPowers>;
85
+ /** @type {TypedPattern<ForwardInfo>} */
86
+ export const ForwardInfoShape: TypedPattern<ForwardInfo>;
87
+ /**
88
+ * Caller configurable values of {@link ForwardInfo}
89
+ *
90
+ * @type {TypedPattern<IBCMsgTransferOptions['forwardOpts']>}
91
+ */
92
+ export const ForwardOptsShape: TypedPattern<IBCMsgTransferOptions["forwardOpts"]>;
93
+ /**
94
+ * @type {TypedPattern<IBCMsgTransferOptions>}
95
+ * @internal
96
+ */
97
+ export const IBCTransferOptionsShape: TypedPattern<IBCMsgTransferOptions>;
80
98
  import type { ChainAddress } from './types.js';
81
99
  import type { TypedPattern } from '@agoric/internal';
82
100
  import type { Any as Proto3Msg } from '@agoric/cosmic-proto/google/protobuf/any.js';
83
101
  import type { CosmosAssetInfo } from './types.js';
84
102
  import type { CosmosChainInfo } from './types.js';
85
103
  import type { ChainInfo } from './types.js';
104
+ import type { Coin } from '@agoric/cosmic-proto/cosmos/base/v1beta1/coin.js';
86
105
  import type { DenomInfo } from './types.js';
106
+ import type { DenomDetail } from './exos/chain-hub.js';
87
107
  import type { DenomAmount } from './types.js';
88
108
  import type { AmountArg } from './types.js';
89
109
  import type { CosmosValidatorAddress } from './types.js';
90
110
  import type { TypedJson } from '@agoric/cosmic-proto';
111
+ import type { OrchestrationPowers } from './types.js';
112
+ import type { ForwardInfo } from './types.js';
113
+ import type { IBCMsgTransferOptions } from './types.js';
91
114
  //# sourceMappingURL=typeGuards.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAEH;;;;GAIG;AACH;;;GAQE;AAEF,yCAAyC;AACzC,gCADW,aAAa,YAAY,CAAC,CAKnC;AAEF,sCAAsC;AACtC,0BADW,aAAa,SAAS,CAAC,CAIhC;AAEF,gBAAgB;AAChB,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