@kadena/hardhat-chainweb
Version:
Hardhat plugin for Kadena's Chainweb network
22 lines • 1.34 kB
JavaScript
;
/* *************************************************************************** */
/* Network Constants */
Object.defineProperty(exports, "__esModule", { value: true });
exports.VERIFY_ABI = exports.VERIFY_BYTE_CODE = exports.VERIFY_ADDRESS = exports.CHAIN_ID_ABI = exports.CHAIN_ID_ADDRESS = exports.CHAIN_ID_BYTE_CODE = void 0;
const ethers_1 = require("ethers");
// TODO: build the contract at build time and import it here
exports.CHAIN_ID_BYTE_CODE = '0x5f545f526004601cf3';
// the main branch uses the static address so I commented out the dynamic one
exports.CHAIN_ID_ADDRESS = ethers_1.ethers.dataSlice(ethers_1.ethers.id('/Chainweb/Chain/Id/'), 12);
exports.CHAIN_ID_ABI = [
'function chainwebChainId() view returns (uint32)',
];
// FIXME this address is at risk of conflicting with future Ethereum upgrades
// Instead uses something like address(keccak256("/Chainweb/KIP-34/VERIFY/SVP/"))
exports.VERIFY_ADDRESS = ethers_1.ethers.dataSlice(ethers_1.ethers.id('/Chainweb/KIP-34/VERIFY/SVP/'), 12);
// TODO: build the contract at build time and import it here
exports.VERIFY_BYTE_CODE = '0x60203610601f5736601f1901806020608037806080205f3503601f576080f35b5f80fd';
exports.VERIFY_ABI = [
'function verify(bytes memory proof) public pure returns (bytes memory data)',
];
//# sourceMappingURL=network-contracts.js.map