refactor: move brother_node development artifact to dev/test-nodes subdirectory
Development Artifact Cleanup: ✅ BROTHER_NODE REORGANIZATION: Moved development test node to appropriate location - dev/test-nodes/brother_node/: Moved from root directory for better organization - Contains development configuration, test logs, and test chain data - No impact on production systems - purely development/testing artifact ✅ DEVELOPMENT ARTIFACTS IDENTIFIED: - Chain ID: aitbc-brother-chain (test/development chain) - Ports: 8010 (P2P) and 8011 (RPC) - different from production - Environment: .env file with test configuration - Logs: rpc.log and node.log from development testing session (March 15, 2026) ✅ ROOT DIRECTORY CLEANUP: Removed development clutter from production directory - brother_node/ moved to dev/test-nodes/brother_node/ - Root directory now contains only production-ready components - Development artifacts properly organized in dev/ subdirectory DIRECTORY STRUCTURE IMPROVEMENT: 📁 dev/test-nodes/: Development and testing node configurations 🏗️ Root Directory: Clean production structure with only essential components 🧪 Development Isolation: Test environments separated from production BENEFITS: ✅ Clean Production Directory: No development artifacts in root ✅ Better Organization: Development nodes grouped in dev/ subdirectory ✅ Clear Separation: Production vs development environments clearly distinguished ✅ Maintainability: Easier to identify and manage development components RESULT: Successfully moved brother_node development artifact to dev/test-nodes/ subdirectory, cleaning up the root directory while preserving development testing environment for future use.
This commit is contained in:
43
dev/env/node_modules/ethers/src.ts/transaction/accesslist.ts
generated
vendored
Executable file
43
dev/env/node_modules/ethers/src.ts/transaction/accesslist.ts
generated
vendored
Executable file
@@ -0,0 +1,43 @@
|
||||
import { getAddress } from "../address/index.js";
|
||||
import { assertArgument, isHexString } from "../utils/index.js";
|
||||
|
||||
import type { AccessList, AccessListish } from "./index.js";
|
||||
|
||||
|
||||
function accessSetify(addr: string, storageKeys: Array<string>): { address: string,storageKeys: Array<string> } {
|
||||
return {
|
||||
address: getAddress(addr),
|
||||
storageKeys: storageKeys.map((storageKey, index) => {
|
||||
assertArgument(isHexString(storageKey, 32), "invalid slot", `storageKeys[${ index }]`, storageKey);
|
||||
return storageKey.toLowerCase();
|
||||
})
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a [[AccessList]] from any ethers-supported access-list structure.
|
||||
*/
|
||||
export function accessListify(value: AccessListish): AccessList {
|
||||
if (Array.isArray(value)) {
|
||||
return (<Array<[ string, Array<string>] | { address: string, storageKeys: Array<string>}>>value).map((set, index) => {
|
||||
if (Array.isArray(set)) {
|
||||
assertArgument(set.length === 2, "invalid slot set", `value[${ index }]`, set);
|
||||
return accessSetify(set[0], set[1])
|
||||
}
|
||||
assertArgument(set != null && typeof(set) === "object", "invalid address-slot set", "value", value);
|
||||
return accessSetify(set.address, set.storageKeys);
|
||||
});
|
||||
}
|
||||
|
||||
assertArgument(value != null && typeof(value) === "object", "invalid access list", "value", value);
|
||||
|
||||
const result: Array<{ address: string, storageKeys: Array<string> }> = Object.keys(value).map((addr) => {
|
||||
const storageKeys: Record<string, true> = value[addr].reduce((accum, storageKey) => {
|
||||
accum[storageKey] = true;
|
||||
return accum;
|
||||
}, <Record<string, true>>{ });
|
||||
return accessSetify(addr, Object.keys(storageKeys).sort())
|
||||
});
|
||||
result.sort((a, b) => (a.address.localeCompare(b.address)));
|
||||
return result;
|
||||
}
|
||||
28
dev/env/node_modules/ethers/src.ts/transaction/address.ts
generated
vendored
Executable file
28
dev/env/node_modules/ethers/src.ts/transaction/address.ts
generated
vendored
Executable file
@@ -0,0 +1,28 @@
|
||||
import { getAddress } from "../address/index.js";
|
||||
import { keccak256, SigningKey } from "../crypto/index.js";
|
||||
|
||||
import type { SignatureLike } from "../crypto/index.js";
|
||||
import type { BytesLike } from "../utils/index.js";
|
||||
|
||||
/**
|
||||
* Returns the address for the %%key%%.
|
||||
*
|
||||
* The key may be any standard form of public key or a private key.
|
||||
*/
|
||||
export function computeAddress(key: string | SigningKey): string {
|
||||
let pubkey: string;
|
||||
if (typeof(key) === "string") {
|
||||
pubkey = SigningKey.computePublicKey(key, false);
|
||||
} else {
|
||||
pubkey = key.publicKey;
|
||||
}
|
||||
return getAddress(keccak256("0x" + pubkey.substring(4)).substring(26));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the recovered address for the private key that was
|
||||
* used to sign %%digest%% that resulted in %%signature%%.
|
||||
*/
|
||||
export function recoverAddress(digest: BytesLike, signature: SignatureLike): string {
|
||||
return computeAddress(SigningKey.recoverPublicKey(digest, signature));
|
||||
}
|
||||
14
dev/env/node_modules/ethers/src.ts/transaction/authorization.ts
generated
vendored
Executable file
14
dev/env/node_modules/ethers/src.ts/transaction/authorization.ts
generated
vendored
Executable file
@@ -0,0 +1,14 @@
|
||||
import { getAddress } from "../address/index.js";
|
||||
import { Signature } from "../crypto/index.js";
|
||||
import { getBigInt } from "../utils/index.js";
|
||||
|
||||
import type { Authorization, AuthorizationLike } from "./index.js";
|
||||
|
||||
export function authorizationify(auth: AuthorizationLike): Authorization {
|
||||
return {
|
||||
address: getAddress(auth.address),
|
||||
nonce: getBigInt((auth.nonce != null) ? auth.nonce: 0),
|
||||
chainId: getBigInt((auth.chainId != null)? auth.chainId: 0),
|
||||
signature: Signature.from(auth.signature)
|
||||
};
|
||||
}
|
||||
51
dev/env/node_modules/ethers/src.ts/transaction/index.ts
generated
vendored
Executable file
51
dev/env/node_modules/ethers/src.ts/transaction/index.ts
generated
vendored
Executable file
@@ -0,0 +1,51 @@
|
||||
/**
|
||||
* Each state-changing operation on Ethereum requires a transaction.
|
||||
*
|
||||
* @_section api/transaction:Transactions [about-transactions]
|
||||
*/
|
||||
|
||||
null;
|
||||
|
||||
import type { BigNumberish } from "../utils/maths.js";
|
||||
import type { Signature, SignatureLike } from "../crypto/index.js";
|
||||
|
||||
/**
|
||||
* A single [[AccessList]] entry of storage keys (slots) for an address.
|
||||
*/
|
||||
export type AccessListEntry = { address: string, storageKeys: Array<string> };
|
||||
|
||||
/**
|
||||
* An ordered collection of [[AccessList]] entries.
|
||||
*/
|
||||
export type AccessList = Array<AccessListEntry>;
|
||||
|
||||
/**
|
||||
* Any ethers-supported access list structure.
|
||||
*/
|
||||
export type AccessListish = AccessList |
|
||||
Array<[ string, Array<string> ]> |
|
||||
Record<string, Array<string>>;
|
||||
|
||||
// Keep here?
|
||||
export interface Authorization {
|
||||
address: string;
|
||||
nonce: bigint;
|
||||
chainId: bigint;
|
||||
signature: Signature;
|
||||
}
|
||||
|
||||
export type AuthorizationLike = {
|
||||
address: string;
|
||||
nonce: BigNumberish;
|
||||
chainId: BigNumberish;
|
||||
signature: SignatureLike
|
||||
};
|
||||
|
||||
export { accessListify } from "./accesslist.js";
|
||||
export { authorizationify } from "./authorization.js";
|
||||
export { computeAddress, recoverAddress } from "./address.js";
|
||||
export { Transaction } from "./transaction.js";
|
||||
|
||||
export type {
|
||||
Blob, BlobLike, KzgLibrary, KzgLibraryLike, TransactionLike
|
||||
} from "./transaction.js";
|
||||
1556
dev/env/node_modules/ethers/src.ts/transaction/transaction.ts
generated
vendored
Executable file
1556
dev/env/node_modules/ethers/src.ts/transaction/transaction.ts
generated
vendored
Executable file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user