Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
Additional renaming
Browse files Browse the repository at this point in the history
- "ZNT" to "ablock"
- "NAOM" to "Chain"
  • Loading branch information
RobinP122 committed Oct 20, 2023
1 parent cdad97b commit 25488dd
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/interfaces/network.interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ export type INotarySignatureResponse = {
amount: string;
// Burn transaction ID
id: string;
// First ZNT address
// First ABlock address
from: string;
// Number of ZNT addresses that have participated
// Number of ABlock addresses that have participated
cnt: number;
// To Ethereum address
to: string;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/services/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './znt.service';
export * from './ablock.service';
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { SEED } from '../constants';
import { ABlockWallet } from '../../services/znt.service';
import { ABlockWallet } from '../../services/ablock.service';

let znpInstance = new ABlockWallet();
let ablockInstance = new ABlockWallet();

beforeEach(() => {
znpInstance = new ABlockWallet();
ablockInstance = new ABlockWallet();
});

test('handles key-pair re-generation from wallet seed phrase', async () => {
Expand All @@ -20,13 +20,13 @@ test('handles key-pair re-generation from wallet seed phrase', async () => {
'28a7de5c30f8271be690db7a979e1be33d31f6b6aebaa3c82888354ba214c24d',
];

await znpInstance.initFromSeed(
await ablockInstance.initFromSeed(
{ mempoolHost: '', intercomHost: '', passPhrase: 'passphrase' },
SEED,
true,
);

const foundAddresses = await znpInstance.regenAddresses(SEED, utxoAddressList, 6);
const foundAddresses = await ablockInstance.regenAddresses(SEED, utxoAddressList, 6);

// Test to see if we have a success response from the client
expect(foundAddresses.status).toBe('success');
Expand Down
2 changes: 1 addition & 1 deletion src/tests/__tests__/key.mgmt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ test('derives deterministic signable keypairs through ed25519, via seed', () =>
}
});

// NOTE: This test corresponds with `test_construct_valid_addresses` in NAOM
// NOTE: This test corresponds with `test_construct_valid_addresses` in Chain
test('generates a valid payment address with the temporary address structure', () => {
const actual = [
keyMgmt
Expand Down
4 changes: 2 additions & 2 deletions src/tests/__tests__/receipts.mgmt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ test('create transaction for the RECEIVE portion of a receipt-based payment', ()
}
});

// NOTE: This test corresponds with `test_construct_valid_tx_ins_address` in NAOM
// NOTE: This test corresponds with `test_construct_valid_tx_ins_address` in Chain
test('create TxIns address used as `from` value in DdeValues', () => {
const keyPairMap = new Map<string, IKeypair>();
for (const addr of Object.keys(ADDRESS_LIST_TEST)) {
Expand All @@ -380,7 +380,7 @@ test('create TxIns address used as `from` value in DdeValues', () => {
}
});

//NOTE: This test corresponds with `test_construct_valid_tx_in_signable_asset_hash` in NAOM
//NOTE: This test corresponds with `test_construct_valid_tx_in_signable_asset_hash` in Chain
//TODO: Add test for `DataAsset` variant
test('creates a valid signable asset hash value', () => {
const signableTxInAssetHashes: string[] = [
Expand Down

0 comments on commit 25488dd

Please sign in to comment.