neo-decompiler 0.8.0

Neo N3 NEF decompiler: parse, disassemble, lift bytecode to high-level pseudocode and C# skeletons, with a CLI, JSON reports, and optional WebAssembly bindings.
Documentation
// This file is @generated by tools/scrape_native_contracts.py. Do not edit manually.

pub struct NativeContractInfo {
    pub name: &'static str,
    pub script_hash: [u8; 20],
    pub methods: &'static [&'static str],
}

pub const NATIVE_CONTRACTS: &[NativeContractInfo] = &[
    NativeContractInfo {
        name: "CryptoLib",
        script_hash: [0x1B, 0xF5, 0x75, 0xAB, 0x11, 0x89, 0x68, 0x84, 0x13, 0x61, 0x0A, 0x35, 0xA1, 0x28, 0x86, 0xCD, 0xE0, 0xB6, 0x6C, 0x72],
        methods: &["Bls12381Add", "Bls12381Deserialize", "Bls12381Equal", "Bls12381Mul", "Bls12381Pairing", "Bls12381Serialize", "Keccak256", "Murmur32", "Sha256", "VerifyWithECDsa", "VerifyWithEd25519", "recoverSecp256K1", "ripemd160", "verifyWithECDsa"],
    },
    NativeContractInfo {
        name: "Notary",
        script_hash: [0x3B, 0xEC, 0x35, 0x31, 0x11, 0x9B, 0xBA, 0xD7, 0x6D, 0xD0, 0x44, 0x92, 0x0B, 0x0D, 0xE6, 0xC3, 0x19, 0x4F, 0xE1, 0xC1],
        methods: &["BalanceOf", "ExpirationOf", "GetMaxNotValidBeforeDelta", "LockDepositUntil", "OnNEP17Payment", "SetMaxNotValidBeforeDelta", "Verify", "Withdraw", "_OnPayment"],
    },
    NativeContractInfo {
        name: "OracleContract",
        script_hash: [0x58, 0x87, 0x17, 0x11, 0x7E, 0x0A, 0xA8, 0x10, 0x72, 0xAF, 0xAB, 0x71, 0xD2, 0xDD, 0x89, 0xFE, 0x7C, 0x4B, 0x92, 0xFE],
        methods: &["Finish", "GetPrice", "Request", "SetPrice", "Verify"],
    },
    NativeContractInfo {
        name: "Governance",
        script_hash: [0x67, 0xCA, 0x70, 0x35, 0x06, 0x63, 0xBF, 0x25, 0x8C, 0xA5, 0x13, 0x04, 0x94, 0x67, 0xC6, 0x05, 0x9D, 0x15, 0xE7, 0x4C],
        methods: &["GetAllCandidates", "GetCandidateVote", "GetCandidates", "GetCommittee", "GetCommitteeAddress", "GetGasPerBlock", "GetNextBlockValidators", "GetRegisterPrice", "GetVoteTarget", "RegisterCandidate", "SetGasPerBlock", "SetRegisterPrice", "UnclaimedGas", "UnregisterCandidate", "Vote"],
    },
    NativeContractInfo {
        name: "PolicyContract",
        script_hash: [0x7B, 0xC6, 0x81, 0xC0, 0xA1, 0xF7, 0x1D, 0x54, 0x34, 0x57, 0xB6, 0x8B, 0xBA, 0x8D, 0x5F, 0x9F, 0xDD, 0x4E, 0x5E, 0xCC],
        methods: &["BlockAccount", "GetAttributeFee", "GetBlockedAccounts", "GetExecFeeFactor", "GetExecPicoFeeFactor", "GetFeePerByte", "GetMaxTraceableBlocks", "GetMaxValidUntilBlockIncrement", "GetMillisecondsPerBlock", "GetStoragePrice", "GetWhitelistFeeContracts", "IsBlocked", "RecoverFund", "RemoveWhitelistFeeContract", "SetAttributeFee", "SetExecFeeFactor", "SetFeePerByte", "SetMaxTraceableBlocks", "SetMaxValidUntilBlockIncrement", "SetMillisecondsPerBlock", "SetStoragePrice", "SetWhitelistFeeContract", "UnblockAccount", "blockAccount", "getAttributeFee", "setAttributeFee"],
    },
    NativeContractInfo {
        name: "TokenManagement",
        script_hash: [0x9F, 0x04, 0x0E, 0xA4, 0xA8, 0x44, 0x8F, 0x01, 0x5A, 0xF6, 0x45, 0x65, 0x9B, 0x0F, 0xB2, 0xAE, 0x7D, 0xC5, 0x00, 0xAE],
        methods: &["BalanceOf", "GetAssetsOfOwner", "GetTokenInfo"],
    },
    NativeContractInfo {
        name: "LedgerContract",
        script_hash: [0xBE, 0xF2, 0x04, 0x31, 0x40, 0x36, 0x2A, 0x77, 0xC1, 0x50, 0x99, 0xC7, 0xE6, 0x4C, 0x12, 0xF7, 0x00, 0xB6, 0x65, 0xDA],
        methods: &["CurrentHash", "CurrentIndex", "GetBlock", "GetTransactionFromBlock", "GetTransactionHeight", "GetTransactionSigners", "GetTransactionVMState", "getTransaction"],
    },
    NativeContractInfo {
        name: "StdLib",
        script_hash: [0xC0, 0xEF, 0x39, 0xCE, 0xE0, 0xE4, 0xE9, 0x25, 0xC6, 0xC2, 0xA0, 0x6A, 0x79, 0xE1, 0x44, 0x0D, 0xD8, 0x6F, 0xCE, 0xAC],
        methods: &["Atoi", "Base58CheckDecode", "Base58CheckEncode", "Base58Decode", "Base58Encode", "Base64Decode", "Base64Encode", "Base64UrlDecode", "Base64UrlEncode", "Deserialize", "HexDecode", "HexEncode", "Itoa", "JsonDeserialize", "JsonSerialize", "MemoryCompare", "MemorySearch", "Serialize", "StrLen", "StringSplit"],
    },
    NativeContractInfo {
        name: "Treasury",
        script_hash: [0xC1, 0x3A, 0x56, 0xC9, 0x83, 0x53, 0xA7, 0xEA, 0x6A, 0x32, 0x4D, 0x9A, 0x83, 0x5D, 0x1B, 0x5B, 0xF2, 0x26, 0x63, 0x15],
        methods: &["OnNEP11Payment", "OnNEP17Payment", "Verify"],
    },
    NativeContractInfo {
        name: "GasToken",
        script_hash: [0xCF, 0x76, 0xE2, 0x8B, 0xD0, 0x06, 0x2C, 0x4A, 0x47, 0x8E, 0xE3, 0x55, 0x61, 0x01, 0x13, 0x19, 0xF3, 0xCF, 0xA4, 0xD2],
        methods: &["BalanceOf", "Decimals", "Symbol", "TotalSupply", "Transfer"],
    },
    NativeContractInfo {
        name: "RoleManagement",
        script_hash: [0xE2, 0x95, 0xE3, 0x91, 0x54, 0x4C, 0x17, 0x8A, 0xD9, 0x4F, 0x03, 0xEC, 0x4D, 0xCD, 0xFF, 0x78, 0x53, 0x4E, 0xCF, 0x49],
        methods: &["DesignateAsRole", "GetDesignatedByRole"],
    },
    NativeContractInfo {
        name: "NeoToken",
        script_hash: [0xF5, 0x63, 0xEA, 0x40, 0xBC, 0x28, 0x3D, 0x4D, 0x0E, 0x05, 0xC4, 0x8E, 0xA3, 0x05, 0xB3, 0xF2, 0xA0, 0x73, 0x40, 0xEF],
        methods: &["BalanceOf", "Decimals", "GetAccountState", "GetAllCandidates", "GetCandidateVote", "GetCandidates", "GetCommittee", "GetCommitteeAddress", "GetGasPerBlock", "GetNextBlockValidators", "GetRegisterPrice", "OnNEP17Payment", "RegisterCandidate", "SetGasPerBlock", "SetRegisterPrice", "Symbol", "TotalSupply", "Transfer", "UnclaimedGas", "UnregisterCandidate", "Vote"],
    },
    NativeContractInfo {
        name: "ContractManagement",
        script_hash: [0xFD, 0xA3, 0xFA, 0x43, 0x46, 0xEA, 0x53, 0x2A, 0x25, 0x8F, 0xC4, 0x97, 0xDD, 0xAD, 0xDB, 0x64, 0x37, 0xC9, 0xFD, 0xFF],
        methods: &["Deploy", "Destroy", "GetContract", "GetContractById", "GetContractHashes", "GetMinimumDeploymentFee", "HasMethod", "IsContract", "SetMinimumDeploymentFee", "Update"],
    },
];