@agoric/orchestration 0.1.1-dev-56687b4.0 → 0.1.1-dev-0cfea88.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/chain-info.d.ts +3 -11
- package/src/chain-info.d.ts.map +1 -1
- package/src/examples/sendAnywhere.contract.d.ts +7 -40
- package/src/examples/sendAnywhere.contract.d.ts.map +1 -1
- package/src/examples/stakeBld.contract.d.ts +14 -41
- package/src/examples/stakeBld.contract.d.ts.map +1 -1
- package/src/examples/stakeIca.contract.d.ts +5 -10
- package/src/examples/stakeIca.contract.d.ts.map +1 -1
- package/src/examples/swapExample.contract.d.ts +5 -33
- package/src/examples/swapExample.contract.d.ts.map +1 -1
- package/src/examples/unbondExample.contract.d.ts +5 -33
- package/src/examples/unbondExample.contract.d.ts.map +1 -1
- package/src/exos/chain-account-kit.d.ts +9 -10
- package/src/exos/chain-account-kit.d.ts.map +1 -1
- package/src/exos/chain-hub.d.ts +5 -2330
- package/src/exos/chain-hub.d.ts.map +1 -1
- package/src/exos/cosmos-orchestration-account.d.ts +11 -26
- package/src/exos/cosmos-orchestration-account.d.ts.map +1 -1
- package/src/exos/icq-connection-kit.d.ts +7 -9
- package/src/exos/icq-connection-kit.d.ts.map +1 -1
- package/src/exos/local-chain-facade.d.ts +19 -125
- package/src/exos/local-chain-facade.d.ts.map +1 -1
- package/src/exos/local-orchestration-account.d.ts +18 -64
- package/src/exos/local-orchestration-account.d.ts.map +1 -1
- package/src/exos/orchestrator.d.ts +34 -2454
- package/src/exos/orchestrator.d.ts.map +1 -1
- package/src/exos/remote-chain-facade.d.ts +16 -66
- package/src/exos/remote-chain-facade.d.ts.map +1 -1
- package/src/facade.d.ts +17 -193
- package/src/facade.d.ts.map +1 -1
- package/src/proposals/orchestration-proposal.d.ts +8 -619
- package/src/proposals/orchestration-proposal.d.ts.map +1 -1
- package/src/proposals/start-stakeAtom.d.ts +3 -15
- package/src/proposals/start-stakeAtom.d.ts.map +1 -1
- package/src/proposals/start-stakeBld.d.ts +15 -48
- package/src/proposals/start-stakeBld.d.ts.map +1 -1
- package/src/proposals/start-stakeOsmo.d.ts +3 -15
- package/src/proposals/start-stakeOsmo.d.ts.map +1 -1
- package/src/service.d.ts +17 -73
- package/src/service.d.ts.map +1 -1
- package/src/utils/address.d.ts +8 -5
- package/src/utils/address.d.ts.map +1 -1
- package/src/utils/cosmos.d.ts.map +1 -1
- package/src/utils/orc.d.ts.map +1 -1
- package/src/utils/packet.d.ts +3 -3
- package/src/utils/packet.d.ts.map +1 -1
- package/src/utils/start-helper.d.ts +8 -42
- package/src/utils/start-helper.d.ts.map +1 -1
- package/src/utils/time.d.ts.map +1 -1
- package/src/vat-orchestration.d.ts +14 -22
- package/src/vat-orchestration.d.ts.map +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-0cfea88.0+0cfea88",
|
|
4
4
|
"description": "Chain abstraction for Agoric's orchestration clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -33,20 +33,20 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@agoric/assert": "0.6.1-dev-
|
|
37
|
-
"@agoric/async-flow": "0.1.1-dev-
|
|
38
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
39
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
40
|
-
"@agoric/internal": "0.3.3-dev-
|
|
41
|
-
"@agoric/network": "0.1.1-dev-
|
|
42
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
43
|
-
"@agoric/store": "0.9.3-dev-
|
|
44
|
-
"@agoric/time": "0.3.3-dev-
|
|
45
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
46
|
-
"@agoric/vats": "0.15.2-dev-
|
|
47
|
-
"@agoric/vow": "0.1.1-dev-
|
|
48
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
49
|
-
"@agoric/zone": "0.2.3-dev-
|
|
36
|
+
"@agoric/assert": "0.6.1-dev-0cfea88.0+0cfea88",
|
|
37
|
+
"@agoric/async-flow": "0.1.1-dev-0cfea88.0+0cfea88",
|
|
38
|
+
"@agoric/cosmic-proto": "0.4.1-dev-0cfea88.0+0cfea88",
|
|
39
|
+
"@agoric/ertp": "0.16.3-dev-0cfea88.0+0cfea88",
|
|
40
|
+
"@agoric/internal": "0.3.3-dev-0cfea88.0+0cfea88",
|
|
41
|
+
"@agoric/network": "0.1.1-dev-0cfea88.0+0cfea88",
|
|
42
|
+
"@agoric/notifier": "0.6.3-dev-0cfea88.0+0cfea88",
|
|
43
|
+
"@agoric/store": "0.9.3-dev-0cfea88.0+0cfea88",
|
|
44
|
+
"@agoric/time": "0.3.3-dev-0cfea88.0+0cfea88",
|
|
45
|
+
"@agoric/vat-data": "0.5.3-dev-0cfea88.0+0cfea88",
|
|
46
|
+
"@agoric/vats": "0.15.2-dev-0cfea88.0+0cfea88",
|
|
47
|
+
"@agoric/vow": "0.1.1-dev-0cfea88.0+0cfea88",
|
|
48
|
+
"@agoric/zoe": "0.26.3-dev-0cfea88.0+0cfea88",
|
|
49
|
+
"@agoric/zone": "0.2.3-dev-0cfea88.0+0cfea88",
|
|
50
50
|
"@endo/base64": "^1.0.5",
|
|
51
51
|
"@endo/far": "^1.1.2",
|
|
52
52
|
"@endo/marshal": "^1.5.0",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"typeCoverage": {
|
|
91
91
|
"atLeast": 97.1
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "0cfea88fb59d27dddb8b031a5b5539127b6a305e"
|
|
94
94
|
}
|
package/src/chain-info.d.ts
CHANGED
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
export function registerChainNamespace(agoricNamesAdmin: ERef<import("@agoric/vats").NameHubKit["nameAdmin"]>, log: (...messages: string[]) => void): Promise<void>;
|
|
2
|
-
export type ChainInfo =
|
|
3
|
-
chainId: string;
|
|
4
|
-
connections?: Record<string, import("./cosmos-api.js").IBCConnectionInfo> | undefined;
|
|
5
|
-
icqEnabled?: boolean | undefined;
|
|
6
|
-
stakingTokens?: readonly {
|
|
7
|
-
denom: string;
|
|
8
|
-
}[] | undefined;
|
|
9
|
-
}> | Readonly<{
|
|
10
|
-
chainId: string;
|
|
11
|
-
allegedName: string;
|
|
12
|
-
}>;
|
|
2
|
+
export type ChainInfo = CosmosChainInfo | EthChainInfo;
|
|
13
3
|
export type KnownChains = typeof knownChains;
|
|
4
|
+
import type { CosmosChainInfo } from './types.js';
|
|
5
|
+
import type { EthChainInfo } from './types.js';
|
|
14
6
|
/** @import {CosmosChainInfo, EthChainInfo} from './types.js'; */
|
|
15
7
|
/** @typedef {CosmosChainInfo | EthChainInfo} ChainInfo */
|
|
16
8
|
declare const knownChains: {
|
package/src/chain-info.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain-info.d.ts","sourceRoot":"","sources":["chain-info.js"],"names":[],"mappings":"AAsEO,yDAHI,IAAI,CAAC,OAAO,cAAc,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC,OACpD,CAAC,GAAG,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,iBAMzC
|
|
1
|
+
{"version":3,"file":"chain-info.d.ts","sourceRoot":"","sources":["chain-info.js"],"names":[],"mappings":"AAsEO,yDAHI,IAAI,CAAC,OAAO,cAAc,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC,OACpD,CAAC,GAAG,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,iBAMzC;wBAnEa,eAAe,GAAG,YAAY;0BAyD9B,OAAO,WAAW;qCA3DiB,YAAY;kCAAZ,YAAY;AAA7D,iEAAiE;AAEjE,0DAA0D;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqDE"}
|
|
@@ -28,55 +28,22 @@ export function start(zcf: ZCF, privateArgs: OrchestrationPowers & {
|
|
|
28
28
|
* @param {CosmosChainInfo} chainInfo
|
|
29
29
|
* @param {IBCConnectionInfo} connectionInfo
|
|
30
30
|
*/
|
|
31
|
-
addChain(chainInfo:
|
|
32
|
-
chainId: string;
|
|
33
|
-
connections?: Record<string, IBCConnectionInfo> | undefined;
|
|
34
|
-
icqEnabled?: boolean | undefined;
|
|
35
|
-
stakingTokens?: readonly {
|
|
36
|
-
denom: string;
|
|
37
|
-
}[] | undefined;
|
|
38
|
-
}>, connectionInfo: IBCConnectionInfo): Promise<string>;
|
|
31
|
+
addChain(chainInfo: CosmosChainInfo, connectionInfo: IBCConnectionInfo): Promise<string>;
|
|
39
32
|
}>;
|
|
40
33
|
}>;
|
|
41
34
|
export type OrchestrationPowers = {
|
|
42
|
-
localchain: Remote<
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
getBalance(brand: Brand<"nat">): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
46
|
-
deposit(payment: Payment<"nat">, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
47
|
-
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
|
|
48
|
-
executeTx<MT extends {
|
|
49
|
-
'@type': string;
|
|
50
|
-
}[]>(messages: MT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
|
|
51
|
-
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").PromiseVow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
52
|
-
}>>;
|
|
53
|
-
query<T extends {
|
|
54
|
-
'@type': string;
|
|
55
|
-
} = {
|
|
56
|
-
'@type': string;
|
|
57
|
-
}>(request: T): import("@agoric/vow").PromiseVow<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<T>>>;
|
|
58
|
-
queryMany<RT extends {
|
|
59
|
-
'@type': string;
|
|
60
|
-
}[]>(requests: RT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K_1 in keyof RT]: import("@agoric/cosmic-proto").JsonSafe<{
|
|
61
|
-
error?: string | undefined;
|
|
62
|
-
reply: import("@agoric/cosmic-proto").ResponseTo<RT[K_1]>;
|
|
63
|
-
}>; }>;
|
|
64
|
-
}>>;
|
|
65
|
-
orchestrationService: Remote<import("@endo/exo").Guarded<{
|
|
66
|
-
makeAccount(chainId: string, hostConnectionId: `connection-${number}`, controllerConnectionId: `connection-${number}`): Promise<import("../cosmos-api").IcaAccount>;
|
|
67
|
-
provideICQConnection(controllerConnectionId: `connection-${number}`): Promise<import("@endo/exo").Guarded<{
|
|
68
|
-
getLocalAddress(): `/ibc-port/${string}`;
|
|
69
|
-
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
|
|
70
|
-
query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>;
|
|
71
|
-
}>>;
|
|
72
|
-
}>>;
|
|
73
|
-
storageNode: Remote<globalThis.StorageNode>;
|
|
35
|
+
localchain: Remote<LocalChain>;
|
|
36
|
+
orchestrationService: Remote<OrchestrationService>;
|
|
37
|
+
storageNode: Remote<StorageNode>;
|
|
74
38
|
timerService: Remote<TimerService>;
|
|
75
39
|
agoricNames: Remote<NameHub>;
|
|
76
40
|
};
|
|
77
41
|
import type { Baggage } from '@agoric/vat-data';
|
|
42
|
+
import type { CosmosChainInfo } from '../cosmos-api';
|
|
78
43
|
import type { IBCConnectionInfo } from '../cosmos-api';
|
|
44
|
+
import type { LocalChain } from '@agoric/vats/src/localchain.js';
|
|
79
45
|
import type { Remote } from '@agoric/vow';
|
|
46
|
+
import type { OrchestrationService } from '../service.js';
|
|
80
47
|
import type { TimerService } from '@agoric/time';
|
|
81
48
|
import type { NameHub } from '@agoric/vats';
|
|
82
49
|
//# sourceMappingURL=sendAnywhere.contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendAnywhere.contract.d.ts","sourceRoot":"","sources":["sendAnywhere.contract.js"],"names":[],"mappings":"AAYA;;;;;;;;GAQG;AAEH;;;;;;;;GAQG;AAEH,kEAKE;AASK,2BANI,GAAG,eACH,mBAAmB,GAAG;IAChC,UAAc,EAAE,UAAU,CAAC;CACxB;;;;;
|
|
1
|
+
{"version":3,"file":"sendAnywhere.contract.d.ts","sourceRoot":"","sources":["sendAnywhere.contract.js"],"names":[],"mappings":"AAYA;;;;;;;;GAQG;AAEH;;;;;;;;GAQG;AAEH,kEAKE;AASK,2BANI,GAAG,eACH,mBAAmB,GAAG;IAChC,UAAc,EAAE,UAAU,CAAC;CACxB,WACO,OAAO;;;;;QAsFZ;;;WAGG;4BAFQ,eAAe,kBACf,iBAAiB;;GAiBjC;kCA9HY;IACZ,UAAc,EAAE,OAAO,UAAU,CAAC,CAAC;IACnC,oBAAwB,EAAE,OAAO,oBAAoB,CAAC,CAAC;IACvD,WAAe,EAAE,OAAO,WAAW,CAAC,CAAC;IACrC,YAAgB,EAAE,OAAO,YAAY,CAAC,CAAC;IACvC,WAAe,EAAE,OAAO,OAAO,CAAC,CAAC;CAC9B;6BAhBsB,kBAAkB;qCACS,eAAe;uCAAf,eAAe;gCAEvC,gCAAgC;4BAGpC,aAAa;0CAFC,eAAe;kCAFX,cAAc;6BAG/B,cAAc"}
|
|
@@ -1,28 +1,6 @@
|
|
|
1
1
|
export function start(zcf: ZCF, privateArgs: {
|
|
2
2
|
agoricNames: Remote<NameHub>;
|
|
3
|
-
localchain: Remote<
|
|
4
|
-
makeAccount(): import("@agoric/vow").PromiseVow<import("@endo/exo").Guarded<{
|
|
5
|
-
getAddress(): string;
|
|
6
|
-
getBalance(brand: Brand<"nat">): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
7
|
-
deposit(payment: Payment<"nat">, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
8
|
-
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
|
|
9
|
-
executeTx<MT extends {
|
|
10
|
-
'@type': string;
|
|
11
|
-
}[]>(messages: MT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
|
|
12
|
-
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").PromiseVow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
13
|
-
}>>;
|
|
14
|
-
query<T extends {
|
|
15
|
-
'@type': string;
|
|
16
|
-
} = {
|
|
17
|
-
'@type': string;
|
|
18
|
-
}>(request: T): import("@agoric/vow").PromiseVow<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<T>>>;
|
|
19
|
-
queryMany<RT extends {
|
|
20
|
-
'@type': string;
|
|
21
|
-
}[]>(requests: RT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K_1 in keyof RT]: import("@agoric/cosmic-proto").JsonSafe<{
|
|
22
|
-
error?: string | undefined;
|
|
23
|
-
reply: import("@agoric/cosmic-proto").ResponseTo<RT[K_1]>;
|
|
24
|
-
}>; }>;
|
|
25
|
-
}>>;
|
|
3
|
+
localchain: Remote<LocalChain>;
|
|
26
4
|
marshaller: Marshaller;
|
|
27
5
|
storageNode: StorageNode;
|
|
28
6
|
timerService: TimerService;
|
|
@@ -45,7 +23,7 @@ export function start(zcf: ZCF, privateArgs: {
|
|
|
45
23
|
CloseAccount(): never;
|
|
46
24
|
}>;
|
|
47
25
|
account: import("@endo/exo").Guarded<{
|
|
48
|
-
getBalance(denom: DenomArg): Promise<import("../orchestration-api.js").DenomAmount>;
|
|
26
|
+
getBalance(denom: import("../orchestration-api.js").DenomArg): Promise<import("../orchestration-api.js").DenomAmount>;
|
|
49
27
|
getBalances(): never;
|
|
50
28
|
getPublicTopics(): {
|
|
51
29
|
account: {
|
|
@@ -57,18 +35,16 @@ export function start(zcf: ZCF, privateArgs: {
|
|
|
57
35
|
delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Record<unknown, unknown>>;
|
|
58
36
|
undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").PromiseVow<void | import("@agoric/time").TimestampRecord>;
|
|
59
37
|
deposit(payment: globalThis.Payment<"nat">): Promise<void>;
|
|
60
|
-
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<
|
|
61
|
-
executeTx<MT extends {
|
|
62
|
-
'@type': string;
|
|
63
|
-
}[]>(messages: MT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
|
|
38
|
+
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<Payment<"nat">>;
|
|
39
|
+
executeTx<MT extends import("@agoric/cosmic-proto").TypedJson[]>(messages: MT): PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
|
|
64
40
|
getAddress(): import("../orchestration-api.js").ChainAddress;
|
|
65
41
|
send(toAccount: any, amount: any): Promise<void>;
|
|
66
42
|
transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Promise<void>;
|
|
67
|
-
transferSteps(amount: AmountArg, msg: TransferMsg): Promise<void>;
|
|
43
|
+
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): Promise<void>;
|
|
68
44
|
}>;
|
|
69
45
|
}, undefined>>;
|
|
70
46
|
makeAccount(): Promise<import("@endo/exo").Guarded<{
|
|
71
|
-
getBalance(denom: DenomArg): Promise<import("../orchestration-api.js").DenomAmount>;
|
|
47
|
+
getBalance(denom: import("../orchestration-api.js").DenomArg): Promise<import("../orchestration-api.js").DenomAmount>;
|
|
72
48
|
getBalances(): never;
|
|
73
49
|
getPublicTopics(): {
|
|
74
50
|
account: {
|
|
@@ -80,14 +56,12 @@ export function start(zcf: ZCF, privateArgs: {
|
|
|
80
56
|
delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Record<unknown, unknown>>;
|
|
81
57
|
undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").PromiseVow<void | import("@agoric/time").TimestampRecord>;
|
|
82
58
|
deposit(payment: globalThis.Payment<"nat">): Promise<void>;
|
|
83
|
-
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<
|
|
84
|
-
executeTx<MT extends {
|
|
85
|
-
'@type': string;
|
|
86
|
-
}[]>(messages: MT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
|
|
59
|
+
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<Payment<"nat">>;
|
|
60
|
+
executeTx<MT extends import("@agoric/cosmic-proto").TypedJson[]>(messages: MT): PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
|
|
87
61
|
getAddress(): import("../orchestration-api.js").ChainAddress;
|
|
88
62
|
send(toAccount: any, amount: any): Promise<void>;
|
|
89
63
|
transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Promise<void>;
|
|
90
|
-
transferSteps(amount: AmountArg, msg: TransferMsg): Promise<void>;
|
|
64
|
+
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): Promise<void>;
|
|
91
65
|
}>>;
|
|
92
66
|
/**
|
|
93
67
|
* Invitation to make an account, without any funds
|
|
@@ -106,7 +80,7 @@ export function start(zcf: ZCF, privateArgs: {
|
|
|
106
80
|
CloseAccount(): never;
|
|
107
81
|
}>;
|
|
108
82
|
account: import("@endo/exo").Guarded<{
|
|
109
|
-
getBalance(denom: DenomArg): Promise<import("../orchestration-api.js").DenomAmount>;
|
|
83
|
+
getBalance(denom: import("../orchestration-api.js").DenomArg): Promise<import("../orchestration-api.js").DenomAmount>;
|
|
110
84
|
getBalances(): never;
|
|
111
85
|
getPublicTopics(): {
|
|
112
86
|
account: {
|
|
@@ -118,19 +92,18 @@ export function start(zcf: ZCF, privateArgs: {
|
|
|
118
92
|
delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Record<unknown, unknown>>;
|
|
119
93
|
undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").PromiseVow<void | import("@agoric/time").TimestampRecord>;
|
|
120
94
|
deposit(payment: globalThis.Payment<"nat">): Promise<void>;
|
|
121
|
-
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<
|
|
122
|
-
executeTx<MT extends {
|
|
123
|
-
'@type': string;
|
|
124
|
-
}[]>(messages: MT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
|
|
95
|
+
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<Payment<"nat">>;
|
|
96
|
+
executeTx<MT extends import("@agoric/cosmic-proto").TypedJson[]>(messages: MT): PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
|
|
125
97
|
getAddress(): import("../orchestration-api.js").ChainAddress;
|
|
126
98
|
send(toAccount: any, amount: any): Promise<void>;
|
|
127
99
|
transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Promise<void>;
|
|
128
|
-
transferSteps(amount: AmountArg, msg: TransferMsg): Promise<void>;
|
|
100
|
+
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): Promise<void>;
|
|
129
101
|
}>;
|
|
130
102
|
}, undefined>>;
|
|
131
103
|
}>;
|
|
132
104
|
}>;
|
|
133
105
|
import type { NameHub } from '@agoric/vats';
|
|
134
106
|
import type { Remote } from '@agoric/internal';
|
|
107
|
+
import type { LocalChain } from '@agoric/vats/src/localchain.js';
|
|
135
108
|
import type { TimerService } from '@agoric/time';
|
|
136
109
|
//# sourceMappingURL=stakeBld.contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stakeBld.contract.d.ts","sourceRoot":"","sources":["stakeBld.contract.js"],"names":[],"mappings":"AAmCO,2BAVI,GAAG
|
|
1
|
+
{"version":3,"file":"stakeBld.contract.d.ts","sourceRoot":"","sources":["stakeBld.contract.js"],"names":[],"mappings":"AAmCO,2BAVI,GAAG,eACH;IACV,WAAe,EAAE,OAAO,OAAO,CAAC,CAAC;IACjC,UAAc,EAAE,OAAO,UAAU,CAAC,CAAC;IACnC,UAAc,EAAE,UAAU,CAAC;IAC3B,WAAe,EAAE,WAAW,CAAC;IAC7B,YAAgB,EAAE,YAAY,CAAC;CAC5B,WACO,OAAO,kBAAkB,EAAE,OAAO;;QAiDvC;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA8BH;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiBR;6BArHyB,cAAc;4BACf,kBAAkB;gCAEd,gCAAgC;kCAD9B,cAAc"}
|
|
@@ -13,14 +13,7 @@ export const privateArgsShape: {
|
|
|
13
13
|
timer: globalThis.Pattern;
|
|
14
14
|
} | undefined;
|
|
15
15
|
export function start(zcf: ZCF<StakeIcaTerms>, privateArgs: {
|
|
16
|
-
orchestration:
|
|
17
|
-
makeAccount(chainId: string, hostConnectionId: `connection-${number}`, controllerConnectionId: `connection-${number}`): Promise<import("../cosmos-api.js").IcaAccount>;
|
|
18
|
-
provideICQConnection(controllerConnectionId: `connection-${number}`): Promise<import("@endo/exo").Guarded<{
|
|
19
|
-
getLocalAddress(): `/ibc-port/${string}`;
|
|
20
|
-
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
|
|
21
|
-
query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>;
|
|
22
|
-
}>>;
|
|
23
|
-
}>;
|
|
16
|
+
orchestration: OrchestrationService;
|
|
24
17
|
storageNode: StorageNode;
|
|
25
18
|
marshaller: Marshaller;
|
|
26
19
|
timer: TimerService;
|
|
@@ -87,12 +80,14 @@ export function start(zcf: ZCF<StakeIcaTerms>, privateArgs: {
|
|
|
87
80
|
}>;
|
|
88
81
|
export type StakeIcaTerms = {
|
|
89
82
|
chainId: string;
|
|
90
|
-
hostConnectionId:
|
|
91
|
-
controllerConnectionId:
|
|
83
|
+
hostConnectionId: IBCConnectionID;
|
|
84
|
+
controllerConnectionId: IBCConnectionID;
|
|
92
85
|
bondDenom: string;
|
|
93
86
|
icqEnabled: boolean;
|
|
94
87
|
};
|
|
95
88
|
export type StakeIcaSF = typeof start;
|
|
89
|
+
import type { OrchestrationService } from '../types.js';
|
|
96
90
|
import type { TimerService } from '@agoric/time';
|
|
97
91
|
import type { Baggage } from '@agoric/vat-data';
|
|
92
|
+
import type { IBCConnectionID } from '@agoric/vats';
|
|
98
93
|
//# sourceMappingURL=stakeIca.contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stakeIca.contract.d.ts","sourceRoot":"","sources":["stakeIca.contract.js"],"names":[],"mappings":"AAeA;;;;;GAKG;AAEH,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAelC;AACH;;;;;cAAsD;AAsB/C,2BATI,GAAG,CAAC,aAAa,CAAC
|
|
1
|
+
{"version":3,"file":"stakeIca.contract.d.ts","sourceRoot":"","sources":["stakeIca.contract.js"],"names":[],"mappings":"AAeA;;;;;GAKG;AAEH,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAelC;AACH;;;;;cAAsD;AAsB/C,2BATI,GAAG,CAAC,aAAa,CAAC,eAClB;IACV,aAAiB,EAAE,oBAAoB,CAAC;IACxC,WAAe,EAAE,WAAW,CAAC;IAC7B,UAAc,EAAE,UAAU,CAAC;IAC3B,KAAS,EAAE,YAAY,CAAC;CACrB,WACO,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkFjB;4BAnGY;IACZ,OAAW,EAAE,MAAM,CAAC;IACpB,gBAAoB,EAAE,eAAe,CAAC;IACtC,sBAA0B,EAAE,eAAe,CAAC;IAC5C,SAAa,EAAE,MAAM,CAAC;IACtB,UAAc,EAAE,OAAO,CAAC;CACrB;yBA+FU,OAAO,KAAK;0CA3H4B,aAAa;kCADpC,cAAc;6BAFnB,kBAAkB;qCACV,cAAc"}
|
|
@@ -15,38 +15,9 @@ export function makeNatAmountShape(brand: Brand, min?: bigint | undefined): {
|
|
|
15
15
|
};
|
|
16
16
|
export function start(zcf: ZCF, privateArgs: {
|
|
17
17
|
agoricNames: Remote<NameHub>;
|
|
18
|
-
localchain: Remote<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
getBalance(brand: Brand<"nat">): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
22
|
-
deposit(payment: Payment<"nat">, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
23
|
-
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
|
|
24
|
-
executeTx<MT extends {
|
|
25
|
-
'@type': string;
|
|
26
|
-
}[]>(messages: MT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
|
|
27
|
-
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").PromiseVow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
28
|
-
}>>;
|
|
29
|
-
query<T extends {
|
|
30
|
-
'@type': string;
|
|
31
|
-
} = {
|
|
32
|
-
'@type': string;
|
|
33
|
-
}>(request: T): import("@agoric/vow").PromiseVow<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<T>>>;
|
|
34
|
-
queryMany<RT extends {
|
|
35
|
-
'@type': string;
|
|
36
|
-
}[]>(requests: RT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K_1 in keyof RT]: import("@agoric/cosmic-proto").JsonSafe<{
|
|
37
|
-
error?: string | undefined;
|
|
38
|
-
reply: import("@agoric/cosmic-proto").ResponseTo<RT[K_1]>;
|
|
39
|
-
}>; }>;
|
|
40
|
-
}>>;
|
|
41
|
-
orchestrationService: Remote<import("@endo/exo").Guarded<{
|
|
42
|
-
makeAccount(chainId: string, hostConnectionId: `connection-${number}`, controllerConnectionId: `connection-${number}`): Promise<IcaAccount>;
|
|
43
|
-
provideICQConnection(controllerConnectionId: `connection-${number}`): Promise<import("@endo/exo").Guarded<{
|
|
44
|
-
getLocalAddress(): `/ibc-port/${string}`;
|
|
45
|
-
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
|
|
46
|
-
query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>;
|
|
47
|
-
}>>;
|
|
48
|
-
}>>;
|
|
49
|
-
storageNode: Remote<globalThis.StorageNode>;
|
|
18
|
+
localchain: Remote<LocalChain>;
|
|
19
|
+
orchestrationService: Remote<OrchestrationService>;
|
|
20
|
+
storageNode: Remote<StorageNode>;
|
|
50
21
|
timerService: Remote<TimerService>;
|
|
51
22
|
marshaller: Marshaller;
|
|
52
23
|
}, baggage: Baggage): Promise<{
|
|
@@ -64,7 +35,8 @@ export function start(zcf: ZCF, privateArgs: {
|
|
|
64
35
|
}>;
|
|
65
36
|
import type { NameHub } from '@agoric/vats';
|
|
66
37
|
import type { Remote } from '@agoric/internal';
|
|
67
|
-
import type {
|
|
38
|
+
import type { LocalChain } from '@agoric/vats/src/localchain.js';
|
|
39
|
+
import type { OrchestrationService } from '../service.js';
|
|
68
40
|
import type { TimerService } from '@agoric/time';
|
|
69
41
|
import type { Baggage } from '@agoric/vat-data';
|
|
70
42
|
import type { CosmosValidatorAddress } from '../types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swapExample.contract.d.ts","sourceRoot":"","sources":["swapExample.contract.js"],"names":[],"mappings":"AASA;;;;;;;;GAQG;AAEH,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAWnC;AASK,0CAHI,KAAK;;;EAIsC;AAc/C,2BAXI,GAAG
|
|
1
|
+
{"version":3,"file":"swapExample.contract.d.ts","sourceRoot":"","sources":["swapExample.contract.js"],"names":[],"mappings":"AASA;;;;;;;;GAQG;AAEH,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAWnC;AASK,0CAHI,KAAK;;;EAIsC;AAc/C,2BAXI,GAAG,eACH;IACV,WAAe,EAAE,OAAO,OAAO,CAAC,CAAC;IACjC,UAAc,EAAE,OAAO,UAAU,CAAC,CAAC;IACnC,oBAAwB,EAAE,OAAO,oBAAoB,CAAC,CAAC;IACvD,WAAe,EAAE,OAAO,WAAW,CAAC,CAAC;IACrC,YAAgB,EAAE,OAAO,YAAY,CAAC,CAAC;IACvC,UAAc,EAAE,UAAU,CAAC;CACxB,WACO,OAAO;;;oBA+BD,MAAM,CAAC,KAAK,CAAC;uBAAa,sBAAsB;;;;oBAAhD,MAAM,CAAC,KAAK,CAAC;uBAAa,sBAAsB;;;GAoEhE;6BAvIyB,cAAc;4BAHf,kBAAkB;gCADd,gCAAgC;0CAEtB,eAAe;kCAHvB,cAAc;6BAInB,kBAAkB;4CALuB,aAAa"}
|
|
@@ -1,37 +1,8 @@
|
|
|
1
1
|
export function start(zcf: ZCF, privateArgs: {
|
|
2
2
|
agoricNames: Remote<NameHub>;
|
|
3
|
-
localchain: Remote<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
getBalance(brand: Brand<"nat">): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
7
|
-
deposit(payment: Payment<"nat">, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
8
|
-
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
|
|
9
|
-
executeTx<MT extends {
|
|
10
|
-
'@type': string;
|
|
11
|
-
}[]>(messages: MT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
|
|
12
|
-
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").PromiseVow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
13
|
-
}>>;
|
|
14
|
-
query<T extends {
|
|
15
|
-
'@type': string;
|
|
16
|
-
} = {
|
|
17
|
-
'@type': string;
|
|
18
|
-
}>(request: T): import("@agoric/vow").PromiseVow<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<T>>>;
|
|
19
|
-
queryMany<RT extends {
|
|
20
|
-
'@type': string;
|
|
21
|
-
}[]>(requests: RT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K_1 in keyof RT]: import("@agoric/cosmic-proto").JsonSafe<{
|
|
22
|
-
error?: string | undefined;
|
|
23
|
-
reply: import("@agoric/cosmic-proto").ResponseTo<RT[K_1]>;
|
|
24
|
-
}>; }>;
|
|
25
|
-
}>>;
|
|
26
|
-
orchestrationService: Remote<import("@endo/exo").Guarded<{
|
|
27
|
-
makeAccount(chainId: string, hostConnectionId: `connection-${number}`, controllerConnectionId: `connection-${number}`): Promise<IcaAccount>;
|
|
28
|
-
provideICQConnection(controllerConnectionId: `connection-${number}`): Promise<import("@endo/exo").Guarded<{
|
|
29
|
-
getLocalAddress(): `/ibc-port/${string}`;
|
|
30
|
-
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
|
|
31
|
-
query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>;
|
|
32
|
-
}>>;
|
|
33
|
-
}>>;
|
|
34
|
-
storageNode: Remote<globalThis.StorageNode>;
|
|
3
|
+
localchain: Remote<LocalChain>;
|
|
4
|
+
orchestrationService: Remote<OrchestrationService>;
|
|
5
|
+
storageNode: Remote<StorageNode>;
|
|
35
6
|
marshaller: Marshaller;
|
|
36
7
|
timerService: Remote<TimerService>;
|
|
37
8
|
}, baggage: Baggage): Promise<{
|
|
@@ -43,7 +14,8 @@ export function start(zcf: ZCF, privateArgs: {
|
|
|
43
14
|
}>;
|
|
44
15
|
import type { NameHub } from '@agoric/vats';
|
|
45
16
|
import type { Remote } from '@agoric/internal';
|
|
46
|
-
import type {
|
|
17
|
+
import type { LocalChain } from '@agoric/vats/src/localchain.js';
|
|
18
|
+
import type { OrchestrationService } from '../service.js';
|
|
47
19
|
import type { TimerService } from '@agoric/time';
|
|
48
20
|
import type { Baggage } from '@agoric/vat-data';
|
|
49
21
|
//# sourceMappingURL=unbondExample.contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unbondExample.contract.d.ts","sourceRoot":"","sources":["unbondExample.contract.js"],"names":[],"mappings":"AA0BO,2BAXI,GAAG
|
|
1
|
+
{"version":3,"file":"unbondExample.contract.d.ts","sourceRoot":"","sources":["unbondExample.contract.js"],"names":[],"mappings":"AA0BO,2BAXI,GAAG,eACH;IACV,WAAe,EAAE,OAAO,OAAO,CAAC,CAAC;IACjC,UAAc,EAAE,OAAO,UAAU,CAAC,CAAC;IACnC,oBAAwB,EAAE,OAAO,oBAAoB,CAAC,CAAC;IACvD,WAAe,EAAE,OAAO,WAAW,CAAC,CAAC;IACrC,UAAc,EAAE,UAAU,CAAC;IAC3B,YAAgB,EAAE,OAAO,YAAY,CAAC,CAAC;CACpC,WACO,OAAO;;;;;;GA0EjB;6BAzFyB,cAAc;4BACf,kBAAkB;gCAFd,gCAAgC;0CAGtB,eAAe;kCALvB,cAAc;6BACnB,kBAAkB"}
|
|
@@ -10,12 +10,7 @@ export const ChainAccountI: import("@endo/patterns").InterfaceGuard<{
|
|
|
10
10
|
close: import("@endo/patterns").MethodGuard;
|
|
11
11
|
getPurse: import("@endo/patterns").MethodGuard;
|
|
12
12
|
}>;
|
|
13
|
-
export function prepareChainAccountKit(zone: Zone, { watch, when }: {
|
|
14
|
-
when: <T, TResult1 = import("@agoric/vow").EUnwrap<T>, TResult2 = never>(specimenP: T, onFulfilled?: ((value: import("@agoric/vow").EUnwrap<T>) => TResult1 | PromiseLike<TResult1>) | undefined, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined) => Promise<TResult1 | TResult2>;
|
|
15
|
-
watch: <T_1 = any, TResult1_1 = T_1, TResult2_1 = never, C = any>(specimenP: import("@agoric/vow").ERef<T_1 | import("@agoric/vow").Vow<T_1>>, watcher?: import("@agoric/vow").Watcher<T_1, TResult1_1, TResult2_1> | undefined, watcherContext?: C | undefined) => import("@agoric/vow").Vow<Exclude<TResult1_1, void> | Exclude<TResult2_1, void> extends never ? TResult1_1 : Exclude<TResult1_1, void> | Exclude<TResult2_1, void>>;
|
|
16
|
-
makeVowKit: <T_2>() => import("@agoric/vow").VowKit<T_2>;
|
|
17
|
-
allVows: (vows: unknown[]) => import("@agoric/vow").Vow<any[]>;
|
|
18
|
-
}): (chainId: string, port: Port, requestedRemoteAddress: string) => import("@endo/exo").GuardedKit<{
|
|
13
|
+
export function prepareChainAccountKit(zone: Zone, { watch, when }: VowTools): (chainId: string, port: Port, requestedRemoteAddress: string) => import("@endo/exo").GuardedKit<{
|
|
19
14
|
parseTxPacketWatcher: {
|
|
20
15
|
/** @param {string} ack */
|
|
21
16
|
onFulfilled(ack: string): string;
|
|
@@ -39,7 +34,7 @@ export function prepareChainAccountKit(zone: Zone, { watch, when }: {
|
|
|
39
34
|
* decoded using the corresponding `Msg*Response` object.
|
|
40
35
|
* @throws {Error} if packet fails to send or an error is returned
|
|
41
36
|
*/
|
|
42
|
-
executeEncodedTx(msgs:
|
|
37
|
+
executeEncodedTx(msgs: AnyJson[], opts?: Omit<TxBody, "messages"> | undefined): Promise<string>;
|
|
43
38
|
/** Close the remote account */
|
|
44
39
|
close(): Promise<void>;
|
|
45
40
|
/**
|
|
@@ -55,7 +50,7 @@ export function prepareChainAccountKit(zone: Zone, { watch, when }: {
|
|
|
55
50
|
* @param {LocalIbcAddress} localAddr
|
|
56
51
|
* @param {RemoteIbcAddress} remoteAddr
|
|
57
52
|
*/
|
|
58
|
-
onOpen(connection: Remote<Connection>, localAddr:
|
|
53
|
+
onOpen(connection: Remote<Connection>, localAddr: LocalIbcAddress, remoteAddr: RemoteIbcAddress): Promise<void>;
|
|
59
54
|
onClose(_connection: any, reason: any): Promise<void>;
|
|
60
55
|
onReceive(connection: any, bytes: any): Promise<string>;
|
|
61
56
|
};
|
|
@@ -65,16 +60,20 @@ export type State = {
|
|
|
65
60
|
chainId: string;
|
|
66
61
|
port: Port;
|
|
67
62
|
connection: Remote<Connection> | undefined;
|
|
68
|
-
localAddress:
|
|
63
|
+
localAddress: LocalIbcAddress | undefined;
|
|
69
64
|
requestedRemoteAddress: string;
|
|
70
|
-
remoteAddress:
|
|
65
|
+
remoteAddress: RemoteIbcAddress | undefined;
|
|
71
66
|
chainAddress: ChainAddress | undefined;
|
|
72
67
|
};
|
|
73
68
|
export type ChainAccountKit = ReturnType<ReturnType<typeof prepareChainAccountKit>>;
|
|
74
69
|
import type { Zone } from '@agoric/base-zone';
|
|
70
|
+
import type { VowTools } from '@agoric/vow';
|
|
75
71
|
import type { Port } from '@agoric/network';
|
|
76
72
|
import type { ChainAddress } from '../types.js';
|
|
73
|
+
import type { AnyJson } from '@agoric/cosmic-proto';
|
|
77
74
|
import type { TxBody } from '@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js';
|
|
78
75
|
import type { Connection } from '@agoric/network';
|
|
79
76
|
import type { Remote } from '@agoric/vow';
|
|
77
|
+
import type { LocalIbcAddress } from '@agoric/vats/tools/ibc-utils.js';
|
|
78
|
+
import type { RemoteIbcAddress } from '@agoric/vats/tools/ibc-utils.js';
|
|
80
79
|
//# sourceMappingURL=chain-account-kit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain-account-kit.d.ts","sourceRoot":"","sources":["chain-account-kit.js"],"names":[],"mappings":"AA8BA;;;;;;;;;;;GAaG;AAkBI
|
|
1
|
+
{"version":3,"file":"chain-account-kit.d.ts","sourceRoot":"","sources":["chain-account-kit.js"],"names":[],"mappings":"AA8BA;;;;;;;;;;;GAaG;AAkBI,6CAHI,IAAI,mBACJ,QAAQ;;QA+BX,0BAA0B;yBAAd,MAAM;;;QAMlB,8BAA8B;sBAAhB,YAAY;;;;;;;QAiC1B;;;;;;;;;WASG;+BALQ,OAAO,EAAE,gDAEP,OAAO,CAAC,MAAM,CAAC;QAgB5B,+BAA+B;;QAW/B;;;;WAIG;wBADQ,KAAK;;;QAQhB;;;;WAIG;2BAHQ,OAAO,UAAU,CAAC,aAClB,eAAe,cACf,gBAAgB;;;;GA0BhC;qCA/KW,0BAA0B;oBAmB3B;IACZ,OAAW,EAAE,MAAM,CAAC;IACpB,IAAQ,EAAE,IAAI,CAAC;IACf,UAAc,EAAE,OAAO,UAAU,CAAC,GAAG,SAAS,CAAC;IAC/C,YAAgB,EAAE,eAAe,GAAG,SAAS,CAAC;IAC9C,sBAA0B,EAAE,MAAM,CAAC;IACnC,aAAiB,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAChD,YAAgB,EAAE,YAAY,GAAG,SAAS,CAAC;CACxC;8BAsJU,UAAU,CAAC,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;0BA7L5C,mBAAmB;8BAEP,aAAa;0BADb,iBAAiB;kCAKrB,aAAa;6BAHlB,sBAAsB;4BACvB,8CAA8C;gCAHpC,iBAAiB;4BACjB,aAAa;qCAGI,iCAAiC;sCAAjC,iCAAiC"}
|