UNPKG

@erc7824/nitrolite

Version:

The Nitrolite SDK empowers developers to build high-performance, scalable web3 applications using state channels. It's designed to provide near-instant transactions and significantly improved user experiences by minimizing direct blockchain interactions.

32 lines (31 loc) 1.43 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RPCAppStateIntent = exports.RPCProtocolVersion = exports.RPCTxType = exports.RPCChannelStatus = void 0; var RPCChannelStatus; (function (RPCChannelStatus) { RPCChannelStatus["Open"] = "open"; RPCChannelStatus["Closed"] = "closed"; RPCChannelStatus["Resizing"] = "resizing"; RPCChannelStatus["Challenged"] = "challenged"; })(RPCChannelStatus || (exports.RPCChannelStatus = RPCChannelStatus = {})); var RPCTxType; (function (RPCTxType) { RPCTxType["Transfer"] = "transfer"; RPCTxType["Deposit"] = "deposit"; RPCTxType["Withdrawal"] = "withdrawal"; RPCTxType["AppDeposit"] = "app_deposit"; RPCTxType["AppWithdrawal"] = "app_withdrawal"; RPCTxType["EscrowLock"] = "escrow_lock"; RPCTxType["EscrowUnlock"] = "escrow_unlock"; })(RPCTxType || (exports.RPCTxType = RPCTxType = {})); var RPCProtocolVersion; (function (RPCProtocolVersion) { RPCProtocolVersion["NitroRPC_0_2"] = "NitroRPC/0.2"; RPCProtocolVersion["NitroRPC_0_4"] = "NitroRPC/0.4"; })(RPCProtocolVersion || (exports.RPCProtocolVersion = RPCProtocolVersion = {})); var RPCAppStateIntent; (function (RPCAppStateIntent) { RPCAppStateIntent["Operate"] = "operate"; RPCAppStateIntent["Deposit"] = "deposit"; RPCAppStateIntent["Withdraw"] = "withdraw"; })(RPCAppStateIntent || (exports.RPCAppStateIntent = RPCAppStateIntent = {}));