@@ -9,7 +9,7 @@ import { makeTxPacket, parsePacketAck } from './utils/tx.js';
9
9
import '@agoric/network/exported.js' ;
10
10
11
11
/**
12
- * @import { AttenuatedNetwork, Base64Bytes , ChainAddress } from './types.js';
12
+ * @import { AttenuatedNetwork, ChainAccount , ChainAddress } from './types.js';
13
13
* @import { IBCConnectionID } from '@agoric/vats';
14
14
* @import { Zone } from '@agoric/base-zone';
15
15
* @import { TxBody } from '@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js';
@@ -56,6 +56,8 @@ export const ChainAccountI = M.interface('ChainAccount', {
56
56
getLocalAddress : M . call ( ) . returns ( M . string ( ) ) ,
57
57
getRemoteAddress : M . call ( ) . returns ( M . string ( ) ) ,
58
58
getPort : M . call ( ) . returns ( M . remotable ( 'Port' ) ) ,
59
+ // XXX better shape
60
+ executeTx : M . call ( M . arrayOf ( M . any ) ) . optional ( M . record ( ) ) . returns ( M . promise ( ) ) ,
59
61
executeEncodedTx : M . call ( M . arrayOf ( Proto3Shape ) )
60
62
. optional ( M . record ( ) )
61
63
. returns ( M . promise ( ) ) ,
@@ -123,6 +125,9 @@ const prepareChainAccount = zone =>
123
125
getPort ( ) {
124
126
return this . state . port ;
125
127
} ,
128
+ executeTx ( ) {
129
+ throw new Error ( 'not yet implemented' ) ;
130
+ } ,
126
131
/**
127
132
* Submit a transaction on behalf of the remote accoutn for execution on teh remote chain.
128
133
* @param {AnyJson[] } msgs
@@ -257,7 +262,6 @@ export const prepareOrchestrationTools = zone => {
257
262
harden ( prepareOrchestrationTools ) ;
258
263
259
264
/** @typedef {ReturnType<ReturnType<typeof prepareChainAccount>> } ChainAccountKit */
260
- /** @typedef {ChainAccountKit['account'] } ChainAccount */
261
265
/** @typedef {ReturnType<typeof prepareOrchestrationTools> } OrchestrationTools */
262
266
/** @typedef {ReturnType<OrchestrationTools['makeOrchestration']> } OrchestrationKit */
263
267
/** @typedef {OrchestrationKit['public'] } Orchestration */
0 commit comments