Skip to content

Commit

Permalink
chore: remove getBalance, getBalances, getPurse from IcaAccountKit
Browse files Browse the repository at this point in the history
- these methods are part of OrchestrationAccountI, with no plans to implement them on IcaAccount|ChainAccount
  • Loading branch information
0xpatrickdev committed Jul 31, 2024
1 parent b1d610d commit 74726a3
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions packages/orchestration/src/exos/chain-account-kit.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ const UNPARSABLE_CHAIN_ADDRESS = 'UNPARSABLE_CHAIN_ADDRESS';

export const ChainAccountI = M.interface('ChainAccount', {
getAddress: M.call().returns(ChainAddressShape),
getBalance: M.call(M.string()).returns(VowShape),
getBalances: M.call().returns(VowShape),
getLocalAddress: M.call().returns(M.string()),
getRemoteAddress: M.call().returns(M.string()),
getPort: M.call().returns(M.remotable('Port')),
Expand All @@ -39,7 +37,6 @@ export const ChainAccountI = M.interface('ChainAccount', {
.optional(M.record())
.returns(VowShape),
close: M.call().returns(VowShape),
getPurse: M.call().returns(VowShape),
});

/**
Expand Down Expand Up @@ -100,16 +97,6 @@ export const prepareChainAccountKit = (zone, { watch, asVow }) =>
'ICA channel creation acknowledgement not yet received.',
);
},
getBalance(_denom) {
// TODO https://github.com/Agoric/agoric-sdk/issues/9610
// UNTIL https://github.com/Agoric/agoric-sdk/issues/9326
return asVow(() => Fail`not yet implemented`);
},
getBalances() {
// TODO https://github.com/Agoric/agoric-sdk/issues/9610
// UNTIL https://github.com/Agoric/agoric-sdk/issues/9326
return asVow(() => Fail`not yet implemented`);
},
getLocalAddress() {
return NonNullish(
this.state.localAddress,
Expand Down Expand Up @@ -164,15 +151,6 @@ export const prepareChainAccountKit = (zone, { watch, asVow }) =>
return E(connection).close();
});
},
/**
* get Purse for a brand to .withdraw() a Payment from the account
*
* @param {Brand} brand
*/
getPurse(brand) {
console.log('getPurse got', brand);
return asVow(() => Fail`not yet implemented`);
},
},
connectionHandler: {
/**
Expand Down

0 comments on commit 74726a3

Please sign in to comment.