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

Commit 25488dd

Browse files
committed
Additional renaming
- "ZNT" to "ablock" - "NAOM" to "Chain"
1 parent cdad97b commit 25488dd

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

src/interfaces/network.interfaces.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ export type INotarySignatureResponse = {
118118
amount: string;
119119
// Burn transaction ID
120120
id: string;
121-
// First ZNT address
121+
// First ABlock address
122122
from: string;
123-
// Number of ZNT addresses that have participated
123+
// Number of ABlock addresses that have participated
124124
cnt: number;
125125
// To Ethereum address
126126
to: string;
File renamed without changes.

src/services/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './znt.service';
1+
export * from './ablock.service';

src/tests/__tests__/znt.service.test.ts renamed to src/tests/__tests__/ablock.service.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { SEED } from '../constants';
2-
import { ABlockWallet } from '../../services/znt.service';
2+
import { ABlockWallet } from '../../services/ablock.service';
33

4-
let znpInstance = new ABlockWallet();
4+
let ablockInstance = new ABlockWallet();
55

66
beforeEach(() => {
7-
znpInstance = new ABlockWallet();
7+
ablockInstance = new ABlockWallet();
88
});
99

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

23-
await znpInstance.initFromSeed(
23+
await ablockInstance.initFromSeed(
2424
{ mempoolHost: '', intercomHost: '', passPhrase: 'passphrase' },
2525
SEED,
2626
true,
2727
);
2828

29-
const foundAddresses = await znpInstance.regenAddresses(SEED, utxoAddressList, 6);
29+
const foundAddresses = await ablockInstance.regenAddresses(SEED, utxoAddressList, 6);
3030

3131
// Test to see if we have a success response from the client
3232
expect(foundAddresses.status).toBe('success');

src/tests/__tests__/key.mgmt.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ test('derives deterministic signable keypairs through ed25519, via seed', () =>
9494
}
9595
});
9696

97-
// NOTE: This test corresponds with `test_construct_valid_addresses` in NAOM
97+
// NOTE: This test corresponds with `test_construct_valid_addresses` in Chain
9898
test('generates a valid payment address with the temporary address structure', () => {
9999
const actual = [
100100
keyMgmt

src/tests/__tests__/receipts.mgmt.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ test('create transaction for the RECEIVE portion of a receipt-based payment', ()
355355
}
356356
});
357357

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

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

0 commit comments

Comments
 (0)