@agoric/orchestration 0.2.0-upgrade-18a-dev-2899fb9.0 → 0.2.0-upgrade-19-dev-0754752.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 +26 -25
- package/src/chain-capabilities.d.ts +2 -0
- package/src/chain-capabilities.d.ts.map +1 -1
- package/src/chain-capabilities.js +22 -0
- package/src/chain-info.d.ts +7278 -673
- package/src/chain-info.d.ts.map +1 -1
- package/src/cosmos-api.d.ts +7 -6
- package/src/cosmos-api.d.ts.map +1 -1
- package/src/cosmos-api.ts +7 -10
- package/src/examples/auto-stake-it.contract.d.ts +2 -0
- package/src/examples/auto-stake-it.contract.d.ts.map +1 -1
- package/src/examples/auto-stake-it.contract.js +1 -1
- package/src/examples/basic-flows.contract.d.ts +1 -0
- package/src/examples/basic-flows.contract.d.ts.map +1 -1
- package/src/examples/basic-flows.contract.js +1 -1
- package/src/examples/send-anywhere.contract.d.ts +13 -8
- package/src/examples/send-anywhere.contract.d.ts.map +1 -1
- package/src/examples/send-anywhere.contract.js +5 -4
- package/src/examples/stake-bld.contract.d.ts +1 -1
- package/src/examples/stake-ica.contract.d.ts +1 -1
- package/src/examples/staking-combinations.contract.d.ts +1 -0
- package/src/examples/staking-combinations.contract.d.ts.map +1 -1
- package/src/examples/staking-combinations.contract.js +1 -1
- package/src/examples/swap.contract.d.ts +1 -0
- package/src/examples/swap.contract.d.ts.map +1 -1
- package/src/examples/swap.contract.js +1 -1
- package/src/examples/unbond.contract.d.ts.map +1 -1
- package/src/examples/unbond.contract.js +1 -1
- package/src/exos/chain-hub.d.ts +1 -0
- package/src/exos/chain-hub.d.ts.map +1 -1
- package/src/exos/chain-hub.js +19 -13
- package/src/exos/cosmos-orchestration-account.d.ts +15 -11
- package/src/exos/cosmos-orchestration-account.d.ts.map +1 -1
- package/src/exos/cosmos-orchestration-account.js +18 -13
- package/src/exos/ibc-packet.d.ts +34 -3
- package/src/exos/ibc-packet.d.ts.map +1 -1
- package/src/exos/local-chain-facade.d.ts +3 -1
- package/src/exos/local-chain-facade.d.ts.map +1 -1
- package/src/exos/local-chain-facade.js +9 -7
- package/src/exos/local-orchestration-account.d.ts +3 -3
- package/src/exos/local-orchestration-account.d.ts.map +1 -1
- package/src/exos/local-orchestration-account.js +11 -5
- package/src/exos/orchestrator.d.ts +6 -5
- package/src/exos/orchestrator.d.ts.map +1 -1
- package/src/exos/portfolio-holder-kit.d.ts +1 -1
- package/src/exos/remote-chain-facade.d.ts +3 -2
- package/src/exos/remote-chain-facade.d.ts.map +1 -1
- package/src/exos/remote-chain-facade.js +12 -8
- package/src/facade.d.ts +1 -4
- package/src/facade.d.ts.map +1 -1
- package/src/facade.js +2 -9
- package/src/fetched-chain-info.d.ts +7475 -735
- package/src/fetched-chain-info.js +7349 -690
- package/src/fixtures/query-flows.contract.d.ts.map +1 -1
- package/src/fixtures/query-flows.contract.js +1 -1
- package/src/orchestration-api.d.ts +3 -3
- package/src/orchestration-api.d.ts.map +1 -1
- package/src/orchestration-api.ts +3 -3
- package/src/utils/registry.d.ts +1 -0
- package/src/utils/registry.d.ts.map +1 -1
- package/src/utils/start-helper.d.ts +10 -2
- package/src/utils/start-helper.d.ts.map +1 -1
- package/src/utils/start-helper.js +15 -6
- package/src/utils/time.d.ts +3 -1
- package/src/utils/time.d.ts.map +1 -1
- package/src/utils/time.js +2 -1
- package/tools/ibc-mocks.d.ts +116 -0
- package/tools/ibc-mocks.d.ts.map +1 -0
- package/tools/ibc-mocks.ts +262 -0
- package/tools/make-test-address.d.ts +2 -0
- package/tools/make-test-address.d.ts.map +1 -0
- package/tools/make-test-address.js +21 -0
- package/tools/protobuf-decoder.d.ts +19 -0
- package/tools/protobuf-decoder.d.ts.map +1 -0
- package/tools/protobuf-decoder.js +153 -0
- package/src/proposals/init-chain-info.d.ts +0 -12
- package/src/proposals/init-chain-info.d.ts.map +0 -1
- package/src/proposals/orchestration-proposal.d.ts +0 -33
- package/src/proposals/orchestration-proposal.d.ts.map +0 -1
- package/src/proposals/revise-chain-info.d.ts +0 -21
- package/src/proposals/revise-chain-info.d.ts.map +0 -1
- package/src/proposals/start-auto-stake-it.d.ts +0 -52
- package/src/proposals/start-auto-stake-it.d.ts.map +0 -1
- package/src/proposals/start-basic-flows.d.ts +0 -73
- package/src/proposals/start-basic-flows.d.ts.map +0 -1
- package/src/proposals/start-send-anywhere.d.ts +0 -105
- package/src/proposals/start-send-anywhere.d.ts.map +0 -1
- package/src/proposals/start-stakeAtom.d.ts +0 -142
- package/src/proposals/start-stakeAtom.d.ts.map +0 -1
- package/src/proposals/start-stakeBld.d.ts +0 -82
- package/src/proposals/start-stakeBld.d.ts.map +0 -1
- package/src/proposals/start-stakeOsmo.d.ts +0 -146
- package/src/proposals/start-stakeOsmo.d.ts.map +0 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decodes a protobuf message from the given buffer.
|
|
3
|
+
*
|
|
4
|
+
* @param {Buffer} buffer
|
|
5
|
+
*/
|
|
6
|
+
export function decodeProtobuf(buffer: Buffer): {
|
|
7
|
+
value: {};
|
|
8
|
+
bytesRead: number;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Decodes a protobuf message from the given base64-encoded data.
|
|
12
|
+
*
|
|
13
|
+
* @param {string} base64String
|
|
14
|
+
*/
|
|
15
|
+
export function decodeProtobufBase64(base64String: string): {
|
|
16
|
+
value: {};
|
|
17
|
+
bytesRead: number;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=protobuf-decoder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protobuf-decoder.d.ts","sourceRoot":"","sources":["protobuf-decoder.js"],"names":[],"mappings":"AA8HA;;;;GAIG;AACH,uCAFW,MAAM;;;EAchB;AACD;;;;GAIG;AACH,mDAFW,MAAM;;;EAKhB"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/* eslint-env node */
|
|
2
|
+
/* eslint-disable -- generated by Sonnet, easier to leave alone */
|
|
3
|
+
|
|
4
|
+
const WIRE_TYPES = {
|
|
5
|
+
VARINT: 0,
|
|
6
|
+
FIXED64: 1,
|
|
7
|
+
LENGTH_DELIMITED: 2,
|
|
8
|
+
START_GROUP: 3,
|
|
9
|
+
END_GROUP: 4,
|
|
10
|
+
FIXED32: 5,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
function decodeVarint(buffer, offset) {
|
|
14
|
+
let result = 0n;
|
|
15
|
+
let shift = 0;
|
|
16
|
+
let byte;
|
|
17
|
+
|
|
18
|
+
do {
|
|
19
|
+
if (offset >= buffer.length) {
|
|
20
|
+
throw new Error('Buffer overflow while decoding varint');
|
|
21
|
+
}
|
|
22
|
+
byte = buffer[offset];
|
|
23
|
+
result |= BigInt(byte & 0x7f) << BigInt(shift);
|
|
24
|
+
shift += 7;
|
|
25
|
+
offset++;
|
|
26
|
+
} while (byte & 0x80);
|
|
27
|
+
|
|
28
|
+
return { value: result, bytesRead: shift / 7 };
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function decodeFixed32(buffer, offset) {
|
|
32
|
+
if (offset + 4 > buffer.length) {
|
|
33
|
+
throw new Error('Buffer overflow while decoding fixed32');
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
value: buffer.readUInt32LE(offset),
|
|
37
|
+
bytesRead: 4,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function decodeFixed64(buffer, offset) {
|
|
42
|
+
if (offset + 8 > buffer.length) {
|
|
43
|
+
throw new Error('Buffer overflow while decoding fixed64');
|
|
44
|
+
}
|
|
45
|
+
const low = buffer.readUInt32LE(offset);
|
|
46
|
+
const high = buffer.readUInt32LE(offset + 4);
|
|
47
|
+
return {
|
|
48
|
+
value: BigInt(high) * 2n ** 32n + BigInt(low),
|
|
49
|
+
bytesRead: 8,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function decodeString(buffer, offset, length) {
|
|
54
|
+
if (offset + length > buffer.length) {
|
|
55
|
+
throw new Error('Buffer overflow while decoding string');
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
value: buffer.toString('utf8', offset, offset + length),
|
|
59
|
+
bytesRead: length,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function decodeField(buffer, offset) {
|
|
64
|
+
const tag = decodeVarint(buffer, offset);
|
|
65
|
+
offset += tag.bytesRead;
|
|
66
|
+
|
|
67
|
+
const fieldNumber = Number(tag.value >> 3n);
|
|
68
|
+
const wireType = Number(tag.value & 0x7n);
|
|
69
|
+
|
|
70
|
+
let value;
|
|
71
|
+
let bytesRead;
|
|
72
|
+
|
|
73
|
+
switch (wireType) {
|
|
74
|
+
case WIRE_TYPES.VARINT:
|
|
75
|
+
({ value, bytesRead } = decodeVarint(buffer, offset));
|
|
76
|
+
break;
|
|
77
|
+
case WIRE_TYPES.FIXED64:
|
|
78
|
+
({ value, bytesRead } = decodeFixed64(buffer, offset));
|
|
79
|
+
break;
|
|
80
|
+
case WIRE_TYPES.LENGTH_DELIMITED:
|
|
81
|
+
const length = decodeVarint(buffer, offset);
|
|
82
|
+
offset += length.bytesRead;
|
|
83
|
+
// Try to decode as a nested message first
|
|
84
|
+
try {
|
|
85
|
+
({ value, bytesRead } = decodeProtobuf(
|
|
86
|
+
buffer.slice(offset, offset + Number(length.value)),
|
|
87
|
+
));
|
|
88
|
+
} catch (e) {
|
|
89
|
+
// If it fails, decode as a string
|
|
90
|
+
({ value, bytesRead } = decodeString(
|
|
91
|
+
buffer,
|
|
92
|
+
offset,
|
|
93
|
+
Number(length.value),
|
|
94
|
+
));
|
|
95
|
+
}
|
|
96
|
+
bytesRead += length.bytesRead;
|
|
97
|
+
break;
|
|
98
|
+
case WIRE_TYPES.FIXED32:
|
|
99
|
+
({ value, bytesRead } = decodeFixed32(buffer, offset));
|
|
100
|
+
break;
|
|
101
|
+
default:
|
|
102
|
+
throw new Error(`Unsupported wire type: ${wireType}`);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return {
|
|
106
|
+
fieldNumber,
|
|
107
|
+
wireType,
|
|
108
|
+
value,
|
|
109
|
+
bytesRead: tag.bytesRead + bytesRead,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function getFieldName(fieldNumber, wireType) {
|
|
114
|
+
const typePrefix =
|
|
115
|
+
wireType === WIRE_TYPES.LENGTH_DELIMITED
|
|
116
|
+
? 'subMessage'
|
|
117
|
+
: wireType === WIRE_TYPES.VARINT
|
|
118
|
+
? 'int'
|
|
119
|
+
: wireType === WIRE_TYPES.FIXED32
|
|
120
|
+
? 'fixed32'
|
|
121
|
+
: wireType === WIRE_TYPES.FIXED64
|
|
122
|
+
? 'fixed64'
|
|
123
|
+
: 'string';
|
|
124
|
+
return `${typePrefix}_${fieldNumber}`;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Decodes a protobuf message from the given buffer.
|
|
129
|
+
*
|
|
130
|
+
* @param {Buffer} buffer
|
|
131
|
+
*/
|
|
132
|
+
export function decodeProtobuf(buffer) {
|
|
133
|
+
let offset = 0;
|
|
134
|
+
const message = {};
|
|
135
|
+
|
|
136
|
+
while (offset < buffer.length) {
|
|
137
|
+
const field = decodeField(buffer, offset);
|
|
138
|
+
const fieldName = getFieldName(field.fieldNumber, field.wireType);
|
|
139
|
+
message[fieldName] = field.value;
|
|
140
|
+
offset += field.bytesRead;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
return { value: message, bytesRead: offset };
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Decodes a protobuf message from the given base64-encoded data.
|
|
147
|
+
*
|
|
148
|
+
* @param {string} base64String
|
|
149
|
+
*/
|
|
150
|
+
export function decodeProtobufBase64(base64String) {
|
|
151
|
+
const buffer = Buffer.from(base64String, 'base64');
|
|
152
|
+
return decodeProtobuf(buffer);
|
|
153
|
+
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export function initChainInfo({ consume: { agoricNamesAdmin, chainStorage: chainStorageP }, }: BootstrapPowers): Promise<void>;
|
|
2
|
-
export function getManifestForChainInfo(): {
|
|
3
|
-
manifest: {
|
|
4
|
-
[x: string]: {
|
|
5
|
-
consume: {
|
|
6
|
-
agoricNamesAdmin: boolean;
|
|
7
|
-
chainStorage: boolean;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=init-chain-info.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init-chain-info.d.ts","sourceRoot":"","sources":["init-chain-info.js"],"names":[],"mappings":"AA2EO,+FAFI,eAAe,iBAYzB;AAGM;;;;;;;;;EASL"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export function setupOrchestrationVat({ consume: { loadCriticalVat, portAllocator: portAllocatorP }, produce: { orchestrationVat, ...produce }, }: BootstrapPowers & {
|
|
2
|
-
consume: {
|
|
3
|
-
portAllocator: PortAllocator;
|
|
4
|
-
};
|
|
5
|
-
produce: {
|
|
6
|
-
orchestrationVat: Producer<any>;
|
|
7
|
-
};
|
|
8
|
-
}, { options }: {
|
|
9
|
-
options: {
|
|
10
|
-
orchestrationRef: VatSourceRef;
|
|
11
|
-
};
|
|
12
|
-
}): Promise<void>;
|
|
13
|
-
export function getManifestForOrchestration(_powers: any, { orchestrationRef }: {
|
|
14
|
-
orchestrationRef: any;
|
|
15
|
-
}): {
|
|
16
|
-
manifest: {
|
|
17
|
-
[x: string]: {
|
|
18
|
-
consume: {
|
|
19
|
-
loadCriticalVat: boolean;
|
|
20
|
-
portAllocator: string;
|
|
21
|
-
};
|
|
22
|
-
produce: {
|
|
23
|
-
cosmosInterchainService: string;
|
|
24
|
-
orchestrationVat: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
options: {
|
|
29
|
-
orchestrationRef: any;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
import type { PortAllocator } from '@agoric/network';
|
|
33
|
-
//# sourceMappingURL=orchestration-proposal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-proposal.d.ts","sourceRoot":"","sources":["orchestration-proposal.js"],"names":[],"mappings":"AAoBO,mJAVI,eAAe,GAAG;IACxB,OAAO,EAAE;QACP,aAAa,EAAE,aAAa,CAAC;KAC9B,CAAC;IACF,OAAO,EAAE;QACP,gBAAgB,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;KACjC,CAAC;CACH,eACO;IAAE,OAAO,EAAE;QAAE,gBAAgB,EAAE,YAAY,CAAA;KAAE,CAAA;CAAE,iBAgCzD;AAEM;;;;;;;;;;;;;;;;;;EAgBL;mCA9D8B,iBAAiB"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export function reviseChainInfo({ consume: { agoricNamesAdmin } }: BootstrapPowers, { options: { chainInfo } }: {
|
|
2
|
-
options: {
|
|
3
|
-
chainInfo: Record<string, CosmosChainInfo>;
|
|
4
|
-
};
|
|
5
|
-
}): Promise<void>;
|
|
6
|
-
export function getManifestForReviseChains(_powers: any, { chainInfo }: {
|
|
7
|
-
chainInfo: any;
|
|
8
|
-
}): {
|
|
9
|
-
manifest: {
|
|
10
|
-
[x: string]: {
|
|
11
|
-
consume: {
|
|
12
|
-
agoricNamesAdmin: boolean;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
options: {
|
|
17
|
-
chainInfo: any;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
import type { CosmosChainInfo } from '../types.js';
|
|
21
|
-
//# sourceMappingURL=revise-chain-info.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"revise-chain-info.d.ts","sourceRoot":"","sources":["revise-chain-info.js"],"names":[],"mappings":"AAeO,mEAHI,eAAe,8BACf;IAAE,OAAO,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;KAAE,CAAA;CAAE,iBAgBrE;AAGM;;;;;;;;;;;;;EAWL;qCAtCiC,aAAa"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export function startAutoStakeIt({ consume: { agoricNames, board, chainStorage, chainTimerService, cosmosInterchainService, localchain, startUpgradable, }, installation: { consume: { [contractName]: installation }, }, instance: { produce: { [contractName]: produceInstance }, }, }: BootstrapPowers, { options: { chainInfo, assetInfo } }: {
|
|
2
|
-
options: {
|
|
3
|
-
chainInfo: Record<string, CosmosChainInfo>;
|
|
4
|
-
assetInfo: [Denom, DenomDetail & {
|
|
5
|
-
brandKey?: string;
|
|
6
|
-
}][];
|
|
7
|
-
};
|
|
8
|
-
}): Promise<void>;
|
|
9
|
-
export function getManifest({ restoreRef }: {
|
|
10
|
-
restoreRef: any;
|
|
11
|
-
}, { installKeys, options }: {
|
|
12
|
-
installKeys: any;
|
|
13
|
-
options: any;
|
|
14
|
-
}): {
|
|
15
|
-
manifest: {
|
|
16
|
-
[x: string]: {
|
|
17
|
-
consume: {
|
|
18
|
-
agoricNames: boolean;
|
|
19
|
-
board: boolean;
|
|
20
|
-
chainStorage: boolean;
|
|
21
|
-
chainTimerService: boolean;
|
|
22
|
-
cosmosInterchainService: boolean;
|
|
23
|
-
localchain: boolean;
|
|
24
|
-
startUpgradable: boolean;
|
|
25
|
-
};
|
|
26
|
-
installation: {
|
|
27
|
-
consume: {
|
|
28
|
-
autoAutoStakeIt: boolean;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
instance: {
|
|
32
|
-
produce: {
|
|
33
|
-
autoAutoStakeIt: boolean;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
installations: {
|
|
39
|
-
autoAutoStakeIt: any;
|
|
40
|
-
};
|
|
41
|
-
options: any;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* @import {AutoStakeItSF} from '@agoric/orchestration/src/examples/auto-stake-it.contract.js';
|
|
45
|
-
* @import {CosmosChainInfo, Denom, DenomDetail} from '@agoric/orchestration';
|
|
46
|
-
*/
|
|
47
|
-
declare const contractName: "autoAutoStakeIt";
|
|
48
|
-
import type { CosmosChainInfo } from '@agoric/orchestration';
|
|
49
|
-
import type { Denom } from '@agoric/orchestration';
|
|
50
|
-
import type { DenomDetail } from '@agoric/orchestration';
|
|
51
|
-
export {};
|
|
52
|
-
//# sourceMappingURL=start-auto-stake-it.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"start-auto-stake-it.d.ts","sourceRoot":"","sources":["start-auto-stake-it.js"],"names":[],"mappings":"AA4BO,0RARI,eAAe,yCACf;IACN,OAAO,EAAE;QACP,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;QAC3C,SAAS,EAAE,CAAC,KAAK,EAAE,WAAW,GAAG;YAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,EAAE,CAAC;KAC3D,CAAC;CACH,iBAoDH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BN;AAhGD;;;GAGG;AAEH,4BAAqB,iBAAiB,CAAC;qCAHe,uBAAuB;2BAAvB,uBAAuB;iCAAvB,uBAAuB"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
export function startBasicFlows({ consume: { agoricNames, board, chainStorage, chainTimerService, cosmosInterchainService, localchain, startUpgradable, }, installation: { consume: { [contractName]: installation }, }, instance: { produce: { [contractName]: produceInstance }, }, issuer: { consume: { BLD, IST }, }, }: BootstrapPowers & {
|
|
2
|
-
installation: {
|
|
3
|
-
consume: {
|
|
4
|
-
basicFlows: Installation<BasicFlowsSF>;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
instance: {
|
|
8
|
-
produce: {
|
|
9
|
-
basicFlows: Producer<Instance>;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
issuer: {
|
|
13
|
-
consume: {
|
|
14
|
-
BLD: Issuer<"nat">;
|
|
15
|
-
IST: Issuer<"nat">;
|
|
16
|
-
USDC: Issuer<"nat">;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
}, { options: { chainInfo, assetInfo } }: {
|
|
20
|
-
options: {
|
|
21
|
-
chainInfo: Record<string, CosmosChainInfo>;
|
|
22
|
-
assetInfo: [Denom, DenomDetail & {
|
|
23
|
-
brandKey?: string;
|
|
24
|
-
}][];
|
|
25
|
-
};
|
|
26
|
-
}): Promise<void>;
|
|
27
|
-
export function getManifestForContract({ restoreRef }: {
|
|
28
|
-
restoreRef: any;
|
|
29
|
-
}, { installKeys, options }: {
|
|
30
|
-
installKeys: any;
|
|
31
|
-
options: any;
|
|
32
|
-
}): {
|
|
33
|
-
manifest: {
|
|
34
|
-
[x: string]: {
|
|
35
|
-
consume: {
|
|
36
|
-
agoricNames: boolean;
|
|
37
|
-
board: boolean;
|
|
38
|
-
chainStorage: boolean;
|
|
39
|
-
chainTimerService: boolean;
|
|
40
|
-
cosmosInterchainService: boolean;
|
|
41
|
-
localchain: boolean;
|
|
42
|
-
startUpgradable: boolean;
|
|
43
|
-
};
|
|
44
|
-
installation: {
|
|
45
|
-
consume: {
|
|
46
|
-
basicFlows: boolean;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
instance: {
|
|
50
|
-
produce: {
|
|
51
|
-
basicFlows: boolean;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
issuer: {
|
|
55
|
-
consume: {
|
|
56
|
-
BLD: boolean;
|
|
57
|
-
IST: boolean;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
installations: {
|
|
63
|
-
basicFlows: any;
|
|
64
|
-
};
|
|
65
|
-
options: any;
|
|
66
|
-
};
|
|
67
|
-
import type { BasicFlowsSF } from '../examples/basic-flows.contract.js';
|
|
68
|
-
declare const contractName: "basicFlows";
|
|
69
|
-
import type { CosmosChainInfo } from '@agoric/orchestration';
|
|
70
|
-
import type { Denom } from '@agoric/orchestration';
|
|
71
|
-
import type { DenomDetail } from '@agoric/orchestration';
|
|
72
|
-
export {};
|
|
73
|
-
//# sourceMappingURL=start-basic-flows.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"start-basic-flows.d.ts","sourceRoot":"","sources":["start-basic-flows.js"],"names":[],"mappings":"AAgDO,6TA1BI,eAAe,GAAG;IACxB,YAAY,EAAE;QACZ,OAAO,EAAE;YACP,UAAU,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;SACxC,CAAC;KACH,CAAC;IACF,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;SAChC,CAAC;KACH,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE;YACP,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;YACnB,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;YACnB,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;SACrB,CAAC;KACH,CAAC;CACH,yCACO;IACN,OAAO,EAAE;QACP,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;QAC3C,SAAS,EAAE,CAAC,KAAK,EAAE,WAAW,GAAG;YAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,EAAE,CAAC;KAC3D,CAAC;CACH,iBAsDH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCN;kCA9H8B,qCAAqC;AAIpE,4BAAqB,YAAY,CAAC;qCALoB,uBAAuB;2BAAvB,uBAAuB;iCAAvB,uBAAuB"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
export function startSendAnywhere({ consume: { agoricNames, board, chainStorage, chainTimerService, cosmosInterchainService, localchain, startUpgradable, }, installation: { consume: { sendAnywhere }, }, instance: { produce: { sendAnywhere: produceInstance }, }, issuer: { consume: { BLD, IST }, }, }: BootstrapPowers & {
|
|
2
|
-
installation: {
|
|
3
|
-
consume: {
|
|
4
|
-
sendAnywhere: Installation<(zcf: ZCF<Record<string, unknown>>, privateArgs: import("@agoric/orchestration").OrchestrationPowers & {
|
|
5
|
-
marshaller: Marshaller;
|
|
6
|
-
chainInfo?: Record<string, Readonly<{
|
|
7
|
-
bech32Prefix?: string;
|
|
8
|
-
chainId: string;
|
|
9
|
-
connections?: Record<string, import("@agoric/orchestration").IBCConnectionInfo>;
|
|
10
|
-
icqEnabled?: boolean;
|
|
11
|
-
pfmEnabled?: boolean;
|
|
12
|
-
stakingTokens?: Readonly<Array<{
|
|
13
|
-
denom: string;
|
|
14
|
-
}>>;
|
|
15
|
-
}>>;
|
|
16
|
-
assetInfo?: [Denom, DenomDetail & {
|
|
17
|
-
brandKey?: string;
|
|
18
|
-
}][];
|
|
19
|
-
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
20
|
-
publicFacet: import("@endo/exo").Guarded<{
|
|
21
|
-
makeSendInvitation(): Promise<Invitation<import("@agoric/vow").Vow<void>, {
|
|
22
|
-
chainName: string;
|
|
23
|
-
destAddr: string;
|
|
24
|
-
}>>;
|
|
25
|
-
}>;
|
|
26
|
-
creatorFacet: import("@endo/exo").Guarded<{
|
|
27
|
-
registerChain(chainName: string, chainInfo: Readonly<{
|
|
28
|
-
bech32Prefix?: string;
|
|
29
|
-
chainId: string;
|
|
30
|
-
connections?: Record<string, import("@agoric/orchestration").IBCConnectionInfo>;
|
|
31
|
-
icqEnabled?: boolean;
|
|
32
|
-
pfmEnabled?: boolean;
|
|
33
|
-
stakingTokens?: Readonly<Array<{
|
|
34
|
-
denom: string;
|
|
35
|
-
}>>;
|
|
36
|
-
}>, connectionInfo: import("@agoric/orchestration").IBCConnectionInfo): Promise<void>;
|
|
37
|
-
registerAsset(denom: Denom, detail: DenomDetail): Promise<void>;
|
|
38
|
-
}>;
|
|
39
|
-
}>>;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
instance: {
|
|
43
|
-
produce: {
|
|
44
|
-
sendAnywhere: Producer<Instance>;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
issuer: {
|
|
48
|
-
consume: {
|
|
49
|
-
BLD: Issuer<"nat">;
|
|
50
|
-
IST: Issuer<"nat">;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
}, { options: { chainInfo, assetInfo } }: {
|
|
54
|
-
options: {
|
|
55
|
-
chainInfo: Record<string, CosmosChainInfo>;
|
|
56
|
-
assetInfo: [Denom, DenomDetail & {
|
|
57
|
-
brandKey?: string;
|
|
58
|
-
}][];
|
|
59
|
-
};
|
|
60
|
-
}): Promise<void>;
|
|
61
|
-
export function getManifest({ restoreRef }: {
|
|
62
|
-
restoreRef: any;
|
|
63
|
-
}, { installationRef, options }: {
|
|
64
|
-
installationRef: any;
|
|
65
|
-
options: any;
|
|
66
|
-
}): {
|
|
67
|
-
manifest: {
|
|
68
|
-
[x: string]: {
|
|
69
|
-
consume: {
|
|
70
|
-
agoricNames: boolean;
|
|
71
|
-
board: boolean;
|
|
72
|
-
chainStorage: boolean;
|
|
73
|
-
chainTimerService: boolean;
|
|
74
|
-
cosmosInterchainService: boolean;
|
|
75
|
-
localchain: boolean;
|
|
76
|
-
startUpgradable: boolean;
|
|
77
|
-
};
|
|
78
|
-
installation: {
|
|
79
|
-
consume: {
|
|
80
|
-
sendAnywhere: boolean;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
instance: {
|
|
84
|
-
produce: {
|
|
85
|
-
sendAnywhere: boolean;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
issuer: {
|
|
89
|
-
consume: {
|
|
90
|
-
BLD: boolean;
|
|
91
|
-
IST: boolean;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
installations: {
|
|
97
|
-
sendAnywhere: any;
|
|
98
|
-
};
|
|
99
|
-
options: any;
|
|
100
|
-
};
|
|
101
|
-
import type { Denom } from '@agoric/orchestration';
|
|
102
|
-
import type { DenomDetail } from '@agoric/orchestration';
|
|
103
|
-
import type { Installation } from '@agoric/zoe/src/zoeService/utils.js';
|
|
104
|
-
import type { CosmosChainInfo } from '@agoric/orchestration';
|
|
105
|
-
//# sourceMappingURL=start-send-anywhere.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"start-send-anywhere.d.ts","sourceRoot":"","sources":["start-send-anywhere.js"],"names":[],"mappings":"AA2CO,6SAzBI,eAAe,GAAG;IACxB,YAAY,EAAE;QACZ,OAAO,EAAE;YACP,YAAY,EAAE;;;;;;;;;;;;;4BA6BM,CAAC;;;;;;;;;;;;;;;;;;;;;;eA7Bc,CAAC;SACrC,CAAC;KACH,CAAC;IACF,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,YAAY,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;SAClC,CAAC;KACH,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE;YACP,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;YACnB,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;SACpB,CAAC;KACH,CAAC;CACH,yCACO;IACN,OAAO,EAAE;QACP,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;QAC3C,SAAS,EAAE,CAAC,KAAK,EAAE,WAAW,GAAG;YAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,EAAE,CAAC;KAC3D,CAAC;CACH,iBA2EH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BN;2BA1IqD,uBAAuB;iCAAvB,uBAAuB;kCAD9C,qCAAqC;qCACd,uBAAuB"}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
export function startStakeAtom({ consume: { agoricNames, board, chainStorage, chainTimerService: timer, cosmosInterchainService, startUpgradable, }, installation: { consume: { stakeIca }, }, instance: { produce: { stakeAtom: produceInstance }, }, }: BootstrapPowers & {
|
|
2
|
-
installation: {
|
|
3
|
-
consume: {
|
|
4
|
-
stakeIca: Installation<(zcf: ZCF<StakeIcaTerms>, privateArgs: {
|
|
5
|
-
agoricNames: import("@agoric/internal").Remote<import("@agoric/vats").NameHub>;
|
|
6
|
-
cosmosInterchainService: import("../types.js").CosmosInterchainService;
|
|
7
|
-
storageNode: StorageNode;
|
|
8
|
-
marshaller: Marshaller;
|
|
9
|
-
timer: import("@agoric/time").TimerService;
|
|
10
|
-
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
11
|
-
publicFacet: import("@endo/exo").Guarded<{
|
|
12
|
-
makeAccount(): Promise<import("@endo/exo").Guarded<{
|
|
13
|
-
asContinuingOffer(): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>;
|
|
14
|
-
getPublicTopics(): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>>>>;
|
|
15
|
-
getAddress(): import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").ChainAddress>;
|
|
16
|
-
delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void>;
|
|
17
|
-
redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void>;
|
|
18
|
-
withdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>;
|
|
19
|
-
getBalance(denom: import("../orchestration-api.js").DenomArg): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount>;
|
|
20
|
-
getBalances(): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>;
|
|
21
|
-
send(toAccount: import("../orchestration-api.js").ChainAddress, amounts: import("../orchestration-api.js").AmountArg): import("@agoric/vow").Vow<void>;
|
|
22
|
-
sendAll(toAccount: import("../orchestration-api.js").ChainAddress, amounts: import("../orchestration-api.js").AmountArg[]): import("@agoric/vow").Vow<void>;
|
|
23
|
-
transfer(destination: import("../orchestration-api.js").ChainAddress, amount: import("../orchestration-api.js").AmountArg, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): import("@agoric/vow").Vow<void>;
|
|
24
|
-
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): import("@agoric/vow").Vow<void>;
|
|
25
|
-
withdrawRewards(): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>;
|
|
26
|
-
undelegate(delegations: {
|
|
27
|
-
amount: import("../orchestration-api.js").AmountArg;
|
|
28
|
-
delegator?: import("../orchestration-api.js").ChainAddress;
|
|
29
|
-
validator: import("../cosmos-api.js").CosmosValidatorAddress;
|
|
30
|
-
}[]): import("@agoric/vow").Vow<void>;
|
|
31
|
-
deactivate(): import("@agoric/vow").Vow<void>;
|
|
32
|
-
reactivate(): import("@agoric/vow").Vow<void>;
|
|
33
|
-
getDelegation(validator: import("../cosmos-api.js").CosmosValidatorAddress): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../cosmos-api.js").CosmosDelegationResponse>>;
|
|
34
|
-
getDelegations(): import("@agoric/vow").Vow<{
|
|
35
|
-
delegator: {
|
|
36
|
-
chainId: string;
|
|
37
|
-
value: string;
|
|
38
|
-
encoding: "bech32" | "ethereum";
|
|
39
|
-
};
|
|
40
|
-
validator: {
|
|
41
|
-
chainId: string;
|
|
42
|
-
value: `${string}valoper${string}`;
|
|
43
|
-
encoding: "bech32";
|
|
44
|
-
};
|
|
45
|
-
amount: {
|
|
46
|
-
denom: import("../orchestration-api.js").Denom;
|
|
47
|
-
value: bigint;
|
|
48
|
-
};
|
|
49
|
-
}[]>;
|
|
50
|
-
getUnbondingDelegation(validator: import("../cosmos-api.js").CosmosValidatorAddress): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").UnbondingDelegation>>;
|
|
51
|
-
getUnbondingDelegations(): import("@agoric/vow").Vow<{
|
|
52
|
-
delegatorAddress: string;
|
|
53
|
-
validatorAddress: string;
|
|
54
|
-
entries: {
|
|
55
|
-
creationHeight: bigint;
|
|
56
|
-
completionTime: {
|
|
57
|
-
seconds: bigint;
|
|
58
|
-
nanos: number;
|
|
59
|
-
};
|
|
60
|
-
initialBalance: string;
|
|
61
|
-
balance: string;
|
|
62
|
-
}[];
|
|
63
|
-
}[]>;
|
|
64
|
-
getRedelegations(): import("@agoric/vow").Vow<{
|
|
65
|
-
redelegation: {
|
|
66
|
-
delegatorAddress: string;
|
|
67
|
-
validatorSrcAddress: string;
|
|
68
|
-
validatorDstAddress: string;
|
|
69
|
-
entries: {
|
|
70
|
-
creationHeight: bigint;
|
|
71
|
-
completionTime: {
|
|
72
|
-
seconds: bigint;
|
|
73
|
-
nanos: number;
|
|
74
|
-
};
|
|
75
|
-
initialBalance: string;
|
|
76
|
-
sharesDst: string;
|
|
77
|
-
}[];
|
|
78
|
-
};
|
|
79
|
-
entries: {
|
|
80
|
-
redelegationEntry: {
|
|
81
|
-
creationHeight: bigint;
|
|
82
|
-
completionTime: {
|
|
83
|
-
seconds: bigint;
|
|
84
|
-
nanos: number;
|
|
85
|
-
};
|
|
86
|
-
initialBalance: string;
|
|
87
|
-
sharesDst: string;
|
|
88
|
-
};
|
|
89
|
-
balance: string;
|
|
90
|
-
}[];
|
|
91
|
-
}[]>;
|
|
92
|
-
getReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount[]>;
|
|
93
|
-
getRewards(): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../cosmos-api.js").CosmosRewardsResponse>>;
|
|
94
|
-
executeEncodedTx(msgs: {
|
|
95
|
-
$typeUrl?: "/google.protobuf.Any" | string | undefined;
|
|
96
|
-
typeUrl: string;
|
|
97
|
-
value: string;
|
|
98
|
-
}[], opts?: Partial<Omit<import("@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js").TxBody, "messages">> | undefined): import("@agoric/vow").Vow<string>;
|
|
99
|
-
}>>;
|
|
100
|
-
makeAccountInvitationMaker(): Promise<Invitation<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult, undefined>>;
|
|
101
|
-
}>;
|
|
102
|
-
}>>;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
}): Promise<void>;
|
|
106
|
-
export function getManifestForStakeAtom({ restoreRef }: {
|
|
107
|
-
restoreRef: any;
|
|
108
|
-
}, { installKeys, ...options }: {
|
|
109
|
-
[x: string]: any;
|
|
110
|
-
installKeys: any;
|
|
111
|
-
}): {
|
|
112
|
-
manifest: {
|
|
113
|
-
[x: string]: {
|
|
114
|
-
consume: {
|
|
115
|
-
agoricNames: boolean;
|
|
116
|
-
board: boolean;
|
|
117
|
-
chainStorage: boolean;
|
|
118
|
-
chainTimerService: boolean;
|
|
119
|
-
cosmosInterchainService: boolean;
|
|
120
|
-
startUpgradable: boolean;
|
|
121
|
-
};
|
|
122
|
-
installation: {
|
|
123
|
-
consume: {
|
|
124
|
-
stakeIca: boolean;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
instance: {
|
|
128
|
-
produce: {
|
|
129
|
-
stakeAtom: boolean;
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
installations: {
|
|
135
|
-
stakeIca: any;
|
|
136
|
-
};
|
|
137
|
-
options: {
|
|
138
|
-
[x: string]: any;
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
import type { StakeIcaTerms } from '../examples/stake-ica.contract';
|
|
142
|
-
//# sourceMappingURL=start-stakeAtom.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"start-stakeAtom.d.ts","sourceRoot":"","sources":["start-stakeAtom.js"],"names":[],"mappings":"AAyBO,0PAVI,eAAe,GAAG;IACxB,YAAY,EAAE;QACZ,OAAO,EAAE;YACP,QAAQ,EAAE,YAAY,CAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA2D,CAClD,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBA4DH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN;mCAzG4C,gCAAgC"}
|