@agoric/orchestration 0.2.0-upgrade-18-dev-aaebae4.0 → 0.2.0-upgrade-18-dev-bd8fd54.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/index.d.ts +3 -0
- package/index.js +3 -0
- package/package.json +30 -29
- package/src/chain-capabilities.d.ts +15 -0
- package/src/chain-capabilities.d.ts.map +1 -0
- package/src/chain-capabilities.js +60 -0
- package/src/chain-info.d.ts +33 -20
- package/src/chain-info.d.ts.map +1 -1
- package/src/cosmos-api.d.ts +96 -21
- package/src/cosmos-api.d.ts.map +1 -1
- package/src/cosmos-api.ts +115 -28
- package/src/examples/auto-stake-it.contract.d.ts +19 -2
- package/src/examples/auto-stake-it.contract.d.ts.map +1 -1
- package/src/examples/auto-stake-it.contract.js +13 -2
- package/src/examples/auto-stake-it.flows.d.ts +1 -1
- package/src/examples/basic-flows.contract.d.ts +16 -1
- package/src/examples/basic-flows.contract.d.ts.map +1 -1
- package/src/examples/basic-flows.contract.js +14 -3
- package/src/examples/basic-flows.flows.d.ts +1 -1
- package/src/examples/send-anywhere.contract.d.ts +28 -5
- package/src/examples/send-anywhere.contract.d.ts.map +1 -1
- package/src/examples/send-anywhere.contract.js +11 -0
- package/src/examples/stake-bld.contract.d.ts +2 -2
- package/src/examples/stake-ica.contract.d.ts +5 -0
- package/src/examples/stake-ica.contract.d.ts.map +1 -1
- package/src/examples/staking-combinations.contract.d.ts +2 -0
- package/src/examples/staking-combinations.contract.d.ts.map +1 -1
- package/src/examples/staking-combinations.contract.js +1 -2
- package/src/examples/staking-combinations.flows.d.ts +4 -2
- package/src/examples/staking-combinations.flows.d.ts.map +1 -1
- package/src/examples/staking-combinations.flows.js +9 -4
- package/src/examples/swap.contract.d.ts +18 -2
- package/src/examples/swap.contract.d.ts.map +1 -1
- package/src/examples/swap.contract.js +6 -0
- package/src/exos/README.md +5 -4
- package/src/exos/chain-hub-admin.d.ts.map +1 -1
- package/src/exos/chain-hub-admin.js +1 -2
- package/src/exos/chain-hub.d.ts +37 -25
- package/src/exos/chain-hub.d.ts.map +1 -1
- package/src/exos/chain-hub.js +203 -18
- package/src/exos/cosmos-interchain-service.d.ts +5 -5
- package/src/exos/cosmos-interchain-service.d.ts.map +1 -1
- package/src/exos/cosmos-interchain-service.js +3 -3
- package/src/exos/cosmos-orchestration-account.d.ts +7 -24
- package/src/exos/cosmos-orchestration-account.d.ts.map +1 -1
- package/src/exos/cosmos-orchestration-account.js +27 -14
- package/src/exos/ibc-packet.d.ts.map +1 -1
- package/src/exos/ica-account-kit.d.ts +1 -3
- package/src/exos/ica-account-kit.d.ts.map +1 -1
- package/src/exos/local-chain-facade.d.ts +4 -2
- package/src/exos/local-chain-facade.d.ts.map +1 -1
- package/src/exos/local-orchestration-account.d.ts +13 -50
- package/src/exos/local-orchestration-account.d.ts.map +1 -1
- package/src/exos/local-orchestration-account.js +50 -53
- package/src/exos/orchestrator.d.ts +5 -7
- package/src/exos/orchestrator.d.ts.map +1 -1
- package/src/exos/orchestrator.js +12 -6
- package/src/exos/packet-tools.d.ts +1 -6
- package/src/exos/packet-tools.d.ts.map +1 -1
- package/src/exos/packet-tools.js +8 -12
- package/src/exos/portfolio-holder-kit.d.ts +4 -4
- package/src/exos/portfolio-holder-kit.d.ts.map +1 -1
- package/src/exos/portfolio-holder-kit.js +1 -1
- package/src/exos/remote-chain-facade.d.ts +3 -8
- package/src/exos/remote-chain-facade.d.ts.map +1 -1
- package/src/exos/remote-chain-facade.js +0 -2
- package/src/facade.d.ts.map +1 -1
- package/src/facade.js +0 -1
- package/src/fetched-chain-info.d.ts +43 -18
- package/src/fetched-chain-info.js +31 -18
- package/src/orchestration-api.d.ts +8 -5
- package/src/orchestration-api.d.ts.map +1 -1
- package/src/orchestration-api.ts +15 -14
- package/src/proposals/start-auto-stake-it.d.ts +52 -0
- package/src/proposals/start-auto-stake-it.d.ts.map +1 -0
- package/src/proposals/start-auto-stake-it.js +108 -0
- package/src/proposals/start-basic-flows.d.ts +39 -6
- package/src/proposals/start-basic-flows.d.ts.map +1 -1
- package/src/proposals/start-basic-flows.js +60 -21
- package/src/proposals/start-send-anywhere.d.ts +105 -0
- package/src/proposals/start-send-anywhere.d.ts.map +1 -0
- package/src/proposals/start-send-anywhere.js +150 -0
- package/src/proposals/start-stakeAtom.d.ts +5 -0
- package/src/proposals/start-stakeAtom.d.ts.map +1 -1
- package/src/proposals/start-stakeBld.d.ts +2 -2
- package/src/proposals/start-stakeOsmo.d.ts +5 -0
- package/src/proposals/start-stakeOsmo.d.ts.map +1 -1
- package/src/typeGuards.d.ts +27 -4
- package/src/typeGuards.d.ts.map +1 -1
- package/src/typeGuards.js +103 -26
- package/src/types.d.ts +1 -0
- package/src/types.d.ts.map +1 -1
- package/src/types.ts +1 -0
- package/src/utils/address.d.ts +2 -1
- package/src/utils/address.d.ts.map +1 -1
- package/src/utils/address.js +18 -1
- package/src/utils/asset.d.ts +5 -0
- package/src/utils/asset.d.ts.map +1 -0
- package/src/utils/asset.js +33 -0
- package/src/utils/chain-hub-helper.d.ts +8 -0
- package/src/utils/chain-hub-helper.d.ts.map +1 -0
- package/src/utils/chain-hub-helper.js +60 -0
- package/src/utils/orchestrationAccount.js +2 -2
- package/src/utils/packet.d.ts +1 -1
- package/src/utils/packet.d.ts.map +1 -1
- package/src/utils/registry.d.ts +2 -0
- package/src/utils/registry.d.ts.map +1 -1
- package/src/utils/registry.js +3 -1
- package/src/utils/start-helper.d.ts +7 -4
- package/src/utils/start-helper.d.ts.map +1 -1
- package/src/utils/start-helper.js +6 -4
- package/src/utils/time.d.ts +1 -1
- package/src/utils/time.d.ts.map +1 -1
- package/src/vat-orchestration.d.ts +9 -9
- package/src/vat-orchestration.d.ts.map +1 -1
- package/src/vat-orchestration.js +2 -2
package/index.d.ts
CHANGED
|
@@ -2,5 +2,8 @@ export * from "./src/types-index.js";
|
|
|
2
2
|
export * from "./src/exos/cosmos-interchain-service.js";
|
|
3
3
|
export * from "./src/exos/chain-hub-admin.js";
|
|
4
4
|
export * from "./src/typeGuards.js";
|
|
5
|
+
export * from "./src/utils/denomHash.js";
|
|
5
6
|
export { withOrchestration } from "./src/utils/start-helper.js";
|
|
7
|
+
export { withChainCapabilities } from "./src/chain-capabilities.js";
|
|
8
|
+
export { registerChainsAndAssets } from "./src/utils/chain-hub-helper.js";
|
|
6
9
|
//# sourceMappingURL=index.d.ts.map
|
package/index.js
CHANGED
|
@@ -7,5 +7,8 @@ export * from './src/types-index.js'; // no named exports
|
|
|
7
7
|
export * from './src/exos/cosmos-interchain-service.js';
|
|
8
8
|
export * from './src/exos/chain-hub-admin.js';
|
|
9
9
|
export * from './src/typeGuards.js';
|
|
10
|
+
export * from './src/utils/denomHash.js';
|
|
10
11
|
|
|
11
12
|
export { withOrchestration } from './src/utils/start-helper.js';
|
|
13
|
+
export { withChainCapabilities } from './src/chain-capabilities.js';
|
|
14
|
+
export { registerChainsAndAssets } from './src/utils/chain-hub-helper.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/orchestration",
|
|
3
|
-
"version": "0.2.0-upgrade-18-dev-
|
|
3
|
+
"version": "0.2.0-upgrade-18-dev-bd8fd54.0+bd8fd54",
|
|
4
4
|
"description": "Chain abstraction for Agoric's orchestration clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"prepack": "tsc --build tsconfig.build.json",
|
|
15
15
|
"postpack": "git clean -f '*.d.ts*' '*.tsbuildinfo'",
|
|
16
16
|
"test": "ava",
|
|
17
|
-
"test:c8": "c8 $C8_OPTIONS ava
|
|
17
|
+
"test:c8": "c8 --all $C8_OPTIONS ava",
|
|
18
18
|
"test:xs": "exit 0",
|
|
19
19
|
"lint": "run-s --continue-on-error lint:*",
|
|
20
20
|
"lint:types": "tsc",
|
|
@@ -33,38 +33,39 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@agoric/async-flow": "0.2.0-upgrade-18-dev-
|
|
37
|
-
"@agoric/cosmic-proto": "0.5.0-upgrade-18-dev-
|
|
38
|
-
"@agoric/ertp": "0.16.3-upgrade-18-dev-
|
|
39
|
-
"@agoric/internal": "0.4.0-upgrade-18-dev-
|
|
40
|
-
"@agoric/network": "0.2.0-upgrade-18-dev-
|
|
41
|
-
"@agoric/notifier": "0.7.0-upgrade-18-dev-
|
|
42
|
-
"@agoric/store": "0.9.3-upgrade-18-dev-
|
|
43
|
-
"@agoric/time": "0.3.3-upgrade-18-dev-
|
|
44
|
-
"@agoric/vat-data": "0.5.3-upgrade-18-dev-
|
|
45
|
-
"@agoric/vats": "0.16.0-upgrade-18-dev-
|
|
46
|
-
"@agoric/vow": "0.2.0-upgrade-18-dev-
|
|
47
|
-
"@agoric/zoe": "0.26.3-upgrade-18-dev-
|
|
48
|
-
"@agoric/zone": "0.3.0-upgrade-18-dev-
|
|
49
|
-
"@endo/base64": "^1.0.
|
|
50
|
-
"@endo/errors": "^1.2.
|
|
51
|
-
"@endo/far": "^1.1.
|
|
52
|
-
"@endo/marshal": "^1.6.
|
|
53
|
-
"@endo/patterns": "^1.4.
|
|
36
|
+
"@agoric/async-flow": "0.2.0-upgrade-18-dev-bd8fd54.0+bd8fd54",
|
|
37
|
+
"@agoric/cosmic-proto": "0.5.0-upgrade-18-dev-bd8fd54.0+bd8fd54",
|
|
38
|
+
"@agoric/ertp": "0.16.3-upgrade-18-dev-bd8fd54.0+bd8fd54",
|
|
39
|
+
"@agoric/internal": "0.4.0-upgrade-18-dev-bd8fd54.0+bd8fd54",
|
|
40
|
+
"@agoric/network": "0.2.0-upgrade-18-dev-bd8fd54.0+bd8fd54",
|
|
41
|
+
"@agoric/notifier": "0.7.0-upgrade-18-dev-bd8fd54.0+bd8fd54",
|
|
42
|
+
"@agoric/store": "0.9.3-upgrade-18-dev-bd8fd54.0+bd8fd54",
|
|
43
|
+
"@agoric/time": "0.3.3-upgrade-18-dev-bd8fd54.0+bd8fd54",
|
|
44
|
+
"@agoric/vat-data": "0.5.3-upgrade-18-dev-bd8fd54.0+bd8fd54",
|
|
45
|
+
"@agoric/vats": "0.16.0-upgrade-18-dev-bd8fd54.0+bd8fd54",
|
|
46
|
+
"@agoric/vow": "0.2.0-upgrade-18-dev-bd8fd54.0+bd8fd54",
|
|
47
|
+
"@agoric/zoe": "0.26.3-upgrade-18-dev-bd8fd54.0+bd8fd54",
|
|
48
|
+
"@agoric/zone": "0.3.0-upgrade-18-dev-bd8fd54.0+bd8fd54",
|
|
49
|
+
"@endo/base64": "^1.0.9",
|
|
50
|
+
"@endo/errors": "^1.2.8",
|
|
51
|
+
"@endo/far": "^1.1.9",
|
|
52
|
+
"@endo/marshal": "^1.6.2",
|
|
53
|
+
"@endo/patterns": "^1.4.7",
|
|
54
54
|
"@noble/hashes": "^1.5.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@agoric/swingset-liveslots": "0.10.3-upgrade-18-dev-
|
|
57
|
+
"@agoric/swingset-liveslots": "0.10.3-upgrade-18-dev-bd8fd54.0+bd8fd54",
|
|
58
58
|
"@chain-registry/client": "^1.47.4",
|
|
59
59
|
"@cosmjs/amino": "^0.32.3",
|
|
60
60
|
"@cosmjs/proto-signing": "^0.32.3",
|
|
61
|
-
"@endo/bundle-source": "^3.
|
|
62
|
-
"@endo/import-bundle": "^1.3.
|
|
63
|
-
"@endo/ses-ava": "^1.2.
|
|
61
|
+
"@endo/bundle-source": "^3.5.0",
|
|
62
|
+
"@endo/import-bundle": "^1.3.2",
|
|
63
|
+
"@endo/ses-ava": "^1.2.8",
|
|
64
64
|
"ava": "^5.3.1",
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
65
|
+
"bech32": "^2.0.0",
|
|
66
|
+
"c8": "^10.1.2",
|
|
67
|
+
"prettier": "^3.4.2",
|
|
68
|
+
"ts-blank-space": "^0.4.4"
|
|
68
69
|
},
|
|
69
70
|
"ava": {
|
|
70
71
|
"extensions": {
|
|
@@ -93,7 +94,7 @@
|
|
|
93
94
|
"access": "public"
|
|
94
95
|
},
|
|
95
96
|
"typeCoverage": {
|
|
96
|
-
"atLeast": 97.
|
|
97
|
+
"atLeast": 97.29
|
|
97
98
|
},
|
|
98
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "bd8fd545c40400566a6ff3838b1499173fcf9aaf"
|
|
99
100
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export function withChainCapabilities(chainInfo: Record<string, CosmosChainInfo>, opts?: {
|
|
2
|
+
PfmEnabled: Record<string, boolean>;
|
|
3
|
+
IcqEnabled: Record<string, boolean>;
|
|
4
|
+
}): Record<string, {
|
|
5
|
+
pfmEnabled: boolean;
|
|
6
|
+
icqEnabled: boolean;
|
|
7
|
+
bech32Prefix?: string;
|
|
8
|
+
chainId: string;
|
|
9
|
+
connections?: Record<string, import("@agoric/orchestration").IBCConnectionInfo>;
|
|
10
|
+
stakingTokens?: Readonly<Array<{
|
|
11
|
+
denom: string;
|
|
12
|
+
}>>;
|
|
13
|
+
}>;
|
|
14
|
+
import type { CosmosChainInfo } from '@agoric/orchestration';
|
|
15
|
+
//# sourceMappingURL=chain-capabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain-capabilities.d.ts","sourceRoot":"","sources":["chain-capabilities.js"],"names":[],"mappings":"AA+CO,iDANI,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,SAC/B;IACN,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC;;;;;;;;;GAcH;qCArD+C,uBAAuB"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Contains ChainInfo that not available from a well-known chain registry.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { objectMap } from '@endo/patterns';
|
|
6
|
+
|
|
7
|
+
/** @import {CosmosChainInfo, KnownChains} from '@agoric/orchestration'; */
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Chains with the async-icq (icq-1) module available.
|
|
11
|
+
*
|
|
12
|
+
* @satisfies {Partial<Record<keyof KnownChains, boolean>>}
|
|
13
|
+
*/
|
|
14
|
+
const IcqEnabled = /** @type {const} */ ({
|
|
15
|
+
omniflixhub: true,
|
|
16
|
+
osmosis: true,
|
|
17
|
+
});
|
|
18
|
+
harden(IcqEnabled);
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Chains with the packet-forward-middleware module available.
|
|
22
|
+
*
|
|
23
|
+
* @satisfies {Partial<Record<keyof KnownChains, boolean>>}
|
|
24
|
+
*/
|
|
25
|
+
const PfmEnabled = /** @type {const} */ ({
|
|
26
|
+
agoric: true,
|
|
27
|
+
celestia: true,
|
|
28
|
+
cosmoshub: true,
|
|
29
|
+
juno: true,
|
|
30
|
+
neutron: true,
|
|
31
|
+
noble: true,
|
|
32
|
+
omniflixhub: true,
|
|
33
|
+
osmosis: true,
|
|
34
|
+
secretnetwork: true,
|
|
35
|
+
stargaze: true,
|
|
36
|
+
stride: true,
|
|
37
|
+
umee: true,
|
|
38
|
+
});
|
|
39
|
+
harden(PfmEnabled);
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @param {Record<string, CosmosChainInfo>} chainInfo
|
|
43
|
+
* @param {{
|
|
44
|
+
* PfmEnabled: Record<string, boolean>;
|
|
45
|
+
* IcqEnabled: Record<string, boolean>;
|
|
46
|
+
* }} [opts]
|
|
47
|
+
*/
|
|
48
|
+
export const withChainCapabilities = (
|
|
49
|
+
chainInfo,
|
|
50
|
+
opts = {
|
|
51
|
+
PfmEnabled,
|
|
52
|
+
IcqEnabled,
|
|
53
|
+
},
|
|
54
|
+
) => {
|
|
55
|
+
return objectMap(chainInfo, (info, name) => ({
|
|
56
|
+
...info,
|
|
57
|
+
pfmEnabled: !!opts.PfmEnabled[name],
|
|
58
|
+
icqEnabled: !!opts.IcqEnabled[name],
|
|
59
|
+
}));
|
|
60
|
+
};
|
package/src/chain-info.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export function registerChainAssets(agoricNamesAdmin: ERef<NameAdmin>, name: string, assets: CosmosAssetInfo[]): Promise<void>;
|
|
2
|
-
export function registerChain(agoricNamesAdmin: ERef<NameAdmin>, name: string, chainInfo: CosmosChainInfo, log?: (
|
|
3
|
-
export function registerKnownChains(agoricNamesAdmin: ERef<import("@agoric/vats").NameHubKit["nameAdmin"]>, log?: (
|
|
2
|
+
export function registerChain(agoricNamesAdmin: ERef<NameAdmin>, name: string, chainInfo: CosmosChainInfo, log?: (...messages: string[]) => void, handledConnections?: Set<string>): Promise<void>;
|
|
3
|
+
export function registerKnownChains(agoricNamesAdmin: ERef<import("@agoric/vats").NameHubKit["nameAdmin"]>, log?: (...messages: string[]) => void): Promise<void>;
|
|
4
4
|
/**
|
|
5
5
|
* Info used to build a {@link Chain} object - channel, connection, and denom
|
|
6
6
|
* info.
|
|
@@ -21,6 +21,7 @@ import type { EthChainInfo } from './types.js';
|
|
|
21
21
|
*/
|
|
22
22
|
declare const knownChains: {
|
|
23
23
|
readonly agoric: {
|
|
24
|
+
readonly bech32Prefix: "agoric";
|
|
24
25
|
readonly chainId: "agoric-3";
|
|
25
26
|
readonly stakingTokens: readonly [{
|
|
26
27
|
readonly denom: "ubld";
|
|
@@ -156,6 +157,7 @@ declare const knownChains: {
|
|
|
156
157
|
};
|
|
157
158
|
};
|
|
158
159
|
readonly celestia: {
|
|
160
|
+
readonly bech32Prefix: "celestia";
|
|
159
161
|
readonly chainId: "celestia";
|
|
160
162
|
readonly stakingTokens: readonly [{
|
|
161
163
|
readonly denom: "utia";
|
|
@@ -255,30 +257,13 @@ declare const knownChains: {
|
|
|
255
257
|
};
|
|
256
258
|
};
|
|
257
259
|
readonly cosmoshub: {
|
|
260
|
+
readonly bech32Prefix: "cosmos";
|
|
258
261
|
readonly chainId: "cosmoshub-4";
|
|
259
262
|
readonly stakingTokens: readonly [{
|
|
260
263
|
readonly denom: "uatom";
|
|
261
264
|
}];
|
|
262
265
|
readonly icqEnabled: false;
|
|
263
266
|
readonly connections: {
|
|
264
|
-
readonly 'stargaze-1': {
|
|
265
|
-
readonly id: "connection-918";
|
|
266
|
-
readonly client_id: "07-tendermint-1188";
|
|
267
|
-
readonly counterparty: {
|
|
268
|
-
readonly client_id: "07-tendermint-320";
|
|
269
|
-
readonly connection_id: "connection-256";
|
|
270
|
-
};
|
|
271
|
-
readonly state: 3;
|
|
272
|
-
readonly transferChannel: {
|
|
273
|
-
readonly channelId: "channel-730";
|
|
274
|
-
readonly portId: "transfer";
|
|
275
|
-
readonly counterPartyChannelId: "channel-239";
|
|
276
|
-
readonly counterPartyPortId: "transfer";
|
|
277
|
-
readonly ordering: 0;
|
|
278
|
-
readonly state: 3;
|
|
279
|
-
readonly version: "ics20-1";
|
|
280
|
-
};
|
|
281
|
-
};
|
|
282
267
|
readonly 'agoric-3': {
|
|
283
268
|
readonly id: "connection-649";
|
|
284
269
|
readonly client_id: "07-tendermint-927";
|
|
@@ -405,6 +390,24 @@ declare const knownChains: {
|
|
|
405
390
|
readonly version: "ics20-1";
|
|
406
391
|
};
|
|
407
392
|
};
|
|
393
|
+
readonly 'stargaze-1': {
|
|
394
|
+
readonly id: "connection-918";
|
|
395
|
+
readonly client_id: "07-tendermint-1188";
|
|
396
|
+
readonly counterparty: {
|
|
397
|
+
readonly client_id: "07-tendermint-320";
|
|
398
|
+
readonly connection_id: "connection-256";
|
|
399
|
+
};
|
|
400
|
+
readonly state: 3;
|
|
401
|
+
readonly transferChannel: {
|
|
402
|
+
readonly channelId: "channel-730";
|
|
403
|
+
readonly portId: "transfer";
|
|
404
|
+
readonly counterPartyChannelId: "channel-239";
|
|
405
|
+
readonly counterPartyPortId: "transfer";
|
|
406
|
+
readonly ordering: 0;
|
|
407
|
+
readonly state: 3;
|
|
408
|
+
readonly version: "ics20-1";
|
|
409
|
+
};
|
|
410
|
+
};
|
|
408
411
|
readonly 'stride-1': {
|
|
409
412
|
readonly id: "connection-635";
|
|
410
413
|
readonly client_id: "07-tendermint-913";
|
|
@@ -426,6 +429,7 @@ declare const knownChains: {
|
|
|
426
429
|
};
|
|
427
430
|
};
|
|
428
431
|
readonly dydx: {
|
|
432
|
+
readonly bech32Prefix: "dydx";
|
|
429
433
|
readonly chainId: "dydx-mainnet-1";
|
|
430
434
|
readonly stakingTokens: readonly [{
|
|
431
435
|
readonly denom: "adydx";
|
|
@@ -525,6 +529,7 @@ declare const knownChains: {
|
|
|
525
529
|
};
|
|
526
530
|
};
|
|
527
531
|
readonly juno: {
|
|
532
|
+
readonly bech32Prefix: "juno";
|
|
528
533
|
readonly chainId: "juno-1";
|
|
529
534
|
readonly stakingTokens: readonly [{
|
|
530
535
|
readonly denom: "ujuno";
|
|
@@ -660,6 +665,7 @@ declare const knownChains: {
|
|
|
660
665
|
};
|
|
661
666
|
};
|
|
662
667
|
readonly neutron: {
|
|
668
|
+
readonly bech32Prefix: "neutron";
|
|
663
669
|
readonly chainId: "neutron-1";
|
|
664
670
|
readonly stakingTokens: readonly [{
|
|
665
671
|
readonly denom: "untrn";
|
|
@@ -831,6 +837,7 @@ declare const knownChains: {
|
|
|
831
837
|
};
|
|
832
838
|
};
|
|
833
839
|
readonly noble: {
|
|
840
|
+
readonly bech32Prefix: "noble";
|
|
834
841
|
readonly chainId: "noble-1";
|
|
835
842
|
readonly icqEnabled: false;
|
|
836
843
|
readonly connections: {
|
|
@@ -1017,6 +1024,7 @@ declare const knownChains: {
|
|
|
1017
1024
|
};
|
|
1018
1025
|
};
|
|
1019
1026
|
readonly omniflixhub: {
|
|
1027
|
+
readonly bech32Prefix: "omniflix";
|
|
1020
1028
|
readonly chainId: "omniflixhub-1";
|
|
1021
1029
|
readonly stakingTokens: readonly [{
|
|
1022
1030
|
readonly denom: "uflix";
|
|
@@ -1098,6 +1106,7 @@ declare const knownChains: {
|
|
|
1098
1106
|
};
|
|
1099
1107
|
};
|
|
1100
1108
|
readonly osmosis: {
|
|
1109
|
+
readonly bech32Prefix: "osmo";
|
|
1101
1110
|
readonly chainId: "osmosis-1";
|
|
1102
1111
|
readonly stakingTokens: readonly [{
|
|
1103
1112
|
readonly denom: "uosmo";
|
|
@@ -1323,6 +1332,7 @@ declare const knownChains: {
|
|
|
1323
1332
|
};
|
|
1324
1333
|
};
|
|
1325
1334
|
readonly secretnetwork: {
|
|
1335
|
+
readonly bech32Prefix: "secret";
|
|
1326
1336
|
readonly chainId: "secret-4";
|
|
1327
1337
|
readonly stakingTokens: readonly [{
|
|
1328
1338
|
readonly denom: "uscrt";
|
|
@@ -1512,6 +1522,7 @@ declare const knownChains: {
|
|
|
1512
1522
|
};
|
|
1513
1523
|
};
|
|
1514
1524
|
readonly stargaze: {
|
|
1525
|
+
readonly bech32Prefix: "stars";
|
|
1515
1526
|
readonly chainId: "stargaze-1";
|
|
1516
1527
|
readonly stakingTokens: readonly [{
|
|
1517
1528
|
readonly denom: "ustars";
|
|
@@ -1665,6 +1676,7 @@ declare const knownChains: {
|
|
|
1665
1676
|
};
|
|
1666
1677
|
};
|
|
1667
1678
|
readonly stride: {
|
|
1679
|
+
readonly bech32Prefix: "stride";
|
|
1668
1680
|
readonly chainId: "stride-1";
|
|
1669
1681
|
readonly stakingTokens: readonly [{
|
|
1670
1682
|
readonly denom: "ustrd";
|
|
@@ -1854,6 +1866,7 @@ declare const knownChains: {
|
|
|
1854
1866
|
};
|
|
1855
1867
|
};
|
|
1856
1868
|
readonly umee: {
|
|
1869
|
+
readonly bech32Prefix: "umee";
|
|
1857
1870
|
readonly chainId: "umee-1";
|
|
1858
1871
|
readonly stakingTokens: readonly [{
|
|
1859
1872
|
readonly denom: "uumee";
|
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":"AAkCO,sDALI,IAAI,CAAC,SAAS,CAAC,QACf,MAAM,UACN,eAAe,EAAE,iBAS3B;AAYM,gDAPI,IAAI,CAAC,SAAS,CAAC,QACf,MAAM,aACN,eAAe,
|
|
1
|
+
{"version":3,"file":"chain-info.d.ts","sourceRoot":"","sources":["chain-info.js"],"names":[],"mappings":"AAkCO,sDALI,IAAI,CAAC,SAAS,CAAC,QACf,MAAM,UACN,eAAe,EAAE,iBAS3B;AAYM,gDAPI,IAAI,CAAC,SAAS,CAAC,QACf,MAAM,aACN,eAAe,QACf,CAAC,GAAG,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,uBAC/B,GAAG,CAAC,MAAM,CAAC,iBA6CrB;AAQM,sDAHI,IAAI,CAAC,OAAO,cAAc,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC,QACpD,CAAC,GAAG,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,iBAOzC;;;;;wBA9FY,eAAe,GAAG,YAAY;0BAQ9B,OAAO,WAAW;+BAdF,cAAc;qCADiD,YAAY;qCAAZ,YAAY;kCAAZ,YAAY;AAAxG,4GAA4G;AAC5G,+CAA+C;AAE/C;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEE"}
|
package/src/cosmos-api.d.ts
CHANGED
|
@@ -7,10 +7,12 @@ import type { State as IBCConnectionState } from '@agoric/cosmic-proto/ibc/core/
|
|
|
7
7
|
import type { RequestQuery, ResponseQuery } from '@agoric/cosmic-proto/tendermint/abci/types.js';
|
|
8
8
|
import type { Payment, Amount } from '@agoric/ertp/src/types.js';
|
|
9
9
|
import type { Port } from '@agoric/network';
|
|
10
|
-
import type { IBCChannelID, IBCConnectionID } from '@agoric/vats';
|
|
10
|
+
import type { IBCChannelID, IBCConnectionID, IBCPortID } from '@agoric/vats';
|
|
11
11
|
import type { TargetApp, TargetRegistration } from '@agoric/vats/src/bridge-target.js';
|
|
12
12
|
import type { LocalIbcAddress, RemoteIbcAddress } from '@agoric/vats/tools/ibc-utils.js';
|
|
13
|
+
import type { Coin } from '@agoric/cosmic-proto/cosmos/base/v1beta1/coin.js';
|
|
13
14
|
import type { AmountArg, ChainAddress, Denom, DenomAmount } from './types.js';
|
|
15
|
+
import { PFM_RECEIVER } from './exos/chain-hub.js';
|
|
14
16
|
/** An address for a validator on some blockchain, e.g., cosmos, eth, etc. */
|
|
15
17
|
export type CosmosValidatorAddress = ChainAddress & {
|
|
16
18
|
value: `${string}valoper${string}`;
|
|
@@ -64,9 +66,16 @@ export interface CosmosAssetInfo extends Record<string, unknown> {
|
|
|
64
66
|
* Info for a Cosmos-based chain.
|
|
65
67
|
*/
|
|
66
68
|
export type CosmosChainInfo = Readonly<{
|
|
69
|
+
/** can be used to lookup chainInfo (chainId) from an address value */
|
|
70
|
+
bech32Prefix?: string;
|
|
67
71
|
chainId: string;
|
|
68
72
|
connections?: Record<string, IBCConnectionInfo>;
|
|
69
73
|
icqEnabled?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Note: developers must provide this value themselves for `.transfer` to work
|
|
76
|
+
* as expected. Please see examples for details.
|
|
77
|
+
*/
|
|
78
|
+
pfmEnabled?: boolean;
|
|
70
79
|
/**
|
|
71
80
|
* cf https://github.com/cosmos/chain-registry/blob/master/chain.schema.json#L117
|
|
72
81
|
*/
|
|
@@ -172,19 +181,9 @@ export interface StakingAccountActions {
|
|
|
172
181
|
withdrawReward: (validator: CosmosValidatorAddress) => Promise<DenomAmount[]>;
|
|
173
182
|
}
|
|
174
183
|
/**
|
|
175
|
-
* Low level
|
|
184
|
+
* Low level methods from IcaAccount that we pass through to CosmosOrchestrationAccount
|
|
176
185
|
*/
|
|
177
|
-
export interface
|
|
178
|
-
/**
|
|
179
|
-
* @returns the address of the account on the remote chain
|
|
180
|
-
*/
|
|
181
|
-
getAddress: () => ChainAddress;
|
|
182
|
-
/**
|
|
183
|
-
* Submit a transaction on behalf of the remote account for execution on the remote chain.
|
|
184
|
-
* @param msgs - records for the transaction
|
|
185
|
-
* @returns acknowledgement string
|
|
186
|
-
*/
|
|
187
|
-
executeTx: (msgs: TypedJson[]) => Promise<string>;
|
|
186
|
+
export interface IcaAccountMethods {
|
|
188
187
|
/**
|
|
189
188
|
* Submit a transaction on behalf of the remote account for execution on the remote chain.
|
|
190
189
|
* @param msgs - records for the transaction
|
|
@@ -209,6 +208,21 @@ export interface IcaAccount {
|
|
|
209
208
|
* @throws {Error} if connection is currently active
|
|
210
209
|
*/
|
|
211
210
|
reactivate: () => Promise<void>;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Low level object that supports queries and operations for an account on a remote chain.
|
|
214
|
+
*/
|
|
215
|
+
export interface IcaAccount extends IcaAccountMethods {
|
|
216
|
+
/**
|
|
217
|
+
* @returns the address of the account on the remote chain
|
|
218
|
+
*/
|
|
219
|
+
getAddress: () => ChainAddress;
|
|
220
|
+
/**
|
|
221
|
+
* Submit a transaction on behalf of the remote account for execution on the remote chain.
|
|
222
|
+
* @param msgs - records for the transaction
|
|
223
|
+
* @returns acknowledgement string
|
|
224
|
+
*/
|
|
225
|
+
executeTx: (msgs: TypedJson[]) => Promise<string>;
|
|
212
226
|
/** @returns the address of the remote channel */
|
|
213
227
|
getRemoteAddress: () => RemoteIbcAddress;
|
|
214
228
|
/** @returns the address of the local channel */
|
|
@@ -221,15 +235,20 @@ export interface LiquidStakingMethods {
|
|
|
221
235
|
liquidStake: (amount: AmountArg) => Promise<void>;
|
|
222
236
|
}
|
|
223
237
|
/** Methods supported only on Agoric chain accounts */
|
|
224
|
-
export interface LocalAccountMethods {
|
|
238
|
+
export interface LocalAccountMethods extends StakingAccountActions {
|
|
225
239
|
/** deposit payment (from zoe, for example) to the account */
|
|
226
|
-
deposit: (payment: Payment<'nat'>) => Promise<
|
|
240
|
+
deposit: (payment: Payment<'nat'>) => Promise<Amount<'nat'>>;
|
|
227
241
|
/** withdraw a Payment from the account */
|
|
228
242
|
withdraw: (amount: Amount<'nat'>) => Promise<Payment<'nat'>>;
|
|
229
243
|
/**
|
|
230
244
|
* Register a handler that receives an event each time ICS-20 transfers are
|
|
231
|
-
* sent or received by the underlying account.
|
|
232
|
-
*
|
|
245
|
+
* sent or received by the underlying account.
|
|
246
|
+
*
|
|
247
|
+
* Handler includes {@link VTransferIBCEvent} and
|
|
248
|
+
* {@link FungibleTokenPacketData} that can be used for application logic.
|
|
249
|
+
*
|
|
250
|
+
* Each account may be associated with at most one handler at a given time.
|
|
251
|
+
*
|
|
233
252
|
* Does not grant the handler the ability to intercept a transfer. For a
|
|
234
253
|
* blocking handler, aka 'IBC Hooks', leverage `registerActiveTap` from
|
|
235
254
|
* `transferMiddleware` directly.
|
|
@@ -247,6 +266,12 @@ export interface IBCMsgTransferOptions {
|
|
|
247
266
|
timeoutHeight?: MsgTransfer['timeoutHeight'];
|
|
248
267
|
timeoutTimestamp?: MsgTransfer['timeoutTimestamp'];
|
|
249
268
|
memo?: string;
|
|
269
|
+
forwardOpts?: {
|
|
270
|
+
/** The recipient address for the intermediate transfer. Defaults to 'pfm' unless specified */
|
|
271
|
+
intermediateRecipient?: ChainAddress;
|
|
272
|
+
timeout?: ForwardInfo['forward']['timeout'];
|
|
273
|
+
retries?: ForwardInfo['forward']['retries'];
|
|
274
|
+
};
|
|
250
275
|
}
|
|
251
276
|
/**
|
|
252
277
|
* Cosmos-specific methods to extend `OrchestrationAccountI`, parameterized
|
|
@@ -257,10 +282,60 @@ export interface IBCMsgTransferOptions {
|
|
|
257
282
|
*
|
|
258
283
|
* @see {OrchestrationAccountI}
|
|
259
284
|
*/
|
|
260
|
-
export type CosmosChainAccountMethods<CCI extends CosmosChainInfo> = (CCI extends {
|
|
261
|
-
icaEnabled: true;
|
|
262
|
-
} ? IcaAccount : {}) & CCI extends {
|
|
285
|
+
export type CosmosChainAccountMethods<CCI extends CosmosChainInfo> = IcaAccountMethods & (CCI extends {
|
|
263
286
|
stakingTokens: {};
|
|
264
|
-
} ? StakingAccountActions & StakingAccountQueries : {};
|
|
287
|
+
} ? StakingAccountActions & StakingAccountQueries : {});
|
|
265
288
|
export type ICQQueryFunction = (msgs: JsonSafe<RequestQuery>[]) => Promise<JsonSafe<ResponseQuery>[]>;
|
|
289
|
+
/**
|
|
290
|
+
* Message structure for PFM memo
|
|
291
|
+
*
|
|
292
|
+
* @see {@link https://github.com/cosmos/chain-registry/blob/58b603bbe01f70e911e3ad2bdb6b90c4ca665735/_memo_keys/ICS20_memo_keys.json#L38-L60}
|
|
293
|
+
*/
|
|
294
|
+
export interface ForwardInfo {
|
|
295
|
+
forward: {
|
|
296
|
+
receiver: ChainAddress['value'];
|
|
297
|
+
port: IBCPortID;
|
|
298
|
+
channel: IBCChannelID;
|
|
299
|
+
/** e.g. '10m' */
|
|
300
|
+
timeout: GoDuration;
|
|
301
|
+
/** default is 3? */
|
|
302
|
+
retries: number;
|
|
303
|
+
next?: {
|
|
304
|
+
forward: ForwardInfo;
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Object used to help build MsgTransfer parameters for IBC transfers.
|
|
310
|
+
*
|
|
311
|
+
* If `forwardInfo` is present:
|
|
312
|
+
* - it must be stringified and provided as the `memo` field value for
|
|
313
|
+
* use with `MsgTransfer`.
|
|
314
|
+
* - `receiver` will be set to `"pfm"` - purposely invalid bech32. see {@link https://github.com/cosmos/ibc-apps/blob/26f3ad8f58e4ffc7769c6766cb42b954181dc100/middleware/packet-forward-middleware/README.md#minimal-example---chain-forward-a-b-c}
|
|
315
|
+
*/
|
|
316
|
+
export type TransferRoute = {
|
|
317
|
+
/** typically, `transfer` */
|
|
318
|
+
sourcePort: string;
|
|
319
|
+
sourceChannel: IBCChannelID;
|
|
320
|
+
token: Coin;
|
|
321
|
+
} & ({
|
|
322
|
+
receiver: typeof PFM_RECEIVER | ChainAddress['value'];
|
|
323
|
+
/** contains PFM forwarding info */
|
|
324
|
+
forwardInfo: ForwardInfo;
|
|
325
|
+
} | {
|
|
326
|
+
receiver: string;
|
|
327
|
+
forwardInfo?: never;
|
|
328
|
+
});
|
|
329
|
+
/** Single units allowed in Go time duration strings */
|
|
330
|
+
type GoDurationUnit = 'h' | 'm' | 's' | 'ms' | 'us' | 'ns';
|
|
331
|
+
/**
|
|
332
|
+
* Type for a time duration string in Go (cosmos-sdk). For example, "1h", "3m".
|
|
333
|
+
*
|
|
334
|
+
* Note: this does not support composite values like "1h30m", "1m30s",
|
|
335
|
+
* which are allowed in Go.
|
|
336
|
+
*
|
|
337
|
+
* @see https://pkg.go.dev/time#ParseDuration
|
|
338
|
+
*/
|
|
339
|
+
export type GoDuration = `${number}${GoDurationUnit}`;
|
|
340
|
+
export {};
|
|
266
341
|
//# sourceMappingURL=cosmos-api.d.ts.map
|
package/src/cosmos-api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cosmos-api.d.ts","sourceRoot":"","sources":["cosmos-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,KAAK,EAIV,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,wDAAwD,CAAC;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yDAAyD,CAAC;
|
|
1
|
+
{"version":3,"file":"cosmos-api.d.ts","sourceRoot":"","sources":["cosmos-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,KAAK,EAIV,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,wDAAwD,CAAC;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yDAAyD,CAAC;AAE3F,OAAO,KAAK,EACV,KAAK,IAAI,eAAe,EACxB,KAAK,EACN,MA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