@agoric/orchestration 0.1.1-dev-4202f3e.0 → 0.1.1-dev-60cffcf.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/orchestration",
3
- "version": "0.1.1-dev-4202f3e.0+4202f3e",
3
+ "version": "0.1.1-dev-60cffcf.0+60cffcf",
4
4
  "description": "Chain abstraction for Agoric's orchestration clients",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -31,19 +31,19 @@
31
31
  },
32
32
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
33
33
  "dependencies": {
34
- "@agoric/assert": "0.6.1-dev-4202f3e.0+4202f3e",
35
- "@agoric/cosmic-proto": "0.4.1-dev-4202f3e.0+4202f3e",
36
- "@agoric/ertp": "0.16.3-dev-4202f3e.0+4202f3e",
37
- "@agoric/internal": "0.3.3-dev-4202f3e.0+4202f3e",
38
- "@agoric/network": "0.1.1-dev-4202f3e.0+4202f3e",
39
- "@agoric/notifier": "0.6.3-dev-4202f3e.0+4202f3e",
40
- "@agoric/store": "0.9.3-dev-4202f3e.0+4202f3e",
41
- "@agoric/time": "0.3.3-dev-4202f3e.0+4202f3e",
42
- "@agoric/vat-data": "0.5.3-dev-4202f3e.0+4202f3e",
43
- "@agoric/vats": "0.15.2-dev-4202f3e.0+4202f3e",
44
- "@agoric/vow": "0.1.1-dev-4202f3e.0+4202f3e",
45
- "@agoric/zoe": "0.26.3-dev-4202f3e.0+4202f3e",
46
- "@agoric/zone": "0.2.3-dev-4202f3e.0+4202f3e",
34
+ "@agoric/assert": "0.6.1-dev-60cffcf.0+60cffcf",
35
+ "@agoric/cosmic-proto": "0.4.1-dev-60cffcf.0+60cffcf",
36
+ "@agoric/ertp": "0.16.3-dev-60cffcf.0+60cffcf",
37
+ "@agoric/internal": "0.3.3-dev-60cffcf.0+60cffcf",
38
+ "@agoric/network": "0.1.1-dev-60cffcf.0+60cffcf",
39
+ "@agoric/notifier": "0.6.3-dev-60cffcf.0+60cffcf",
40
+ "@agoric/store": "0.9.3-dev-60cffcf.0+60cffcf",
41
+ "@agoric/time": "0.3.3-dev-60cffcf.0+60cffcf",
42
+ "@agoric/vat-data": "0.5.3-dev-60cffcf.0+60cffcf",
43
+ "@agoric/vats": "0.15.2-dev-60cffcf.0+60cffcf",
44
+ "@agoric/vow": "0.1.1-dev-60cffcf.0+60cffcf",
45
+ "@agoric/zoe": "0.26.3-dev-60cffcf.0+60cffcf",
46
+ "@agoric/zone": "0.2.3-dev-60cffcf.0+60cffcf",
47
47
  "@endo/base64": "^1.0.5",
48
48
  "@endo/far": "^1.1.2",
49
49
  "@endo/marshal": "^1.5.0",
@@ -85,5 +85,5 @@
85
85
  "typeCoverage": {
86
86
  "atLeast": 97.38
87
87
  },
88
- "gitHead": "4202f3e330bdc7b185643d0b74939dd0392af390"
88
+ "gitHead": "60cffcf3b14bfd0f4902c00764904aa5de0b81ad"
89
89
  }
@@ -35,7 +35,7 @@ export function start(zcf: ZCF, privateArgs: {
35
35
  makeCloseAccountInvitation(): never;
36
36
  makeTransferAccountInvitation(): never;
37
37
  deposit(payment: Payment<"nat">, optAmountShape?: Pattern): Promise<globalThis.Amount>;
38
- withdraw(amount: Amount<"nat">): Promise<globalThis.Payment>;
38
+ withdraw(amount: Amount<"nat">): Promise<globalThis.Payment<"nat">>;
39
39
  getAddress(): string;
40
40
  transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Promise<void>;
41
41
  }>;
@@ -54,7 +54,7 @@ export function start(zcf: ZCF, privateArgs: {
54
54
  makeCloseAccountInvitation(): never;
55
55
  makeTransferAccountInvitation(): never;
56
56
  deposit(payment: Payment<"nat">, optAmountShape?: Pattern): Promise<globalThis.Amount>;
57
- withdraw(amount: Amount<"nat">): Promise<globalThis.Payment>;
57
+ withdraw(amount: Amount<"nat">): Promise<globalThis.Payment<"nat">>;
58
58
  getAddress(): string;
59
59
  transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Promise<void>;
60
60
  }>>;
@@ -87,7 +87,7 @@ export function start(zcf: ZCF, privateArgs: {
87
87
  makeCloseAccountInvitation(): never;
88
88
  makeTransferAccountInvitation(): never;
89
89
  deposit(payment: Payment<"nat">, optAmountShape?: Pattern): Promise<globalThis.Amount>;
90
- withdraw(amount: Amount<"nat">): Promise<globalThis.Payment>;
90
+ withdraw(amount: Amount<"nat">): Promise<globalThis.Payment<"nat">>;
91
91
  getAddress(): string;
92
92
  transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Promise<void>;
93
93
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"stakeBld.contract.d.ts","sourceRoot":"","sources":["stakeBld.contract.js"],"names":[],"mappings":"AAgCO,2BAVI,GAAG;gBAEG,OAAO,gCAAgC,EAAE,UAAU;gBACnD,UAAU;iBACT,WAAW;;;YAIlB,OAAO,kBAAkB,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;6EA4FipC,OAAO,KAAK,CAAC;;;;;iCAzEnqC,QAAQ,KAAK,CAAC,mBAElD,OAAO;iCAoB0D,OAAO,KAC5E,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDA;kCA1G0C,cAAc;gCAAd,cAAc"}
1
+ {"version":3,"file":"stakeBld.contract.d.ts","sourceRoot":"","sources":["stakeBld.contract.js"],"names":[],"mappings":"AAgCO,2BAVI,GAAG;gBAEG,OAAO,gCAAgC,EAAE,UAAU;gBACnD,UAAU;iBACT,WAAW;;;YAIlB,OAAO,kBAAkB,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;6EA4FipC,OAAO,KAAK,CAAC;;;;;iCA9DtrC,QAAQ,KAAK,CAAC,mBACxB,OAAO;iCAkBE,OAAO,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0ChC;kCA1G0C,cAAc;gCAAd,cAAc"}
@@ -16,8 +16,9 @@ export function start(zcf: ZCF, privateArgs: {
16
16
  localchain: ERef<import("@endo/exo").Guarded<{
17
17
  makeAccount(): Promise<import("@endo/exo").Guarded<{
18
18
  getAddress(): Promise<string>;
19
+ getBalance(brand: Brand<"nat">): Promise<import("@agoric/ertp/src/types.js").NatAmount>;
19
20
  deposit(payment: Payment<"nat">, optAmountShape?: Pattern): Promise<globalThis.Amount>;
20
- withdraw(amount: Amount<"nat">): Promise<globalThis.Payment>;
21
+ withdraw(amount: Amount<"nat">): Promise<globalThis.Payment<"nat">>;
21
22
  executeTx<MT extends {
22
23
  '@type': string;
23
24
  }[]>(messages: MT): Promise<{ [K in keyof MT]: import("@agoric/cosmic-proto").ResponseTo<MT[K]>; }>;
@@ -1 +1 @@
1
- {"version":3,"file":"swapExample.contract.d.ts","sourceRoot":"","sources":["swapExample.contract.js"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAUrB;AASK,0CAHI,KAAK;;;EAIsC;AAY/C,2BATI,GAAG;;;;6BAYqC,QAAQ,KAAK,CAAC,mBACrD,OAEX;6BAgBe,OAAO,KAAK,CAAC;;;2BAkBvB,EADD;;uBAuC4mC,OAAO,sBAAsB,EAAE,SAAS;;;4BAAyqB,OAAO,sBAAsB,EAAE,SAAS,EAAE;;;;;;;;;;;;;;;;;;;;;oBA9Dh0D,MAAM,CAAC,KAAK,CAAC;;;;;oBAAb,MAAM,CAAC,KAAK,CAAC;;;;GA6DxD;0BAlHsB,WAAW;gCAHiC,aAAa;kCACjD,cAAc;0BAItB,cAAc;4CAL8B,aAAa"}
1
+ {"version":3,"file":"swapExample.contract.d.ts","sourceRoot":"","sources":["swapExample.contract.js"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAUrB;AASK,0CAHI,KAAK;;;EAIsC;AAY/C,2BATI,GAAG;;;;8BAMb,MAAK,KAAK,CAAC;6BAmB4B,QAAQ,KAAK,CAAC,mBAA2B,OAAO;6BAgBlF,OAAM,KAAK,CAAC;;;2BAgBZ,EAAC;;uBA8B04C,OAAO,sBAAsB,EAAE,SAAS;;;4BAAyqB,OAAO,sBAAsB,EAAE,SAAS,EAAE;;;;;;;;;;;;;;;;;;;;;oBA9DhmE,MAAM,CAAC,KAAK,CAAC;;;;;oBAAb,MAAM,CAAC,KAAK,CAAC;;;;GA6DxD;0BAlHsB,WAAW;gCAHiC,aAAa;kCACjD,cAAc;0BAItB,cAAc;4CAL8B,aAAa"}
@@ -2,8 +2,10 @@ export function start(zcf: ZCF, privateArgs: {
2
2
  localchain: ERef<import("@endo/exo").Guarded<{
3
3
  makeAccount(): Promise<import("@endo/exo").Guarded<{
4
4
  getAddress(): Promise<string>;
5
+ getBalance(brand: Brand<// keeping it focused on long-running operations.
6
+ "nat">): Promise<import("@agoric/ertp/src/types.js").NatAmount>;
5
7
  deposit(payment: Payment<"nat">, optAmountShape?: Pattern): Promise<globalThis.Amount>;
6
- withdraw(amount: Amount<"nat">): Promise<globalThis.Payment>;
8
+ withdraw(amount: Amount<"nat">): Promise<globalThis.Payment<"nat">>;
7
9
  executeTx<MT extends {
8
10
  '@type': string;
9
11
  }[]>(messages: MT): Promise<{ [K in keyof MT]: import("@agoric/cosmic-proto").ResponseTo<MT[K]>; }>;
@@ -1 +1 @@
1
- {"version":3,"file":"unbondExample.contract.d.ts","sourceRoot":"","sources":["unbondExample.contract.js"],"names":[],"mappings":"AAuBO,2BATI,GAAG;;;;6BAmCR,QAAE,KAAK,CAAC,mBAA2B,OAAO;6BAUsB,OAEhE,KAAC,CAAC;;;2BAuBC,EAAE;;uBAA6oE,OAAO,sBAAsB,EAAE,SAAS;;;4BAAyqB,OAAO,sBAAsB,EAAE,SAAS,EAAE;;;;;;;;;;;;;;;;;;;;;;;;GADl5F;0BA3EsB,WAAW;gCAHiC,aAAa;kCACjD,cAAc;0BAItB,cAAc"}
1
+ {"version":3,"file":"unbondExample.contract.d.ts","sourceRoot":"","sources":["unbondExample.contract.js"],"names":[],"mappings":"AAuBO,2BATI,GAAG;;;;8BA8B+D,MACvE,iDAAiD;YACjD,KADC,CAAC;6BASS,QAAQ,KAAK,CAAC,mBACzB,OAAO;6BAgBmC,OAAO,KAAK,CAC5D;;;2BAYyS,EAAE;;uBAA6oE,OAAO,sBAAsB,EAAE,SAAS;;;4BAAyqB,OAAO,sBAAsB,EAAE,SAAS,EAAE;;;;;;;;;;;;;;;;;;;;;;;;GADlrG;0BA3EsB,WAAW;gCAHiC,aAAa;kCACjD,cAAc;0BAItB,cAAc"}
@@ -1,8 +1,9 @@
1
1
  export function prepareLocalChainAccountKit(baggage: Baggage, makeRecorderKit: <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T> | undefined) => RecorderKit<T>, zcf: ZCF, timerService: TimerService, timerBrand: TimerBrand, agoricChainInfo: AgoricChainInfo): (args_0: {
2
2
  account: import("@endo/exo").Guarded<{
3
3
  getAddress(): Promise<string>;
4
+ getBalance(brand: Brand<"nat">): Promise<import("@agoric/ertp/src/types.js").NatAmount>;
4
5
  deposit(payment: Payment<"nat">, optAmountShape?: Pattern): Promise<globalThis.Amount>;
5
- withdraw(amount: Amount<"nat">): Promise<globalThis.Payment>;
6
+ withdraw(amount: Amount<"nat">): Promise<globalThis.Payment<"nat">>;
6
7
  executeTx<MT extends {
7
8
  '@type': string;
8
9
  }[]>(messages: MT): Promise<{ [K in keyof MT]: import("@agoric/cosmic-proto/vatsafe").ResponseTo<MT[K]>; }>;
@@ -14,8 +15,9 @@ export function prepareLocalChainAccountKit(baggage: Baggage, makeRecorderKit: <
14
15
  /** @throws if this holder no longer owns the account */
15
16
  owned(): import("@endo/exo").Guarded<{
16
17
  getAddress(): Promise<string>;
18
+ getBalance(brand: Brand<"nat">): Promise<import("@agoric/ertp/src/types.js").NatAmount>;
17
19
  deposit(payment: Payment<"nat">, optAmountShape?: Pattern): Promise<globalThis.Amount>;
18
- withdraw(amount: Amount<"nat">): Promise<globalThis.Payment>;
20
+ withdraw(amount: Amount<"nat">): Promise<globalThis.Payment<"nat">>;
19
21
  executeTx<MT extends {
20
22
  '@type': string;
21
23
  }[]>(messages: MT): Promise<{ [K in keyof MT]: import("@agoric/cosmic-proto/vatsafe").ResponseTo<MT[K]>; }>;
@@ -54,7 +56,7 @@ export function prepareLocalChainAccountKit(baggage: Baggage, makeRecorderKit: <
54
56
  /** @type {LocalChainAccount['deposit']} */
55
57
  deposit(payment: Payment<"nat">, optAmountShape?: Pattern): Promise<globalThis.Amount>;
56
58
  /** @type {LocalChainAccount['withdraw']} */
57
- withdraw(amount: Amount<"nat">): Promise<globalThis.Payment>;
59
+ withdraw(amount: Amount<"nat">): Promise<globalThis.Payment<"nat">>;
58
60
  /**
59
61
  * @returns {ChainAddress['address']}
60
62
  */
@@ -78,8 +80,9 @@ export type State = {
78
80
  topicKit: RecorderKit<LocalChainAccountNotification>;
79
81
  account: import("@endo/exo").Guarded<{
80
82
  getAddress(): Promise<string>;
83
+ getBalance(brand: Brand<"nat">): Promise<import("@agoric/ertp/src/types.js").NatAmount>;
81
84
  deposit(payment: Payment<"nat">, optAmountShape?: Pattern): Promise<globalThis.Amount>;
82
- withdraw(amount: Amount<"nat">): Promise<globalThis.Payment>;
85
+ withdraw(amount: Amount<"nat">): Promise<globalThis.Payment<"nat">>;
83
86
  executeTx<MT extends {
84
87
  '@type': string;
85
88
  }[]>(messages: MT): Promise<{ [K in keyof MT]: import("@agoric/cosmic-proto/vatsafe").ResponseTo<MT[K]>; }>;
@@ -1 +1 @@
1
- {"version":3,"file":"local-chain-account-kit.d.ts","sourceRoot":"","sources":["local-chain-account-kit.js"],"names":[],"mappings":"AAsEO,gGAwEqB,WAAW,GAAE,QAAS,OAAO,WACpD,EAAO,MAAC,CACH,WAAA,CAAC,CAAC,0HA/ED,GAAG,uEAGH,eAAe;;;yBAtBxB,QAAK,KAAK,CAAC,mBAA2B,OAAO;yBAYjC,OAAQ,KACpB,CAAC;;;uBAqBQ,EACX;;;iBAee,WAAW;;;QAalB,wDAAwD;;;;;;;;;;;;;;;;;;;;;;;;;;QAqCxD;;;;WAIG;iDAFQ,MAAM,cACN,MAAM,CAAC,KAAK,CAAC;;;;QAgCxB;;;WAGG;;QAIH,2CAA2C;yBA9IjD,QAAK,KAAK,CAAC,mBAA2B,OAAO;QAkJvC,4CAA4C;yBAtItC,OAAQ,KACpB,CAAC;QAyIK;;WAEG;;QAIH;;;;;WAKG;0GADU,OAAO,CAAC,IAAI,CAAC;;GA6CjC;;;;;aA1Na,MAAM;;;;;;yBAalB,QAAK,KAAK,CAAC,mBAA2B,OAAO;yBAYjC,OAAQ,KACpB,CAAC;;;uBAqBQ,EACX;;;;mCA2Kc,UAAU,CAAC,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC;6BAxO9C,kBAAkB;iCADG,6CAA6C;kCAEjD,cAAc;gCAAd,cAAc;+BAHsC,uBAAuB;kCAAvB,uBAAuB;2CAAvB,uBAAuB"}
1
+ {"version":3,"file":"local-chain-account-kit.d.ts","sourceRoot":"","sources":["local-chain-account-kit.js"],"names":[],"mappings":"AAsEO,gGAwEqB,WAAW,GAAE,QAAS,OAAO,WACpD,EAAO,MAAC,CACH,WAAA,CAAC,CAAC,0HA/ED,GAAG,uEAGH,eAAe;;;0BA7BZ,MAAM,KAAK,CAAC;yBAWT,QAAQ,KAAK,CAAC,mBAC7B,OAAI;yBAmBF,OAAO,KAAK,CAAC;;;uBAiByD,EAAE;;;iBAS7D,WAAW;;;QAalB,wDAAwD;;;;;;;;;;;;;;;;;;;;;;;;;;;QAqCxD;;;;WAIG;iDAFQ,MAAM,cACN,MAAM,CAAC,KAAK,CAAC;;;;QAgCxB;;;WAGG;;QAIH,2CAA2C;yBA1IlC,QAAQ,KAAK,CAAC,mBAC7B,OAAI;QA6IE,4CAA4C;yBA1HhD,OAAO,KAAK,CAAC;QA8HT;;WAEG;;QAIH;;;;;WAKG;0GADU,OAAO,CAAC,IAAI,CAAC;;GA6CjC;;;;;aA1Na,MAAM;;;;;;0BAMN,MAAM,KAAK,CAAC;yBAWT,QAAQ,KAAK,CAAC,mBAC7B,OAAI;yBAmBF,OAAO,KAAK,CAAC;;;uBAiByD,EAAE;;;;mCAqK9D,UAAU,CAAC,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC;6BAxO9C,kBAAkB;iCADG,6CAA6C;kCAEjD,cAAc;gCAAd,cAAc;+BAHsC,uBAAuB;kCAAvB,uBAAuB;2CAAvB,uBAAuB"}
package/src/facade.d.ts CHANGED
@@ -14,8 +14,9 @@ export function makeOrchestrationFacade({ zone, timerService, zcf, storageNode,
14
14
  localchain: ERef<import("@endo/exo").Guarded<{
15
15
  makeAccount(): Promise<import("@endo/exo").Guarded<{
16
16
  getAddress(): Promise<string>;
17
+ getBalance(brand: Brand<"nat">): Promise<import("@agoric/ertp/src/types.js").NatAmount>;
17
18
  deposit(payment: Payment<"nat">, optAmountShape?: Pattern): Promise<globalThis.Amount>;
18
- withdraw(amount: Amount<"nat">): Promise<globalThis.Payment>;
19
+ withdraw(amount: Amount<"nat">): Promise<globalThis.Payment<"nat">>;
19
20
  executeTx<MT extends {
20
21
  '@type': string;
21
22
  }[]>(messages: MT): Promise<{ [K in keyof MT]: import("@agoric/cosmic-proto").ResponseTo<MT[K]>; }>;
@@ -1 +1 @@
1
- {"version":3,"file":"facade.d.ts","sourceRoot":"","sources":["facade.js"],"names":[],"mappings":"AAgJO;;;SANG,GAAG;;;;;;;;;;;;;6BAxET,QAAI,KAAK,CAAC,mBAEV,OADM;6BAgBW,OAAM,KAAK,CAAC;;;2BAkBvB,EAAE;;uBAmFkC,OAAO,sBAIhD,EAAE,SAAS;;;4BAEujB,OAAO,sBAAsB,EAAE,SAAS,EAAE;;;;;;;;IA7B7mB;;;;;;;OAOG;gBAFkC,OAAO,EACrB,IAAI,6BAHhB,MAAM,OAEoB,OAAO,AAD1B,gCACmB,OAAO,WACrB,IAAI,AADgC,KAAK,MAAM,GACzD,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,OAAO,CAAC;EAoBnD;kCAEa,UAAU,CAAC,OAAO,uBAAuB,CAAC;0BAxLjC,cAAc;kCACN,cAAc;0BAEtB,WAAW;kCAEqC,YAAY"}
1
+ {"version":3,"file":"facade.d.ts","sourceRoot":"","sources":["facade.js"],"names":[],"mappings":"AA+IO;;;SANG,GAAG;;;;;;;;;;;;;8BA7EP,MAAM,KAAK,CAAC;6BAeV,QAAC,KAAK,CAAC,mBACA,OAAO;6BAkBZ,OAAI,KAAK,CAAC;;;2BAiBW,EAAE;;uBA8EsM,OAAO,sBAAsB,EAAE,SAAS;;;4BAAyqB,OAAO,sBAAsB,EAAE,SAAS,EAAE;;;;;;;;IA7B99B;;;;;;;OAOG;gBAFkC,OAAO,EACrB,IAAI,6BAHhB,MAAM,OAEoB,OAAO,AAD1B,gCACmB,OAAO,WACrB,IAAI,AADgC,KAAK,MAAM,GACzD,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,OAAO,CAAC;EAoBnD;kCAEa,UAAU,CAAC,OAAO,uBAAuB,CAAC;0BAvLjC,cAAc;kCACN,cAAc;0BAEtB,WAAW;kCAEqC,YAAY"}
package/src/facade.js CHANGED
@@ -40,7 +40,6 @@ const makeLocalChainFacade = localchain => {
40
40
  return {
41
41
  deposit(payment) {
42
42
  console.log('deposit got', payment);
43
- // XXX yet again tripped up on remote methods looking local statically
44
43
  return E(account).deposit(payment);
45
44
  },
46
45
  transferSteps(amount, msg) {
@@ -5,8 +5,9 @@ export function startStakeBld({ consume: { board, chainStorage, chainTimerServic
5
5
  localchain: import("@endo/exo").Guarded<{
6
6
  makeAccount(): Promise<import("@endo/exo").Guarded<{
7
7
  getAddress(): Promise<string>;
8
+ getBalance(brand: Brand<"nat">): Promise<import("@agoric/ertp/src/types.js").NatAmount>;
8
9
  deposit(payment: Payment<"nat">, optAmountShape?: Pattern): Promise<globalThis.Amount>;
9
- withdraw(amount: Amount<"nat">): Promise<globalThis.Payment>;
10
+ withdraw(amount: Amount<"nat">): Promise<globalThis.Payment<"nat">>;
10
11
  executeTx<MT extends {
11
12
  '@type': string;
12
13
  }[]>(messages: MT): Promise<{ [K in keyof MT]: import("@agoric/cosmic-proto").ResponseTo<MT[K]>; }>;
@@ -61,7 +62,7 @@ export function startStakeBld({ consume: { board, chainStorage, chainTimerServic
61
62
  makeCloseAccountInvitation(): never;
62
63
  makeTransferAccountInvitation(): never;
63
64
  deposit(payment: Payment<"nat">, optAmountShape?: Pattern): Promise<globalThis.Amount>;
64
- withdraw(amount: Amount<"nat">): Promise<globalThis.Payment>;
65
+ withdraw(amount: Amount<"nat">): Promise<globalThis.Payment<"nat">>;
65
66
  getAddress(): string;
66
67
  transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Promise<void>;
67
68
  }>;
@@ -80,7 +81,7 @@ export function startStakeBld({ consume: { board, chainStorage, chainTimerServic
80
81
  makeCloseAccountInvitation(): never;
81
82
  makeTransferAccountInvitation(): never;
82
83
  deposit(payment: Payment<"nat">, optAmountShape?: Pattern): Promise<globalThis.Amount>;
83
- withdraw(amount: Amount<"nat">): Promise<globalThis.Payment>;
84
+ withdraw(amount: Amount<"nat">): Promise<globalThis.Payment<"nat">>;
84
85
  getAddress(): string;
85
86
  transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Promise<void>;
86
87
  }>>;
@@ -113,7 +114,7 @@ export function startStakeBld({ consume: { board, chainStorage, chainTimerServic
113
114
  makeCloseAccountInvitation(): never;
114
115
  makeTransferAccountInvitation(): never;
115
116
  deposit(payment: Payment<"nat">, optAmountShape?: Pattern): Promise<globalThis.Amount>;
116
- withdraw(amount: Amount<"nat">): Promise<globalThis.Payment>;
117
+ withdraw(amount: Amount<"nat">): Promise<globalThis.Payment<"nat">>;
117
118
  getAddress(): string;
118
119
  transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Promise<void>;
119
120
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"start-stakeBld.d.ts","sourceRoot":"","sources":["start-stakeBld.js"],"names":[],"mappings":"AAUO,kSAFI,eAAe,GAAG;IAAC,YAAY,EAAE;QAAC,OAAO,EAAE;YAAC,QAAQ,EAAE,YAAY,OAmBvE,GACL;;;;yCA6BC,QAAK,KAAK,CAAC,mBAEb,OAAO;yCAqBC,OAAA,KACR,CAAC;;;uCAOmb,EAAE;;mCAA6oE,OAAO,sBAAsB,EAAE,SAAS;;;wCAAyqB,OAAO,sBAAsB,EAAE,SAAS,EAAE;;;;;;;;;;;;;;;;wBAtD/xG,OAAO,kBAAkB,EAAE,OAEzD;;;;;;;;;;;;;;;;;;;;;;;;;yFAoDwmF,OAAO,KAAK,CAAC;;;;;6CA/BpnF,QAAK,KAAK,CAAC,mBAEb,OAAO;6CAqBC,OAAA,KACR,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAzEqI,CAAA;SAAC,CAAA;KAAC,CAAA;CAAC,iBAkDxI;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BN;sBArFqB,gCAAgC"}
1
+ {"version":3,"file":"start-stakeBld.d.ts","sourceRoot":"","sources":["start-stakeBld.js"],"names":[],"mappings":"AAUO,kSAFI,eAAe,GAAG;IAAC,YAAY,EAAE;QAAC,OAAO,EAAE;YAAC,QAAQ,EAAE,YAAY,OAmBvE,GACL;;;;0CAoBK,MAAM,KAAK,CAAC;yCAoBR,QAAQ,KAAK,CAAC,mBACR,OAAO;yCAmBgJ,OAAO,KAAK,CAAC;;;uCAAgiB,EAAE;;mCAA6oE,OAAO,sBAAsB,EAAE,SAAS;;;wCAAyqB,OAAO,sBAAsB,EAAE,SAAS,EAAE;;;;;;;;;;;;;;;;wBAtD/jH,OAAO,kBAAkB,EAAE,OAEzD;;;;;;;;;;;;;;;;;;;;;;;;;yFAoDwmF,OAAO,KAAK,CAAC;;;;;6CApB5mF,QAAQ,KAAK,CAAC,mBACR,OAAO;6CAmBgJ,OAAO,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAhF9C,CAAA;SAAC,CAAA;KAAC,CAAA;CAAC,iBAkDxI;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BN;sBArFqB,gCAAgC"}