Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions __tests__/__fixtures__/sample_txs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ export const nftCreationTx = {
weight: 8.000001,
timestamp: 1656543561,
is_voided: false,
signalBits: 0,
nonce: 0,
inputs: [
{
value: 100n,
Expand Down
41 changes: 41 additions & 0 deletions __tests__/__mock_helpers__/get-token.mock.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import { NATIVE_TOKEN_UID } from '../../src/constants';
import { TokenVersion, ITokenData, ITokenMetadata } from '../../src/types';

export const mockGetToken = async (
tokenUid: string
): Promise<ITokenData & Partial<ITokenMetadata>> => {
const tokenMap: Record<string, ITokenData> = {
[NATIVE_TOKEN_UID]: {
version: TokenVersion.NATIVE,
uid: NATIVE_TOKEN_UID,
symbol: 'HTR',
name: 'Hathor',
},
'01': {
version: TokenVersion.DEPOSIT,
uid: '01',
symbol: 'TKN01',
name: 'Token 01',
},
'02': {
version: TokenVersion.FEE,
uid: '02',
symbol: 'FBT',
name: 'Fee Based Token',
},
dbt: {
version: TokenVersion.DEPOSIT,
uid: 'dbt',
symbol: 'DBT',
name: 'Deposit Based Token',
},
fbt: {
version: TokenVersion.FEE,
uid: 'fbt',
symbol: 'FBT',
name: 'Fee Based Token',
},
};

return tokenMap[tokenUid];
};
3 changes: 2 additions & 1 deletion __tests__/integration/configuration/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:

fullnode:
image:
${HATHOR_LIB_INTEGRATION_TESTS_FULLNODE_IMAGE:-hathornetwork/hathor-core:v0.67.0}
${HATHOR_LIB_INTEGRATION_TESTS_FULLNODE_IMAGE:-hathornetwork/hathor-core:experimental-push_fee_header}
command: [
"run_node",
"--listen", "tcp:40404",
Expand Down Expand Up @@ -40,6 +40,7 @@ services:
retries: 10

tx-mining-service:
platform: linux/amd64
image:
${HATHOR_LIB_INTEGRATION_TESTS_TXMINING_IMAGE:-hathornetwork/tx-mining-service}
depends_on:
Expand Down
252 changes: 151 additions & 101 deletions __tests__/integration/configuration/precalculated-wallets.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion __tests__/integration/configuration/privnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ CHECKPOINTS: []

ENABLE_NANO_CONTRACTS: enabled
NC_ON_CHAIN_BLUEPRINT_RESTRICTED: false
AVG_TIME_BETWEEN_BLOCKS: 5
AVG_TIME_BETWEEN_BLOCKS: 1
FEE_PER_OUTPUT: 1

extends: mainnet.yml
Loading
Loading