Skip to content

Commit

Permalink
downstream #2
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Apr 22, 2024
1 parent be153d2 commit 7badf65
Show file tree
Hide file tree
Showing 6 changed files with 221 additions and 80 deletions.
2 changes: 1 addition & 1 deletion packages/orchestration/src/contracts/stakeAtom.contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { prepareStakingAccountHolder } from './stakingAccountHolder.js';

const trace = makeTracer('StakeAtom');
/**
* @import { Orchestration } from '../types.js';
* @import { Orchestration } from '../orchestration.js'
* @import { Baggage } from '@agoric/vat-data';
* @import { IBCConnectionID } from '@agoric/vats';
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/orchestration/src/delegation.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type Delegation = {
balance: Coin;
};

export type UnbodingDelegation = {
export type UnbondingDelegation = {
delegator_address: ChainAddress;
validator_address: ChainAddress;
entries: {
Expand Down
6 changes: 4 additions & 2 deletions packages/orchestration/src/orchestration.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { makeTxPacket, parsePacketAck } from './utils/tx.js';
import '@agoric/network/exported.js';

/**
* @import { AttenuatedNetwork, Base64Bytes, ChainAddress } from './types.js';
* @import { AttenuatedNetwork, ChainAccount, ChainAddress } from './types.js';
* @import { IBCConnectionID } from '@agoric/vats';
* @import { Zone } from '@agoric/base-zone';
* @import { TxBody } from '@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js';
Expand Down Expand Up @@ -123,6 +123,9 @@ const prepareChainAccount = zone =>
getPort() {
return this.state.port;
},
executeTx() {
throw new Error('not yet implemented');
},
/**
* Submit a transaction on behalf of the remote accoutn for execution on teh remote chain.
* @param {AnyJson[]} msgs
Expand Down Expand Up @@ -257,7 +260,6 @@ export const prepareOrchestrationTools = zone => {
harden(prepareOrchestrationTools);

/** @typedef {ReturnType<ReturnType<typeof prepareChainAccount>>} ChainAccountKit */
/** @typedef {ChainAccountKit['account']} ChainAccount */
/** @typedef {ReturnType<typeof prepareOrchestrationTools>} OrchestrationTools */
/** @typedef {ReturnType<OrchestrationTools['makeOrchestration']>} OrchestrationKit */
/** @typedef {OrchestrationKit['public']} Orchestration */
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
import { V as E } from '@agoric/vat-data/vow.js';
import { Far } from '@endo/far';

/** @import { AttenuatedNetwork, Orchestration, OrchestrationVat } from '../types' */
/**
* @import { AttenuatedNetwork } from '../types'
* @import { Orchestration } from '../orchestration.js'
* @import { OrchestrationVat } from '../vat-orchestration.js'
*/

/**
* @param {BootstrapPowers & {
Expand Down
Loading

0 comments on commit 7badf65

Please sign in to comment.