UNPKG

@sphereon/ssi-sdk-web3.headless-provider

Version:

25 lines 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Web3Method = void 0; exports.without = without; var Web3Method; (function (Web3Method) { Web3Method["RequestAccounts"] = "eth_requestAccounts"; Web3Method["Accounts"] = "eth_accounts"; Web3Method["SendTransaction"] = "eth_sendTransaction"; Web3Method["SwitchEthereumChain"] = "wallet_switchEthereumChain"; Web3Method["AddEthereumChain"] = "wallet_addEthereumChain"; Web3Method["SignMessage"] = "personal_sign"; Web3Method["SignTypedData"] = "eth_signTypedData"; Web3Method["SignTypedDataV1"] = "eth_signTypedData_v1"; Web3Method["SignTypedDataV3"] = "eth_signTypedData_v3"; Web3Method["SignTypedDataV4"] = "eth_signTypedData_v4"; })(Web3Method || (exports.Web3Method = Web3Method = {})); function without(list, item) { const idx = list.indexOf(item); if (idx >= 0) { return list.slice(0, idx).concat(list.slice(idx + 1)); } return list; } //# sourceMappingURL=types.js.map