@agoric/orchestration 0.2.0 → 0.2.1-upgrade-23-dev-bd79330.0.bd79330

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 (234) hide show
  1. package/index.js +0 -4
  2. package/package.json +27 -27
  3. package/src/axelar-types.d.ts +2 -0
  4. package/src/axelar-types.d.ts.map +1 -1
  5. package/src/axelar-types.js +2 -0
  6. package/src/cctp-chain-info.js +4 -1
  7. package/src/chain-info.d.ts +21 -6
  8. package/src/chain-info.d.ts.map +1 -1
  9. package/src/chain-info.js +9 -8
  10. package/src/cosmos-api.d.ts +102 -29
  11. package/src/cosmos-api.d.ts.map +1 -1
  12. package/src/cosmos-api.js +585 -0
  13. package/src/{ethereum-api.ts → ethereum-api.js} +1 -1
  14. package/src/examples/auto-stake-it-tap-kit.d.ts +4 -3
  15. package/src/examples/auto-stake-it-tap-kit.d.ts.map +1 -1
  16. package/src/examples/auto-stake-it-tap-kit.js +3 -4
  17. package/src/examples/auto-stake-it.contract.d.ts +6 -4
  18. package/src/examples/auto-stake-it.contract.d.ts.map +1 -1
  19. package/src/examples/auto-stake-it.contract.js +3 -1
  20. package/src/examples/auto-stake-it.flows.d.ts +2 -1
  21. package/src/examples/auto-stake-it.flows.d.ts.map +1 -1
  22. package/src/examples/auto-stake-it.flows.js +1 -0
  23. package/src/examples/axelar-gmp-account-kit.d.ts +6 -4
  24. package/src/examples/axelar-gmp-account-kit.d.ts.map +1 -1
  25. package/src/examples/axelar-gmp-account-kit.js +4 -2
  26. package/src/examples/axelar-gmp.contract.d.ts +8 -8
  27. package/src/examples/axelar-gmp.contract.d.ts.map +1 -1
  28. package/src/examples/axelar-gmp.contract.js +2 -2
  29. package/src/examples/axelar-gmp.flows.d.ts +1 -1
  30. package/src/examples/basic-flows.contract.d.ts +7 -5
  31. package/src/examples/basic-flows.contract.d.ts.map +1 -1
  32. package/src/examples/basic-flows.contract.js +3 -1
  33. package/src/examples/basic-flows.flows.d.ts +2 -1
  34. package/src/examples/basic-flows.flows.d.ts.map +1 -1
  35. package/src/examples/basic-flows.flows.js +1 -0
  36. package/src/examples/send-anywhere.contract.d.ts +12 -6
  37. package/src/examples/send-anywhere.contract.d.ts.map +1 -1
  38. package/src/examples/send-anywhere.contract.js +4 -1
  39. package/src/examples/send-anywhere.flows.d.ts +3 -2
  40. package/src/examples/send-anywhere.flows.d.ts.map +1 -1
  41. package/src/examples/send-anywhere.flows.js +3 -6
  42. package/src/examples/stake-bld.contract.d.ts +206 -25
  43. package/src/examples/stake-bld.contract.d.ts.map +1 -1
  44. package/src/examples/stake-bld.contract.js +19 -4
  45. package/src/examples/stake-ica.contract.d.ts +434 -71
  46. package/src/examples/stake-ica.contract.d.ts.map +1 -1
  47. package/src/examples/stake-ica.contract.js +28 -6
  48. package/src/examples/staking-combinations.contract.d.ts +4 -2
  49. package/src/examples/staking-combinations.contract.d.ts.map +1 -1
  50. package/src/examples/staking-combinations.contract.js +5 -3
  51. package/src/examples/staking-combinations.flows.d.ts +3 -2
  52. package/src/examples/staking-combinations.flows.d.ts.map +1 -1
  53. package/src/examples/staking-combinations.flows.js +7 -6
  54. package/src/examples/swap-anything.contract.d.ts +14 -7
  55. package/src/examples/swap-anything.contract.d.ts.map +1 -1
  56. package/src/examples/swap-anything.contract.js +12 -8
  57. package/src/examples/swap.contract.d.ts +18 -6
  58. package/src/examples/swap.contract.d.ts.map +1 -1
  59. package/src/examples/swap.contract.js +9 -3
  60. package/src/examples/swap.flows.d.ts +2 -0
  61. package/src/examples/swap.flows.d.ts.map +1 -1
  62. package/src/examples/swap.flows.js +2 -0
  63. package/src/examples/unbond.contract.d.ts +7 -4
  64. package/src/examples/unbond.contract.d.ts.map +1 -1
  65. package/src/examples/unbond.contract.js +6 -3
  66. package/src/exos/chain-hub-admin.d.ts +1 -19
  67. package/src/exos/chain-hub-admin.d.ts.map +1 -1
  68. package/src/exos/chain-hub-admin.js +1 -1
  69. package/src/exos/chain-hub.d.ts +4 -2
  70. package/src/exos/chain-hub.d.ts.map +1 -1
  71. package/src/exos/chain-hub.js +2 -1
  72. package/src/exos/combine-invitation-makers.d.ts +2 -1
  73. package/src/exos/combine-invitation-makers.d.ts.map +1 -1
  74. package/src/exos/combine-invitation-makers.js +2 -1
  75. package/src/exos/cosmos-orchestration-account.d.ts +615 -98
  76. package/src/exos/cosmos-orchestration-account.d.ts.map +1 -1
  77. package/src/exos/cosmos-orchestration-account.js +695 -306
  78. package/src/exos/exo-interfaces.js +35 -0
  79. package/src/exos/ibc-packet.d.ts +11 -9
  80. package/src/exos/ibc-packet.d.ts.map +1 -1
  81. package/src/exos/ibc-packet.js +33 -8
  82. package/src/exos/ica-account-kit.d.ts +4 -9
  83. package/src/exos/ica-account-kit.d.ts.map +1 -1
  84. package/src/exos/ica-account-kit.js +10 -7
  85. package/src/exos/icq-connection-kit.d.ts +1 -1
  86. package/src/exos/local-chain-facade.d.ts +1542 -5
  87. package/src/exos/local-chain-facade.d.ts.map +1 -1
  88. package/src/exos/local-chain-facade.js +4 -2
  89. package/src/exos/local-orchestration-account.d.ts +201 -56
  90. package/src/exos/local-orchestration-account.d.ts.map +1 -1
  91. package/src/exos/local-orchestration-account.js +260 -51
  92. package/src/exos/orchestrator.d.ts +35813 -73
  93. package/src/exos/orchestrator.d.ts.map +1 -1
  94. package/src/exos/orchestrator.js +7 -10
  95. package/src/exos/packet-tools.d.ts +19 -8
  96. package/src/exos/packet-tools.d.ts.map +1 -1
  97. package/src/exos/packet-tools.js +92 -9
  98. package/src/exos/portfolio-holder-kit.d.ts +90 -2
  99. package/src/exos/portfolio-holder-kit.d.ts.map +1 -1
  100. package/src/exos/remote-chain-facade.d.ts +1499 -1
  101. package/src/exos/remote-chain-facade.d.ts.map +1 -1
  102. package/src/exos/remote-chain-facade.js +8 -3
  103. package/src/facade.d.ts +1 -0
  104. package/src/facade.d.ts.map +1 -1
  105. package/src/facade.js +4 -6
  106. package/src/fixtures/query-flows.contract.d.ts +8 -6
  107. package/src/fixtures/query-flows.contract.d.ts.map +1 -1
  108. package/src/fixtures/query-flows.contract.js +3 -1
  109. package/src/fixtures/query-flows.flows.d.ts +1 -0
  110. package/src/fixtures/query-flows.flows.d.ts.map +1 -1
  111. package/src/fixtures/query-flows.flows.js +1 -0
  112. package/src/orchestration-api.d.ts +46 -16
  113. package/src/orchestration-api.d.ts.map +1 -1
  114. package/src/orchestration-api.js +410 -0
  115. package/src/proposals/init-chain-info.js +10 -2
  116. package/src/proposals/orchestration-proposal.js +3 -0
  117. package/src/proposals/revise-chain-info.js +4 -1
  118. package/src/proposals/start-auto-stake-it.js +1 -0
  119. package/src/proposals/start-axelar-gmp.js +2 -2
  120. package/src/proposals/start-basic-flows.js +5 -0
  121. package/src/proposals/start-send-anywhere.js +4 -2
  122. package/src/proposals/start-stakeAtom.js +5 -4
  123. package/src/proposals/start-stakeBld.js +8 -6
  124. package/src/proposals/start-stakeOsmo.js +5 -4
  125. package/src/proposals/start-swap-anything.js +4 -2
  126. package/src/stubs/{viem-abi.d.ts → viem-typedData.js} +10 -4
  127. package/src/typeGuards.d.ts +38 -5
  128. package/src/typeGuards.d.ts.map +1 -1
  129. package/src/typeGuards.js +92 -22
  130. package/src/types.d.ts +1 -0
  131. package/src/types.d.ts.map +1 -1
  132. package/src/types.js +27 -0
  133. package/src/utils/abitype.d.ts +6 -0
  134. package/src/utils/abitype.d.ts.map +1 -0
  135. package/src/utils/abitype.js +13 -0
  136. package/src/utils/address.d.ts +3 -1
  137. package/src/utils/address.d.ts.map +1 -1
  138. package/src/utils/address.js +24 -2
  139. package/src/utils/agd-lib.d.ts +1 -51
  140. package/src/utils/agd-lib.d.ts.map +1 -1
  141. package/src/utils/agd-lib.js +1 -1
  142. package/src/utils/amounts.d.ts +1 -0
  143. package/src/utils/amounts.d.ts.map +1 -1
  144. package/src/utils/amounts.js +1 -0
  145. package/src/utils/asset.d.ts +1 -0
  146. package/src/utils/asset.d.ts.map +1 -1
  147. package/src/utils/asset.js +1 -0
  148. package/src/utils/chain-hub-helper.d.ts +1 -0
  149. package/src/utils/chain-hub-helper.d.ts.map +1 -1
  150. package/src/utils/chain-hub-helper.js +1 -0
  151. package/src/utils/codecs.d.ts +145 -0
  152. package/src/utils/codecs.d.ts.map +1 -0
  153. package/src/utils/codecs.js +206 -0
  154. package/src/utils/cosmos.d.ts +5 -4
  155. package/src/utils/cosmos.d.ts.map +1 -1
  156. package/src/utils/cosmos.js +29 -9
  157. package/src/utils/exo-helpers.d.ts +156 -0
  158. package/src/utils/exo-helpers.d.ts.map +1 -0
  159. package/src/utils/exo-helpers.js +241 -0
  160. package/src/utils/gmp.d.ts +2 -2
  161. package/src/utils/gmp.d.ts.map +1 -1
  162. package/src/utils/gmp.js +31 -15
  163. package/src/utils/orchestrationAccount.d.ts +79 -0
  164. package/src/utils/orchestrationAccount.d.ts.map +1 -1
  165. package/src/utils/orchestrationAccount.js +210 -6
  166. package/src/utils/packet.d.ts.map +1 -1
  167. package/src/utils/packet.js +5 -0
  168. package/src/utils/permit2/signatureTransfer.d.ts +221 -0
  169. package/src/utils/permit2/signatureTransfer.d.ts.map +1 -0
  170. package/src/utils/permit2/signatureTransfer.js +265 -0
  171. package/src/utils/permit2/signatureTransferHelpers.d.ts +334 -0
  172. package/src/utils/permit2/signatureTransferHelpers.d.ts.map +1 -0
  173. package/src/utils/permit2/signatureTransferHelpers.js +270 -0
  174. package/src/utils/permit2.d.ts +11 -0
  175. package/src/utils/permit2.d.ts.map +1 -0
  176. package/src/utils/permit2.js +11 -0
  177. package/src/utils/progress.d.ts +41 -0
  178. package/src/utils/progress.d.ts.map +1 -0
  179. package/src/utils/progress.js +180 -0
  180. package/src/utils/start-helper.d.ts +28 -10
  181. package/src/utils/start-helper.d.ts.map +1 -1
  182. package/src/utils/start-helper.js +30 -7
  183. package/src/utils/time.d.ts +2 -2
  184. package/src/utils/time.d.ts.map +1 -1
  185. package/src/utils/time.js +1 -1
  186. package/src/utils/viem-utils/hashTypedData.d.ts +21 -0
  187. package/src/utils/viem-utils/hashTypedData.d.ts.map +1 -0
  188. package/src/utils/viem-utils/hashTypedData.js +61 -0
  189. package/src/utils/viem-utils/types.d.ts +6 -0
  190. package/src/utils/viem-utils/types.d.ts.map +1 -0
  191. package/src/utils/viem-utils/types.js +18 -0
  192. package/src/utils/viem.d.ts +11 -0
  193. package/src/utils/viem.d.ts.map +1 -0
  194. package/src/utils/viem.js +11 -0
  195. package/src/utils/zcf-tools.d.ts +15 -1
  196. package/src/utils/zcf-tools.d.ts.map +1 -1
  197. package/src/utils/zcf-tools.js +19 -3
  198. package/src/utils/zoe-tools.d.ts +5 -2
  199. package/src/utils/zoe-tools.d.ts.map +1 -1
  200. package/src/utils/zoe-tools.js +8 -2
  201. package/src/vat-orchestration.d.ts +5 -3
  202. package/src/vat-orchestration.d.ts.map +1 -1
  203. package/src/vat-orchestration.js +4 -3
  204. package/src/vendor/viem/{_esm-YOAV66U4.js → _esm-OKAICHVC.js} +2 -2
  205. package/src/vendor/viem/{ccip-AAQDZF3N.js → ccip-34BSSMV5.js} +1 -2
  206. package/src/vendor/viem/{chunk-4EF4K2MH.js → chunk-GCI53Z2G.js} +35 -1
  207. package/src/vendor/viem/chunk-ZKSIP2AM.js +326 -0
  208. package/src/vendor/viem/viem-abi.js +2 -2
  209. package/src/vendor/viem/viem-typedData.d.ts +19 -0
  210. package/src/vendor/viem/viem-typedData.js +59 -0
  211. package/tools/contract-tests.d.ts +34 -19
  212. package/tools/contract-tests.d.ts.map +1 -1
  213. package/tools/contract-tests.ts +15 -3
  214. package/tools/ibc-mock-fixtures.d.ts +49 -0
  215. package/tools/ibc-mock-fixtures.d.ts.map +1 -0
  216. package/tools/ibc-mock-fixtures.ts +161 -0
  217. package/tools/ibc-mocks.d.ts +2 -3
  218. package/tools/ibc-mocks.d.ts.map +1 -1
  219. package/tools/ibc-mocks.ts +2 -1
  220. package/tools/make-test-address.d.ts +1 -1
  221. package/tools/make-test-address.d.ts.map +1 -1
  222. package/tools/make-test-address.js +1 -2
  223. package/tools/network-fakes.d.ts +142 -0
  224. package/tools/network-fakes.d.ts.map +1 -0
  225. package/tools/network-fakes.ts +388 -0
  226. package/tsup.config.ts +3 -1
  227. package/src/cosmos-api.ts +0 -469
  228. package/src/exos/exo-interfaces.ts +0 -35
  229. package/src/orchestration-api.ts +0 -365
  230. package/src/stubs/viem-abi.d.ts.map +0 -1
  231. package/src/types.ts +0 -26
  232. package/src/vendor/viem/chunk-XN4LUOIH.js +0 -253
  233. package/src/vendor/viem/secp256k1-WHBDSQB2.js +0 -1914
  234. /package/src/stubs/{viem-abi.ts → viem-abi.js} +0 -0
@@ -1,56 +1,237 @@
1
1
  export function start(zcf: ZCF, privateArgs: {
2
2
  agoricNames: Remote<NameHub>;
3
3
  localchain: Remote<LocalChain>;
4
- marshaller: Marshaller;
5
- storageNode: StorageNode;
4
+ marshaller: Remote<Marshaller>;
5
+ storageNode: Remote<StorageNode>;
6
6
  timerService: TimerService;
7
- }, baggage: import("@agoric/vat-data").Baggage): Promise<{
7
+ }, baggage: Baggage): Promise<{
8
8
  publicFacet: import("@endo/exo").Guarded<{
9
9
  /**
10
10
  * Invitation to make an account, initialized with the give's BLD
11
11
  */
12
- makeStakeBldInvitation(): Promise<globalThis.Invitation<import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>, undefined>>;
12
+ makeStakeBldInvitation(): Promise<import("@agoric/zoe").Invitation<import("@agoric/vow").Vow<{
13
+ invitationMakers: {
14
+ [x: string]: (...args: any[]) => import("@agoric/vow").Vow<import("@endo/marshal").RemotableObject & {
15
+ getAllegedBrand: () => import("@agoric/ertp").Brand<"set">;
16
+ } & {
17
+ readonly "Symbol(tag)": {
18
+ "Set-like value type": import("@agoric/zoe").InvitationDetails;
19
+ };
20
+ }>;
21
+ };
22
+ publicSubscribers: {
23
+ [x: string]: {
24
+ description?: string | undefined;
25
+ subscriber: {
26
+ getUpdateSince: (updateCount?: number | bigint | undefined) => import("@agoric/vow").Vow<{
27
+ value: any;
28
+ updateCount?: bigint | undefined | undefined;
29
+ }>;
30
+ subscribeAfter: (publishCount?: bigint | undefined) => import("@agoric/vow").Vow<{
31
+ head: {
32
+ done: true;
33
+ value: any;
34
+ } | {
35
+ done?: false | undefined;
36
+ value: any;
37
+ };
38
+ publishCount: bigint;
39
+ tail: {
40
+ "Symbol(passStyle)": "tagged";
41
+ [Symbol.toStringTag]: "Vow";
42
+ payload: import("@agoric/vow").VowPayload</*elided*/ any>;
43
+ };
44
+ }>;
45
+ } | {};
46
+ storagePath: string;
47
+ };
48
+ };
49
+ }>, undefined>>;
13
50
  makeAccount(): Promise<import("@endo/exo").Guarded<{
14
- asContinuingOffer(): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>;
15
- getBalance(denom: import("../orchestration-api.js").DenomArg): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount>;
16
- getBalances(): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>;
17
- getPublicTopics(): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>>>>;
18
- delegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").Vow<Record<unknown, unknown>>;
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<import("@agoric/ertp").NatAmount>;
21
- withdraw(amount: import("@agoric/ertp").NatAmount): import("@agoric/vow").Vow<globalThis.Payment<"nat">>;
51
+ makeProgressTracker(): import("../utils/progress.js").ProgressTracker;
52
+ asContinuingOffer(): import("@agoric/vow").Vow<{
53
+ invitationMakers: {
54
+ [x: string]: (...args: any[]) => import("@agoric/vow").Vow<import("@endo/marshal").RemotableObject & {
55
+ getAllegedBrand: () => import("@agoric/ertp").Brand<"set">;
56
+ } & {
57
+ readonly "Symbol(tag)": {
58
+ "Set-like value type": import("@agoric/zoe").InvitationDetails;
59
+ };
60
+ }>;
61
+ };
62
+ publicSubscribers: {
63
+ [x: string]: {
64
+ description?: string | undefined;
65
+ subscriber: {
66
+ getUpdateSince: (updateCount?: number | bigint | undefined) => import("@agoric/vow").Vow<{
67
+ value: any;
68
+ updateCount?: bigint | undefined | undefined;
69
+ }>;
70
+ subscribeAfter: (publishCount?: bigint | undefined) => import("@agoric/vow").Vow<{
71
+ head: {
72
+ done: true;
73
+ value: any;
74
+ } | {
75
+ done?: false | undefined;
76
+ value: any;
77
+ };
78
+ publishCount: bigint;
79
+ tail: {
80
+ "Symbol(passStyle)": "tagged";
81
+ [Symbol.toStringTag]: "Vow";
82
+ payload: import("@agoric/vow").VowPayload</*elided*/ any>;
83
+ };
84
+ }>;
85
+ } | {};
86
+ storagePath: string;
87
+ };
88
+ };
89
+ }>;
90
+ getBalance(denom: import("../orchestration-api.js").DenomArg, opts?: import("../orchestration-api.js").QuerierOptions | undefined): import("@agoric/vow").Vow<{
91
+ denom: import("../orchestration-api.js").Denom;
92
+ value: bigint;
93
+ }>;
94
+ getBalances(opts?: import("../orchestration-api.js").QuerierOptions | undefined): import("@agoric/vow").Vow<{
95
+ denom: import("../orchestration-api.js").Denom;
96
+ value: bigint;
97
+ }[]>;
98
+ getPublicTopics(): import("@agoric/vow").Vow<{
99
+ [x: string]: {
100
+ description?: string | undefined;
101
+ subscriber: {
102
+ getUpdateSince: (updateCount?: number | bigint | undefined) => import("@agoric/vow").Vow<{
103
+ value: {};
104
+ updateCount?: bigint | undefined | undefined;
105
+ }>;
106
+ subscribeAfter: (publishCount?: bigint | undefined) => import("@agoric/vow").Vow<{
107
+ head: {
108
+ done: true;
109
+ value: any;
110
+ } | {
111
+ done?: false | undefined;
112
+ value: {};
113
+ };
114
+ publishCount: bigint;
115
+ tail: {
116
+ "Symbol(passStyle)": "tagged";
117
+ [Symbol.toStringTag]: "Vow";
118
+ payload: import("@agoric/vow").VowPayload</*elided*/ any>;
119
+ };
120
+ }>;
121
+ } | {};
122
+ storagePath: string;
123
+ };
124
+ }>;
125
+ delegate(validatorAddress: string, ertpAmount: import("@agoric/ertp").Amount<"nat">): import("@agoric/vow").Vow<Record<PropertyKey, unknown>>;
126
+ undelegate(validatorAddress: string, ertpAmount: import("@agoric/ertp").Amount<"nat">): import("@agoric/vow").Vow<void | import("@agoric/time").TimestampRecord>;
127
+ deposit(payment: Payment<"nat">): import("@agoric/vow").Vow<{
128
+ brand: {
129
+ "Symbol(passStyle)": "remotable";
130
+ [Symbol.toStringTag]: string;
131
+ isMyIssuer: (allegedIssuer: import("jessie.js").ERef<import("@agoric/ertp").Issuer<"nat", import("@endo/patterns").Key>>) => Promise<boolean>;
132
+ getAllegedName: () => string;
133
+ getDisplayInfo: () => import("@agoric/ertp").DisplayInfo<"nat">;
134
+ getAmountShape: () => import("@endo/patterns").Pattern;
135
+ };
136
+ value: bigint;
137
+ }>;
138
+ withdraw(amount: import("@agoric/ertp").NatAmount): import("@agoric/vow").Vow<Payment<"nat">>;
22
139
  executeTx(messages: {
23
140
  '@type': string;
24
141
  }[]): import("@agoric/vow").Vow<{
25
142
  '@type': string;
26
143
  }[]>;
27
144
  getAddress(): import("../orchestration-api.js").CosmosChainAddress;
28
- send(toAccount: import("../orchestration-api.js").AccountIdArg, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void>;
29
- sendAll(toAccount: import("../orchestration-api.js").CosmosChainAddress, amounts: import("../orchestration-api.js").AmountArg[]): import("@agoric/vow").Vow<void>;
30
- transfer(destination: import("../orchestration-api.js").AccountIdArg, amount: import("../orchestration-api.js").AmountArg, opts?: import("../cosmos-api.js").IBCMsgTransferOptions): import("@agoric/vow").Vow<any>;
145
+ send(toAccount: import("../orchestration-api.js").AccountIdArg, amount: import("../orchestration-api.js").AmountArg, opts?: import("../orchestration-api.js").ActionOptions | undefined): import("@agoric/vow").Vow<{}>;
146
+ sendAll(toAccount: import("../orchestration-api.js").CosmosChainAddress, amounts: import("../orchestration-api.js").AmountArg[], opts?: import("../orchestration-api.js").ActionOptions | undefined): import("@agoric/vow").Vow<{}>;
147
+ transfer(destination: import("../orchestration-api.js").AccountIdArg, amount: import("../orchestration-api.js").AmountArg, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): import("@agoric/vow").Vow<{}>;
31
148
  parseInboundTransfer(packet: Record<string, any>): import("@agoric/vow").Vow<{
32
- amount: import("../orchestration-api.js").DenomAmount;
149
+ amount: {
150
+ denom: import("../orchestration-api.js").Denom;
151
+ value: bigint;
152
+ };
33
153
  fromAccount: string;
34
154
  toAccount: string;
35
- extra: Record<string, any>;
155
+ extra: {
156
+ [x: string]: any;
157
+ };
158
+ }>;
159
+ transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): import("@agoric/vow").Vow<{}>;
160
+ sendThenWaitForAck(packetSender: Remote<import("../exos/packet-tools.js").PacketSender>, opts?: import("../exos/packet-tools.js").PacketOptions | undefined): import("@agoric/vow").Vow<string>;
161
+ matchFirstPacket(args_0?: import("@agoric/vow").EVow<import("@endo/patterns").Pattern>): import("@agoric/vow").Vow<{
162
+ resolver: {
163
+ resolve: (value?: any) => void;
164
+ reject: (reason?: any) => void;
165
+ };
166
+ match: {
167
+ "Symbol(passStyle)": "tagged";
168
+ [Symbol.toStringTag]: "Vow";
169
+ payload: import("@agoric/vow").VowPayload<any>;
170
+ };
171
+ }>;
172
+ monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").Vow<{
173
+ /**
174
+ * performs unregistration (and sends the
175
+ * corresponding "BRIDGE_TARGET_UNREGISTER" message to the targetHost).
176
+ */
177
+ revoke: () => import("@agoric/vow").Vow<void>;
178
+ /**
179
+ * replaces the app associated with the target (but with no corresponding
180
+ * message).
181
+ */
182
+ updateTargetApp: (targetApp: import("jessie.js").ERef<import("@agoric/vats/src/bridge-target.js").TargetApp>) => import("@agoric/vow").Vow<void>;
36
183
  }>;
37
- transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): import("@agoric/vow").Vow<void>;
38
- sendThenWaitForAck(packetSender: 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>>;
39
- matchFirstPacket(args_0?: import("@agoric/vow").EVow<Pattern>): import("@agoric/async-flow").HostInterface<import("@agoric/vow").Vow<{
40
- resolver: import("@agoric/vow").VowResolver<any>;
41
- match: import("@agoric/vow").Vow<any>;
42
- }>>;
43
- monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("@agoric/vats/src/bridge-target.js").TargetRegistration>>;
44
184
  }>>;
45
185
  /**
46
186
  * Invitation to make an account, without any funds
47
187
  */
48
- makeAccountInvitationMaker(): Promise<globalThis.Invitation<import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>, undefined>>;
188
+ makeAccountInvitationMaker(): Promise<import("@agoric/zoe").Invitation<import("@agoric/vow").Vow<{
189
+ invitationMakers: {
190
+ [x: string]: (...args: any[]) => import("@agoric/vow").Vow<import("@endo/marshal").RemotableObject & {
191
+ getAllegedBrand: () => import("@agoric/ertp").Brand<"set">;
192
+ } & {
193
+ readonly "Symbol(tag)": {
194
+ "Set-like value type": import("@agoric/zoe").InvitationDetails;
195
+ };
196
+ }>;
197
+ };
198
+ publicSubscribers: {
199
+ [x: string]: {
200
+ description?: string | undefined;
201
+ subscriber: {
202
+ getUpdateSince: (updateCount?: number | bigint | undefined) => import("@agoric/vow").Vow<{
203
+ value: any;
204
+ updateCount?: bigint | undefined | undefined;
205
+ }>;
206
+ subscribeAfter: (publishCount?: bigint | undefined) => import("@agoric/vow").Vow<{
207
+ head: {
208
+ done: true;
209
+ value: any;
210
+ } | {
211
+ done?: false | undefined;
212
+ value: any;
213
+ };
214
+ publishCount: bigint;
215
+ tail: {
216
+ "Symbol(passStyle)": "tagged";
217
+ [Symbol.toStringTag]: "Vow";
218
+ payload: import("@agoric/vow").VowPayload</*elided*/ any>;
219
+ };
220
+ }>;
221
+ } | {};
222
+ storagePath: string;
223
+ };
224
+ };
225
+ }>, undefined>>;
49
226
  }>;
50
227
  }>;
51
228
  import type { ZCF } from '@agoric/zoe';
52
229
  import type { NameHub } from '@agoric/vats';
53
230
  import type { Remote } from '@agoric/internal';
54
231
  import type { LocalChain } from '@agoric/vats/src/localchain.js';
232
+ import type { Marshaller } from '@agoric/internal/src/lib-chainStorage.js';
233
+ import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
55
234
  import type { TimerService } from '@agoric/time';
235
+ import type { Baggage } from '@agoric/vat-data';
236
+ import type { Payment } from '@agoric/ertp';
56
237
  //# sourceMappingURL=stake-bld.contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stake-bld.contract.d.ts","sourceRoot":"","sources":["stake-bld.contract.js"],"names":[],"mappings":"AAqCO,2BAVI,GAAG,eACH;IACN,WAAW,EAAE,OAAO,OAAO,CAAC,CAAC;IAC7B,UAAU,EAAE,OAAO,UAAU,CAAC,CAAC;IAC/B,UAAU,EAAE,UAAU,CAAC;IACvB,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,EAAE,YAAY,CAAC;CAC5B,WACO,OAAO,kBAAkB,EAAE,OAAO;;QAsEvC;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA6BH;;WAEG;;;GAaR;yBAlIqB,aAAa;6BAJT,cAAc;4BACf,kBAAkB;gCAEd,gCAAgC;kCAD9B,cAAc"}
1
+ {"version":3,"file":"stake-bld.contract.d.ts","sourceRoot":"","sources":["stake-bld.contract.js"],"names":[],"mappings":"AA2CO,2BAVI,GAAG,eACH;IACN,WAAW,EAAE,OAAO,OAAO,CAAC,CAAC;IAC7B,UAAU,EAAE,OAAO,UAAU,CAAC,CAAC;IAC/B,UAAU,EAAE,OAAO,UAAU,CAAC,CAAC;IAC/B,WAAW,EAAE,OAAO,WAAW,CAAC,CAAC;IACjC,YAAY,EAAE,YAAY,CAAC;CAC5B,WACO,OAAO;;QA+EZ;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA6BH;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAaR;yBA/IqB,aAAa;6BAJT,cAAc;4BACf,kBAAkB;gCAEd,gCAAgC;gCAIhC,0CAA0C;iCACzC,0CAA0C;kCANzC,cAAc;6BAGnB,kBAAkB;6BAClB,cAAc"}
@@ -2,6 +2,7 @@
2
2
  * @file Stake BLD contract
3
3
  */
4
4
  import { makeTracer } from '@agoric/internal';
5
+ import { wrapRemoteMarshaller } from '@agoric/internal/src/marshal/wrap-marshaller.js';
5
6
  import { heapVowE as E, prepareVowTools } from '@agoric/vow/vat.js';
6
7
  import { prepareRecorderKitMakers } from '@agoric/zoe/src/contractSupport/recorder.js';
7
8
  import { withdrawFromSeat } from '@agoric/zoe/src/contractSupport/zoeHelpers.js';
@@ -13,6 +14,7 @@ import { makeChainHub } from '../exos/chain-hub.js';
13
14
  import { prepareLocalOrchestrationAccountKit } from '../exos/local-orchestration-account.js';
14
15
  import fetchedChainInfo from '../fetched-chain-info.js';
15
16
  import { makeZoeTools } from '../utils/zoe-tools.js';
17
+ import { prepareProgressTracker } from '../utils/progress.js';
16
18
 
17
19
  /**
18
20
  * @import {NameHub} from '@agoric/vats';
@@ -20,6 +22,10 @@ import { makeZoeTools } from '../utils/zoe-tools.js';
20
22
  * @import {TimerService} from '@agoric/time';
21
23
  * @import {LocalChain} from '@agoric/vats/src/localchain.js';
22
24
  * @import {ZCF} from '@agoric/zoe';
25
+ * @import {Baggage} from '@agoric/vat-data';
26
+ * @import {Payment} from '@agoric/ertp';
27
+ * @import {Marshaller} from '@agoric/internal/src/lib-chainStorage.js';
28
+ * @import {StorageNode} from '@agoric/internal/src/lib-chainStorage.js';
23
29
  */
24
30
 
25
31
  const trace = makeTracer('StakeBld');
@@ -29,20 +35,28 @@ const trace = makeTracer('StakeBld');
29
35
  * @param {{
30
36
  * agoricNames: Remote<NameHub>;
31
37
  * localchain: Remote<LocalChain>;
32
- * marshaller: Marshaller;
33
- * storageNode: StorageNode;
38
+ * marshaller: Remote<Marshaller>;
39
+ * storageNode: Remote<StorageNode>;
34
40
  * timerService: TimerService;
35
41
  * }} privateArgs
36
- * @param {import('@agoric/vat-data').Baggage} baggage
42
+ * @param {Baggage} baggage
37
43
  */
38
44
  export const start = async (zcf, privateArgs, baggage) => {
39
45
  const zone = makeDurableZone(baggage);
40
46
 
47
+ const { marshaller: remoteMarshaller } = privateArgs;
48
+ // withOrchestration() provides this but this contract shows how to use orchestration without that
49
+ const cachingMarshaller = wrapRemoteMarshaller(remoteMarshaller);
50
+
41
51
  const { makeRecorderKit } = prepareRecorderKitMakers(
42
52
  baggage,
43
- privateArgs.marshaller,
53
+ cachingMarshaller,
44
54
  );
45
55
  const vowTools = prepareVowTools(zone.subZone('vows'));
56
+ const makeProgressTracker = await prepareProgressTracker(
57
+ zone.subZone('orchestration'),
58
+ { vowTools },
59
+ );
46
60
 
47
61
  const chainHub = makeChainHub(
48
62
  zone.subZone('chainHub'),
@@ -55,6 +69,7 @@ export const start = async (zcf, privateArgs, baggage) => {
55
69
  const makeLocalOrchestrationAccountKit = prepareLocalOrchestrationAccountKit(
56
70
  zone,
57
71
  {
72
+ makeProgressTracker,
58
73
  makeRecorderKit,
59
74
  zcf,
60
75
  timerService,