repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-request/transaction-request.ts
packages/account/src/providers/transaction-request/transaction-request.ts
import { UTXO_ID_LEN } from '@fuel-ts/abi-coder'; import { Address, addressify } from '@fuel-ts/address'; import type { AddressInput, AddressLike } from '@fuel-ts/address'; import { ZeroBytes32 } from '@fuel-ts/address/configs'; import { randomBytes } from '@fuel-ts/crypto'; import { FuelError } from '@fuel-ts/errors';...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-request/create-transaction-request.ts
packages/account/src/providers/transaction-request/create-transaction-request.ts
import { ZeroBytes32 } from '@fuel-ts/address/configs'; import { bn, type BN } from '@fuel-ts/math'; import type { TransactionCreate } from '@fuel-ts/transactions'; import { TransactionType, OutputType } from '@fuel-ts/transactions'; import type { BytesLike } from '@fuel-ts/utils'; import { arrayify, hexlify } from '@f...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-request/hash-transaction.test.ts
packages/account/src/providers/transaction-request/hash-transaction.test.ts
import { bn } from '@fuel-ts/math'; import { clone } from 'ramda'; import { SCRIPT_TX_REQUEST } from '../../../test/fixtures/transaction-request'; import { hashTransaction } from './hash-transaction'; /** * @group node */ describe('hashTransaction', () => { it('Hash script transaction request', () => { expec...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-request/upload-transaction-request.ts
packages/account/src/providers/transaction-request/upload-transaction-request.ts
import { ZeroBytes32 } from '@fuel-ts/address/configs'; import type { BN } from '@fuel-ts/math'; import { type TransactionUpload, TransactionType } from '@fuel-ts/transactions'; import type { BytesLike } from '@fuel-ts/utils'; import { arrayify, hexlify } from '@fuel-ts/utils'; import { clone } from 'ramda'; import ty...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-request/errors.ts
packages/account/src/providers/transaction-request/errors.ts
/* eslint-disable max-classes-per-file */ import type { Address } from '@fuel-ts/address'; /** * @hidden */ export class ChangeOutputCollisionError extends Error { override name = 'ChangeOutputCollisionError'; override message = 'A ChangeOutput with the same "assetId" already exists for a different "to" addr...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-request/utils.ts
packages/account/src/providers/transaction-request/utils.ts
import { ErrorCode, FuelError } from '@fuel-ts/errors'; import { TransactionType } from '@fuel-ts/transactions'; import { BlobTransactionRequest } from './blob-transaction-request'; import { CreateTransactionRequest } from './create-transaction-request'; import { ScriptTransactionRequest } from './script-transaction-r...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-request/scripts.ts
packages/account/src/providers/transaction-request/scripts.ts
import { arrayify } from '@fuel-ts/utils'; import type { AbstractScriptRequest } from './types'; // We can't import this from `@fuel-ts/script` because it causes // cyclic dependency errors so we duplicate it here. /** @hidden */ export const returnZeroScript: AbstractScriptRequest<void> = { /* Opcode::RET(RE...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-request/hash-transaction.ts
packages/account/src/providers/transaction-request/hash-transaction.ts
import { ZeroBytes32 } from '@fuel-ts/address/configs'; import { uint64ToBytesBE, sha256 } from '@fuel-ts/hasher'; import { bn } from '@fuel-ts/math'; import { TransactionType, InputType, OutputType, TransactionCoder } from '@fuel-ts/transactions'; import { concat } from '@fuel-ts/utils'; import { clone } from 'ramda';...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-request/utils.test.ts
packages/account/src/providers/transaction-request/utils.test.ts
import { bn } from '@fuel-ts/math'; import { InputType } from '@fuel-ts/transactions'; import { BlobTransactionRequest } from './blob-transaction-request'; import { CreateTransactionRequest } from './create-transaction-request'; import { ScriptTransactionRequest } from './script-transaction-request'; import { UpgradeT...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-request/storage-slot.ts
packages/account/src/providers/transaction-request/storage-slot.ts
import type { StorageSlot } from '@fuel-ts/transactions'; import type { BytesLike } from '@fuel-ts/utils'; import { arrayify, hexlify } from '@fuel-ts/utils'; export type TransactionRequestStorageSlot = | { /** Key */ key: BytesLike; /** Value */ value: BytesLike; } | [key: BytesLike, v...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-request/transaction-request.test.ts
packages/account/src/providers/transaction-request/transaction-request.test.ts
import { Address } from '@fuel-ts/address'; import { ZeroBytes32 } from '@fuel-ts/address/configs'; import { randomBytes } from '@fuel-ts/crypto'; import { bn, toNumber } from '@fuel-ts/math'; import { PolicyType, TransactionType, UpgradePurposeTypeEnum } from '@fuel-ts/transactions'; import { concat, hexlify } from '@...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-request/helpers.ts
packages/account/src/providers/transaction-request/helpers.ts
import type { Address } from '@fuel-ts/address'; import { ErrorCode, FuelError } from '@fuel-ts/errors'; import { bn } from '@fuel-ts/math'; import { InputType, OutputType } from '@fuel-ts/transactions'; import { hexlify } from '@fuel-ts/utils'; import type { ResourcesIdsToIgnore } from '../provider'; import type { ...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-request/upgrade-transaction-request.ts
packages/account/src/providers/transaction-request/upgrade-transaction-request.ts
import { FuelError } from '@fuel-ts/errors'; import { hash } from '@fuel-ts/hasher'; import type { BN } from '@fuel-ts/math'; import { TransactionType, type TransactionUpgrade, type UpgradePurpose, UpgradePurposeTypeEnum, } from '@fuel-ts/transactions'; import type { BytesLike } from '@fuel-ts/utils'; import { ...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-request/input.ts
packages/account/src/providers/transaction-request/input.ts
import { BYTES_32, UTXO_ID_LEN } from '@fuel-ts/abi-coder'; import { ZeroBytes32 } from '@fuel-ts/address/configs'; import { ErrorCode, FuelError } from '@fuel-ts/errors'; import type { BigNumberish } from '@fuel-ts/math'; import { bn, toNumber } from '@fuel-ts/math'; import type { Input } from '@fuel-ts/transactions';...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-request/types.ts
packages/account/src/providers/transaction-request/types.ts
import type { JsonAbi } from '@fuel-ts/abi-coder'; import type { TransactionType } from '@fuel-ts/transactions'; import type { BlobTransactionRequest, BlobTransactionRequestLike, } from './blob-transaction-request'; import type { CreateTransactionRequest, CreateTransactionRequestLike, } from './create-transact...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-request/script-transaction-request.ts
packages/account/src/providers/transaction-request/script-transaction-request.ts
import type { InputValue, JsonAbi } from '@fuel-ts/abi-coder'; import { Interface } from '@fuel-ts/abi-coder'; import { addressify } from '@fuel-ts/address'; import type { ContractIdLike } from '@fuel-ts/address'; import { ZeroBytes32 } from '@fuel-ts/address/configs'; import { bn } from '@fuel-ts/math'; import type { ...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-request/index.ts
packages/account/src/providers/transaction-request/index.ts
export * from './input'; export * from './output'; export * from './transaction-request'; export * from './blob-transaction-request'; export * from './create-transaction-request'; export * from './script-transaction-request'; export * from './upgrade-transaction-request'; export * from './upload-transaction-request'; e...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-request/witness.ts
packages/account/src/providers/transaction-request/witness.ts
import type { Witness } from '@fuel-ts/transactions'; import type { BytesLike } from '@fuel-ts/utils'; import { arrayify, hexlify } from '@fuel-ts/utils'; export type TransactionRequestWitness = BytesLike; export const witnessify = (value: TransactionRequestWitness): Witness => { const data = arrayify(value); re...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-request/blob-transaction-request.ts
packages/account/src/providers/transaction-request/blob-transaction-request.ts
import type { BN } from '@fuel-ts/math'; import type { TransactionBlob } from '@fuel-ts/transactions'; import { clone } from 'ramda'; import type { GasCosts } from '../provider'; import { calculateMetadataGasForTxBlob } from '../utils'; import { hashTransaction } from './hash-transaction'; import type { BaseTransacti...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-request/output.ts
packages/account/src/providers/transaction-request/output.ts
import { ZeroBytes32 } from '@fuel-ts/address/configs'; import { ErrorCode, FuelError } from '@fuel-ts/errors'; import type { BigNumberish } from '@fuel-ts/math'; import { bn } from '@fuel-ts/math'; import type { Output } from '@fuel-ts/transactions'; import { OutputType } from '@fuel-ts/transactions'; import type { By...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-request/helpers.test.ts
packages/account/src/providers/transaction-request/helpers.test.ts
import { getRandomB256, Address } from '@fuel-ts/address'; import { ZeroBytes32 } from '@fuel-ts/address/configs'; import { randomBytes } from '@fuel-ts/crypto'; import { ErrorCode, FuelError } from '@fuel-ts/errors'; import { expectToThrowFuelError } from '@fuel-ts/errors/test-utils'; import { bn } from '@fuel-ts/math...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-summary/output.test.ts
packages/account/src/providers/transaction-summary/output.test.ts
import { MOCK_OUTPUT_CONTRACT, MOCK_OUTPUT_CHANGE, MOCK_OUTPUT_VARIABLE, MOCK_OUTPUT_CONTRACT_CREATED, MOCK_OUTPUT_COIN, } from '../../../test/fixtures/transaction-summary'; import { getOutputsChange, getOutputsCoin, getOutputsContract, getOutputsContractCreated, getOutputsVariable, } from './outpu...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-summary/assemble-transaction-summary-from-serialized.test.ts
packages/account/src/providers/transaction-summary/assemble-transaction-summary-from-serialized.test.ts
import { hexlify } from '@fuel-ts/utils'; import { setupTestProviderAndWallets } from '../../test-utils'; import { ScriptTransactionRequest } from '../transaction-request'; import { normalizeJSON } from '../utils'; import type { TransactionSummaryJson } from '../utils/serialization'; import { assembleTransactionSumma...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-summary/operations.test.ts
packages/account/src/providers/transaction-summary/operations.test.ts
import { getRandomB256 } from '@fuel-ts/address'; import { ZeroBytes32 } from '@fuel-ts/address/configs'; import { bn } from '@fuel-ts/math'; import { ReceiptType, TransactionType } from '@fuel-ts/transactions'; import { ASSET_A, ASSET_B } from '@fuel-ts/utils/test-utils'; import { MOCK_INPUT_COIN, MOCK_INPUT_CONT...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-summary/get-transaction-summary.ts
packages/account/src/providers/transaction-summary/get-transaction-summary.ts
import { ErrorCode, FuelError } from '@fuel-ts/errors'; import { bn } from '@fuel-ts/math'; import { TransactionCoder } from '@fuel-ts/transactions'; import { arrayify } from '@fuel-ts/utils'; import type { GqlGetTransactionsByOwnerQueryVariables } from '../__generated__/operations'; import { TRANSACTIONS_PAGE_SIZE_LI...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-summary/call.ts
packages/account/src/providers/transaction-summary/call.ts
import { type JsonAbi, StdStringCoder } from '@fuel-ts/abi-coder'; import { Interface } from '@fuel-ts/abi-coder'; import { type BN } from '@fuel-ts/math'; import type { ReceiptCall } from '@fuel-ts/transactions'; type GetFunctionCallProps = { abi: JsonAbi; receipt: ReceiptCall; offset: number; scriptData: Uin...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-summary/receipt.test.ts
packages/account/src/providers/transaction-summary/receipt.test.ts
import { bn } from '@fuel-ts/math'; import { ReceiptType } from '@fuel-ts/transactions'; import type { TransactionResultBurnReceipt, TransactionResultMintReceipt, TransactionResultReceipt, } from '../transaction-response'; import { extractBurnedAssetsFromReceipts, extractMintedAssetsFromReceipts } from './recei...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-summary/status.test.ts
packages/account/src/providers/transaction-summary/status.test.ts
import { bn } from '@fuel-ts/math'; import { MOCK_FAILURE_STATUS, MOCK_PRECONFIRMATION_FAILURE_STATUS, MOCK_PRECONFIRMATION_SUCCESS_STATUS, MOCK_SQUEEZEDOUT_STATUS, MOCK_SUBMITTED_STATUS, MOCK_SUCCESS_STATUS, } from '../../../test/fixtures/transaction-summary'; import { getTotalFeeFromStatus, getTransacti...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-summary/operations.ts
packages/account/src/providers/transaction-summary/operations.ts
import { ZeroBytes32 } from '@fuel-ts/address/configs'; import { ErrorCode, FuelError } from '@fuel-ts/errors'; import type { BN } from '@fuel-ts/math'; import { bn, toBytes } from '@fuel-ts/math'; import { ReceiptType, TransactionCoder, TransactionType } from '@fuel-ts/transactions'; import type { InputContract, Outpu...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-summary/input.test.ts
packages/account/src/providers/transaction-summary/input.test.ts
import { ZeroBytes32 } from '@fuel-ts/address/configs'; import { bn } from '@fuel-ts/math'; import type { InputCoin, InputMessage } from '@fuel-ts/transactions'; import { ASSET_A } from '@fuel-ts/utils/test-utils'; import { MOCK_INPUT_COIN, MOCK_INPUT_CONTRACT, MOCK_INPUT_MESSAGE, MOCK_OUTPUT_CONTRACT, } from ...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-summary/calculate-tx-fee-for-summary.ts.test.ts
packages/account/src/providers/transaction-summary/calculate-tx-fee-for-summary.ts.test.ts
import { bn } from '@fuel-ts/math'; import { MOCK_CHAIN } from '../../../test/fixtures/chain'; import { MOCK_TX_CREATE_RAW_PAYLOAD, MOCK_TX_MINT_RAW_PAYLOAD, MOCK_TX_SCRIPT_RAW_PAYLOAD, } from '../../../test/fixtures/transaction-summary'; import { calculateTXFeeForSummary } from './calculate-tx-fee-for-summary'...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-summary/input.ts
packages/account/src/providers/transaction-summary/input.ts
import { ErrorCode, FuelError } from '@fuel-ts/errors'; import { BN } from '@fuel-ts/math'; import type { Input, InputCoin, InputContract, InputMessage } from '@fuel-ts/transactions'; import { InputType } from '@fuel-ts/transactions'; /** @hidden */ export function getInputsByTypes<T = Input>(inputs: Input[], types: A...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-summary/status.ts
packages/account/src/providers/transaction-summary/status.ts
import { ErrorCode, FuelError } from '@fuel-ts/errors'; import type { BN } from '@fuel-ts/math'; import { bn } from '@fuel-ts/math'; import type { OutputChange, OutputVariable } from '@fuel-ts/transactions'; import type { TransactionResultReceipt } from '../transaction-response'; import { deserializeProcessedTxOutput,...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-summary/types.ts
packages/account/src/providers/transaction-summary/types.ts
import type { JsonAbi } from '@fuel-ts/abi-coder'; import type { B256Address } from '@fuel-ts/address'; import type { BN, BNInput } from '@fuel-ts/math'; import type { Transaction, Input, Output, TransactionType, OutputChange, OutputVariable, } from '@fuel-ts/transactions'; import type { GqlSuccessStatusFr...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-summary/calculate-tx-fee-for-summary.ts
packages/account/src/providers/transaction-summary/calculate-tx-fee-for-summary.ts
import type { BN } from '@fuel-ts/math'; import { bn } from '@fuel-ts/math'; import type { TransactionCreate, TransactionScript } from '@fuel-ts/transactions'; import { PolicyType, TransactionCoder, TransactionType } from '@fuel-ts/transactions'; import { arrayify } from '@fuel-ts/utils'; import type { GqlFeeParameter...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-summary/assemble-transaction-summary.test.ts
packages/account/src/providers/transaction-summary/assemble-transaction-summary.test.ts
import { BN, bn } from '@fuel-ts/math'; import { arrayify } from '@fuel-ts/utils'; import { MOCK_RECEIPT_CALL, MOCK_RECEIPT_TRANSFER_OUT, MOCK_RECEIPT_RETURN_DATA_1, MOCK_RECEIPT_RETURN_DATA_2, MOCK_RECEIPT_SCRIPT_RESULT, MOCK_TRANSACTION_RAWPAYLOAD, MOCK_TRANSACTION, MOCK_SUCCESS_STATUS, MOCK_FAILUR...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-summary/receipt.ts
packages/account/src/providers/transaction-summary/receipt.ts
import { ReceiptType } from '@fuel-ts/transactions'; import type { TransactionReceiptJson } from '../provider'; import type { TransactionResultReceipt } from '../transaction-response'; import { deserializeReceipt } from '../utils/serialization'; import type { BurnedAsset, MintedAsset } from './types'; /** @deprecate...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-summary/index.ts
packages/account/src/providers/transaction-summary/index.ts
export * from './types'; export * from './output'; export * from './input'; export * from './status'; export * from './operations'; export * from './get-transaction-summary'; export * from './assemble-transaction-summary'; export * from './assemble-transaction-summary-from-serialized'; export * from './receipt'; export...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-summary/output.ts
packages/account/src/providers/transaction-summary/output.ts
import type { Output, OutputChange, OutputCoin, OutputContract, OutputContractCreated, OutputVariable, } from '@fuel-ts/transactions'; import { OutputType } from '@fuel-ts/transactions'; /** @hidden */ export function getOutputsByType<T = Output>(outputs: Output[], type: OutputType) { return outputs.filt...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-summary/assemble-transaction-summary-from-serialized.ts
packages/account/src/providers/transaction-summary/assemble-transaction-summary-from-serialized.ts
import { bn } from '@fuel-ts/math'; import { TransactionCoder } from '@fuel-ts/transactions'; import { arrayify } from '@fuel-ts/utils'; import type { Provider } from '../..'; import { deserializeReceipt, type TransactionSummaryJson } from '../utils/serialization'; import { assembleTransactionSummary } from './assemb...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/providers/transaction-summary/assemble-transaction-summary.ts
packages/account/src/providers/transaction-summary/assemble-transaction-summary.ts
import { bn, type BN } from '@fuel-ts/math'; import { PolicyType, TransactionCoder, type Transaction } from '@fuel-ts/transactions'; import { DateTime, hexlify } from '@fuel-ts/utils'; import type { GasCosts } from '../provider'; import type { TransactionRequest } from '../transaction-request'; import type { Transacti...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/wordlists/index.ts
packages/account/src/wordlists/index.ts
export { english } from './words/english'; export enum Language { 'english' = 'english', }
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/wordlists/words/english.ts
packages/account/src/wordlists/words/english.ts
export const english = [ 'abandon', 'ability', 'able', 'about', 'above', 'absent', 'absorb', 'abstract', 'absurd', 'abuse', 'access', 'accident', 'account', 'accuse', 'achieve', 'acid', 'acoustic', 'acquire', 'across', 'act', 'action', 'actor', 'actress', 'actual', 'ada...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/wordlists/words/english.test.ts
packages/account/src/wordlists/words/english.test.ts
import { createHash } from 'crypto'; import { english } from './english'; const checksum = (wordlists: string[]) => createHash('sha256') .update(Buffer.from(`${wordlists.join('\n')}\n`)) .digest('hex'); /** * @group node */ describe('Checksum word lists', () => { it('should checksum english word list',...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/test-utils/setup-test-provider-and-wallets.ts
packages/account/src/test-utils/setup-test-provider-and-wallets.ts
import { defaultSnapshotConfigs, type SnapshotConfigs } from '@fuel-ts/utils'; import { mergeDeepRight } from 'ramda'; import type { PartialDeep } from 'type-fest'; import type { ProviderOptions } from '../providers'; import { Provider } from '../providers'; import type { WalletUnlocked } from '../wallet'; import typ...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/test-utils/test-coin.ts
packages/account/src/test-utils/test-coin.ts
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/test-utils/launchNode.test.ts
packages/account/src/test-utils/launchNode.test.ts
import { ErrorCode } from '@fuel-ts/errors'; import { safeExec, expectToThrowFuelError } from '@fuel-ts/errors/test-utils'; import { defaultSnapshotConfigs, sleep } from '@fuel-ts/utils'; import { waitUntilUnreachable } from '@fuel-ts/utils/test-utils'; import * as childProcessMod from 'child_process'; import * as fsMo...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/test-utils/test-message.test.ts
packages/account/src/test-utils/test-message.test.ts
import { Address } from '@fuel-ts/address'; import { randomBytes } from '@fuel-ts/crypto'; import { hexlify } from '@fuel-ts/utils'; import { TestMessage } from './test-message'; /** * @group node */ describe('test-message', () => { test('has default values', () => { const message = new TestMessage().toChainM...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/test-utils/transactionRequest.ts
packages/account/src/test-utils/transactionRequest.ts
import { UTXO_ID_LEN } from '@fuel-ts/abi-coder'; import { getRandomB256 } from '@fuel-ts/address'; import { ZeroBytes32 } from '@fuel-ts/address/configs'; import { randomBytes } from '@fuel-ts/crypto'; import { bn } from '@fuel-ts/math'; import { InputType } from '@fuel-ts/transactions'; import { hexlify } from '@fuel...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/test-utils/setup-test-provider-and-wallets.test.ts
packages/account/src/test-utils/setup-test-provider-and-wallets.test.ts
import type { Address } from '@fuel-ts/address'; import { randomBytes } from '@fuel-ts/crypto'; import { ErrorCode } from '@fuel-ts/errors'; import { expectToThrowFuelError, safeExec } from '@fuel-ts/errors/test-utils'; import { bn, toNumber } from '@fuel-ts/math'; import { arrayify, defaultSnapshotConfigs, hexlify } f...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/test-utils/test-asset-id.ts
packages/account/src/test-utils/test-asset-id.ts
import { randomBytes } from '@fuel-ts/crypto'; import { hexlify } from '@fuel-ts/utils'; export class TestAssetId { public static A = new TestAssetId( '0x0101010101010101010101010101010101010101010101010101010101010101' ); public static B = new TestAssetId( '0x0202020202020202020202020202020202020202020...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/test-utils/resources.ts
packages/account/src/test-utils/resources.ts
import { BYTES_32, UTXO_ID_LEN } from '@fuel-ts/abi-coder'; import { Address } from '@fuel-ts/address'; import { ZeroBytes32 } from '@fuel-ts/address/configs'; import { randomBytes } from '@fuel-ts/crypto'; import { bn } from '@fuel-ts/math'; import { hexlify } from '@fuel-ts/utils'; import type { Coin, MessageCoin } ...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/test-utils/test-message.ts
packages/account/src/test-utils/test-message.ts
import { Address } from '@fuel-ts/address'; import { randomBytes } from '@fuel-ts/crypto'; import { bn, type BN } from '@fuel-ts/math'; import type { SnapshotConfigs } from '@fuel-ts/utils'; import { hexlify } from '@fuel-ts/utils'; interface TestMessageSpecs { sender: Address; recipient: Address; nonce: string;...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/test-utils/wallet-config.test.ts
packages/account/src/test-utils/wallet-config.test.ts
import { randomBytes } from '@fuel-ts/crypto'; import { FuelError } from '@fuel-ts/errors'; import { expectToThrowFuelError } from '@fuel-ts/errors/test-utils'; import { hexlify } from '@fuel-ts/utils'; import { TestAssetId } from './test-asset-id'; import type { WalletsConfigOptions } from './wallet-config'; import {...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/test-utils/wallet-config.ts
packages/account/src/test-utils/wallet-config.ts
import { randomBytes } from '@fuel-ts/crypto'; import { FuelError } from '@fuel-ts/errors'; import { bn, type BigNumberish } from '@fuel-ts/math'; import { defaultSnapshotConfigs, hexlify, type SnapshotConfigs } from '@fuel-ts/utils'; import type { PartialDeep } from 'type-fest'; import { WalletUnlocked } from '../wal...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/test-utils/launchNode.ts
packages/account/src/test-utils/launchNode.ts
import { BYTES_32 } from '@fuel-ts/abi-coder'; import { randomBytes, randomUUID } from '@fuel-ts/crypto'; import { FuelError } from '@fuel-ts/errors'; import type { SnapshotConfigs } from '@fuel-ts/utils'; import { defaultConsensusKey, hexlify, defaultSnapshotConfigs } from '@fuel-ts/utils'; import { existsSync, mkdirS...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/signer/signer.ts
packages/account/src/signer/signer.ts
import { Address } from '@fuel-ts/address'; import { randomBytes } from '@fuel-ts/crypto'; import { hash } from '@fuel-ts/hasher'; import { toBytes } from '@fuel-ts/math'; import type { BytesLike } from '@fuel-ts/utils'; import { hexlify, concat, arrayify } from '@fuel-ts/utils'; import { secp256k1 } from '@noble/curve...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/signer/index.ts
packages/account/src/signer/index.ts
export * from './signer';
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/signer/signer.test.ts
packages/account/src/signer/signer.test.ts
import { hashMessage, sha256 } from '@fuel-ts/hasher'; import { arrayify } from '@fuel-ts/utils'; import { Signer } from './signer'; /** * @group node * @group browser */ describe('Signer', () => { const expectedPrivateKey = '0x5f70feeff1f229e4a95e1056e8b4d80d0b24b565674860cc213bdb07127ce1b1'; const expectedPu...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/mnemonic/mnemonic.ts
packages/account/src/mnemonic/mnemonic.ts
import { randomBytes, pbkdf2, computeHmac } from '@fuel-ts/crypto'; import { ErrorCode, FuelError } from '@fuel-ts/errors'; import { sha256 } from '@fuel-ts/hasher'; import type { BytesLike } from '@fuel-ts/utils'; import { arrayify, hexlify, concat, dataSlice, encodeBase58, toUtf8Bytes } from '@fuel-ts/utils'; import...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/mnemonic/utils.ts
packages/account/src/mnemonic/utils.ts
import { ErrorCode, FuelError } from '@fuel-ts/errors'; import { sha256 } from '@fuel-ts/hasher'; import type { BytesLike } from '@fuel-ts/utils'; import { arrayify } from '@fuel-ts/utils'; /* Mnemonic phrase composed by words from the provided wordlist it can be a text or a array of words */ export type MnemonicPhras...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/mnemonic/utils.test.ts
packages/account/src/mnemonic/utils.test.ts
import { getWords } from './utils'; /** * @group node * @group browser */ describe('mnemonic utils', () => { const words = ['a', 'b', 'c']; test('should get words from mnemonic string', () => { expect(getWords('a b c')).toStrictEqual(words); }); test('should get words from mnemonic string (w/ multiple...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/mnemonic/index.ts
packages/account/src/mnemonic/index.ts
export { default as Mnemonic, MNEMONIC_SIZES } from './mnemonic'; export type { MnemonicPhrase } from './utils';
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/src/mnemonic/mnemonic.test.ts
packages/account/src/mnemonic/mnemonic.test.ts
import { randomBytes } from '@fuel-ts/crypto'; import MnemonicSpec from '../../test/fixtures/mnemonic-specs'; import Mnemonic from './mnemonic'; /** * @group node * @group browser */ describe('Mnemonic', () => { const mnemonic = new Mnemonic(); test('Word list invalid should throw', () => { expect(() => ...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/predicate-functions.test.ts
packages/account/test/predicate-functions.test.ts
import { Predicate } from '../src/predicate'; import { setupTestProviderAndWallets } from '../src/test-utils'; import { predicateAbi } from './fixtures/predicate-abi'; import { predicateBytecode } from './fixtures/predicate-bytecode'; /** * @group node * @group browser */ describe('Predicate', () => { describe('...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fuel-core-schema.test.ts
packages/account/test/fuel-core-schema.test.ts
import { safeExec } from '@fuel-ts/errors/test-utils'; import { execSync } from 'child_process'; import type { BinaryToTextEncoding } from 'crypto'; import { createHash } from 'crypto'; import { readFile } from 'fs/promises'; const FUEL_CORE_SCHEMA_FILE_PATH = 'packages/account/src/providers/fuel-core-schema.graphql';...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fuel-wallet-connector.send-transaction.test.ts
packages/account/test/fuel-wallet-connector.send-transaction.test.ts
import { Account } from '../src/account'; import { Fuel } from '../src/connectors/fuel'; import { ScriptTransactionRequest } from '../src/providers'; import { setupTestProviderAndWallets } from '../src/test-utils'; import { MockSendTransactionConnector } from './fixtures/mocked-send-transaction-connector'; async func...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/optimistic-concurrency-handling.test.ts
packages/account/test/optimistic-concurrency-handling.test.ts
import { ErrorCode } from '@fuel-ts/errors'; import { expectToThrowFuelError } from '@fuel-ts/errors/test-utils'; import { sleep } from '@fuel-ts/utils'; import { Provider } from '../src/providers'; import { type LaunchNodeOptions, setupTestProviderAndWallets } from '../src/test-utils'; import { getFetchOperationsByN...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/auto-retry-fetch.test.ts
packages/account/test/auto-retry-fetch.test.ts
import * as autoRetryFetchMod from '../src/providers/utils/auto-retry-fetch'; import type { RetryOptions } from '../src/providers/utils/auto-retry-fetch'; import { setupTestProviderAndWallets } from '../src/test-utils'; /** * @group node */ describe('Provider correctly', () => { afterEach(() => { vi.restoreAll...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fuel-wallet-connector.browser.test.ts
packages/account/test/fuel-wallet-connector.browser.test.ts
import type { StorageAbstract } from '../src'; import { Fuel } from '../src/connectors/fuel'; import { LocalStorage } from '../src/connectors/types'; import { dispatchFuelConnectorEvent } from '../src/connectors/utils'; import { MockConnector } from './fixtures/mocked-connector'; import { promiseCallback } from './fix...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fuel-wallet-connector.test.ts
packages/account/test/fuel-wallet-connector.test.ts
import { Address } from '@fuel-ts/address'; import { ZeroBytes32 } from '@fuel-ts/address/configs'; import { ErrorCode, FuelError } from '@fuel-ts/errors'; import { expectToThrowFuelError } from '@fuel-ts/errors/test-utils'; import type { BN } from '@fuel-ts/math'; import { bn } from '@fuel-ts/math'; import { hexlify, ...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/block-sensitive-operations.test.ts
packages/account/test/block-sensitive-operations.test.ts
import { hexlify, sleep } from '@fuel-ts/utils'; import { Provider, type WalletUnlocked } from '../src'; import { setupTestProviderAndWallets } from '../src/test-utils'; import { getFetchOperationsByName } from './utils/getFetchOperation'; async function createTransfer(wallet: WalletUnlocked) { const baseAssetId =...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fixtures/transaction-request.ts
packages/account/test/fixtures/transaction-request.ts
import type { ChangeTransactionRequestOutput, CoinTransactionRequestInput, CoinTransactionRequestOutput, } from '../../src'; import { ScriptTransactionRequest } from '../../src/providers/transaction-request/script-transaction-request'; export const SCRIPT_TX_COIN_REQUEST_INPUT: CoinTransactionRequestInput = { ...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fixtures/chain.ts
packages/account/test/fixtures/chain.ts
import { GqlConsensusParametersVersion, GqlContractParametersVersion, GqlFeeParametersVersion, GqlPredicateParametersVersion, GqlScriptParametersVersion, GqlTxParametersVersion, type GqlChainInfoFragment, } from '../../src/providers/__generated__/operations'; export const MOCK_CHAIN: GqlChainInfoFragment...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fixtures/generate-accounts.ts
packages/account/test/fixtures/generate-accounts.ts
import { Address } from '@fuel-ts/address'; export function generateAccounts(total: number) { return new Array(total).fill(0).map(() => Address.fromRandom().toString()); }
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fixtures/receipts.ts
packages/account/test/fixtures/receipts.ts
import { GqlReceiptType } from '../../src/providers/__generated__/operations'; import type { TransactionReceiptJson } from '../../src/providers/provider'; export const MOCK_GQL_RECEIPT_FRAGMENT: TransactionReceiptJson = { receiptType: GqlReceiptType.Call, pc: '15488', is: '15488', to: '0xfc69a2f25c26312fbecc7f...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fixtures/promise-callback.ts
packages/account/test/fixtures/promise-callback.ts
import type { Mock } from 'vitest'; import { deferPromise, type DeferPromise } from '../../src/connectors/utils'; export type PromiseCallback = Mock & { promise: DeferPromise; }; export function promiseCallback() { const defer = deferPromise(); // eslint-disable-next-line @typescript-eslint/no-explicit-any c...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fixtures/hdwallet-spec.ts
packages/account/test/fixtures/hdwallet-spec.ts
export default { bip32AccountsFromSeed: { bip32_xprv: 'xprv9s21ZrQH143K4WUY1LpjjFbM53PsQfoVBQT8QiuUYMUMjxEejxxUUjq8vHiHPnbrmMZArbBCiznuwAUMvgcZYG9P3QNnv82NbQ99pSJGFwp', mnemonic: 'fragile silver alley worth float lizard memory amazing fee race escape rotate evil mystery coyote', seed: '0xfb4b1...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fixtures/mocked-connector.ts
packages/account/test/fixtures/mocked-connector.ts
/* eslint-disable @typescript-eslint/require-await */ import type { HashableMessage } from '@fuel-ts/hasher'; import { setTimeout } from 'timers/promises'; import type { PartialDeep } from 'type-fest'; import type { TransactionRequestLike, WalletUnlocked, FuelABI, ConnectorMetadata, Network, SelectNetwork...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fixtures/predicate-bytecode.ts
packages/account/test/fixtures/predicate-bytecode.ts
export const predicateBytecode = '0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8';
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fixtures/mnemonic-specs.ts
packages/account/test/fixtures/mnemonic-specs.ts
export default [ { entropy: '0x0c1e24e5917779d297e14d45f14e1a1a', mnemonic: 'army van defense carry jealous true garbage claim echo media make crunch', seed: '0x5b56c417303faa3fcba7e57400e120a0ca83ec5a4fc9ffba757fbe63fbd77a89a1a3be4c67196f57c39a88b76373733891bfaba16ed27a813ceed498804c0570', bip32_xprv...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fixtures/wallet-spec.ts
packages/account/test/fixtures/wallet-spec.ts
export default { mnemonic: 'fragile silver alley worth float lizard memory amazing fee race escape rotate evil mystery coyote', seed: '0xfb4b1710a9ab55d8dc19b7633f3d50f6f16c73649c12ae5f00a1e443c72b8d16bf95ab9a2c7a53036b5ed8c8139fab460b86536b8cf0a4c805e272edc64252ae', account_0: { path: "m/44'/1179993420'/...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fixtures/predicate-abi.ts
packages/account/test/fixtures/predicate-abi.ts
import type { JsonAbi } from '@fuel-ts/abi-coder'; export const predicateAbi: JsonAbi = { programType: 'predicate', specVersion: '1', encodingVersion: '1', concreteTypes: [ { type: 'bool', concreteTypeId: 'b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903', }, { typ...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fixtures/wallet-unlocked.ts
packages/account/test/fixtures/wallet-unlocked.ts
import { ScriptTransactionRequest } from '../../src/providers'; export const SCRIPT_TX_REQUEST = new ScriptTransactionRequest({ gasLimit: 5_000, script: '0x', scriptData: Uint8Array.from([]), tip: 5, maxFee: 20_000, maturity: 0, witnessLimit: 5000, inputs: [ { type: 0, id: '0x0000000000...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fixtures/messageProof.ts
packages/account/test/fixtures/messageProof.ts
import { Address } from '@fuel-ts/address'; import { bn } from '@fuel-ts/math'; import { GqlHeaderVersion, type GqlGetMessageProofQuery, } from '../../src/providers/__generated__/operations'; import type { MessageProof } from '../../src/providers/message'; export const MESSAGE_PROOF_RAW_RESPONSE: GqlGetMessagePro...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fixtures/messageStatus.ts
packages/account/test/fixtures/messageStatus.ts
import { GqlMessageState, type GqlGetMessageStatusQuery, } from '../../src/providers/__generated__/operations'; export const messageStatusResponse: Omit<GqlGetMessageStatusQuery['messageStatus'], '__typename'> = { state: GqlMessageState.Spent, };
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fixtures/inputs-and-outputs.ts
packages/account/test/fixtures/inputs-and-outputs.ts
import { getRandomB256 } from '@fuel-ts/address'; import { ZeroBytes32 } from '@fuel-ts/address/configs'; import { bn } from '@fuel-ts/math'; import type { InputCoin, InputMessage } from '@fuel-ts/transactions'; import { InputType, OutputType } from '@fuel-ts/transactions'; import { ASSET_A } from '@fuel-ts/utils/test-...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fixtures/transaction-summary.ts
packages/account/test/fixtures/transaction-summary.ts
import type { JsonAbi } from '@fuel-ts/abi-coder'; import { bn } from '@fuel-ts/math'; import type { InputCoin, InputContract, InputMessage, OutputChange, OutputCoin, OutputContract, OutputContractCreated, OutputVariable, Transaction, } from '@fuel-ts/transactions'; import { InputType, OutputType, Rec...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fixtures/index.ts
packages/account/test/fixtures/index.ts
export * from './messageProof'; export * from './messageStatus';
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fixtures/predicate-multi-args.ts
packages/account/test/fixtures/predicate-multi-args.ts
import type { BigNumberish } from '@fuel-ts/math'; import { decompressBytecode } from '@fuel-ts/utils'; import { Predicate } from '../../src'; import type { Provider } from '../../src'; const abi = { programType: 'predicate', specVersion: '1', encodingVersion: '1', concreteTypes: [ { type: 'bool', ...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fixtures/assets.ts
packages/account/test/fixtures/assets.ts
/** * Verified Eth Asset */ export const MOCK_BASE_ASSET = { name: 'Ethereum', symbol: 'ETH', icon: 'https://verified-assets.fuel.network/images/eth.svg', networks: [ { type: 'ethereum', chain: 'sepolia', decimals: 18, chainId: 11155111, __typename: 'AssetNetworkEthereum', ...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fixtures/wallet-manager-spec.ts
packages/account/test/fixtures/wallet-manager-spec.ts
export default { mnemonic: 'fragile silver alley worth float lizard memory amazing fee race escape rotate evil mystery coyote', seed: '0xfb4b1710a9ab55d8dc19b7633f3d50f6f16c73649c12ae5f00a1e443c72b8d16bf95ab9a2c7a53036b5ed8c8139fab460b86536b8cf0a4c805e272edc64252ae', account_0: { path: "m/44'/1179993420'/...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fixtures/nodeInfo.ts
packages/account/test/fixtures/nodeInfo.ts
import type { GqlNodeInfoFragment } from '../../src/providers/__generated__/operations'; export const MOCK_NODE_INFO: GqlNodeInfoFragment = { utxoValidation: true, vmBacktrace: true, maxTx: '4064', maxDepth: '10', nodeVersion: '0.22.0', indexation: { balances: false, coinsToSpend: false, assetM...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/fixtures/mocked-send-transaction-connector.ts
packages/account/test/fixtures/mocked-send-transaction-connector.ts
import { transactionRequestify } from '../../src'; import type { TransactionRequestLike, AccountSendTxParams, ScriptTransactionRequest, TransactionStateFlag, TransactionResponse, } from '../../src'; import { MockConnector } from './mocked-connector'; export class MockSendTransactionConnector extends MockCon...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/utils/getFetchOperation.ts
packages/account/test/utils/getFetchOperation.ts
import type { MockInstance } from 'vitest'; interface FetchOperation { url: string | URL | Request; method: string; operationName: string; extensions: { required_fuel_block_height: number; [key: string]: unknown; }; } export const getFetchOperationBody = (fetchSpy: MockInstance<typeof fetch>): Fetch...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/account/test/utils/mockIncompabileVersions.ts
packages/account/test/utils/mockIncompabileVersions.ts
import * as fuelTsVersionsMod from '@fuel-ts/versions'; import { versions } from '@fuel-ts/versions'; export const mockIncompatibleVersions = (opts: { isMajorMismatch: boolean; isMinorMismatch: boolean; }) => { const mismatch = (current: string) => (current === '0' ? 1 : parseInt(current, 10) - 1); const { is...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/merkle/tsup.config.ts
packages/merkle/tsup.config.ts
import { index } from '@internal/tsup'; export default index;
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/merkle/src/index.ts
packages/merkle/src/index.ts
export * from './binary'; export * from './sparse';
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/merkle/src/sparse/deepSparseMerkleSubTree.ts
packages/merkle/src/sparse/deepSparseMerkleSubTree.ts
import { decompactProof, verifyProof } from './proofs'; import { SparseMerkleTree } from './sparseMerkleTree'; import type SparseCompactMerkleProof from './types/sparseCompactMerkleProof'; import type SparseMerkleProof from './types/sparseMerkleProof'; export class DeepSparseMerkleSubTree extends SparseMerkleTree { ...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false
FuelLabs/fuels-ts
https://github.com/FuelLabs/fuels-ts/blob/9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2/packages/merkle/src/sparse/sparseMerkleTree.test.ts
packages/merkle/src/sparse/sparseMerkleTree.test.ts
import { hash } from '@fuel-ts/hasher'; import { toHex } from '@fuel-ts/math'; import { DeepSparseMerkleSubTree } from './deepSparseMerkleSubTree'; import { SparseMerkleTree } from './sparseMerkleTree'; /** * @group node * @group browser */ describe('Sparse Merkle Tree', () => { it('Update and delete', () => { ...
typescript
Apache-2.0
9a7b69726b3181a0c2c8f0dd2da83e86774ed1b2
2026-01-04T15:46:46.933446Z
false