@chainlink/ccip-cli 0.92.0 → 0.92.1
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/dist/commands/send.d.ts +1 -1
- package/dist/commands/types.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/providers/index.d.ts +4 -1
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/sui.d.ts.map +1 -1
- package/dist/providers/sui.js +1 -2
- package/dist/providers/sui.js.map +1 -1
- package/dist/providers/ton.d.ts +6 -3
- package/dist/providers/ton.d.ts.map +1 -1
- package/dist/providers/ton.js +2 -2
- package/dist/providers/ton.js.map +1 -1
- package/package.json +2 -2
- package/src/commands/types.ts +1 -1
- package/src/index.ts +1 -1
- package/src/providers/sui.ts +1 -2
- package/src/providers/ton.ts +2 -8
package/dist/commands/send.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const builder: (yargs: Argv) => Argv<import("yargs").Omit<{
|
|
|
13
13
|
router: string;
|
|
14
14
|
} & {
|
|
15
15
|
dest: string;
|
|
16
|
-
}, "data" | "
|
|
16
|
+
}, "data" | "wallet" | "receiver" | "account" | "gas-limit" | "estimate-gas-limit" | "wait" | "allow-out-of-order-exec" | "fee-token" | "transfer-tokens" | "token-receiver" | "only-get-fee" | "only-estimate" | "approve-max"> & import("yargs").InferredOptionTypes<{
|
|
17
17
|
receiver: {
|
|
18
18
|
alias: string;
|
|
19
19
|
type: "string";
|
package/dist/commands/types.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare const globalOpts: {
|
|
|
15
15
|
readonly format: {
|
|
16
16
|
readonly alias: "f";
|
|
17
17
|
readonly describe: "Output to console format: pretty tables, node's console.log or JSON";
|
|
18
|
-
readonly choices: ("log" | "
|
|
18
|
+
readonly choices: ("log" | "json" | "pretty")[];
|
|
19
19
|
readonly default: "pretty";
|
|
20
20
|
};
|
|
21
21
|
readonly verbose: {
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { Format } from "./commands/index.js";
|
|
|
8
8
|
util.inspect.defaultOptions.depth = 6; // print down to tokenAmounts in requests
|
|
9
9
|
// generate:nofail
|
|
10
10
|
// `const VERSION = '${require('./package.json').version}-${require('child_process').execSync('git rev-parse --short HEAD').toString().trim()}'`
|
|
11
|
-
const VERSION = '0.92.
|
|
11
|
+
const VERSION = '0.92.1-22759cb';
|
|
12
12
|
// generate:end
|
|
13
13
|
const globalOpts = {
|
|
14
14
|
rpcs: {
|
|
@@ -17,5 +17,8 @@ export declare function fetchChainsFromRpcs(ctx: Ctx, argv: {
|
|
|
17
17
|
export declare function loadChainWallet(chain: Chain, argv: {
|
|
18
18
|
wallet?: unknown;
|
|
19
19
|
rpcsFile?: string;
|
|
20
|
-
}): Promise<readonly [string, import("ethers").Signer] | readonly [string, import("@coral-xyz/anchor").Wallet] | readonly [`0x${string}`, import("./aptos.ts").AptosLedgerSigner | import("@aptos-labs/ts-sdk").Ed25519Account] | readonly [string, import("@mysten/sui/keypairs/ed25519").Ed25519Keypair] | readonly [string,
|
|
20
|
+
}): Promise<readonly [string, import("ethers").Signer] | readonly [string, import("@coral-xyz/anchor").Wallet] | readonly [`0x${string}`, import("./aptos.ts").AptosLedgerSigner | import("@aptos-labs/ts-sdk").Ed25519Account] | readonly [string, import("@mysten/sui/keypairs/ed25519").Ed25519Keypair] | readonly [string, {
|
|
21
|
+
contract: import("@ton/ton").WalletContractV4;
|
|
22
|
+
keyPair: import("@ton/crypto").KeyPair;
|
|
23
|
+
}]>;
|
|
21
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,KAAK,gBAAgB,EAStB,MAAM,kCAAkC,CAAA;AAOzC,OAAO,KAAK,E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,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAA;AAmHpD;;;;;GAKG;AACH,wBAAsB,eAAe,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE;;;IAoChG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sui.d.ts","sourceRoot":"","sources":["../../src/providers/sui.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sui.d.ts","sourceRoot":"","sources":["../../src/providers/sui.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAE7D;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,kBAKxE"}
|
package/dist/providers/sui.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { CCIPArgumentInvalidError } from '@chainlink/ccip-sdk';
|
|
2
|
-
import { bytesToBuffer } from '@chainlink/ccip-sdk';
|
|
1
|
+
import { CCIPArgumentInvalidError, bytesToBuffer } from '@chainlink/ccip-sdk';
|
|
3
2
|
import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';
|
|
4
3
|
/**
|
|
5
4
|
* Loads a Sui wallet from the provided options.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sui.js","sourceRoot":"","sources":["../../src/providers/sui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,
|
|
1
|
+
{"version":3,"file":"sui.js","sourceRoot":"","sources":["../../src/providers/sui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAC1F,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAE7D;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,EAAE,MAAM,EAAE,SAAS,EAAwB;IACvE,IAAI,OAAO,SAAS,KAAK,QAAQ;QAAE,MAAM,IAAI,wBAAwB,CAAC,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,CAAA;IAElG,MAAM,QAAQ,GAAG,aAAa,CAAC,SAAS,CAAC,CAAA;IACzC,OAAO,cAAc,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAA;AAC/C,CAAC"}
|
package/dist/providers/ton.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { WalletContractV4 } from '@ton/ton';
|
|
2
2
|
/**
|
|
3
3
|
* Loads a TON wallet from the provided options.
|
|
4
4
|
* @param wallet - wallet options (as passed from yargs argv)
|
|
5
5
|
* @returns Promise to TONWallet instance
|
|
6
6
|
*/
|
|
7
|
-
export declare function loadTonWallet({ wallet: walletOpt
|
|
7
|
+
export declare function loadTonWallet({ wallet: walletOpt }?: {
|
|
8
8
|
wallet?: unknown;
|
|
9
|
-
}): Promise<
|
|
9
|
+
}): Promise<{
|
|
10
|
+
contract: WalletContractV4;
|
|
11
|
+
keyPair: import("@ton/crypto").KeyPair;
|
|
12
|
+
}>;
|
|
10
13
|
//# sourceMappingURL=ton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ton.d.ts","sourceRoot":"","sources":["../../src/providers/ton.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ton.d.ts","sourceRoot":"","sources":["../../src/providers/ton.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAE3C;;;;GAIG;AACH,wBAAsB,aAAa,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,GAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAO;;;GAkDnF"}
|
package/dist/providers/ton.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { existsSync, readFileSync } from 'node:fs';
|
|
2
|
-
import { CCIPArgumentInvalidError, CCIPWalletInvalidError
|
|
2
|
+
import { CCIPArgumentInvalidError, CCIPWalletInvalidError } from '@chainlink/ccip-sdk';
|
|
3
3
|
import { keyPairFromSecretKey, mnemonicToPrivateKey } from '@ton/crypto';
|
|
4
4
|
import { WalletContractV4 } from '@ton/ton';
|
|
5
5
|
/**
|
|
@@ -7,7 +7,7 @@ import { WalletContractV4 } from '@ton/ton';
|
|
|
7
7
|
* @param wallet - wallet options (as passed from yargs argv)
|
|
8
8
|
* @returns Promise to TONWallet instance
|
|
9
9
|
*/
|
|
10
|
-
export async function loadTonWallet({ wallet: walletOpt
|
|
10
|
+
export async function loadTonWallet({ wallet: walletOpt } = {}) {
|
|
11
11
|
if (typeof walletOpt !== 'string')
|
|
12
12
|
throw new CCIPWalletInvalidError(walletOpt);
|
|
13
13
|
// Handle mnemonic phrase
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ton.js","sourceRoot":"","sources":["../../src/providers/ton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAElD,OAAO,
|
|
1
|
+
{"version":3,"file":"ton.js","sourceRoot":"","sources":["../../src/providers/ton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAElD,OAAO,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAA;AACnG,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAE3C;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,EAAE,MAAM,EAAE,SAAS,KAA2B,EAAE;IAClF,IAAI,OAAO,SAAS,KAAK,QAAQ;QAAE,MAAM,IAAI,sBA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YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,CAAA;QACtD,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;QAC3F,IAAI,SAAS,CAAC,MAAM,KAAK,EAAE,EAAE,CAAC;YAC5B,MAAM,IAAI,wBAAwB,CAAC,QAAQ,EAAE,+CAA+C,CAAC,CAAA;QAC/F,CAAC;QACD,MAAM,OAAO,GAAG,oBAAoB,CAAC,SAAS,CAAC,CAAA;QAC/C,MAAM,QAAQ,GAAG,gBAAgB,CAAC,MAAM,CAAC;YACvC,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,OAAO,CAAC,SAAS;SAC7B,CAAC,CAAA;QACF,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAA;IAC9B,CAAC;IAED,MAAM,IAAI,wBAAwB,CAAC,QAAQ,EAAE,sBAAsB,CAAC,CAAA;AACtE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainlink/ccip-cli",
|
|
3
|
-
"version": "0.92.
|
|
3
|
+
"version": "0.92.1",
|
|
4
4
|
"description": "CCIP Command Line Interface, based on @chainlink/ccip-sdk",
|
|
5
5
|
"author": "Chainlink devs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@aptos-labs/ts-sdk": "^5.2.0",
|
|
48
|
-
"@chainlink/ccip-sdk": "^0.92.
|
|
48
|
+
"@chainlink/ccip-sdk": "^0.92.1",
|
|
49
49
|
"@coral-xyz/anchor": "^0.29.0",
|
|
50
50
|
"@ethers-ext/signer-ledger": "^6.0.0-beta.1",
|
|
51
51
|
"@inquirer/prompts": "8.1.0",
|
package/src/commands/types.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { Format } from './commands/index.ts'
|
|
|
11
11
|
util.inspect.defaultOptions.depth = 6 // print down to tokenAmounts in requests
|
|
12
12
|
// generate:nofail
|
|
13
13
|
// `const VERSION = '${require('./package.json').version}-${require('child_process').execSync('git rev-parse --short HEAD').toString().trim()}'`
|
|
14
|
-
const VERSION = '0.92.
|
|
14
|
+
const VERSION = '0.92.1-22759cb'
|
|
15
15
|
// generate:end
|
|
16
16
|
|
|
17
17
|
const globalOpts = {
|
package/src/providers/sui.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { CCIPArgumentInvalidError } from '@chainlink/ccip-sdk/src/index.ts'
|
|
2
|
-
import { bytesToBuffer } from '@chainlink/ccip-sdk/src/utils.ts'
|
|
1
|
+
import { CCIPArgumentInvalidError, bytesToBuffer } from '@chainlink/ccip-sdk/src/index.ts'
|
|
3
2
|
import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519'
|
|
4
3
|
|
|
5
4
|
/**
|
package/src/providers/ton.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { existsSync, readFileSync } from 'node:fs'
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
CCIPArgumentInvalidError,
|
|
5
|
-
CCIPWalletInvalidError,
|
|
6
|
-
} from '@chainlink/ccip-sdk/src/errors/specialized.ts'
|
|
7
|
-
import type { TONWallet } from '@chainlink/ccip-sdk/src/ton/types.ts'
|
|
3
|
+
import { CCIPArgumentInvalidError, CCIPWalletInvalidError } from '@chainlink/ccip-sdk/src/index.ts'
|
|
8
4
|
import { keyPairFromSecretKey, mnemonicToPrivateKey } from '@ton/crypto'
|
|
9
5
|
import { WalletContractV4 } from '@ton/ton'
|
|
10
6
|
|
|
@@ -13,9 +9,7 @@ import { WalletContractV4 } from '@ton/ton'
|
|
|
13
9
|
* @param wallet - wallet options (as passed from yargs argv)
|
|
14
10
|
* @returns Promise to TONWallet instance
|
|
15
11
|
*/
|
|
16
|
-
export async function loadTonWallet({
|
|
17
|
-
wallet: walletOpt,
|
|
18
|
-
}: { wallet?: unknown } = {}): Promise<TONWallet> {
|
|
12
|
+
export async function loadTonWallet({ wallet: walletOpt }: { wallet?: unknown } = {}) {
|
|
19
13
|
if (typeof walletOpt !== 'string') throw new CCIPWalletInvalidError(walletOpt)
|
|
20
14
|
|
|
21
15
|
// Handle mnemonic phrase
|