@net-protocol/cli 0.1.30 → 0.1.32
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/cli/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { readFileSync, existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
|
9
9
|
import { OPTIMAL_CHUNK_SIZE, StorageClient, detectFileTypeFromBase64, base64ToDataUri, shouldSuggestXmlStorage, getStorageKeyBytes, encodeStorageKeyForUrl, chunkDataForStorage, CHUNKED_STORAGE_CONTRACT, STORAGE_CONTRACT as STORAGE_CONTRACT$1 } from '@net-protocol/storage';
|
|
10
10
|
import { stringToHex, createWalletClient, http, hexToString, parseEther, encodeFunctionData, publicActions, defineChain, createPublicClient } from 'viem';
|
|
11
11
|
import { privateKeyToAccount } from 'viem/accounts';
|
|
12
|
-
import { getNetContract, getChainName, getPublicClient, getChainRpcUrls, NetClient, toBytes32, NULL_ADDRESS } from '@net-protocol/core';
|
|
12
|
+
import { getNetContract, getChainName, getPublicClient, getChainRpcUrls, NetClient, getBaseDataSuffix, toBytes32, NULL_ADDRESS } from '@net-protocol/core';
|
|
13
13
|
import { createRelayX402Client, createRelaySession, checkBackendWalletBalance, fundBackendWallet, batchTransactions, submitTransactionsViaRelay, waitForConfirmations, retryFailedTransactions as retryFailedTransactions$1 } from '@net-protocol/relay';
|
|
14
14
|
import { FeedRegistryClient, FeedClient, AgentRegistryClient } from '@net-protocol/feeds';
|
|
15
15
|
import { isNetrSupportedChain, NetrClient } from '@net-protocol/netr';
|
|
@@ -448,7 +448,8 @@ function createWalletClientFromPrivateKey(params) {
|
|
|
448
448
|
const walletClient = createWalletClient({
|
|
449
449
|
account,
|
|
450
450
|
chain,
|
|
451
|
-
transport: http()
|
|
451
|
+
transport: http(),
|
|
452
|
+
dataSuffix: getBaseDataSuffix(chainId)
|
|
452
453
|
});
|
|
453
454
|
return {
|
|
454
455
|
walletClient,
|
|
@@ -2148,7 +2149,8 @@ async function executeTokenDeploy(options) {
|
|
|
2148
2149
|
});
|
|
2149
2150
|
const walletClient = createWalletClient({
|
|
2150
2151
|
account,
|
|
2151
|
-
transport: http(rpcUrls[0])
|
|
2152
|
+
transport: http(rpcUrls[0]),
|
|
2153
|
+
dataSuffix: getBaseDataSuffix(commonOptions.chainId)
|
|
2152
2154
|
});
|
|
2153
2155
|
if (options.initialBuy) {
|
|
2154
2156
|
console.log(chalk4.blue(`Deploying token with ${options.initialBuy} ETH initial buy...`));
|
|
@@ -6003,7 +6005,8 @@ function createWallet(privateKey, chainId, rpcUrl) {
|
|
|
6003
6005
|
});
|
|
6004
6006
|
return createWalletClient({
|
|
6005
6007
|
account,
|
|
6006
|
-
transport: http(rpcUrls[0])
|
|
6008
|
+
transport: http(rpcUrls[0]),
|
|
6009
|
+
dataSuffix: getBaseDataSuffix(chainId)
|
|
6007
6010
|
});
|
|
6008
6011
|
}
|
|
6009
6012
|
async function executeTransaction(walletClient, txConfig) {
|
|
@@ -6944,7 +6947,8 @@ async function executeUpvoteToken(options) {
|
|
|
6944
6947
|
try {
|
|
6945
6948
|
poolResult = await discoverTokenPool({
|
|
6946
6949
|
publicClient,
|
|
6947
|
-
tokenAddress
|
|
6950
|
+
tokenAddress,
|
|
6951
|
+
chainId: readOnlyOptions.chainId
|
|
6948
6952
|
});
|
|
6949
6953
|
} catch (error) {
|
|
6950
6954
|
exitWithError(
|