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:
45
dev/env/node_modules/ethers/lib.commonjs/abi/bytes32.js
generated
vendored
Executable file
45
dev/env/node_modules/ethers/lib.commonjs/abi/bytes32.js
generated
vendored
Executable file
@@ -0,0 +1,45 @@
|
||||
"use strict";
|
||||
/**
|
||||
* About bytes32 strings...
|
||||
*
|
||||
* @_docloc: api/utils:Bytes32 Strings
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.decodeBytes32String = exports.encodeBytes32String = void 0;
|
||||
const index_js_1 = require("../utils/index.js");
|
||||
/**
|
||||
* Encodes %%text%% as a Bytes32 string.
|
||||
*/
|
||||
function encodeBytes32String(text) {
|
||||
// Get the bytes
|
||||
const bytes = (0, index_js_1.toUtf8Bytes)(text);
|
||||
// Check we have room for null-termination
|
||||
if (bytes.length > 31) {
|
||||
throw new Error("bytes32 string must be less than 32 bytes");
|
||||
}
|
||||
// Zero-pad (implicitly null-terminates)
|
||||
return (0, index_js_1.zeroPadBytes)(bytes, 32);
|
||||
}
|
||||
exports.encodeBytes32String = encodeBytes32String;
|
||||
/**
|
||||
* Encodes the Bytes32-encoded %%bytes%% into a string.
|
||||
*/
|
||||
function decodeBytes32String(_bytes) {
|
||||
const data = (0, index_js_1.getBytes)(_bytes, "bytes");
|
||||
// Must be 32 bytes with a null-termination
|
||||
if (data.length !== 32) {
|
||||
throw new Error("invalid bytes32 - not 32 bytes long");
|
||||
}
|
||||
if (data[31] !== 0) {
|
||||
throw new Error("invalid bytes32 string - no null terminator");
|
||||
}
|
||||
// Find the null termination
|
||||
let length = 31;
|
||||
while (data[length - 1] === 0) {
|
||||
length--;
|
||||
}
|
||||
// Determine the string value
|
||||
return (0, index_js_1.toUtf8String)(data.slice(0, length));
|
||||
}
|
||||
exports.decodeBytes32String = decodeBytes32String;
|
||||
//# sourceMappingURL=bytes32.js.map
|
||||
Reference in New Issue
Block a user