Variable ENDPOINT_ABIConst
ENDPOINT_ABI: readonly [
{
anonymous: false;
inputs: readonly [
{
indexed: false;
internalType: "uint8";
name: "version";
type: "uint8";
},
];
name: "Initialized";
type: "event";
},
{
anonymous: false;
inputs: readonly [
{
indexed: true;
internalType: "address";
name: "previousOwner";
type: "address";
},
{
indexed: true;
internalType: "address";
name: "newOwner";
type: "address";
},
];
name: "OwnershipTransferred";
type: "event";
},
{
anonymous: false;
inputs: readonly [];
name: "SubmitTransactions";
type: "event";
},
{
inputs: readonly [];
name: "clearinghouse";
outputs: readonly [
{ internalType: "contract IClearinghouse"; name: ""; type: "address" },
];
stateMutability: "view";
type: "function";
},
{
inputs: readonly [
{ internalType: "bytes12"; name: "subaccountName"; type: "bytes12" },
{ internalType: "uint32"; name: "productId"; type: "uint32" },
{ internalType: "uint128"; name: "amount"; type: "uint128" },
];
name: "depositCollateral";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
},
{
inputs: readonly [
{ internalType: "bytes32"; name: "subaccount"; type: "bytes32" },
{ internalType: "uint32"; name: "productId"; type: "uint32" },
{ internalType: "uint128"; name: "amount"; type: "uint128" },
{ internalType: "string"; name: "referralCode"; type: "string" },
];
name: "depositCollateralWithReferral";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
},
{
inputs: readonly [
{ internalType: "bytes12"; name: "subaccountName"; type: "bytes12" },
{ internalType: "uint32"; name: "productId"; type: "uint32" },
{ internalType: "uint128"; name: "amount"; type: "uint128" },
{ internalType: "string"; name: "referralCode"; type: "string" },
];
name: "depositCollateralWithReferral";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
},
{
inputs: readonly [
{ internalType: "uint32"; name: "count"; type: "uint32" },
];
name: "executeSlowModeTransactions";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
},
{
inputs: readonly [
{ internalType: "uint32"; name: "productId"; type: "uint32" },
];
name: "getBook";
outputs: readonly [{ internalType: "address"; name: ""; type: "address" }];
stateMutability: "view";
type: "function";
},
{
inputs: readonly [
{ internalType: "address"; name: "sender"; type: "address" },
];
name: "getNonce";
outputs: readonly [{ internalType: "uint64"; name: ""; type: "uint64" }];
stateMutability: "view";
type: "function";
},
{
inputs: readonly [
{ internalType: "uint32"; name: "productId"; type: "uint32" },
];
name: "getPriceX18";
outputs: readonly [
{ internalType: "int128"; name: "priceX18"; type: "int128" },
];
stateMutability: "view";
type: "function";
},
{
inputs: readonly [
{ internalType: "uint32"; name: "healthGroup"; type: "uint32" },
];
name: "getPricesX18";
outputs: readonly [
{
components: readonly [
{ internalType: "int128"; name: "spotPriceX18"; type: "int128" },
{ internalType: "int128"; name: "perpPriceX18"; type: "int128" },
];
internalType: "struct IEndpoint.Prices";
name: "";
type: "tuple";
},
];
stateMutability: "view";
type: "function";
},
{
inputs: readonly [];
name: "getSequencer";
outputs: readonly [{ internalType: "address"; name: ""; type: "address" }];
stateMutability: "view";
type: "function";
},
{
inputs: readonly [
{ internalType: "bytes32"; name: "subaccount"; type: "bytes32" },
];
name: "getSubaccountId";
outputs: readonly [{ internalType: "uint64"; name: ""; type: "uint64" }];
stateMutability: "view";
type: "function";
},
{
inputs: readonly [];
name: "getTime";
outputs: readonly [{ internalType: "uint128"; name: ""; type: "uint128" }];
stateMutability: "view";
type: "function";
},
{
inputs: readonly [];
name: "getVersion";
outputs: readonly [{ internalType: "uint64"; name: ""; type: "uint64" }];
stateMutability: "pure";
type: "function";
},
{
inputs: readonly [
{ internalType: "address"; name: "_sanctions"; type: "address" },
{ internalType: "address"; name: "_sequencer"; type: "address" },
{
internalType: "contract IClearinghouse";
name: "_clearinghouse";
type: "address";
},
{ internalType: "uint64"; name: "slowModeTimeout"; type: "uint64" },
{ internalType: "uint128"; name: "_time"; type: "uint128" },
{ internalType: "int128[]"; name: "_prices"; type: "int128[]" },
];
name: "initialize";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
},
{
inputs: readonly [];
name: "nSubmissions";
outputs: readonly [{ internalType: "uint64"; name: ""; type: "uint64" }];
stateMutability: "view";
type: "function";
},
{
inputs: readonly [];
name: "owner";
outputs: readonly [{ internalType: "address"; name: ""; type: "address" }];
stateMutability: "view";
type: "function";
},
{
inputs: readonly [
{ internalType: "address"; name: "sender"; type: "address" },
{ internalType: "bytes"; name: "transaction"; type: "bytes" },
];
name: "processSlowModeTransaction";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
},
{
inputs: readonly [
{ internalType: "address"; name: ""; type: "address" },
];
name: "referralCodes";
outputs: readonly [{ internalType: "string"; name: ""; type: "string" }];
stateMutability: "view";
type: "function";
},
{
inputs: readonly [
{ internalType: "address"; name: "wallet"; type: "address" },
{ internalType: "bool"; name: "transferable"; type: "bool" },
];
name: "registerTransferableWallet";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
},
{
inputs: readonly [];
name: "renounceOwnership";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
},
{
inputs: readonly [
{ internalType: "bytes32"; name: "subaccount"; type: "bytes32" },
];
name: "requireSubaccount";
outputs: readonly [];
stateMutability: "view";
type: "function";
},
{
inputs: readonly [{ internalType: "uint32"; name: ""; type: "uint32" }];
name: "sequencerFee";
outputs: readonly [{ internalType: "int128"; name: ""; type: "int128" }];
stateMutability: "view";
type: "function";
},
{
inputs: readonly [];
name: "sequencerFees";
outputs: readonly [{ internalType: "int128"; name: ""; type: "int128" }];
stateMutability: "view";
type: "function";
},
{
inputs: readonly [
{ internalType: "uint32"; name: "productId"; type: "uint32" },
{ internalType: "address"; name: "book"; type: "address" },
];
name: "setBook";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
},
{
inputs: readonly [
{ internalType: "address"; name: "_sequencer"; type: "address" },
];
name: "setSequencer";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
},
{
inputs: readonly [];
name: "slowModeConfig";
outputs: readonly [
{ internalType: "uint64"; name: "timeout"; type: "uint64" },
{ internalType: "uint64"; name: "txCount"; type: "uint64" },
{ internalType: "uint64"; name: "txUpTo"; type: "uint64" },
];
stateMutability: "view";
type: "function";
},
{
inputs: readonly [{ internalType: "uint64"; name: ""; type: "uint64" }];
name: "slowModeTxs";
outputs: readonly [
{ internalType: "uint64"; name: "executableAt"; type: "uint64" },
{ internalType: "address"; name: "sender"; type: "address" },
{ internalType: "bytes"; name: "tx"; type: "bytes" },
];
stateMutability: "view";
type: "function";
},
{
inputs: readonly [
{ internalType: "bytes"; name: "transaction"; type: "bytes" },
];
name: "submitSlowModeTransaction";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
},
{
inputs: readonly [
{ internalType: "bytes[]"; name: "transactions"; type: "bytes[]" },
];
name: "submitTransactions";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
},
{
inputs: readonly [
{ internalType: "uint64"; name: "idx"; type: "uint64" },
{ internalType: "bytes[]"; name: "transactions"; type: "bytes[]" },
];
name: "submitTransactionsChecked";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
},
{
inputs: readonly [
{ internalType: "uint64"; name: "idx"; type: "uint64" },
{ internalType: "bytes[]"; name: "transactions"; type: "bytes[]" },
{ internalType: "uint256"; name: "gasLimit"; type: "uint256" },
];
name: "submitTransactionsCheckedWithGasLimit";
outputs: readonly [
{ internalType: "uint64"; name: ""; type: "uint64" },
{ internalType: "uint256"; name: ""; type: "uint256" },
];
stateMutability: "nonpayable";
type: "function";
},
{
inputs: readonly [
{ internalType: "address"; name: "newOwner"; type: "address" },
];
name: "transferOwnership";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
},
] = ...