diff --git a/packages/ckb/src/collector/index.ts b/packages/ckb/src/collector/index.ts index aca6d505..e8d433c0 100644 --- a/packages/ckb/src/collector/index.ts +++ b/packages/ckb/src/collector/index.ts @@ -1,10 +1,9 @@ import axios from 'axios'; import CKB from '@nervosnetwork/ckb-sdk-core'; -import { toCamelcase } from '../utils/case-parser'; import { CollectConfig, CollectResult, CollectUdtResult, IndexerCell } from '../types/collector'; import { MIN_CAPACITY } from '../constants'; import { CapacityNotEnoughError, IndexerError, UdtAmountNotEnoughError } from '../error'; -import { isRgbppLockCellIgnoreChain, leToU128, remove0x } from '../utils'; +import { isRgbppLockCellIgnoreChain, leToU128, remove0x, toCamelcase } from '../utils'; import { Hex } from '../types'; interface IndexerScript { diff --git a/packages/ckb/src/index.ts b/packages/ckb/src/index.ts index cd2ea23c..2a40bc10 100644 --- a/packages/ckb/src/index.ts +++ b/packages/ckb/src/index.ts @@ -1,6 +1,3 @@ -import * as ckbUtils from '@nervosnetwork/ckb-sdk-utils'; -export const serializeScript = ckbUtils.serializeScript; - export * from './schemas/generated/blockchain'; export * from './schemas/generated/rgbpp'; export * from './collector'; diff --git a/packages/ckb/src/paymaster/index.ts b/packages/ckb/src/paymaster/index.ts index f5fe7ea0..4cedb69d 100644 --- a/packages/ckb/src/paymaster/index.ts +++ b/packages/ckb/src/paymaster/index.ts @@ -1,10 +1,14 @@ -import * as ckbUtils from '@nervosnetwork/ckb-sdk-utils'; import { ConstructPaymasterParams } from '../types/rgbpp'; import { NoLiveCellError } from '../error'; import { CKB_UNIT, MAX_FEE, SECP256K1_WITNESS_LOCK_SIZE, getSecp256k1CellDep } from '../constants'; -import { append0x, calculateTransactionFee } from '../utils'; - -const { AddressPrefix, addressToScript, getTransactionSize, privateKeyToAddress } = ckbUtils; +import { + append0x, + calculateTransactionFee, + AddressPrefix, + addressToScript, + getTransactionSize, + privateKeyToAddress, +} from '../utils'; const SECP256K1_MIN_CAPACITY = BigInt(61) * CKB_UNIT; diff --git a/packages/ckb/src/rgbpp/btc-jump-ckb.ts b/packages/ckb/src/rgbpp/btc-jump-ckb.ts index ab6c8c95..e9238449 100644 --- a/packages/ckb/src/rgbpp/btc-jump-ckb.ts +++ b/packages/ckb/src/rgbpp/btc-jump-ckb.ts @@ -1,5 +1,4 @@ import { RgbppCkbVirtualTx, BtcJumpCkbVirtualTxParams, BtcJumpCkbVirtualTxResult } from '../types/rgbpp'; -import { blockchain } from '@ckb-lumos/base'; import { TypeAssetNotSupportedError } from '../error'; import { append0x, @@ -11,8 +10,8 @@ import { isScriptEqual, isUDTTypeSupported, u128ToLe, -} from '../utils'; -import { + addressToScript, + getTransactionSize, buildPreLockArgs, calculateCommitment, throwErrorWhenTxInputsExceeded, @@ -22,12 +21,10 @@ import { genRgbppLockScript, throwErrorWhenRgbppCellsInvalid, isRgbppCapacitySufficientForChange, -} from '../utils/rgbpp'; + blockchain, +} from '../utils'; import { Hex, IndexerCell } from '../types'; import { RGBPP_WITNESS_PLACEHOLDER, getSecp256k1CellDep } from '../constants'; -import * as ckbUtils from '@nervosnetwork/ckb-sdk-utils'; - -const { addressToScript, getTransactionSize } = ckbUtils; /** * Generate the virtual ckb transaction for the jumping tx from BTC to CKB diff --git a/packages/ckb/src/rgbpp/btc-time.ts b/packages/ckb/src/rgbpp/btc-time.ts index 1bdf3065..aaf42f69 100644 --- a/packages/ckb/src/rgbpp/btc-time.ts +++ b/packages/ckb/src/rgbpp/btc-time.ts @@ -1,4 +1,3 @@ -import * as ckbUtils from '@nervosnetwork/ckb-sdk-utils'; import { BTC_JUMP_CONFIRMATION_BLOCKS, SECP256K1_WITNESS_LOCK_SIZE, @@ -16,12 +15,6 @@ import { genBtcTimeLockArgs, lockScriptFromBtcTimeLockArgs, transformSpvProof, -} from '../utils'; -import { buildSpvClientCellDep } from '../utils'; -import { blockchain } from '@ckb-lumos/base'; -import signWitnesses from '@nervosnetwork/ckb-sdk-core/lib/signWitnesses.js'; - -const { addressToScript, bytesToHex, getTransactionSize, @@ -29,7 +22,10 @@ const { scriptToHash, serializeOutPoint, serializeWitnessArgs, -} = ckbUtils; + buildSpvClientCellDep, + blockchain, + signWitnesses, +} from '../utils'; export const buildBtcTimeUnlockWitness = (btcTxProof: Hex): Hex => { const btcTimeUnlock = BTCTimeUnlock.pack({ btcTxProof: blockchain.Bytes.pack(btcTxProof) }); diff --git a/packages/ckb/src/rgbpp/btc-transfer.ts b/packages/ckb/src/rgbpp/btc-transfer.ts index 6d052f03..a2ab05df 100644 --- a/packages/ckb/src/rgbpp/btc-transfer.ts +++ b/packages/ckb/src/rgbpp/btc-transfer.ts @@ -6,7 +6,6 @@ import { BtcTransferVirtualTxResult, RgbppCkbVirtualTx, } from '../types/rgbpp'; -import { blockchain } from '@ckb-lumos/base'; import { NoLiveCellError, NoRgbppLiveCellError, TypeAssetNotSupportedError } from '../error'; import { append0x, @@ -17,8 +16,11 @@ import { isScriptEqual, isUDTTypeSupported, u128ToLe, -} from '../utils'; -import { + addressToScript, + getTransactionSize, + rawTransactionToHash, + scriptToHash, + serializeWitnessArgs, buildPreLockArgs, calculateCommitment, compareInputs, @@ -27,7 +29,9 @@ import { isRgbppCapacitySufficientForChange, throwErrorWhenRgbppCellsInvalid, throwErrorWhenTxInputsExceeded, -} from '../utils/rgbpp'; + blockchain, + signWitnesses, +} from '../utils'; import { Hex, IndexerCell } from '../types'; import { MAX_FEE, @@ -37,10 +41,6 @@ import { getRgbppLockScript, getSecp256k1CellDep, } from '../constants'; -import * as ckbUtils from '@nervosnetwork/ckb-sdk-utils'; -import signWitnesses from '@nervosnetwork/ckb-sdk-core/lib/signWitnesses.js'; - -const { addressToScript, getTransactionSize, rawTransactionToHash, scriptToHash, serializeWitnessArgs } = ckbUtils; /** * Generate the virtual ckb transaction for the btc transfer tx diff --git a/packages/ckb/src/rgbpp/ckb-builder.ts b/packages/ckb/src/rgbpp/ckb-builder.ts index cc2725c8..d597fa56 100644 --- a/packages/ckb/src/rgbpp/ckb-builder.ts +++ b/packages/ckb/src/rgbpp/ckb-builder.ts @@ -1,4 +1,3 @@ -import * as ckbUtils from '@nervosnetwork/ckb-sdk-utils'; import { UpdateCkbTxWithRealBtcTxIdParams, AppendPaymasterCellAndSignTxParams, @@ -14,14 +13,17 @@ import { replaceLockArgsWithRealBtcTxId, transformSpvProof, u8ToHex, + bytesToHex, + getTransactionSize, + rawTransactionToHash, + scriptToHash, + serializeWitnessArgs, + blockchain, + signWitnesses, } from '../utils'; import { InputsCapacityNotEnoughError } from '../error'; -import signWitnesses from '@nervosnetwork/ckb-sdk-core/lib/signWitnesses.js'; import { buildSpvClientCellDep } from '../utils'; import { RGBPPUnlock, Uint16 } from '../schemas/generated/rgbpp'; -import { Bytes } from '@ckb-lumos/base/lib/blockchain.js'; - -const { bytesToHex, getTransactionSize, rawTransactionToHash, scriptToHash, serializeWitnessArgs } = ckbUtils; export const buildRgbppUnlockWitness = ( btcTxBytes: Hex, @@ -32,14 +34,14 @@ export const buildRgbppUnlockWitness = ( const inputLen = append0x(u8ToHex(inputsLen)); const outputLen = append0x(u8ToHex(outputsLen)); - const btcTx = Bytes.pack(append0x(btcTxBytes)); + const btcTx = blockchain.Bytes.pack(append0x(btcTxBytes)); const version = Uint16.pack([0, 0]); const rgbppUnlock = RGBPPUnlock.pack({ version, extraData: { inputLen, outputLen }, btcTx, - btcTxProof: bytesToHex(Bytes.pack(append0x(btcTxProof))), + btcTxProof: bytesToHex(blockchain.Bytes.pack(append0x(btcTxProof))), }); return append0x(bytesToHex(rgbppUnlock)); }; diff --git a/packages/ckb/src/rgbpp/ckb-jump-btc.ts b/packages/ckb/src/rgbpp/ckb-jump-btc.ts index 00b81350..b243a235 100644 --- a/packages/ckb/src/rgbpp/ckb-jump-btc.ts +++ b/packages/ckb/src/rgbpp/ckb-jump-btc.ts @@ -1,5 +1,4 @@ import { CkbBatchJumpBtcVirtualTxParams, CkbJumpBtcVirtualTxParams } from '../types/rgbpp'; -import { blockchain } from '@ckb-lumos/base'; import { NoLiveCellError, NoXudtLiveCellError, TypeAssetNotSupportedError } from '../error'; import { append0x, @@ -9,12 +8,12 @@ import { fetchTypeIdCellDeps, isTypeAssetSupported, u128ToLe, + addressToScript, + getTransactionSize, + genRgbppLockScript, + blockchain, } from '../utils'; -import { genRgbppLockScript } from '../utils/rgbpp'; import { MAX_FEE, MIN_CAPACITY, RGBPP_TX_WITNESS_MAX_SIZE } from '../constants'; -import * as ckbUtils from '@nervosnetwork/ckb-sdk-utils'; - -const { addressToScript, getTransactionSize } = ckbUtils; /** * Generate the virtual ckb transaction for the jumping tx from CKB to BTC diff --git a/packages/ckb/src/rgbpp/launch.ts b/packages/ckb/src/rgbpp/launch.ts index 3be9cfe1..7e662504 100644 --- a/packages/ckb/src/rgbpp/launch.ts +++ b/packages/ckb/src/rgbpp/launch.ts @@ -7,14 +7,14 @@ import { fetchTypeIdCellDeps, generateUniqueTypeArgs, u128ToLe, -} from '../utils'; -import { + getTransactionSize, + scriptToHash, buildPreLockArgs, calculateCommitment, encodeRgbppTokenInfo, genBtcTimeLockScript, genRgbppLockScript, -} from '../utils/rgbpp'; +} from '../utils'; import { Hex } from '../types'; import { MAX_FEE, @@ -24,9 +24,6 @@ import { getUniqueTypeScript, UNLOCKABLE_LOCK_SCRIPT, } from '../constants'; -import * as ckbUtils from '@nervosnetwork/ckb-sdk-utils'; - -const { getTransactionSize, scriptToHash } = ckbUtils; /** * Generate the virtual ckb transaction for the btc transfer tx diff --git a/packages/ckb/src/spore/cluster.ts b/packages/ckb/src/spore/cluster.ts index 174a2340..ff4096fc 100644 --- a/packages/ckb/src/spore/cluster.ts +++ b/packages/ckb/src/spore/cluster.ts @@ -1,7 +1,17 @@ -import { RgbppCkbVirtualTx } from '../types/rgbpp'; import { packRawClusterData } from '@spore-sdk/core'; -import { append0x, calculateTransactionFee, fetchTypeIdCellDeps } from '../utils'; -import { buildPreLockArgs, calculateCommitment, genRgbppLockScript } from '../utils/rgbpp'; +import { RgbppCkbVirtualTx } from '../types/rgbpp'; +import { + append0x, + calculateTransactionFee, + fetchTypeIdCellDeps, + bytesToHex, + getTransactionSize, + buildPreLockArgs, + calculateCommitment, + genRgbppLockScript, + generateClusterCreateCoBuild, + generateClusterId, +} from '../utils'; import { CreateClusterCkbVirtualTxParams, Hex, SporeVirtualTxResult } from '../types'; import { RGBPP_TX_WITNESS_MAX_SIZE, @@ -9,11 +19,7 @@ import { getClusterTypeDep, getClusterTypeScript, } from '../constants'; -import { generateClusterCreateCoBuild, generateClusterId } from '../utils/spore'; import { NoRgbppLiveCellError } from '../error'; -import * as ckbUtils from '@nervosnetwork/ckb-sdk-utils'; - -const { bytesToHex, getTransactionSize } = ckbUtils; /** * Generate the virtual ckb transaction for creating cluster diff --git a/packages/ckb/src/spore/leap.ts b/packages/ckb/src/spore/leap.ts index 12424242..b0d66ce6 100644 --- a/packages/ckb/src/spore/leap.ts +++ b/packages/ckb/src/spore/leap.ts @@ -1,6 +1,12 @@ import { BtcTimeCellsParams, RgbppCkbVirtualTx } from '../types/rgbpp'; -import { append0x, calculateTransactionFee, fetchTypeIdCellDeps } from '../utils'; import { + append0x, + calculateTransactionFee, + fetchTypeIdCellDeps, + addressToScript, + getTransactionSize, + serializeOutPoint, + serializeWitnessArgs, btcTxIdFromBtcTimeLockArgs, buildSpvClientCellDep, calculateCommitment, @@ -8,7 +14,10 @@ import { genBtcTimeLockScript, lockScriptFromBtcTimeLockArgs, transformSpvProof, -} from '../utils/rgbpp'; + generateSporeTransferCoBuild, + throwErrorWhenSporeCellsInvalid, + blockchain, +} from '../utils'; import { Hex, LeapSporeFromBtcToCkbVirtualTxParams, @@ -22,14 +31,9 @@ import { getRgbppLockScript, getSporeTypeDep, } from '../constants'; -import { generateSporeTransferCoBuild, throwErrorWhenSporeCellsInvalid } from '../utils/spore'; import { NoRgbppLiveCellError } from '../error'; -import * as ckbUtils from '@nervosnetwork/ckb-sdk-utils'; -import { blockchain } from '@ckb-lumos/base'; import { buildBtcTimeUnlockWitness } from '../rgbpp'; -const { addressToScript, getTransactionSize, serializeOutPoint, serializeWitnessArgs } = ckbUtils; - /** * Generate the virtual ckb transaction for leaping spore from BTC to CKB * @param collector The collector that collects CKB live cells and transactions diff --git a/packages/ckb/src/spore/spore.ts b/packages/ckb/src/spore/spore.ts index ff410de7..7c40bb00 100644 --- a/packages/ckb/src/spore/spore.ts +++ b/packages/ckb/src/spore/spore.ts @@ -6,8 +6,21 @@ import { calculateTransactionFee, fetchTypeIdCellDeps, isClusterSporeTypeSupported, + addressToScript, + bytesToHex, + getTransactionSize, + rawTransactionToHash, + scriptToHash, + serializeWitnessArgs, + buildPreLockArgs, + calculateCommitment, + genRgbppLockScript, + generateSporeCreateCoBuild, + generateSporeId, + generateSporeTransferCoBuild, + throwErrorWhenSporeCellsInvalid, + signWitnesses, } from '../utils'; -import { buildPreLockArgs, calculateCommitment, genRgbppLockScript } from '../utils/rgbpp'; import { AppendIssuerCellToSporeCreate, BuildAppendingIssuerCellTxParams, @@ -29,23 +42,12 @@ import { getSporeTypeDep, getSporeTypeScript, } from '../constants'; -import { - generateSporeCreateCoBuild, - generateSporeId, - generateSporeTransferCoBuild, - throwErrorWhenSporeCellsInvalid, -} from '../utils/spore'; import { NoLiveCellError, NoRgbppLiveCellError, RgbppUtxoBindMultiTypeAssetsError, TypeAssetNotSupportedError, } from '../error'; -import * as ckbUtils from '@nervosnetwork/ckb-sdk-utils'; -import signWitnesses from '@nervosnetwork/ckb-sdk-core/lib/signWitnesses.js'; - -const { addressToScript, bytesToHex, getTransactionSize, rawTransactionToHash, scriptToHash, serializeWitnessArgs } = - ckbUtils; /** * Generate the virtual ckb transaction for creating spores diff --git a/packages/ckb/src/utils/ckb-tx.ts b/packages/ckb/src/utils/ckb-tx.ts index c2128d99..2d526d5d 100644 --- a/packages/ckb/src/utils/ckb-tx.ts +++ b/packages/ckb/src/utils/ckb-tx.ts @@ -1,5 +1,7 @@ import { calculateTransactionFee as calculateTxFee } from '@nervosnetwork/ckb-sdk-utils/lib/calculateTransactionFee.js'; import { RawClusterData, packRawClusterData, SporeDataProps, packRawSporeData } from '@spore-sdk/core'; +import signWitnesses from '@nervosnetwork/ckb-sdk-core/lib/signWitnesses.js'; +import * as ckbUtils from '@nervosnetwork/ckb-sdk-utils'; import { remove0x, u64ToLe } from './hex'; import { CKB_UNIT, @@ -9,12 +11,29 @@ import { getXudtTypeScript, } from '../constants'; import { Hex, RgbppTokenInfo } from '../types'; -import * as ckbUtils from '@nervosnetwork/ckb-sdk-utils'; import { encodeRgbppTokenInfo, genBtcTimeLockScript } from './rgbpp'; import { Collector } from '../collector'; import { NoLiveCellError } from '../error'; -const { PERSONAL, blake2b, hexToBytes, serializeInput, serializeScript } = ckbUtils; +export { blockchain } from '@ckb-lumos/base'; +export { signWitnesses }; +export const { + PERSONAL, + blake2b, + hexToBytes, + serializeInput, + serializeScript, + AddressPrefix, + addressToScript, + privateKeyToAddress, + bytesToHex, + getTransactionSize, + rawTransactionToHash, + scriptToHash, + serializeOutPoint, + serializeOutput, + serializeWitnessArgs, +} = ckbUtils; export const calculateTransactionFee = (txSize: number, feeRate?: bigint): bigint => { const rate = feeRate ?? BigInt(1100); diff --git a/packages/ckb/src/utils/hex.ts b/packages/ckb/src/utils/hex.ts index 81065926..ab19e116 100644 --- a/packages/ckb/src/utils/hex.ts +++ b/packages/ckb/src/utils/hex.ts @@ -1,8 +1,6 @@ -import * as ckbUtils from '@nervosnetwork/ckb-sdk-utils'; +import { hexToBytes, bytesToHex } from './ckb-tx'; import { Hex } from '../types'; -const { hexToBytes, bytesToHex } = ckbUtils; - export const remove0x = (hex: string): string => { if (hex.startsWith('0x')) { return hex.substring(2); diff --git a/packages/ckb/src/utils/rgbpp.ts b/packages/ckb/src/utils/rgbpp.ts index de559b6c..d2eb11f6 100644 --- a/packages/ckb/src/utils/rgbpp.ts +++ b/packages/ckb/src/utils/rgbpp.ts @@ -1,4 +1,5 @@ import { sha256 } from 'js-sha256'; +import { RgbppApiSpvProof } from '@rgbpp-sdk/service'; import { BTCTestnetType, Hex, IndexerCell, RgbppCkbVirtualTx, RgbppTokenInfo, SpvClientCellTxProof } from '../types'; import { append0x, remove0x, reverseHex, u32ToLe, u8ToHex, utf8ToHex } from './hex'; import { @@ -10,12 +11,9 @@ import { getBtcTimeLockScript, getRgbppLockScript, } from '../constants'; -import * as ckbUtils from '@nervosnetwork/ckb-sdk-utils'; import { BTCTimeLock } from '../schemas/generated/rgbpp'; import { Script } from '../schemas/generated/blockchain'; -import { blockchain } from '@ckb-lumos/base'; import { bytes } from '@ckb-lumos/codec'; -import { RgbppApiSpvProof } from '@rgbpp-sdk/service'; import { toCamelcase } from './case-parser'; import { InputsOrOutputsLenError, @@ -23,9 +21,17 @@ import { RgbppCkbTxInputsExceededError, RgbppUtxoBindMultiTypeAssetsError, } from '../error'; -import { calculateRgbppCellCapacity, isScriptEqual, isUDTTypeSupported } from './ckb-tx'; - -const { bytesToHex, hexToBytes, serializeOutPoint, serializeOutput, serializeScript } = ckbUtils; +import { + calculateRgbppCellCapacity, + isScriptEqual, + isUDTTypeSupported, + bytesToHex, + hexToBytes, + serializeOutPoint, + serializeOutput, + serializeScript, + blockchain, +} from './ckb-tx'; export const genRgbppLockScript = (rgbppLockArgs: Hex, isMainnet: boolean, btcTestnetType?: BTCTestnetType) => { return { diff --git a/packages/ckb/src/utils/spore.ts b/packages/ckb/src/utils/spore.ts index 1737f987..739f5776 100644 --- a/packages/ckb/src/utils/spore.ts +++ b/packages/ckb/src/utils/spore.ts @@ -1,4 +1,3 @@ -import * as ckbUtils from '@nervosnetwork/ckb-sdk-utils'; import { Cell as LumosCell } from '@ckb-lumos/base'; import { UnpackResult } from '@ckb-lumos/codec'; import { @@ -12,9 +11,7 @@ import { import { u64ToLe } from './hex'; import { Hex, IndexerCell, SporesCreateCobuildParams } from '../types'; import { NoRgbppLiveCellError, RgbppSporeTypeMismatchError, RgbppUtxoBindMultiTypeAssetsError } from '../error'; -import { isScriptEqual, isSporeTypeSupported } from './ckb-tx'; - -const { PERSONAL, blake2b, hexToBytes, serializeInput } = ckbUtils; +import { isScriptEqual, isSporeTypeSupported, PERSONAL, blake2b, hexToBytes, serializeInput } from './ckb-tx'; // Generate type id for cluster id export const generateClusterId = (firstInput: CKBComponents.CellInput, firstOutputIndex: number) => { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d93929f2..a7874373 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -75,7 +75,7 @@ importers: specifier: ^0.2.0 version: 0.2.2 rgbpp: - specifier: workspace:* + specifier: ^0.4.0 version: link:../../packages/rgbpp rxjs: specifier: ^7.8.1 @@ -130,7 +130,7 @@ importers: specifier: ^0.109.1 version: 0.109.1 rgbpp: - specifier: workspace:* + specifier: ^0.4.0 version: link:../../packages/rgbpp devDependencies: '@types/dotenv': @@ -152,8 +152,8 @@ importers: specifier: ^0.109.1 version: 0.109.1 rgbpp: - specifier: ^0.3.0 - version: 0.3.0(@ckb-lumos/lumos@0.22.0-next.5)(lodash@4.17.21) + specifier: ^0.4.0 + version: link:../../packages/rgbpp devDependencies: '@types/dotenv': specifier: ^8.2.0 @@ -194,13 +194,6 @@ importers: p-limit: specifier: ^3.1.0 version: 3.1.0 - devDependencies: - '@types/lodash': - specifier: ^4.17.0 - version: 4.17.0 - vitest: - specifier: ^1.4.0 - version: 1.6.0(@types/node@20.12.12) packages/ckb: dependencies: @@ -241,12 +234,6 @@ importers: '@ckb-lumos/molecule': specifier: ^0.22.2 version: 0.22.2 - '@types/lodash': - specifier: ^4.17.0 - version: 4.17.0 - vitest: - specifier: ^1.4.0 - version: 1.6.0(@types/node@20.12.12) packages/rgbpp: dependencies: @@ -277,13 +264,6 @@ importers: lodash: specifier: ^4.17.21 version: 4.17.21 - devDependencies: - '@types/lodash': - specifier: ^4.17.0 - version: 4.17.0 - vitest: - specifier: ^1.4.0 - version: 1.6.0(@types/node@20.12.12) tests/rgbpp: dependencies: @@ -300,15 +280,9 @@ importers: '@types/dotenv': specifier: ^8.2.0 version: 8.2.0 - '@types/node': - specifier: ^20.11.28 - version: 20.12.12 dotenv: specifier: ^16.4.5 version: 16.4.5 - typescript: - specifier: ^5.4.2 - version: 5.4.3 packages: @@ -423,7 +397,7 @@ packages: dependencies: '@babel/compat-data': 7.23.5 '@babel/helper-validator-option': 7.23.5 - browserslist: 4.23.1 + browserslist: 4.23.0 lru-cache: 5.1.1 semver: 6.3.1 dev: true @@ -2245,53 +2219,6 @@ packages: dev: true optional: true - /@rgbpp-sdk/btc@0.3.0(@ckb-lumos/lumos@0.22.0-next.5): - resolution: {integrity: sha512-0KLVRAlYxA/m2K1FTrrtAHezfaEg0MXfEmlHjMIK1oOUjUuis5UAJPSyB83Ql5RjVRFFolxdyPoW2Xe7MhAp4A==} - dependencies: - '@bitcoinerlab/secp256k1': 1.1.1 - '@ckb-lumos/codec': 0.22.2 - '@nervosnetwork/ckb-types': 0.109.1 - '@rgbpp-sdk/ckb': 0.3.0(@ckb-lumos/lumos@0.22.0-next.5)(lodash@4.17.21) - '@rgbpp-sdk/service': 0.3.0 - bip32: 4.0.0 - bitcoinjs-lib: 6.1.5 - ecpair: 2.1.0 - lodash: 4.17.21 - p-limit: 3.1.0 - transitivePeerDependencies: - - '@ckb-lumos/lumos' - - debug - dev: false - - /@rgbpp-sdk/ckb@0.3.0(@ckb-lumos/lumos@0.22.0-next.5)(lodash@4.17.21): - resolution: {integrity: sha512-Qf6Yhgakz8UhkZ+PulIHdrMVSDbZPW7+GDTA8KLrfVB/EEMoXA5L5LVanJKrYKTgBkGXYwEXW8Tti0Lr76SBmA==} - dependencies: - '@ckb-lumos/base': 0.22.2 - '@ckb-lumos/codec': 0.22.2 - '@exact-realty/multipart-parser': 1.0.13 - '@nervosnetwork/ckb-sdk-core': 0.109.1 - '@nervosnetwork/ckb-sdk-utils': 0.109.1 - '@nervosnetwork/ckb-types': 0.109.1 - '@rgbpp-sdk/service': 0.3.0 - '@spore-sdk/core': 0.2.0-beta.6(@ckb-lumos/lumos@0.22.0-next.5)(lodash@4.17.21) - axios: 1.6.8 - camelcase-keys: 7.0.2 - js-sha256: 0.11.0 - transitivePeerDependencies: - - '@ckb-lumos/lumos' - - debug - - lodash - dev: false - - /@rgbpp-sdk/service@0.3.0: - resolution: {integrity: sha512-MvVBVWbdYQVnjnCf3xYH6HXqHaUmL7DjUVucTYMjbB0cMeBqVjEAkX1RIVUqqcCpgSeYnK1nFEQHXB51rx8bMw==} - dependencies: - '@ckb-lumos/base': 0.22.2 - '@ckb-lumos/codec': 0.22.2 - '@nervosnetwork/ckb-types': 0.109.1 - lodash: 4.17.21 - dev: false - /@rollup/rollup-android-arm-eabi@4.13.2: resolution: {integrity: sha512-3XFIDKWMFZrMnao1mJhnOT1h2g0169Os848NhhmGweEcfJ4rCi+3yMCOLG4zA61rbJdkcrM/DjVZm9Hg5p5w7g==} cpu: [arm] @@ -3413,17 +3340,6 @@ packages: update-browserslist-db: 1.0.13(browserslist@4.23.0) dev: true - /browserslist@4.23.1: - resolution: {integrity: sha512-TUfofFo/KsK/bWZ9TWQ5O26tsWW4Uhmt8IYklbnUa70udB6P2wA7w7o4PY4muaEPBQaAX+CEnmmIA41NVHtPVw==} - engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} - hasBin: true - dependencies: - caniuse-lite: 1.0.30001640 - electron-to-chromium: 1.4.816 - node-releases: 2.0.14 - update-browserslist-db: 1.1.0(browserslist@4.23.1) - dev: true - /bs-logger@0.2.6: resolution: {integrity: sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==} engines: {node: '>= 6'} @@ -3545,10 +3461,6 @@ packages: resolution: {integrity: sha512-LRAQHZ4yT1+f9LemSMeqdMpMxZcc4RMWdj4tiFe3G8tNkWK+E58g+/tzotb5cU6TbcVJLr4fySiAW7XmxQvZQA==} dev: true - /caniuse-lite@1.0.30001640: - resolution: {integrity: sha512-lA4VMpW0PSUrFnkmVuEKBUovSWKhj7puyCg8StBChgu298N1AtuF1sKWEvfDuimSEDbhlb/KqPKC3fs1HbuQUA==} - dev: true - /chai@4.4.1: resolution: {integrity: sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==} engines: {node: '>=4'} @@ -4082,10 +3994,6 @@ packages: resolution: {integrity: sha512-w+9yAVHoHhysCa+gln7AzbO9CdjFcL/wN/5dd+XW/Msl2d/4+WisEaCF1nty0xbAKaxdaJfgLB2296U7zZB7BA==} dev: true - /electron-to-chromium@1.4.816: - resolution: {integrity: sha512-EKH5X5oqC6hLmiS7/vYtZHZFTNdhsYG5NVPRN6Yn0kQHNBlT59+xSM8HBy66P5fxWpKgZbPqb+diC64ng295Jw==} - dev: true - /elliptic@6.5.4: resolution: {integrity: sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==} dependencies: @@ -6766,10 +6674,6 @@ packages: resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} dev: true - /picocolors@1.0.1: - resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} - dev: true - /picomatch@2.3.1: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} @@ -7179,18 +7083,6 @@ packages: /rfdc@1.3.1: resolution: {integrity: sha512-r5a3l5HzYlIC68TpmYKlxWjmOP6wiPJ1vWv2HeLhNsRZMrCkxeqxiHlQ21oXmQ4F3SiryXBHhAD7JZqvOJjFmg==} - /rgbpp@0.3.0(@ckb-lumos/lumos@0.22.0-next.5)(lodash@4.17.21): - resolution: {integrity: sha512-SvvQsTwcTpxedKhzKY+fJQCavfnO2wtyAgO6zkuXBxveLKQQrsvCNumhwzfLOkZW8PhEDz4qAks3WhYnyOR2Vw==} - dependencies: - '@rgbpp-sdk/btc': 0.3.0(@ckb-lumos/lumos@0.22.0-next.5) - '@rgbpp-sdk/ckb': 0.3.0(@ckb-lumos/lumos@0.22.0-next.5)(lodash@4.17.21) - '@rgbpp-sdk/service': 0.3.0 - transitivePeerDependencies: - - '@ckb-lumos/lumos' - - debug - - lodash - dev: false - /rimraf@3.0.2: resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} deprecated: Rimraf versions prior to v4 are no longer supported @@ -8275,17 +8167,6 @@ packages: picocolors: 1.0.0 dev: true - /update-browserslist-db@1.1.0(browserslist@4.23.1): - resolution: {integrity: sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==} - hasBin: true - peerDependencies: - browserslist: '>= 4.21.0' - dependencies: - browserslist: 4.23.1 - escalade: 3.1.2 - picocolors: 1.0.1 - dev: true - /uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} dependencies: @@ -8537,7 +8418,7 @@ packages: '@webassemblyjs/wasm-parser': 1.12.1 acorn: 8.12.0 acorn-import-assertions: 1.9.0(acorn@8.12.0) - browserslist: 4.23.1 + browserslist: 4.23.0 chrome-trace-event: 1.0.4 enhanced-resolve: 5.16.1 es-module-lexer: 1.5.3