Files
aitbc/dev/env/node_modules/micro-eth-signer/utils.d.ts
aitbc 816e258d4c 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.
2026-03-30 17:09:06 +02:00

64 lines
2.7 KiB
TypeScript
Executable File

import { isBytes as _isBytes } from '@noble/hashes/utils';
import { type Coder } from 'micro-packed';
export declare const isBytes: typeof _isBytes;
export type Web3CallArgs = Partial<{
to: string;
from: string;
data: string;
nonce: string;
value: string;
gas: string;
gasPrice: string;
tag: number | 'latest' | 'earliest' | 'pending';
}>;
export type IWeb3Provider = {
ethCall: (args: Web3CallArgs) => Promise<string>;
estimateGas: (args: Web3CallArgs) => Promise<bigint>;
call: (method: string, ...args: any[]) => Promise<any>;
};
export declare const amounts: {
GWEI_PRECISION: number;
ETH_PRECISION: number;
GWEI: bigint;
ETHER: bigint;
maxAmount: bigint;
minGasLimit: bigint;
maxGasLimit: bigint;
maxGasPrice: bigint;
maxNonce: bigint;
maxDataSize: number;
maxInitDataSize: number;
maxChainId: bigint;
maxUint64: bigint;
maxUint256: bigint;
};
export declare const ethHex: Coder<Uint8Array, string>;
export declare const ethHexNoLeadingZero: Coder<Uint8Array, string>;
export declare function add0x(hex: string): string;
export declare function strip0x(hex: string): string;
export declare function numberTo0xHex(num: number | bigint): string;
export declare function hexToNumber(hex: string): bigint;
export declare function isObject(item: unknown): item is Record<string, any>;
export declare function astr(str: unknown): void;
export declare function sign(hash: Uint8Array, privKey: Uint8Array, extraEntropy?: boolean | Uint8Array): import("@noble/curves/abstract/weierstrass").RecoveredSignatureType;
export type RawSig = {
r: bigint;
s: bigint;
};
export type Sig = RawSig | Uint8Array;
export declare function verify(sig: Sig, hash: Uint8Array, publicKey: Uint8Array): boolean;
export declare function initSig(sig: Sig, bit: number): import("@noble/curves/abstract/weierstrass").RecoveredSignatureType;
export declare function cloneDeep<T>(obj: T): T;
export declare function omit<T extends object, K extends Extract<keyof T, string>>(obj: T, ...keys: K[]): Omit<T, K>;
export declare function zip<A, B>(a: A[], b: B[]): [A, B][];
export declare const createDecimal: (precision: number, round?: boolean) => Coder<bigint, string>;
export declare const weieth: Coder<bigint, string>;
export declare const weigwei: Coder<bigint, string>;
export declare const ethDecimal: typeof weieth;
export declare const gweiDecimal: typeof weigwei;
export declare const formatters: {
perCentDecimal(precision: number, price: number): bigint;
formatBigint(amount: bigint, base: bigint, precision: number, fixed?: boolean): string;
fromWei(wei: string | number | bigint): string;
};
//# sourceMappingURL=utils.d.ts.map