😶🌫️
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"fmt" | |
"log" | |
"strings" | |
) | |
var output bytes.Buffer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.8.2 <0.9.0; | |
import "contracts/BaseRegistry.sol"; | |
error MaximumPontuationExceeded(); | |
error InvalidWithdrawalValue(); | |
error InsufficientBalance(uint balance, uint value); | |
error FailTransferEther(); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { secp256k1 } from "@noble/curves/secp256k1"; | |
import keccak256 from "keccak256"; | |
import { assert } from "node:console"; | |
import RLP, { Input } from "rlp"; | |
import * as viem from "viem"; | |
import { privateKeyToAccount } from "viem/accounts"; | |
const messageToSign = { | |
nonce: 0, | |
gasPrice: viem.parseGwei("20"), |