@byzantine/vault-sdk
Version:
Byzantine Vault SDK for creating and managing vaults on Ethereum for restaking strategies
440 lines (439 loc) • 13.7 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DELEGATOR_ABI = void 0;
exports.DELEGATOR_ABI = [
{
inputs: [
{ internalType: "address", name: "operatorRegistry", type: "address" },
{ internalType: "address", name: "networkRegistry", type: "address" },
{ internalType: "address", name: "vaultFactory", type: "address" },
{
internalType: "address",
name: "operatorVaultOptInService",
type: "address",
},
{
internalType: "address",
name: "operatorNetworkOptInService",
type: "address",
},
{ internalType: "address", name: "delegatorFactory", type: "address" },
{ internalType: "uint64", name: "entityType", type: "uint64" },
],
stateMutability: "nonpayable",
type: "constructor",
},
{ inputs: [], name: "AccessControlBadConfirmation", type: "error" },
{
inputs: [
{ internalType: "address", name: "account", type: "address" },
{ internalType: "bytes32", name: "neededRole", type: "bytes32" },
],
name: "AccessControlUnauthorizedAccount",
type: "error",
},
{ inputs: [], name: "AlreadySet", type: "error" },
{ inputs: [], name: "CheckpointUnorderedInsertion", type: "error" },
{ inputs: [], name: "InsufficientHookGas", type: "error" },
{ inputs: [], name: "InvalidInitialization", type: "error" },
{ inputs: [], name: "InvalidNetwork", type: "error" },
{ inputs: [], name: "NotInitialized", type: "error" },
{ inputs: [], name: "NotInitializing", type: "error" },
{ inputs: [], name: "NotNetwork", type: "error" },
{ inputs: [], name: "NotOperator", type: "error" },
{ inputs: [], name: "NotSlasher", type: "error" },
{ inputs: [], name: "NotVault", type: "error" },
{ inputs: [], name: "ReentrancyGuardReentrantCall", type: "error" },
{
inputs: [
{ internalType: "uint8", name: "bits", type: "uint8" },
{ internalType: "uint256", name: "value", type: "uint256" },
],
name: "SafeCastOverflowedUintDowncast",
type: "error",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint64",
name: "version",
type: "uint64",
},
],
name: "Initialized",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "bytes32",
name: "subnetwork",
type: "bytes32",
},
{
indexed: true,
internalType: "address",
name: "operator",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
{
indexed: false,
internalType: "uint48",
name: "captureTimestamp",
type: "uint48",
},
],
name: "OnSlash",
type: "event",
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: "bytes32", name: "role", type: "bytes32" },
{
indexed: true,
internalType: "bytes32",
name: "previousAdminRole",
type: "bytes32",
},
{
indexed: true,
internalType: "bytes32",
name: "newAdminRole",
type: "bytes32",
},
],
name: "RoleAdminChanged",
type: "event",
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: "bytes32", name: "role", type: "bytes32" },
{
indexed: true,
internalType: "address",
name: "account",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "sender",
type: "address",
},
],
name: "RoleGranted",
type: "event",
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: "bytes32", name: "role", type: "bytes32" },
{
indexed: true,
internalType: "address",
name: "account",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "sender",
type: "address",
},
],
name: "RoleRevoked",
type: "event",
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: "address", name: "hook", type: "address" },
],
name: "SetHook",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "bytes32",
name: "subnetwork",
type: "bytes32",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "SetMaxNetworkLimit",
type: "event",
},
{
inputs: [],
name: "DEFAULT_ADMIN_ROLE",
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "FACTORY",
outputs: [{ internalType: "address", name: "", type: "address" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "HOOK_GAS_LIMIT",
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "HOOK_RESERVE",
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "HOOK_SET_ROLE",
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "NETWORK_REGISTRY",
outputs: [{ internalType: "address", name: "", type: "address" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "OPERATOR_NETWORK_OPT_IN_SERVICE",
outputs: [{ internalType: "address", name: "", type: "address" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "OPERATOR_REGISTRY",
outputs: [{ internalType: "address", name: "", type: "address" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "OPERATOR_VAULT_OPT_IN_SERVICE",
outputs: [{ internalType: "address", name: "", type: "address" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "TYPE",
outputs: [{ internalType: "uint64", name: "", type: "uint64" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "VAULT_FACTORY",
outputs: [{ internalType: "address", name: "", type: "address" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "VERSION",
outputs: [{ internalType: "uint64", name: "", type: "uint64" }],
stateMutability: "pure",
type: "function",
},
{
inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }],
name: "getRoleAdmin",
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
stateMutability: "view",
type: "function",
},
{
inputs: [
{ internalType: "bytes32", name: "role", type: "bytes32" },
{ internalType: "address", name: "account", type: "address" },
],
name: "grantRole",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{ internalType: "bytes32", name: "role", type: "bytes32" },
{ internalType: "address", name: "account", type: "address" },
],
name: "hasRole",
outputs: [{ internalType: "bool", name: "", type: "bool" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "hook",
outputs: [{ internalType: "address", name: "", type: "address" }],
stateMutability: "view",
type: "function",
},
{
inputs: [{ internalType: "bytes", name: "data", type: "bytes" }],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [{ internalType: "bytes32", name: "subnetwork", type: "bytes32" }],
name: "maxNetworkLimit",
outputs: [{ internalType: "uint256", name: "value", type: "uint256" }],
stateMutability: "view",
type: "function",
},
{
inputs: [
{ internalType: "bytes32", name: "subnetwork", type: "bytes32" },
{ internalType: "uint48", name: "timestamp", type: "uint48" },
{ internalType: "bytes", name: "hint", type: "bytes" },
],
name: "maxNetworkLimitAt",
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "network",
outputs: [{ internalType: "address", name: "", type: "address" }],
stateMutability: "view",
type: "function",
},
{
inputs: [
{ internalType: "bytes32", name: "subnetwork", type: "bytes32" },
{ internalType: "address", name: "operator", type: "address" },
{ internalType: "uint256", name: "amount", type: "uint256" },
{ internalType: "uint48", name: "captureTimestamp", type: "uint48" },
{ internalType: "bytes", name: "data", type: "bytes" },
],
name: "onSlash",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "operator",
outputs: [{ internalType: "address", name: "", type: "address" }],
stateMutability: "view",
type: "function",
},
{
inputs: [
{ internalType: "bytes32", name: "role", type: "bytes32" },
{ internalType: "address", name: "callerConfirmation", type: "address" },
],
name: "renounceRole",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{ internalType: "bytes32", name: "role", type: "bytes32" },
{ internalType: "address", name: "account", type: "address" },
],
name: "revokeRole",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [{ internalType: "address", name: "hook_", type: "address" }],
name: "setHook",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{ internalType: "uint96", name: "identifier", type: "uint96" },
{ internalType: "uint256", name: "amount", type: "uint256" },
],
name: "setMaxNetworkLimit",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{ internalType: "bytes32", name: "subnetwork", type: "bytes32" },
{ internalType: "address", name: "operator", type: "address" },
],
name: "stake",
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
stateMutability: "view",
type: "function",
},
{
inputs: [
{ internalType: "bytes32", name: "subnetwork", type: "bytes32" },
{ internalType: "address", name: "operator", type: "address" },
{ internalType: "uint48", name: "timestamp", type: "uint48" },
{ internalType: "bytes", name: "hints", type: "bytes" },
],
name: "stakeAt",
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
stateMutability: "view",
type: "function",
},
{
inputs: [
{ internalType: "address", name: "target", type: "address" },
{ internalType: "bytes", name: "data", type: "bytes" },
],
name: "staticDelegateCall",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }],
name: "supportsInterface",
outputs: [{ internalType: "bool", name: "", type: "bool" }],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "vault",
outputs: [{ internalType: "address", name: "", type: "address" }],
stateMutability: "view",
type: "function",
},
];