@agoric/orchestration 0.1.1-dev-93d7fac.0 → 0.1.1-dev-ed9fee7.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.
- package/package.json +16 -16
- package/src/examples/stake-bld.contract.d.ts +1 -1
- package/src/examples/stake-ica.contract.d.ts +1 -1
- package/src/exos/cosmos-orchestration-account.d.ts +5 -4
- package/src/exos/cosmos-orchestration-account.d.ts.map +1 -1
- package/src/exos/cosmos-orchestration-account.js +10 -4
- package/src/exos/local-orchestration-account.d.ts +4 -4
- package/src/exos/local-orchestration-account.d.ts.map +1 -1
- package/src/exos/local-orchestration-account.js +8 -2
- package/src/orchestration-api.d.ts +1 -1
- package/src/orchestration-api.d.ts.map +1 -1
- package/src/orchestration-api.ts +1 -1
- package/src/utils/orchestrationAccount.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/orchestration",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-ed9fee7.0+ed9fee7",
|
|
4
4
|
"description": "Chain abstraction for Agoric's orchestration clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@agoric/async-flow": "0.1.1-dev-
|
|
37
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
38
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
39
|
-
"@agoric/internal": "0.3.3-dev-
|
|
40
|
-
"@agoric/network": "0.1.1-dev-
|
|
41
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
42
|
-
"@agoric/store": "0.9.3-dev-
|
|
43
|
-
"@agoric/time": "0.3.3-dev-
|
|
44
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
45
|
-
"@agoric/vats": "0.15.2-dev-
|
|
46
|
-
"@agoric/vow": "0.1.1-dev-
|
|
47
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
48
|
-
"@agoric/zone": "0.2.3-dev-
|
|
36
|
+
"@agoric/async-flow": "0.1.1-dev-ed9fee7.0+ed9fee7",
|
|
37
|
+
"@agoric/cosmic-proto": "0.4.1-dev-ed9fee7.0+ed9fee7",
|
|
38
|
+
"@agoric/ertp": "0.16.3-dev-ed9fee7.0+ed9fee7",
|
|
39
|
+
"@agoric/internal": "0.3.3-dev-ed9fee7.0+ed9fee7",
|
|
40
|
+
"@agoric/network": "0.1.1-dev-ed9fee7.0+ed9fee7",
|
|
41
|
+
"@agoric/notifier": "0.6.3-dev-ed9fee7.0+ed9fee7",
|
|
42
|
+
"@agoric/store": "0.9.3-dev-ed9fee7.0+ed9fee7",
|
|
43
|
+
"@agoric/time": "0.3.3-dev-ed9fee7.0+ed9fee7",
|
|
44
|
+
"@agoric/vat-data": "0.5.3-dev-ed9fee7.0+ed9fee7",
|
|
45
|
+
"@agoric/vats": "0.15.2-dev-ed9fee7.0+ed9fee7",
|
|
46
|
+
"@agoric/vow": "0.1.1-dev-ed9fee7.0+ed9fee7",
|
|
47
|
+
"@agoric/zoe": "0.26.3-dev-ed9fee7.0+ed9fee7",
|
|
48
|
+
"@agoric/zone": "0.2.3-dev-ed9fee7.0+ed9fee7",
|
|
49
49
|
"@cosmjs/encoding": "^0.32.4",
|
|
50
50
|
"@endo/base64": "^1.0.9",
|
|
51
51
|
"@endo/errors": "^1.2.9",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@noble/hashes": "^1.5.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
58
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-ed9fee7.0+ed9fee7",
|
|
59
59
|
"@chain-registry/client": "^1.47.4",
|
|
60
60
|
"@cosmjs/amino": "^0.33.0",
|
|
61
61
|
"@cosmjs/proto-signing": "^0.33.0",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"typeCoverage": {
|
|
99
99
|
"atLeast": 97.84
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "ed9fee7e7b0a457851615b0b06d69bd9c999b002"
|
|
102
102
|
}
|
|
@@ -25,7 +25,7 @@ export function start(zcf: ZCF, privateArgs: {
|
|
|
25
25
|
'@type': string;
|
|
26
26
|
}[]>;
|
|
27
27
|
getAddress(): import("../orchestration-api.js").CosmosChainAddress;
|
|
28
|
-
send(toAccount: import("../orchestration-api.js").
|
|
28
|
+
send(toAccount: import("../orchestration-api.js").AccountIdArg, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void>;
|
|
29
29
|
sendAll(toAccount: import("../orchestration-api.js").CosmosChainAddress, amounts: import("../orchestration-api.js").AmountArg[]): import("@agoric/vow").Vow<void>;
|
|
30
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>;
|
|
31
31
|
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): import("@agoric/vow").Vow<void>;
|
|
@@ -33,7 +33,7 @@ export function start(zcf: ZCF<StakeIcaTerms>, privateArgs: {
|
|
|
33
33
|
withdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>;
|
|
34
34
|
getBalance(denom: import("../orchestration-api.js").DenomArg): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount>;
|
|
35
35
|
getBalances(): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>;
|
|
36
|
-
send(toAccount: import("../orchestration-api.js").
|
|
36
|
+
send(toAccount: import("../orchestration-api.js").AccountIdArg, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void>;
|
|
37
37
|
sendAll(toAccount: import("../orchestration-api.js").CosmosChainAddress, amounts: import("../orchestration-api.js").AmountArg[]): import("@agoric/vow").Vow<void>;
|
|
38
38
|
transfer(destination: import("../orchestration-api.js").AccountIdArg, amount: import("../orchestration-api.js").AmountArg, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): import("@agoric/vow").Vow<void>;
|
|
39
39
|
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): import("@agoric/vow").Vow<void>;
|
|
@@ -196,7 +196,7 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
|
|
|
196
196
|
DeactivateAccount(): Promise<Invitation<Vow<void>, undefined>>;
|
|
197
197
|
ReactivateAccount(): Promise<Invitation<Vow<void>, undefined>>;
|
|
198
198
|
Send(): Promise<Invitation<Vow<void>, {
|
|
199
|
-
toAccount:
|
|
199
|
+
toAccount: AccountIdArg;
|
|
200
200
|
amount: AmountArg;
|
|
201
201
|
}>>;
|
|
202
202
|
SendAll(): Promise<Invitation<Vow<void>, {
|
|
@@ -211,7 +211,7 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
|
|
|
211
211
|
TransferAccount(): never;
|
|
212
212
|
Transfer(): Promise<Invitation<Vow<void>, {
|
|
213
213
|
amount: AmountArg;
|
|
214
|
-
destination:
|
|
214
|
+
destination: AccountIdArg;
|
|
215
215
|
opts?: IBCMsgTransferOptions;
|
|
216
216
|
}>>;
|
|
217
217
|
};
|
|
@@ -224,9 +224,9 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
|
|
|
224
224
|
withdrawReward(validator: CosmosValidatorAddress): Vow<import("../orchestration-api.js").DenomAmount[]>;
|
|
225
225
|
getBalance(denom: import("../orchestration-api.js").DenomArg): Vow<import("../orchestration-api.js").DenomAmount>;
|
|
226
226
|
getBalances(): Vow<import("../orchestration-api.js").DenomAmount[]>;
|
|
227
|
-
send(toAccount:
|
|
227
|
+
send(toAccount: AccountIdArg, amount: AmountArg): Vow<void>;
|
|
228
228
|
sendAll(toAccount: CosmosChainAddress, amounts: AmountArg[]): Vow<void>;
|
|
229
|
-
transfer(destination:
|
|
229
|
+
transfer(destination: AccountIdArg, amount: AmountArg, opts?: IBCMsgTransferOptions | undefined): Vow<void>;
|
|
230
230
|
transferSteps(amount: AmountArg, msg: import("../orchestration-api.js").TransferMsg): Vow<void>;
|
|
231
231
|
withdrawRewards(): Vow<import("../orchestration-api.js").DenomAmount[]>;
|
|
232
232
|
undelegate(delegations: {
|
|
@@ -355,6 +355,7 @@ import type { IBCConnectionInfo } from '../types.js';
|
|
|
355
355
|
import type { IBCMsgTransferOptions } from '../types.js';
|
|
356
356
|
import type { CosmosValidatorAddress } from '../types.js';
|
|
357
357
|
import type { Invitation } from '@agoric/zoe';
|
|
358
|
+
import type { AccountIdArg } from '../types.js';
|
|
358
359
|
import type { ICQConnection } from '../types.js';
|
|
359
360
|
import type { RecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
360
361
|
//# sourceMappingURL=cosmos-orchestration-account.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cosmos-orchestration-account.d.ts","sourceRoot":"","sources":["cosmos-orchestration-account.js"],"names":[],"mappings":"AAyJA,wCAAwC;AACxC;;;;;;;;;;;;;;;;;;;;;;;;;;GAUG;AAOH;;;;;;;;;;;GAoBE;AAYK,2DARI,IAAI,gGAEZ;IAAyB,QAAQ,EAAzB,QAAQ;IACgB,eAAe,EAAvC,eAAe;IACc,YAAY,EAAzC,OAAO,YAAY,CAAC;IACH,QAAQ,EAAzB,QAAQ;IACI,GAAG,EAAf,GAAG;CACb;kBAsGc,kBAAkB;kBAClB,eAAe;mBACf,gBAAgB;;aAEhB,UAAU;;;;;;;WAGV,OAAO,YAAY,CAAC;;;QAuC3B,wDAAwD;;;QAYxD;;;WAGG;6BAFQ,SAAS,GACP,IA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AAY,EAAE,eAAe,CAAC;IAC9B,aAAa,EAAE,gBAAgB,CAAC;CACjC;4CAokCS,UAAU,CAClB,UAAU,CAAC,OAAO,oCAAoC,CAAC,CACxD;yCA8BU,6BAA6B,CAAC,QAAQ,CAAC;0BAtoC9B,cAAc;8BATsR,aAAa;qCAEzR,6CAA6C;kCAK7D,cAAc;4BAHpB,kBAAkB;8BAIX,aAAa;yBAP0B,aAAa;wCADuO,aAAa;qCAapR,iCAAiC;sCAAjC,iCAAiC;gCAbsO,aAAa;8BAW7S,sBAAsB;mCADjB,+CAA+C;yBAF/C,aAAa;+BAR8Q,aAAa;0BAGjT,kDAAkD;8CAHkP,aAAa;2CAAb,aAAa;uCAAb,aAAa;2CAAb,aAAa;4CAAb,aAAa;gCACjQ,aAAa;kCADuO,aAAa;mCAAb,aAAa;iCAEzR,6CAA6C"}
|
|
@@ -72,7 +72,7 @@ import { accountIdTo32Bytes, parseAccountId } from '../utils/address.js';
|
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* @import {HostOf} from '@agoric/async-flow';
|
|
75
|
-
* @import {AmountArg, IcaAccount, CosmosChainAddress, CosmosValidatorAddress, ICQConnection, StakingAccountActions, StakingAccountQueries, NobleMethods, OrchestrationAccountCommon, CosmosRewardsResponse, IBCConnectionInfo, IBCMsgTransferOptions, ChainHub, CosmosDelegationResponse, CaipChainId} from '../types.js';
|
|
75
|
+
* @import {AmountArg, IcaAccount, CosmosChainAddress, CosmosValidatorAddress, ICQConnection, StakingAccountActions, StakingAccountQueries, NobleMethods, OrchestrationAccountCommon, CosmosRewardsResponse, IBCConnectionInfo, IBCMsgTransferOptions, ChainHub, CosmosDelegationResponse, CaipChainId, AccountIdArg} from '../types.js';
|
|
76
76
|
* @import {ContractMeta, Invitation, OfferHandler, ZCF, ZCFSeat} from '@agoric/zoe';
|
|
77
77
|
* @import {RecorderKit, MakeRecorderKit} from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
78
78
|
* @import {Coin} from '@agoric/cosmic-proto/cosmos/base/v1beta1/coin.js';
|
|
@@ -676,7 +676,7 @@ export const prepareCosmosOrchestrationAccountKit = (
|
|
|
676
676
|
/**
|
|
677
677
|
* @type {OfferHandler<
|
|
678
678
|
* Vow<void>,
|
|
679
|
-
* { toAccount:
|
|
679
|
+
* { toAccount: AccountIdArg; amount: AmountArg }
|
|
680
680
|
* >}
|
|
681
681
|
*/
|
|
682
682
|
const offerHandler = (seat, { toAccount, amount }) => {
|
|
@@ -712,7 +712,7 @@ export const prepareCosmosOrchestrationAccountKit = (
|
|
|
712
712
|
* Vow<void>,
|
|
713
713
|
* {
|
|
714
714
|
* amount: AmountArg;
|
|
715
|
-
* destination:
|
|
715
|
+
* destination: AccountIdArg;
|
|
716
716
|
* opts?: IBCMsgTransferOptions;
|
|
717
717
|
* }
|
|
718
718
|
* >}
|
|
@@ -875,8 +875,14 @@ export const prepareCosmosOrchestrationAccountKit = (
|
|
|
875
875
|
send(toAccount, amount) {
|
|
876
876
|
return asVow(() => {
|
|
877
877
|
trace('send', toAccount, amount);
|
|
878
|
-
|
|
878
|
+
toAccount =
|
|
879
|
+
typeof toAccount === 'string'
|
|
880
|
+
? chainHub.makeChainAddress(toAccount)
|
|
881
|
+
: toAccount;
|
|
879
882
|
const { chainAddress } = this.state;
|
|
883
|
+
toAccount.chainId === chainAddress.chainId ||
|
|
884
|
+
Fail`bank/send cannot send to a different chain ${q(toAccount.chainId)}`;
|
|
885
|
+
const { helper } = this.facets;
|
|
880
886
|
return watch(
|
|
881
887
|
E(helper.owned()).executeEncodedTx([
|
|
882
888
|
Any.toJSON(
|
|
@@ -32,7 +32,7 @@ export function prepareLocalOrchestrationAccountKit(zone: Zone, { makeRecorderKi
|
|
|
32
32
|
Undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<Vow<TimestampRecord>, undefined>>;
|
|
33
33
|
CloseAccount(): never;
|
|
34
34
|
Send(): Promise<Invitation<Vow<void>, {
|
|
35
|
-
toAccount:
|
|
35
|
+
toAccount: AccountIdArg;
|
|
36
36
|
amount: AmountArg;
|
|
37
37
|
}>>;
|
|
38
38
|
SendAll(): Promise<Invitation<Vow<void>, {
|
|
@@ -41,7 +41,7 @@ export function prepareLocalOrchestrationAccountKit(zone: Zone, { makeRecorderKi
|
|
|
41
41
|
}>>;
|
|
42
42
|
Transfer(): Promise<Invitation<Vow<void>, {
|
|
43
43
|
amount: AmountArg;
|
|
44
|
-
destination:
|
|
44
|
+
destination: AccountIdArg;
|
|
45
45
|
opts?: IBCMsgTransferOptions;
|
|
46
46
|
}>>;
|
|
47
47
|
Withdraw(): Promise<Invitation<Vow<void>, undefined>>;
|
|
@@ -157,7 +157,7 @@ export function prepareLocalOrchestrationAccountKit(zone: Zone, { makeRecorderKi
|
|
|
157
157
|
'@type': string;
|
|
158
158
|
}[]>;
|
|
159
159
|
getAddress(): CosmosChainAddress;
|
|
160
|
-
send(toAccount:
|
|
160
|
+
send(toAccount: AccountIdArg, amount: AmountArg): Vow<void>;
|
|
161
161
|
sendAll(toAccount: CosmosChainAddress, amounts: AmountArg[]): Vow<void>;
|
|
162
162
|
/**
|
|
163
163
|
* @param {AccountIdArg} destination
|
|
@@ -211,6 +211,7 @@ import type { Coin } from '@agoric/cosmic-proto/cosmos/base/v1beta1/coin.js';
|
|
|
211
211
|
import type { Vow } from '@agoric/vow';
|
|
212
212
|
import type { Invitation } from '@agoric/zoe';
|
|
213
213
|
import type { TimestampRecord } from '@agoric/time';
|
|
214
|
+
import type { AccountIdArg } from '@agoric/orchestration';
|
|
214
215
|
import type { IBCMsgTransferOptions } from '@agoric/orchestration';
|
|
215
216
|
import type { TypedJson } from '@agoric/cosmic-proto';
|
|
216
217
|
import type { JsonSafe } from '@agoric/cosmic-proto';
|
|
@@ -218,7 +219,6 @@ import type { TransferRoute } from '@agoric/orchestration';
|
|
|
218
219
|
import type { DenomAmount } from '@agoric/orchestration';
|
|
219
220
|
import type { ZCFSeat } from '@agoric/zoe';
|
|
220
221
|
import type { ResponseTo } from '@agoric/cosmic-proto';
|
|
221
|
-
import type { AccountIdArg } from '@agoric/orchestration';
|
|
222
222
|
import type { RecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
223
223
|
import type { PacketTools } from './packet-tools.js';
|
|
224
224
|
//# sourceMappingURL=local-orchestration-account.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-orchestration-account.d.ts","sourceRoot":"","sources":["local-orchestration-account.js"],"names":[],"mappings":"AAkGO,0DAVI,IAAI,qFAEZ;IAAgC,eAAe,EAAvC,eAAe;IACH,GAAG,EAAf,GAAG;IAC0B,YAAY,EAAzC,OAAO,YAAY,CAAC;IACH,QAAQ,EAAzB,QAAQ;IACS,QAAQ,EAAzB,QAAQ;IACmB,UAAU,EAArC,OAAO,UAAU,CAAC;IACD,QAAQ,EAAzB,QAAQ;CAClB;aAqFc,iBAAiB;aACjB,kBAAkB;;;;QAoBzB;;;WAGG;6BAFQ,SAAS,GACP,IAAI;;;QAOjB;;;WAGG;mCAFQ,MAAM,cACN,MAAM,CAAC,KAAK,CAAC;;QAiCxB;;;WAGG;qCAFQ,MAAM,cACN,MAAM,CAAC,KAAK,CAAC;;;uBAmBJ,
|
|
1
|
+
{"version":3,"file":"local-orchestration-account.d.ts","sourceRoot":"","sources":["local-orchestration-account.js"],"names":[],"mappings":"AAkGO,0DAVI,IAAI,qFAEZ;IAAgC,eAAe,EAAvC,eAAe;IACH,GAAG,EAAf,GAAG;IAC0B,YAAY,EAAzC,OAAO,YAAY,CAAC;IACH,QAAQ,EAAzB,QAAQ;IACS,QAAQ,EAAzB,QAAQ;IACmB,UAAU,EAArC,OAAO,UAAU,CAAC;IACD,QAAQ,EAAzB,QAAQ;CAClB;aAqFc,iBAAiB;aACjB,kBAAkB;;;;QAoBzB;;;WAGG;6BAFQ,SAAS,GACP,IAAI;;;QAOjB;;;WAGG;mCAFQ,MAAM,cACN,MAAM,CAAC,KAAK,CAAC;;QAiCxB;;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C;IACjE,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,OAAO,EAAE,kBAAkB,CAAC;CAC7B;+CAorBU,UAAU,CAAC,OAAO,mCAAmC,CAAC;2CACtD,UAAU,CAAC,gCAAgC,CAAC;0BAptBnC,cAAc;qCADU,6CAA6C;yBADrB,aAAa;kCAKpC,cAAc;4BAFrC,kBAAkB;8BAGX,aAAa;8BAIlB,gBAAgB;gCAZK,gCAAgC;8BAcrD,uBAAuB;uCAdF,gCAAgC;wCACgH,uBAAuB;+BAAvB,uBAAuB;0BAShM,kDAAkD;yBAFzC,aAAa;gCAN0B,aAAa;qCAKpC,cAAc;kCANkI,uBAAuB;2CAAvB,uBAAuB;+BAQrK,sBAAsB;8BAAtB,sBAAsB;mCARwH,uBAAuB;iCAAvB,uBAAuB;6BAChJ,aAAa;gCAOlC,sBAAsB;iCANzB,6CAA6C;iCAU9D,mBAAmB"}
|
|
@@ -266,7 +266,7 @@ export const prepareLocalOrchestrationAccountKit = (
|
|
|
266
266
|
/**
|
|
267
267
|
* @type {OfferHandler<
|
|
268
268
|
* Vow<void>,
|
|
269
|
-
* { toAccount:
|
|
269
|
+
* { toAccount: AccountIdArg; amount: AmountArg }
|
|
270
270
|
* >}
|
|
271
271
|
*/
|
|
272
272
|
const offerHandler = (seat, { toAccount, amount }) => {
|
|
@@ -294,7 +294,7 @@ export const prepareLocalOrchestrationAccountKit = (
|
|
|
294
294
|
* Vow<void>,
|
|
295
295
|
* {
|
|
296
296
|
* amount: AmountArg;
|
|
297
|
-
* destination:
|
|
297
|
+
* destination: AccountIdArg;
|
|
298
298
|
* opts?: IBCMsgTransferOptions;
|
|
299
299
|
* }
|
|
300
300
|
* >}
|
|
@@ -637,6 +637,12 @@ export const prepareLocalOrchestrationAccountKit = (
|
|
|
637
637
|
send(toAccount, amount) {
|
|
638
638
|
return asVow(() => {
|
|
639
639
|
trace('send', toAccount, amount);
|
|
640
|
+
toAccount =
|
|
641
|
+
typeof toAccount === 'string'
|
|
642
|
+
? chainHub.makeChainAddress(toAccount)
|
|
643
|
+
: toAccount;
|
|
644
|
+
toAccount.chainId === this.state.address.chainId ||
|
|
645
|
+
Fail`bank/send cannot send to a different chain ${q(toAccount.chainId)}`;
|
|
640
646
|
const { helper } = this.facets;
|
|
641
647
|
return watch(
|
|
642
648
|
E(this.state.account).executeTx([
|
|
@@ -181,7 +181,7 @@ export interface OrchestrationAccountCommon {
|
|
|
181
181
|
* @param amount - the amount to send
|
|
182
182
|
* @returns void
|
|
183
183
|
*/
|
|
184
|
-
send: (toAccount:
|
|
184
|
+
send: (toAccount: AccountIdArg, amount: AmountArg) => Promise<void>;
|
|
185
185
|
/**
|
|
186
186
|
* Transfer multiple amounts to another account on the same chain. The promise settles when the transfer is complete.
|
|
187
187
|
* @param toAccount - the account to send the amount to. MUST be on the same chain
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-api.d.ts","sourceRoot":"","sources":["orchestration-api.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EACV,kBAAkB,EAClB,yBAAyB,EACzB,eAAe,EACf,qBAAqB,EACrB,WAAW,EACX,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,YAAY,EACb,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAE1E;;;;;;;;;;GAUG;AACH,MAAM,MAAM,KAAK,GAAG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AAM,CAAC;CACf;AAED,aAAa;AACb,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,kBAAkB,CAAC;CACjC;AACD,aAAa;AACb,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,aAAa;AACb,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
package/src/orchestration-api.ts
CHANGED
|
@@ -245,7 +245,7 @@ export interface OrchestrationAccountCommon {
|
|
|
245
245
|
* @param amount - the amount to send
|
|
246
246
|
* @returns void
|
|
247
247
|
*/
|
|
248
|
-
send: (toAccount:
|
|
248
|
+
send: (toAccount: AccountIdArg, amount: AmountArg) => Promise<void>;
|
|
249
249
|
|
|
250
250
|
/**
|
|
251
251
|
* Transfer multiple amounts to another account on the same chain. The promise settles when the transfer is complete.
|
|
@@ -22,7 +22,7 @@ export const orchestrationAccountMethods = {
|
|
|
22
22
|
Vow$(DenomAmountShape),
|
|
23
23
|
),
|
|
24
24
|
getBalances: M.call().returns(Vow$(M.arrayOf(DenomAmountShape))),
|
|
25
|
-
send: M.call(
|
|
25
|
+
send: M.call(AccountArgShape, AmountArgShape).returns(VowShape),
|
|
26
26
|
sendAll: M.call(CosmosChainAddressShape, M.arrayOf(AmountArgShape)).returns(
|
|
27
27
|
VowShape,
|
|
28
28
|
),
|