@agoric/orchestration 0.1.1-dev-60c3131.0 → 0.1.1-dev-4e35598.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/exos/local-orchestration-account.d.ts.map +1 -1
- package/src/exos/local-orchestration-account.js +2 -0
- package/src/utils/address.d.ts +2 -0
- package/src/utils/address.d.ts.map +1 -1
- package/src/utils/address.js +40 -1
- package/tools/contract-tests.d.ts +3 -4
- package/tools/contract-tests.d.ts.map +1 -1
- package/tools/contract-tests.ts +4 -4
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-4e35598.0+4e35598",
|
|
4
4
|
"description": "Chain abstraction for Agoric's orchestration clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@agoric/async-flow": "0.1.1-dev-
|
|
37
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
38
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
39
|
-
"@agoric/internal": "0.3.3-dev-
|
|
40
|
-
"@agoric/network": "0.1.1-dev-
|
|
41
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
42
|
-
"@agoric/store": "0.9.3-dev-
|
|
43
|
-
"@agoric/time": "0.3.3-dev-
|
|
44
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
45
|
-
"@agoric/vats": "0.15.2-dev-
|
|
46
|
-
"@agoric/vow": "0.1.1-dev-
|
|
47
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
48
|
-
"@agoric/zone": "0.2.3-dev-
|
|
36
|
+
"@agoric/async-flow": "0.1.1-dev-4e35598.0+4e35598",
|
|
37
|
+
"@agoric/cosmic-proto": "0.4.1-dev-4e35598.0+4e35598",
|
|
38
|
+
"@agoric/ertp": "0.16.3-dev-4e35598.0+4e35598",
|
|
39
|
+
"@agoric/internal": "0.3.3-dev-4e35598.0+4e35598",
|
|
40
|
+
"@agoric/network": "0.1.1-dev-4e35598.0+4e35598",
|
|
41
|
+
"@agoric/notifier": "0.6.3-dev-4e35598.0+4e35598",
|
|
42
|
+
"@agoric/store": "0.9.3-dev-4e35598.0+4e35598",
|
|
43
|
+
"@agoric/time": "0.3.3-dev-4e35598.0+4e35598",
|
|
44
|
+
"@agoric/vat-data": "0.5.3-dev-4e35598.0+4e35598",
|
|
45
|
+
"@agoric/vats": "0.15.2-dev-4e35598.0+4e35598",
|
|
46
|
+
"@agoric/vow": "0.1.1-dev-4e35598.0+4e35598",
|
|
47
|
+
"@agoric/zoe": "0.26.3-dev-4e35598.0+4e35598",
|
|
48
|
+
"@agoric/zone": "0.2.3-dev-4e35598.0+4e35598",
|
|
49
49
|
"@cosmjs/encoding": "^0.32.4",
|
|
50
50
|
"@endo/base64": "^1.0.9",
|
|
51
51
|
"@endo/errors": "^1.2.10",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"bs58": "^6.0.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
60
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-4e35598.0+4e35598",
|
|
61
61
|
"@chain-registry/client": "^1.47.4",
|
|
62
62
|
"@cosmjs/amino": "^0.33.0",
|
|
63
63
|
"@cosmjs/proto-signing": "^0.33.0",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"typeCoverage": {
|
|
101
101
|
"atLeast": 97.7
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "4e35598f3381fbd4515b86d3e20976bb91cab43a"
|
|
104
104
|
}
|
|
@@ -1 +1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AoI5B;;aAvyBa,MAAM;;;;;oBAKP;IACR,QAAQ,EAAE,YAAY,6BAA6B,CAAC,GAAG,SAAS,CAAC;IACjE,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,OAAO,EAAE,kBAAkB,CAAC;CAC7B;+CA+xBU,UAAU,CAAC,OAAO,mCAAmC,CAAC;2CACtD,UAAU,CAAC,gCAAgC,CAAC;0BA/zBnC,cAAc;qCADU,6CAA6C;yBAJ/C,aAAa;kCAQV,cAAc;4BAFrC,kBAAkB;8BAGX,aAAa;8BAIlB,gBAAgB;gCAfK,gCAAgC;8BAiBrD,uBAAuB;uCAjBF,gCAAgC;wCACwG,uBAAuB;+BAAvB,uBAAuB;0BAYxL,kDAAkD;yBAFzC,aAAa;qCADG,cAAc;kCAT0H,uBAAuB;2CAAvB,uBAAuB;+BAW7J,sBAAsB;8BAAtB,sBAAsB;mCAXgH,uBAAuB;iCAAvB,uBAAuB;6BAClK,aAAa;gCAUR,sBAAsB;4CAR/B,4DAA4D;yCAHmF,uBAAuB;iCAKhK,6CAA6C;iCAU9D,mBAAmB"}
|
|
@@ -785,6 +785,8 @@ export const prepareLocalOrchestrationAccountKit = (
|
|
|
785
785
|
amount,
|
|
786
786
|
} = ftPacketData;
|
|
787
787
|
|
|
788
|
+
// XXX don't verify it's a real Bech32 because that makes our tests
|
|
789
|
+
// less legible (preventing readable words on the address string)
|
|
788
790
|
/**
|
|
789
791
|
* @param {string} address
|
|
790
792
|
*/
|
package/src/utils/address.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export function coerceAccountId(idArg: AccountIdArg): AccountId;
|
|
|
7
7
|
export function parseAccountIdArg(idArg: AccountIdArg): Caip10Record;
|
|
8
8
|
export function parseAccountId(accountId: AccountId): Caip10Record;
|
|
9
9
|
export function chainOfAccount(accountIdArg: AccountIdArg): CaipChainId;
|
|
10
|
+
export function isBech32Address(address: string): boolean;
|
|
11
|
+
export function assertBech32Address(address: string): asserts address is Bech32Address;
|
|
10
12
|
export function leftPadEthAddressTo32Bytes(rawAddress: string): Uint8Array<ArrayBufferLike>;
|
|
11
13
|
export function accountIdTo32Bytes(accountId: AccountId): Uint8Array;
|
|
12
14
|
export type ICAChannelAddressOpts = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["address.js"],"names":[],"mappings":"AA2BO,wDALI,eAAe,0BACf,eAAe,6CACf,qBAAqB,GACnB,gBAAgB,CAuB5B;AAGD,kCAAmC,OAAO,CAAC;AAOpC,8DAJI,eAAe,YACf,MAAM,GACJ,gBAAgB,CAQ5B;AAaM,sDAJI,gBAAgB,GAEd,kBAAkB,CAAC,OAAO,CAAC,GAAG,SAAS,CAYnD;AAaM,yCAHI,aAAa,GAAG,MAAM,GACpB,MAAM,CAQlB;AAWM,uCAJI,YAAY,GAEV,SAAS,CAQrB;AAUM,yCAJI,YAAY,GAEV,YAAY,CAaxB;AASM,0CAHI,SAAS,GACP,YAAY,CAaxB;AAUM,6CAJI,YAAY,GAEV,WAAW,CAKvB;AASM,uDAFI,MAAM,+BAOhB;AAWM,8CAJI,SAAS,GACP,UAAU,CAatB;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["address.js"],"names":[],"mappings":"AA2BO,wDALI,eAAe,0BACf,eAAe,6CACf,qBAAqB,GACnB,gBAAgB,CAuB5B;AAGD,kCAAmC,OAAO,CAAC;AAOpC,8DAJI,eAAe,YACf,MAAM,GACJ,gBAAgB,CAQ5B;AAaM,sDAJI,gBAAgB,GAEd,kBAAkB,CAAC,OAAO,CAAC,GAAG,SAAS,CAYnD;AAaM,yCAHI,aAAa,GAAG,MAAM,GACpB,MAAM,CAQlB;AAWM,uCAJI,YAAY,GAEV,SAAS,CAQrB;AAUM,yCAJI,YAAY,GAEV,YAAY,CAaxB;AASM,0CAHI,SAAS,GACP,YAAY,CAaxB;AAUM,6CAJI,YAAY,GAEV,WAAW,CAKvB;AASM,yCAJI,MAAM,GACJ,OAAO,CAkBnB;AAUM,6CAHI,MAAM,GACJ,QAAQ,OAAO,IAAI,aAAa,CAM5C;AAUM,uDAFI,MAAM,+BAOhB;AAWM,8CAJI,SAAS,GACP,UAAU,CAatB;;;;;;;;;;;;;;;;;;;;;qCAtPiC,cAAc;sCAGb,iCAAiC;wCAFH,aAAa;mCAAb,aAAa;kCACtB,yBAAyB;+BAAzB,yBAAyB;kCAAzB,yBAAyB;iCADhB,aAAa"}
|
package/src/utils/address.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { fromHex } from '@cosmjs/encoding';
|
|
1
|
+
import { fromBech32, fromHex } from '@cosmjs/encoding';
|
|
2
2
|
import { Fail, q } from '@endo/errors';
|
|
3
3
|
import bs58 from 'bs58';
|
|
4
4
|
|
|
@@ -177,6 +177,45 @@ export const chainOfAccount = accountIdArg => {
|
|
|
177
177
|
return `${namespace}:${reference}`;
|
|
178
178
|
};
|
|
179
179
|
|
|
180
|
+
/**
|
|
181
|
+
* Validates if a string is a valid Cosmos Bech32 address.
|
|
182
|
+
*
|
|
183
|
+
* @param {string} address - The address to validate
|
|
184
|
+
* @returns {boolean} - True if the address is a valid Bech32 address, false
|
|
185
|
+
* otherwise
|
|
186
|
+
*/
|
|
187
|
+
export const isBech32Address = address => {
|
|
188
|
+
if (typeof address !== 'string') {
|
|
189
|
+
return false;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
try {
|
|
193
|
+
// Attempt to decode the Bech32 address
|
|
194
|
+
const decoded = fromBech32(address);
|
|
195
|
+
|
|
196
|
+
// Ensure the decoded data exists and has a valid data part
|
|
197
|
+
return !!decoded && decoded.data.length > 0;
|
|
198
|
+
} catch (error) {
|
|
199
|
+
// If decoding fails, it's not a valid Bech32 address
|
|
200
|
+
return false;
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
harden(isBech32Address);
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Asserts that a value is a valid Bech32 address. Throws an error if the value
|
|
207
|
+
* is not a valid Bech32 address. Acts as a type guard for TypeScript.
|
|
208
|
+
*
|
|
209
|
+
* @param {string} address - The value to check
|
|
210
|
+
* @returns {asserts address is Bech32Address} - TypeScript assertion
|
|
211
|
+
*/
|
|
212
|
+
export const assertBech32Address = address => {
|
|
213
|
+
if (!isBech32Address(address)) {
|
|
214
|
+
Fail`Expected a valid Bech32 address, got ${q(address)}`;
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
harden(assertBech32Address);
|
|
218
|
+
|
|
180
219
|
/**
|
|
181
220
|
* Left pad the mint recipient address with 0's to 32 bytes. standard ETH
|
|
182
221
|
* addresses are 20 bytes, but for ABI data structures and other reasons, 32
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { MsgTransfer } from '@agoric/cosmic-proto/ibc/applications/transfer/v1/tx.js';
|
|
2
2
|
import { type VTransferIBCEvent } from '@agoric/vats';
|
|
3
3
|
import type { ExecutionContext } from 'ava';
|
|
4
|
-
import { type Bech32Address } from '../index.js';
|
|
5
4
|
export declare const ROOT_STORAGE_PATH = "orchtest";
|
|
6
5
|
/**
|
|
7
6
|
* Common setup for contract tests, without any specific asset configuration.
|
|
@@ -1707,9 +1706,9 @@ export declare const setupOrchestrationTest: ({ log, }: {
|
|
|
1707
1706
|
updateAsset(denom: import("../index.js").Denom, detail: DenomDetail): void;
|
|
1708
1707
|
getAsset(denom: import("../index.js").Denom, srcChainName: string): DenomDetail | undefined;
|
|
1709
1708
|
getDenom(brand: Brand): import("../index.js").Denom | undefined;
|
|
1710
|
-
resolveAccountId(partialId: import("../index.js").AccountId | Bech32Address): import("../index.js").AccountId;
|
|
1711
|
-
coerceCosmosAddress(partialId: import("../index.js").AccountIdArg | Bech32Address): import("../index.js").CosmosChainAddress;
|
|
1712
|
-
makeTransferRoute(destination: import("../index.js").AccountIdArg | Bech32Address, denomAmount: import("../index.js").DenomAmount, srcChainName: string, forwardOpts?: import("../index.js").IBCMsgTransferOptions["forwardOpts"]): import("../index.js").TransferRoute;
|
|
1709
|
+
resolveAccountId(partialId: import("../index.js").AccountId | import("../index.js").Bech32Address): import("../index.js").AccountId;
|
|
1710
|
+
coerceCosmosAddress(partialId: import("../index.js").AccountIdArg | import("../index.js").Bech32Address): import("../index.js").CosmosChainAddress;
|
|
1711
|
+
makeTransferRoute(destination: import("../index.js").AccountIdArg | import("../index.js").Bech32Address, denomAmount: import("../index.js").DenomAmount, srcChainName: string, forwardOpts?: import("../index.js").IBCMsgTransferOptions["forwardOpts"]): import("../index.js").TransferRoute;
|
|
1713
1712
|
}>;
|
|
1714
1713
|
localchain: import("@endo/exo").Guarded<{
|
|
1715
1714
|
makeAccount(): import("@agoric/vow").PromiseVow<LocalChainAccount>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-tests.d.ts","sourceRoot":"","sources":["contract-tests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yDAAyD,CAAC;AAS3F,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,cAAc,CAAC;AAgBtB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"contract-tests.d.ts","sourceRoot":"","sources":["contract-tests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yDAAyD,CAAC;AAS3F,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,cAAc,CAAC;AAgBtB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAC;AAS5C,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAU,UAE1C;IACD,GAAG,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;CACnC;;;;;;;;;uBAqPqxV,CAAC;;;;;;;;;;;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} from '@endo/patterns';
|
|
30
30
|
import type { ExecutionContext } from 'ava';
|
|
31
|
-
import { withChainCapabilities
|
|
31
|
+
import { withChainCapabilities } from '../index.js';
|
|
32
32
|
import cctpChainInfo from '../src/cctp-chain-info.js';
|
|
33
33
|
import { registerKnownChains } from '../src/chain-info.js';
|
|
34
34
|
import { makeChainHub } from '../src/exos/chain-hub.js';
|
|
@@ -193,9 +193,9 @@ export const setupOrchestrationTest = async ({
|
|
|
193
193
|
const { message: msg, sequence } = transferInfo;
|
|
194
194
|
|
|
195
195
|
const base = {
|
|
196
|
-
receiver: msg.receiver
|
|
197
|
-
sender: msg.sender
|
|
198
|
-
target: msg.sender
|
|
196
|
+
receiver: msg.receiver,
|
|
197
|
+
sender: msg.sender,
|
|
198
|
+
target: msg.sender, // target is usually the sender for outgoing transfers
|
|
199
199
|
sourceChannel: msg.sourceChannel as IBCChannelID,
|
|
200
200
|
sequence, // Use sequence from transferInfo
|
|
201
201
|
amount: BigInt(msg.token.amount),
|