Socket
Socket
Sign inDemoInstall

@immersve/payment-protocol-types

Package Overview
Dependencies
0
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.0 to 1.4.1

2

dist/contractInfo.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.contractInfo = void 0;
exports.contractInfo = { "abi": [{ "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint8", "name": "version", "type": "uint8" }], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "_from", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "_lockedFundsId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_value", "type": "uint256" }], "name": "LockedFunds", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "_from", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "_lockedFundsId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_value", "type": "uint256" }], "name": "LockedFundsPaymentConfirmation", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "_to", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "_lockedFundsId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_value", "type": "uint256" }], "name": "LockedFundsRevoked", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "_from", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "_lockedFundsId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_value", "type": "uint256" }], "name": "LockedFundsWithDeposit", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }], "name": "Paused", "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": false, "internalType": "address", "name": "account", "type": "address" }], "name": "Unpaused", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "_from", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "_value", "type": "uint256" }], "name": "UserDeposit", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "_to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "_value", "type": "uint256" }], "name": "UserWithdraw", "type": "event" }, { "stateMutability": "payable", "type": "fallback" }, { "inputs": [], "name": "DEFAULT_ADMIN_ROLE", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "PAUSER_ROLE", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "SETTLER_ROLE", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "balances", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "price", "type": "uint256" }, { "internalType": "uint256", "name": "lockedFundId", "type": "uint256" }], "name": "checkLockedFundPayment", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "price", "type": "uint256" }, { "internalType": "uint256", "name": "lockedFundId", "type": "uint256" }], "name": "confirmLockedFundPayment", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "usdcAmount", "type": "uint256" }], "name": "createLockedFund", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "usdcAmount", "type": "uint256" }], "name": "deposit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "usdcAmount", "type": "uint256" }], "name": "depositAndCreateLockedFund", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "usdcAmount", "type": "uint256" }, { "internalType": "address", "name": "sender", "type": "address" }], "name": "depositAndCreateLockedFundFor", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "usdcAmount", "type": "uint256" }, { "internalType": "address", "name": "sender", "type": "address" }], "name": "depositTo", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sender", "type": "address" }], "name": "getAvailableLockedFundsBalance", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getBalance", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getLockedFunds", "outputs": [{ "components": [{ "internalType": "uint256", "name": "lockedFundId", "type": "uint256" }, { "internalType": "uint256", "name": "timeout", "type": "uint256" }, { "internalType": "uint256", "name": "price", "type": "uint256" }], "internalType": "struct ImmersvePaymentProtocol.AssetLockedFund[]", "name": "", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }], "name": "getRoleAdmin", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sender", "type": "address" }], "name": "getSenderBalance", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sender", "type": "address" }], "name": "getSenderLockedFunds", "outputs": [{ "components": [{ "internalType": "uint256", "name": "lockedFundId", "type": "uint256" }, { "internalType": "uint256", "name": "timeout", "type": "uint256" }, { "internalType": "uint256", "name": "price", "type": "uint256" }], "internalType": "struct ImmersvePaymentProtocol.AssetLockedFund[]", "name": "", "type": "tuple[]" }], "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": [{ "internalType": "address", "name": "_settlerRole", "type": "address" }, { "internalType": "address payable", "name": "_settlementAddress", "type": "address" }, { "internalType": "address", "name": "_usdcSmartContract", "type": "address" }, { "internalType": "uint32", "name": "_defaultTimeoutBlocks", "type": "uint32" }, { "internalType": "uint16", "name": "_safetyBlocks", "type": "uint16" }], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "name": "lockedFunds", "outputs": [{ "internalType": "uint256", "name": "lockedFundId", "type": "uint256" }, { "internalType": "uint256", "name": "timeout", "type": "uint256" }, { "internalType": "uint256", "name": "price", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "paused", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" }], "name": "renounceRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "lockedFundId", "type": "uint256" }], "name": "revokeLockedFund", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "lockedFundId", "type": "uint256" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "bytes", "name": "signature", "type": "bytes" }], "name": "revokeLockedFundMultiSig", "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": "uint16", "name": "_safetyBlocks", "type": "uint16" }], "name": "setSafetyBlocks", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "timeoutBlocks", "type": "uint32" }], "name": "setTimeoutBlocks", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "settlementAddress", "outputs": [{ "internalType": "address payable", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "settlerAddress", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" }], "name": "supportsInterface", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "unpause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "usdcSmartContract", "outputs": [{ "internalType": "contract IERC20Upgradeable", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "usdcSmartContractAddress", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "usdcAmount", "type": "uint256" }], "name": "withdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "usdcAmount", "type": "uint256" }, { "internalType": "address", "name": "sender", "type": "address" }], "name": "withdrawTo", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "stateMutability": "payable", "type": "receive" }], "byteCode": "608060405234801561001057600080fd5b50613140806100206000396000f3fe60806040526004361061021e5760003560e01c806370ef605611610123578063b4e585d0116100ab578063d547741f1161006f578063d547741f146106f8578063d6e2a8ee14610718578063e63ab1e914610738578063f44650ab1461075a578063f738c4a71461077a5761025d565b8063b4e585d014610657578063b6b55f2514610677578063c86283c814610697578063d14402f5146106b7578063d370ff68146106d85761025d565b80638456cb59116100f25780638456cb59146105cd57806391d14854146105e2578063a217fddf14610602578063af07603b14610617578063b25dfded146106375761025d565b806370ef6056146105355780637445e85c146105555780637cfa4dbc1461057757806381604614146105ad5761025d565b806336568abe116101a657806348f7f0991161017557806348f7f099146104855780635265654c146104a55780635c975abb146104dd5780636a44408b146104f557806370aff70f146105155761025d565b806336568abe1461040e5780633f4ba83a1461042e5780634124a6a71461044357806343e1b239146104655761025d565b806324cf803a116101ed57806324cf803a1461035f57806327e235e3146103815780632e1a7d4d146103ae5780632f2ff15d146103ce5780633101020c146103ee5761025d565b806301ffc9a71461029357806312065fe0146102c85780631355d861146102f4578063248a9ca31461032f5761025d565b3661025d5760405162461bcd60e51b815260206004820152600a6024820152694e4f5f5245434549564560b01b60448201526064015b60405180910390fd5b60405162461bcd60e51b815260206004820152600b60248201526a4e4f5f46414c4c4241434b60a81b6044820152606401610254565b34801561029f57600080fd5b506102b36102ae366004612b22565b61079a565b60405190151581526020015b60405180910390f35b3480156102d457600080fd5b5033600090815260ff60205260409020545b6040519081526020016102bf565b34801561030057600080fd5b5061031461030f366004612b61565b6107d1565b604080519384526020840192909252908201526060016102bf565b34801561033b57600080fd5b506102e661034a366004612b8d565b60009081526065602052604090206001015490565b34801561036b57600080fd5b5061037f61037a366004612ba6565b610814565b005b34801561038d57600080fd5b506102e661039c366004612bdb565b60ff6020526000908152604090205481565b3480156103ba57600080fd5b5061037f6103c9366004612b8d565b610ac0565b3480156103da57600080fd5b5061037f6103e9366004612bf8565b610ae7565b3480156103fa57600080fd5b5061037f610409366004612b8d565b610b0c565b34801561041a57600080fd5b5061037f610429366004612bf8565b610b31565b34801561043a57600080fd5b5061037f610baf565b34801561044f57600080fd5b50610458610bcf565b6040516102bf9190612c28565b34801561047157600080fd5b5061037f610480366004612c98565b610c5b565b34801561049157600080fd5b5061037f6104a0366004612b8d565b610c96565b3480156104b157600080fd5b5060fb546104c5906001600160a01b031681565b6040516001600160a01b0390911681526020016102bf565b3480156104e957600080fd5b5060975460ff166102b3565b34801561050157600080fd5b5061037f610510366004612cc7565b610cb0565b34801561052157600080fd5b5061037f610530366004612bf8565b610e88565b34801561054157600080fd5b5061037f610550366004612d32565b610eac565b34801561056157600080fd5b506102e66000805160206130eb83398151915281565b34801561058357600080fd5b506102e6610592366004612bdb565b6001600160a01b0316600090815260ff602052604090205490565b3480156105b957600080fd5b5061037f6105c8366004612bf8565b610eeb565b3480156105d957600080fd5b5061037f610f05565b3480156105ee57600080fd5b506102b36105fd366004612bf8565b610f25565b34801561060e57600080fd5b506102e6600081565b34801561062357600080fd5b50610458610632366004612bdb565b610f50565b34801561064357600080fd5b506102e6610652366004612bdb565b610ff8565b34801561066357600080fd5b5061037f610672366004612b61565b61113c565b34801561068357600080fd5b5061037f610692366004612b8d565b611179565b3480156106a357600080fd5b5061037f6106b2366004612bf8565b611193565b3480156106c357600080fd5b50610101546104c5906001600160a01b031681565b3480156106e457600080fd5b5060fd546104c5906001600160a01b031681565b34801561070457600080fd5b5061037f610713366004612bf8565b6111c5565b34801561072457600080fd5b5061037f610733366004612d63565b6111ea565b34801561074457600080fd5b506102e66000805160206130cb83398151915281565b34801561076657600080fd5b506102e6610775366004612ba6565b611269565b34801561078657600080fd5b5060fc546104c5906001600160a01b031681565b60006001600160e01b03198216637965db0b60e01b14806107cb57506301ffc9a760e01b6001600160e01b03198316145b92915050565b61010060205281600052604060002081815481106107ee57600080fd5b600091825260209091206003909102018054600182015460029092015490935090915083565b61081c611478565b6108246114c0565b6000805160206130eb83398151915261083c81611519565b60405163f44650ab60e01b81526001600160a01b03851660048201526024810184905260448101839052309063f44650ab90606401602060405180830381865afa15801561088e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b29190612e27565b506001600160a01b03841660009081526101006020908152604080832080548251818502810185019093528083529192909190849084015b8282101561093a57838290600052602060002090600302016040518060600160405290816000820154815260200160018201548152602001600282015481525050815260200190600101906108ea565b50505050905060008061094d8386611523565b915091508161096e5760405162461bcd60e51b815260040161025490612e40565b6001600160a01b03871660009081526101006020526040902080548290811061099957610999612e69565b600091825260208083206003909202909101828155600181018390556002018290556001600160a01b038916825260ff905260409020546109da908761158f565b6001600160a01b03888116600090815260ff6020526040908190209290925560fb5460fc54925163a9059cbb60e01b8152928216600484015260248301899052169063a9059cbb906044016020604051808303816000875af1158015610a44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a689190612e7f565b5084876001600160a01b03167f5c06e96f6acc801b39c1141b32179e6d6a67c1fe2b078b4b6dd6eab69cbef70c88604051610aa591815260200190565b60405180910390a350505050610abb600160c955565b505050565b610ac8611478565b610ad06114c0565b610ada81336115a2565b610ae4600160c955565b50565b600082815260656020526040902060010154610b0281611519565b610abb838361193c565b610b14611478565b610b1c6114c0565b610b2681336119c2565b50610ae4600160c955565b6001600160a01b0381163314610ba15760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610254565b610bab8282611c2b565b5050565b6000805160206130cb833981519152610bc781611519565b610ae4611c92565b336000908152610100602090815260408083208054825181850281018501909352808352606094610c569484015b82821015610c4d5783829060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201548152505081526020019060010190610bfd565b50505050611ce4565b905090565b6000805160206130eb833981519152610c7381611519565b5060fd805461ffff909216600160c01b0261ffff60c01b19909216919091179055565b610c9e611478565b610ca66114c0565b610ada8133611e49565b600054610100900460ff1615808015610cd05750600054600160ff909116105b80610cea5750303b158015610cea575060005460ff166001145b610d4d5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610254565b6000805460ff191660011790558015610d70576000805461ff0019166101001790555b610d78611eb2565b610d80611ee1565b610d88611f10565b610d9360003361193c565b610dab6000805160206130cb8339815191528761193c565b610dc36000805160206130eb8339815191528761193c565b60fc80546001600160a01b03199081166001600160a01b038881169190911790925560fb8054821687841690811790915560fd80546001600160c01b031916909117600160a01b63ffffffff8816021761ffff60c01b1916600160c01b61ffff87160217905561010180549091169188169190911790558015610e80576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050565b610e90611478565b610e986114c0565b610ea28282611f37565b610bab600160c955565b6000805160206130eb833981519152610ec481611519565b5060fd805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b610ef3611478565b610efb6114c0565b610ea28282611e49565b6000805160206130cb833981519152610f1d81611519565b610ae4612181565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606000805160206130eb833981519152610f6a81611519565b6001600160a01b0383166000908152610100602090815260408083208054825181850281018501909352808352610ff19492939192909184018215610c4d5783829060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201548152505081526020019060010190610bfd565b9392505050565b6001600160a01b03811660009081526101006020908152604080832080548251818502810185019093528083528493849084015b8282101561107c578382906000526020600020906003020160405180606001604052908160008201548152602001600182015481526020016002820154815250508152602001906001019061102c565b5050505090506000806110a34360fd60189054906101000a900461ffff1661ffff166121be565b905060005b83518161ffff16101561113257838161ffff16815181106110cb576110cb612e69565b60200260200101516000015160000315611120576000848261ffff16815181106110f7576110f7612e69565b60200260200101519050828160200151111561111e5761111b8482604001516121be565b93505b505b8061112a81612eb7565b9150506110a8565b5090949350505050565b611144611478565b61114c6114c0565b6000805160206130eb83398151915261116481611519565b61116e83836121ca565b50610bab600160c955565b611181611478565b6111896114c0565b610ada8133611f37565b61119b611478565b6111a36114c0565b6000805160206130eb8339815191526111bb81611519565b61116e83836115a2565b6000828152606560205260409020600101546111e081611519565b610abb8383611c2b565b6111f2611478565b6111fa6114c0565b600061120f61120885612335565b84846123c8565b9050806112545760405162461bcd60e51b8152602060048201526013602482015272494e56414c49445f534554544c45525f53494760681b6044820152606401610254565b61125e33856121ca565b50610abb600160c955565b6000611273611478565b600083116112bb5760405162461bcd60e51b8152602060048201526015602482015274494e56414c49445f5041594d454e545f505249434560581b6044820152606401610254565b6001600160a01b038416600090815260ff60205260409020548311156112f35760405162461bcd60e51b815260040161025490612ed8565b60fd5460009061130f904390600160c01b900461ffff166121be565b6001600160a01b03861660009081526101006020908152604080832080548251818502810185019093528083529495509293909291849084015b828210156113995783829060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201548152505081526020019060010190611349565b505050509050600080806113ad8488611523565b91509150816113ce5760405162461bcd60e51b815260040161025490612e40565b60008482815181106113e2576113e2612e69565b60200260200101519050858160200151111561140a5760408101516114079085612f02565b93505b8884101561145a5760405162461bcd60e51b815260206004820152601960248201527f494e53554646494349454e545f4c4f434b45445f46554e4453000000000000006044820152606401610254565b85816020015161146a9190612f15565b9a9950505050505050505050565b60975460ff16156114be5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610254565b565b600260c954036115125760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610254565b600260c955565b610ae4813361240b565b60008060005b84518161ffff16101561157f5783858261ffff168151811061154d5761154d612e69565b6020026020010151600001510361156d576001925061ffff169050611588565b8061157781612eb7565b915050611529565b50600080915091505b9250929050565b6000610ff18284612f15565b600160c955565b6115aa611478565b6001600160a01b0381166115f65760405162461bcd60e51b81526020600482015260136024820152724e554c4c5f53454e4445525f4144445245535360681b6044820152606401610254565b600082116116325760405162461bcd60e51b815260206004820152600960248201526808a9aa0a8b2bea8a4b60bb1b6044820152606401610254565b6001600160a01b038116600090815260ff60205260409020548281101561166b5760405162461bcd60e51b815260040161025490612ed8565b6001600160a01b03821660009081526101006020908152604080832080548251818502810185019093528083529192909190849084015b828210156116f257838290600052602060002090600302016040518060600160405290816000820154815260200160018201548152602001600282015481525050815260200190600101906116a2565b5050505090506000806117194360fd60189054906101000a900461ffff1661ffff166121be565b905060005b83518161ffff1610156117e1576000848261ffff168151811061174357611743612e69565b60200260200101519050806000015160000361175f57506117cf565b8281602001511115611780576117798482604001516121be565b93506117cd565b6001600160a01b038716600090815261010060205260409020805461ffff84169081106117af576117af612e69565b60009182526020822060039091020181815560018101829055600201555b505b806117d981612eb7565b91505061171e565b5060006117ee858461158f565b9050868110156118405760405162461bcd60e51b815260206004820152601a60248201527f4e4f545f454e4f5547485f46554e44535f415641494c41424c450000000000006044820152606401610254565b6001600160a01b038616600090815260ff6020526040902054611863908861158f565b6001600160a01b03878116600081815260ff6020526040908190209390935560fb54925163a9059cbb60e01b81526004810191909152602481018a905291169063a9059cbb906044016020604051808303816000875af11580156118cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ef9190612e7f565b50856001600160a01b03167f98824d89d47225910d3e61aa38b640d29d58b43e2dc47b4d986a588c88e0a2a88860405161192b91815260200190565b60405180910390a250505050505050565b6119468282610f25565b610bab5760008281526065602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561197e3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006119cc611478565b6001600160a01b038216600090815260ff6020526040902054831115611a045760405162461bcd60e51b815260040161025490612ed8565b611a1260fe80546001019055565b6000611a1d60fe5490565b905060006040518060600160405280838152602001611a544360fd60149054906101000a900463ffffffff1663ffffffff166121be565b815260200186905260fd54909150600090611a7b904390600160c01b900461ffff166121be565b9050600080611b236101006000896001600160a01b03166001600160a01b03168152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015611b195783829060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201548152505081526020019060010190611ac9565b5050505084612464565b915091508115611b8f576001600160a01b038716600090815261010060205260409020805485919083908110611b5b57611b5b612e69565b9060005260206000209060030201600082015181600001556020820151816001015560408201518160020155905050611bdb565b6001600160a01b03871660009081526101006020908152604080832080546001818101835591855293839020885160039095020193845591870151918301919091558501516002909101555b84876001600160a01b03167fc61053a33abb5e94c106d3f21e6e5a7cb1d1160b62109c4207797749de780c298a604051611c1791815260200190565b60405180910390a350929695505050505050565b611c358282610f25565b15610bab5760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b611c9a6124ee565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60606000805b83518161ffff161015611d4057838161ffff1681518110611d0d57611d0d612e69565b602002602001015160000151600014611d2e57611d2b600183612f02565b91505b80611d3881612eb7565b915050611cea565b5060008167ffffffffffffffff811115611d5c57611d5c612d4d565b604051908082528060200260200182016040528015611db157816020015b611d9e60405180606001604052806000815260200160008152602001600081525090565b815260200190600190039081611d7a5790505b5090506000805b85518161ffff16101561113257858161ffff1681518110611ddb57611ddb612e69565b602002602001015160000151600014611e3757858161ffff1681518110611e0457611e04612e69565b6020026020010151838381518110611e1e57611e1e612e69565b6020908102919091010152611e34600183612f02565b91505b80611e4181612eb7565b915050611db8565b611e51611478565b611e5b8282611f37565b6000611e6783836119c2565b905080826001600160a01b03167f6a98889be3792b1128048878a7de18ab1b6661962844e991d9d26a1b013866d685604051611ea591815260200190565b60405180910390a3505050565b600054610100900460ff16611ed95760405162461bcd60e51b815260040161025490612f28565b6114be612537565b600054610100900460ff16611f085760405162461bcd60e51b815260040161025490612f28565b6114be61256a565b600054610100900460ff166114be5760405162461bcd60e51b815260040161025490612f28565b611f3f611478565b6001600160a01b038116611f8b5760405162461bcd60e51b81526020600482015260136024820152724e554c4c5f53454e4445525f4144445245535360681b6044820152606401610254565b60008211611fc75760405162461bcd60e51b815260206004820152600960248201526808a9aa0a8b2bea8a4b60bb1b6044820152606401610254565b60fb54604051636eb1769f60e11b81526001600160a01b038381166004830152306024830152600092169063dd62ed3e90604401602060405180830381865afa158015612018573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061203c9190612e27565b9050828110156120835760405162461bcd60e51b81526020600482015260126024820152714c4f575f555344435f414c4c4f57414e434560701b6044820152606401610254565b6001600160a01b038216600090815260ff60205260409020546120a690846121be565b6001600160a01b03838116600081815260ff6020526040908190209390935560fb5492516323b872dd60e01b81526004810191909152306024820152604481018690529116906323b872dd906064016020604051808303816000875af1158015612114573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121389190612e7f565b50816001600160a01b03167f35db3d768e685509e031bae369804ca7dc6656af739e079f1d3312cadc7b19d88460405161217491815260200190565b60405180910390a2505050565b612189611478565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611cc73390565b6000610ff18284612f02565b6001600160a01b03821660009081526101006020908152604080832080548251818502810185019093528083529192909190849084015b828210156122515783829060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201548152505081526020019060010190612201565b5050505090506000806122648385611523565b91509150816122855760405162461bcd60e51b815260040161025490612e40565b83856001600160a01b03167f1b926495e3428180ea43bb94ba7914841b2000e626ea5d157e685cc811d7acb38584815181106122c3576122c3612e69565b6020026020010151604001516040516122de91815260200190565b60405180910390a36001600160a01b03851660009081526101006020526040902080548290811061231157612311612e69565b60009182526020822060039091020181815560018101829055600201555050505050565b6060600061234283612591565b600101905060008167ffffffffffffffff81111561236257612362612d4d565b6040519080825280601f01601f19166020018201604052801561238c576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461239657509392505050565b6000803385856040516020016123e093929190612f97565b6040516020818303038152906040528051906020012090506124028184612669565b95945050505050565b6124158282610f25565b610bab5761242281612700565b61242d836020612712565b60405160200161243e929190612fd6565b60408051601f198184030181529082905262461bcd60e51b82526102549160040161304b565b60008060005b84518161ffff16101561157f57848161ffff168151811061248d5761248d612e69565b602002602001015160000151600014806124c8575083858261ffff16815181106124b9576124b9612e69565b60200260200101516020015111155b156124dc576001925061ffff169050611588565b806124e681612eb7565b91505061246a565b60975460ff166114be5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610254565b600054610100900460ff1661255e5760405162461bcd60e51b815260040161025490612f28565b6097805460ff19169055565b600054610100900460ff1661159b5760405162461bcd60e51b815260040161025490612f28565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106125d05772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106125fc576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061261a57662386f26fc10000830492506010015b6305f5e1008310612632576305f5e100830492506008015b612710831061264657612710830492506004015b60648310612658576064830492506002015b600a83106107cb5760010192915050565b6000806126c3846040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b905060006126d182856128ae565b90506001600160a01b038116158015906124025750610101546001600160a01b03908116911614949350505050565b60606107cb6001600160a01b03831660145b6060600061272183600261307e565b61272c906002612f02565b67ffffffffffffffff81111561274457612744612d4d565b6040519080825280601f01601f19166020018201604052801561276e576020820181803683370190505b509050600360fc1b8160008151811061278957612789612e69565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106127b8576127b8612e69565b60200101906001600160f81b031916908160001a90535060006127dc84600261307e565b6127e7906001612f02565b90505b600181111561285f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061281b5761281b612e69565b1a60f81b82828151811061283157612831612e69565b60200101906001600160f81b031916908160001a90535060049490941c936128588161309d565b90506127ea565b508315610ff15760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610254565b60008060006128bd85856128d2565b915091506128ca81612914565b509392505050565b60008082516041036129085760208301516040840151606085015160001a6128fc87828585612a5e565b94509450505050611588565b50600090506002611588565b6000816004811115612928576129286130b4565b036129305750565b6001816004811115612944576129446130b4565b036129915760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610254565b60028160048111156129a5576129a56130b4565b036129f25760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610254565b6003816004811115612a0657612a066130b4565b03610ae45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610254565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612a955750600090506003612b19565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612ae9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612b1257600060019250925050612b19565b9150600090505b94509492505050565b600060208284031215612b3457600080fd5b81356001600160e01b031981168114610ff157600080fd5b6001600160a01b0381168114610ae457600080fd5b60008060408385031215612b7457600080fd5b8235612b7f81612b4c565b946020939093013593505050565b600060208284031215612b9f57600080fd5b5035919050565b600080600060608486031215612bbb57600080fd5b8335612bc681612b4c565b95602085013595506040909401359392505050565b600060208284031215612bed57600080fd5b8135610ff181612b4c565b60008060408385031215612c0b57600080fd5b823591506020830135612c1d81612b4c565b809150509250929050565b602080825282518282018190526000919060409081850190868401855b82811015612c745781518051855286810151878601528501518585015260609093019290850190600101612c45565b5091979650505050505050565b803561ffff81168114612c9357600080fd5b919050565b600060208284031215612caa57600080fd5b610ff182612c81565b803563ffffffff81168114612c9357600080fd5b600080600080600060a08688031215612cdf57600080fd5b8535612cea81612b4c565b94506020860135612cfa81612b4c565b93506040860135612d0a81612b4c565b9250612d1860608701612cb3565b9150612d2660808701612c81565b90509295509295909350565b600060208284031215612d4457600080fd5b610ff182612cb3565b634e487b7160e01b600052604160045260246000fd5b600080600060608486031215612d7857600080fd5b8335925060208401359150604084013567ffffffffffffffff80821115612d9e57600080fd5b818601915086601f830112612db257600080fd5b813581811115612dc457612dc4612d4d565b604051601f8201601f19908116603f01168101908382118183101715612dec57612dec612d4d565b81604052828152896020848701011115612e0557600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b600060208284031215612e3957600080fd5b5051919050565b6020808252600f908201526e1393d7d195539114d7d313d0d2d151608a1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612e9157600080fd5b81518015158114610ff157600080fd5b634e487b7160e01b600052601160045260246000fd5b600061ffff808316818103612ece57612ece612ea1565b6001019392505050565b60208082526010908201526f4e4f545f454e4f5547485f46554e445360801b604082015260600190565b808201808211156107cb576107cb612ea1565b818103818111156107cb576107cb612ea1565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b83811015612f8e578181015183820152602001612f76565b50506000910152565b6bffffffffffffffffffffffff198460601b16815260008351612fc1816014850160208801612f73565b60149201918201929092526034019392505050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161300e816017850160208801612f73565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161303f816028840160208801612f73565b01602801949350505050565b602081526000825180602084015261306a816040850160208701612f73565b601f01601f19169190910160400192915050565b600081600019048311821515161561309857613098612ea1565b500290565b6000816130ac576130ac612ea1565b506000190190565b634e487b7160e01b600052602160045260246000fdfe65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6666bf5bfee463d10a7fc50448047f8a53b7762d7e28fbc5c643182785f3fd3fa264697066735822122031c7bb4e723906c991126aae1b3ffc368a5b44c07bb2003624924c856c15f7af64736f6c63430008100033" };
exports.contractInfo = { "abi": [{ "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint8", "name": "version", "type": "uint8" }], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "_from", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "_lockedFundsId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_value", "type": "uint256" }], "name": "LockedFunds", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "_from", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "_lockedFundsId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_value", "type": "uint256" }], "name": "LockedFundsPartialPaymentConfirmation", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "_from", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "_lockedFundsId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_value", "type": "uint256" }], "name": "LockedFundsPaymentConfirmation", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "_to", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "_lockedFundsId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_value", "type": "uint256" }], "name": "LockedFundsRevoked", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "_from", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "_lockedFundsId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_value", "type": "uint256" }], "name": "LockedFundsWithDeposit", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }], "name": "Paused", "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": false, "internalType": "address", "name": "account", "type": "address" }], "name": "Unpaused", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "_from", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "_value", "type": "uint256" }], "name": "UserDeposit", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "_to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "_value", "type": "uint256" }], "name": "UserWithdraw", "type": "event" }, { "stateMutability": "payable", "type": "fallback" }, { "inputs": [], "name": "DEFAULT_ADMIN_ROLE", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "PAUSER_ROLE", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "SETTLER_ROLE", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "balances", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "price", "type": "uint256" }, { "internalType": "uint256", "name": "lockedFundId", "type": "uint256" }], "name": "checkLockedFundPayment", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "price", "type": "uint256" }, { "internalType": "uint256", "name": "lockedFundId", "type": "uint256" }], "name": "confirmLockedFundPartialPayment", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "price", "type": "uint256" }, { "internalType": "uint256", "name": "lockedFundId", "type": "uint256" }], "name": "confirmLockedFundPayment", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }], "name": "createLockedFund", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }], "name": "deposit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }], "name": "depositAndCreateLockedFund", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }, { "internalType": "address", "name": "sender", "type": "address" }], "name": "depositAndCreateLockedFundFor", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }, { "internalType": "address", "name": "sender", "type": "address" }], "name": "depositTo", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sender", "type": "address" }], "name": "getAvailableLockedFundsBalance", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getBalance", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getLockedFunds", "outputs": [{ "components": [{ "internalType": "uint256", "name": "lockedFundId", "type": "uint256" }, { "internalType": "uint256", "name": "timeout", "type": "uint256" }, { "internalType": "uint256", "name": "price", "type": "uint256" }], "internalType": "struct ImmersvePaymentProtocol.AssetLockedFund[]", "name": "", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }], "name": "getRoleAdmin", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sender", "type": "address" }], "name": "getSenderBalance", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sender", "type": "address" }], "name": "getSenderLockedFunds", "outputs": [{ "components": [{ "internalType": "uint256", "name": "lockedFundId", "type": "uint256" }, { "internalType": "uint256", "name": "timeout", "type": "uint256" }, { "internalType": "uint256", "name": "price", "type": "uint256" }], "internalType": "struct ImmersvePaymentProtocol.AssetLockedFund[]", "name": "", "type": "tuple[]" }], "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": [{ "internalType": "address", "name": "_settlerRole", "type": "address" }, { "internalType": "address payable", "name": "_settlementAddress", "type": "address" }, { "internalType": "address", "name": "_tokenSmartContract", "type": "address" }, { "internalType": "uint32", "name": "_defaultTimeoutBlocks", "type": "uint32" }, { "internalType": "uint16", "name": "_safetyBlocks", "type": "uint16" }], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "name": "lockedFunds", "outputs": [{ "internalType": "uint256", "name": "lockedFundId", "type": "uint256" }, { "internalType": "uint256", "name": "timeout", "type": "uint256" }, { "internalType": "uint256", "name": "price", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "paused", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" }], "name": "renounceRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "lockedFundId", "type": "uint256" }], "name": "revokeLockedFund", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "lockedFundId", "type": "uint256" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "bytes", "name": "signature", "type": "bytes" }], "name": "revokeLockedFundMultiSig", "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": "uint16", "name": "_safetyBlocks", "type": "uint16" }], "name": "setSafetyBlocks", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "timeoutBlocks", "type": "uint32" }], "name": "setTimeoutBlocks", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newAddress", "type": "address" }], "name": "setTokenSmartContractAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "settlementAddress", "outputs": [{ "internalType": "address payable", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "settlerAddress", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" }], "name": "supportsInterface", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "tokenSmartContract", "outputs": [{ "internalType": "contract IERC20Upgradeable", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "tokenSmartContractAddress", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "unpause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }], "name": "withdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }, { "internalType": "address", "name": "sender", "type": "address" }], "name": "withdrawTo", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "stateMutability": "payable", "type": "receive" }], "byteCode": "608060405234801561001057600080fd5b506134bb806100206000396000f3fe6080604052600436106102345760003560e01c806370ef60561161012e578063b6b55f25116100ab578063e63ab1e91161006f578063e63ab1e91461074e578063e744b53314610770578063ee8e321114610790578063f44650ab146107b0578063f738c4a7146107d057610273565b8063b6b55f25146106ad578063c86283c8146106cd578063d14402f5146106ed578063d547741f1461070e578063d6e2a8ee1461072e57610273565b806391d14854116100f257806391d1485414610618578063a217fddf14610638578063af07603b1461064d578063b25dfded1461066d578063b4e585d01461068d57610273565b806370ef60561461056b5780637445e85c1461058b5780637cfa4dbc146105ad57806381604614146105e35780638456cb591461060357610273565b80633101020c116101bc57806343e1b2391161018057806343e1b239146104d357806348f7f099146104f35780635c975abb146105135780636a44408b1461052b57806370aff70f1461054b57610273565b80633101020c1461043c57806336568abe1461045c5780633f4ba83a1461047c57806340e4f522146104915780634124a6a7146104b157610273565b8063248a9ca311610203578063248a9ca31461037d57806324cf803a146103ad57806327e235e3146103cf5780632e1a7d4d146103fc5780632f2ff15d1461041c57610273565b806301ffc9a7146102a957806306bba54e146102de57806312065fe0146103165780631355d8611461034257610273565b366102735760405162461bcd60e51b815260206004820152600a6024820152694e4f5f5245434549564560b01b60448201526064015b60405180910390fd5b60405162461bcd60e51b815260206004820152600b60248201526a4e4f5f46414c4c4241434b60a81b604482015260640161026a565b3480156102b557600080fd5b506102c96102c4366004612e9d565b6107f0565b60405190151581526020015b60405180910390f35b3480156102ea57600080fd5b5060fb546102fe906001600160a01b031681565b6040516001600160a01b0390911681526020016102d5565b34801561032257600080fd5b5033600090815260ff60205260409020545b6040519081526020016102d5565b34801561034e57600080fd5b5061036261035d366004612edc565b610827565b604080519384526020840192909252908201526060016102d5565b34801561038957600080fd5b50610334610398366004612f08565b60009081526065602052604090206001015490565b3480156103b957600080fd5b506103cd6103c8366004612f21565b61086a565b005b3480156103db57600080fd5b506103346103ea366004612f56565b60ff6020526000908152604090205481565b34801561040857600080fd5b506103cd610417366004612f08565b610b16565b34801561042857600080fd5b506103cd610437366004612f73565b610b3d565b34801561044857600080fd5b506103cd610457366004612f08565b610b62565b34801561046857600080fd5b506103cd610477366004612f73565b610b87565b34801561048857600080fd5b506103cd610c05565b34801561049d57600080fd5b5060fd546102fe906001600160a01b031681565b3480156104bd57600080fd5b506104c6610c25565b6040516102d59190612fa3565b3480156104df57600080fd5b506103cd6104ee366004613013565b610cb1565b3480156104ff57600080fd5b506103cd61050e366004612f08565b610cec565b34801561051f57600080fd5b5060975460ff166102c9565b34801561053757600080fd5b506103cd610546366004613042565b610d06565b34801561055757600080fd5b506103cd610566366004612f73565b610ede565b34801561057757600080fd5b506103cd6105863660046130ad565b610f02565b34801561059757600080fd5b5061033460008051602061346683398151915281565b3480156105b957600080fd5b506103346105c8366004612f56565b6001600160a01b0316600090815260ff602052604090205490565b3480156105ef57600080fd5b506103cd6105fe366004612f73565b610f41565b34801561060f57600080fd5b506103cd610f5b565b34801561062457600080fd5b506102c9610633366004612f73565b610f7b565b34801561064457600080fd5b50610334600081565b34801561065957600080fd5b506104c6610668366004612f56565b610fa6565b34801561067957600080fd5b50610334610688366004612f56565b61104e565b34801561069957600080fd5b506103cd6106a8366004612edc565b611192565b3480156106b957600080fd5b506103cd6106c8366004612f08565b6111cf565b3480156106d957600080fd5b506103cd6106e8366004612f73565b6111e9565b3480156106f957600080fd5b50610101546102fe906001600160a01b031681565b34801561071a57600080fd5b506103cd610729366004612f73565b61121b565b34801561073a57600080fd5b506103cd6107493660046130de565b611240565b34801561075a57600080fd5b5061033460008051602061344683398151915281565b34801561077c57600080fd5b506103cd61078b366004612f21565b6112bf565b34801561079c57600080fd5b506103cd6107ab366004612f56565b61159f565b3480156107bc57600080fd5b506103346107cb366004612f21565b6115e3565b3480156107dc57600080fd5b5060fc546102fe906001600160a01b031681565b60006001600160e01b03198216637965db0b60e01b148061082157506301ffc9a760e01b6001600160e01b03198316145b92915050565b610100602052816000526040600020818154811061084457600080fd5b600091825260209091206003909102018054600182015460029092015490935090915083565b6108726117f2565b61087a61183a565b60008051602061346683398151915261089281611893565b60405163f44650ab60e01b81526001600160a01b03851660048201526024810184905260448101839052309063f44650ab90606401602060405180830381865afa1580156108e4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090891906131a2565b506001600160a01b03841660009081526101006020908152604080832080548251818502810185019093528083529192909190849084015b828210156109905783829060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201548152505081526020019060010190610940565b5050505090506000806109a3838661189d565b91509150816109c45760405162461bcd60e51b815260040161026a906131bb565b6001600160a01b0387166000908152610100602052604090208054829081106109ef576109ef6131e4565b600091825260208083206003909202909101828155600181018390556002018290556001600160a01b038916825260ff90526040902054610a309087611909565b6001600160a01b03888116600090815260ff6020526040908190209290925560fb5460fc54925163a9059cbb60e01b8152928216600484015260248301899052169063a9059cbb906044016020604051808303816000875af1158015610a9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abe91906131fa565b5084876001600160a01b03167f5c06e96f6acc801b39c1141b32179e6d6a67c1fe2b078b4b6dd6eab69cbef70c88604051610afb91815260200190565b60405180910390a350505050610b11600160c955565b505050565b610b1e6117f2565b610b2661183a565b610b30813361191c565b610b3a600160c955565b50565b600082815260656020526040902060010154610b5881611893565b610b118383611cb6565b610b6a6117f2565b610b7261183a565b610b7c8133611d3c565b50610b3a600160c955565b6001600160a01b0381163314610bf75760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161026a565b610c018282611fa5565b5050565b600080516020613446833981519152610c1d81611893565b610b3a61200c565b336000908152610100602090815260408083208054825181850281018501909352808352606094610cac9484015b82821015610ca35783829060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201548152505081526020019060010190610c53565b5050505061205e565b905090565b600080516020613466833981519152610cc981611893565b5060fd805461ffff909216600160c01b0261ffff60c01b19909216919091179055565b610cf46117f2565b610cfc61183a565b610b3081336121c3565b600054610100900460ff1615808015610d265750600054600160ff909116105b80610d405750303b158015610d40575060005460ff166001145b610da35760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161026a565b6000805460ff191660011790558015610dc6576000805461ff0019166101001790555b610dce61222c565b610dd661225b565b610dde61228a565b610de9600033611cb6565b610e0160008051602061344683398151915287611cb6565b610e1960008051602061346683398151915287611cb6565b60fc80546001600160a01b03199081166001600160a01b038881169190911790925560fb8054821687841690811790915560fd80546001600160c01b031916909117600160a01b63ffffffff8816021761ffff60c01b1916600160c01b61ffff87160217905561010180549091169188169190911790558015610ed6576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050565b610ee66117f2565b610eee61183a565b610ef882826122b1565b610c01600160c955565b600080516020613466833981519152610f1a81611893565b5060fd805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b610f496117f2565b610f5161183a565b610ef882826121c3565b600080516020613446833981519152610f7381611893565b610b3a6124fc565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600080516020613466833981519152610fc081611893565b6001600160a01b03831660009081526101006020908152604080832080548251818502810185019093528083526110479492939192909184018215610ca35783829060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201548152505081526020019060010190610c53565b9392505050565b6001600160a01b03811660009081526101006020908152604080832080548251818502810185019093528083528493849084015b828210156110d25783829060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201548152505081526020019060010190611082565b5050505090506000806110f94360fd60189054906101000a900461ffff1661ffff16612539565b905060005b83518161ffff16101561118857838161ffff1681518110611121576111216131e4565b60200260200101516000015160000315611176576000848261ffff168151811061114d5761114d6131e4565b60200260200101519050828160200151111561117457611171848260400151612539565b93505b505b8061118081613232565b9150506110fe565b5090949350505050565b61119a6117f2565b6111a261183a565b6000805160206134668339815191526111ba81611893565b6111c48383612545565b50610c01600160c955565b6111d76117f2565b6111df61183a565b610b3081336122b1565b6111f16117f2565b6111f961183a565b60008051602061346683398151915261121181611893565b6111c4838361191c565b60008281526065602052604090206001015461123681611893565b610b118383611fa5565b6112486117f2565b61125061183a565b600061126561125e856126b0565b8484612743565b9050806112aa5760405162461bcd60e51b8152602060048201526013602482015272494e56414c49445f534554544c45525f53494760681b604482015260640161026a565b6112b43385612545565b50610b11600160c955565b6112c76117f2565b6112cf61183a565b6000805160206134668339815191526112e781611893565b60405163f44650ab60e01b81526001600160a01b03851660048201526024810184905260448101839052309063f44650ab90606401602060405180830381865afa158015611339573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135d91906131a2565b506001600160a01b03841660009081526101006020908152604080832080548251818502810185019093528083529192909190849084015b828210156113e55783829060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201548152505081526020019060010190611395565b50505050905060006113f7828561189d565b6001600160a01b03881660009081526101006020526040812080549294509092509083908110611429576114296131e4565b906000526020600020906003020160020154905060006114498288611909565b6001600160a01b0389166000908152610100602052604090208054919250829185908110611479576114796131e4565b9060005260206000209060030201600201819055506114bd60ff60008a6001600160a01b03166001600160a01b031681526020019081526020016000205488611909565b6001600160a01b03898116600090815260ff6020526040908190209290925560fb5460fc54925163a9059cbb60e01b81529282166004840152602483018a9052169063a9059cbb906044016020604051808303816000875af1158015611527573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061154b91906131fa565b5085886001600160a01b03167f2449dc0c23f8a8fd2c35c34ca19db36c224f34ef6ce5eb3366d66a5753d0d0e58960405161158891815260200190565b60405180910390a35050505050610b11600160c955565b6115a761183a565b6000805160206134668339815191526115bf81611893565b5060fd80546001600160a01b0319166001600160a01b038316179055600160c95550565b60006115ed6117f2565b600083116116355760405162461bcd60e51b8152602060048201526015602482015274494e56414c49445f5041594d454e545f505249434560581b604482015260640161026a565b6001600160a01b038416600090815260ff602052604090205483111561166d5760405162461bcd60e51b815260040161026a90613253565b60fd54600090611689904390600160c01b900461ffff16612539565b6001600160a01b03861660009081526101006020908152604080832080548251818502810185019093528083529495509293909291849084015b8282101561171357838290600052602060002090600302016040518060600160405290816000820154815260200160018201548152602001600282015481525050815260200190600101906116c3565b50505050905060008080611727848861189d565b91509150816117485760405162461bcd60e51b815260040161026a906131bb565b600084828151811061175c5761175c6131e4565b602002602001015190508581602001511115611784576040810151611781908561327d565b93505b888410156117d45760405162461bcd60e51b815260206004820152601960248201527f494e53554646494349454e545f4c4f434b45445f46554e445300000000000000604482015260640161026a565b8581602001516117e49190613290565b9a9950505050505050505050565b60975460ff16156118385760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161026a565b565b600260c9540361188c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161026a565b600260c955565b610b3a8133612786565b60008060005b84518161ffff1610156118f95783858261ffff16815181106118c7576118c76131e4565b602002602001015160000151036118e7576001925061ffff169050611902565b806118f181613232565b9150506118a3565b50600080915091505b9250929050565b60006110478284613290565b600160c955565b6119246117f2565b6001600160a01b0381166119705760405162461bcd60e51b81526020600482015260136024820152724e554c4c5f53454e4445525f4144445245535360681b604482015260640161026a565b600082116119ac5760405162461bcd60e51b815260206004820152600960248201526808a9aa0a8b2bea8a4b60bb1b604482015260640161026a565b6001600160a01b038116600090815260ff6020526040902054828110156119e55760405162461bcd60e51b815260040161026a90613253565b6001600160a01b03821660009081526101006020908152604080832080548251818502810185019093528083529192909190849084015b82821015611a6c5783829060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201548152505081526020019060010190611a1c565b505050509050600080611a934360fd60189054906101000a900461ffff1661ffff16612539565b905060005b83518161ffff161015611b5b576000848261ffff1681518110611abd57611abd6131e4565b602002602001015190508060000151600003611ad95750611b49565b8281602001511115611afa57611af3848260400151612539565b9350611b47565b6001600160a01b038716600090815261010060205260409020805461ffff8416908110611b2957611b296131e4565b60009182526020822060039091020181815560018101829055600201555b505b80611b5381613232565b915050611a98565b506000611b688584611909565b905086811015611bba5760405162461bcd60e51b815260206004820152601a60248201527f4e4f545f454e4f5547485f46554e44535f415641494c41424c45000000000000604482015260640161026a565b6001600160a01b038616600090815260ff6020526040902054611bdd9088611909565b6001600160a01b03878116600081815260ff6020526040908190209390935560fb54925163a9059cbb60e01b81526004810191909152602481018a905291169063a9059cbb906044016020604051808303816000875af1158015611c45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c6991906131fa565b50856001600160a01b03167f98824d89d47225910d3e61aa38b640d29d58b43e2dc47b4d986a588c88e0a2a888604051611ca591815260200190565b60405180910390a250505050505050565b611cc08282610f7b565b610c015760008281526065602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611cf83390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000611d466117f2565b6001600160a01b038216600090815260ff6020526040902054831115611d7e5760405162461bcd60e51b815260040161026a90613253565b611d8c60fe80546001019055565b6000611d9760fe5490565b905060006040518060600160405280838152602001611dce4360fd60149054906101000a900463ffffffff1663ffffffff16612539565b815260200186905260fd54909150600090611df5904390600160c01b900461ffff16612539565b9050600080611e9d6101006000896001600160a01b03166001600160a01b03168152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015611e935783829060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201548152505081526020019060010190611e43565b50505050846127df565b915091508115611f09576001600160a01b038716600090815261010060205260409020805485919083908110611ed557611ed56131e4565b9060005260206000209060030201600082015181600001556020820151816001015560408201518160020155905050611f55565b6001600160a01b03871660009081526101006020908152604080832080546001818101835591855293839020885160039095020193845591870151918301919091558501516002909101555b84876001600160a01b03167fc61053a33abb5e94c106d3f21e6e5a7cb1d1160b62109c4207797749de780c298a604051611f9191815260200190565b60405180910390a350929695505050505050565b611faf8282610f7b565b15610c015760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b612014612869565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60606000805b83518161ffff1610156120ba57838161ffff1681518110612087576120876131e4565b6020026020010151600001516000146120a8576120a560018361327d565b91505b806120b281613232565b915050612064565b5060008167ffffffffffffffff8111156120d6576120d66130c8565b60405190808252806020026020018201604052801561212b57816020015b61211860405180606001604052806000815260200160008152602001600081525090565b8152602001906001900390816120f45790505b5090506000805b85518161ffff16101561118857858161ffff1681518110612155576121556131e4565b6020026020010151600001516000146121b157858161ffff168151811061217e5761217e6131e4565b6020026020010151838381518110612198576121986131e4565b60209081029190910101526121ae60018361327d565b91505b806121bb81613232565b915050612132565b6121cb6117f2565b6121d582826122b1565b60006121e18383611d3c565b905080826001600160a01b03167f6a98889be3792b1128048878a7de18ab1b6661962844e991d9d26a1b013866d68560405161221f91815260200190565b60405180910390a3505050565b600054610100900460ff166122535760405162461bcd60e51b815260040161026a906132a3565b6118386128b2565b600054610100900460ff166122825760405162461bcd60e51b815260040161026a906132a3565b6118386128e5565b600054610100900460ff166118385760405162461bcd60e51b815260040161026a906132a3565b6122b96117f2565b6001600160a01b0381166123055760405162461bcd60e51b81526020600482015260136024820152724e554c4c5f53454e4445525f4144445245535360681b604482015260640161026a565b600082116123415760405162461bcd60e51b815260206004820152600960248201526808a9aa0a8b2bea8a4b60bb1b604482015260640161026a565b60fb54604051636eb1769f60e11b81526001600160a01b038381166004830152306024830152600092169063dd62ed3e90604401602060405180830381865afa158015612392573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123b691906131a2565b9050828110156123fe5760405162461bcd60e51b81526020600482015260136024820152724c4f575f746f6b656e5f414c4c4f57414e434560681b604482015260640161026a565b6001600160a01b038216600090815260ff60205260409020546124219084612539565b6001600160a01b03838116600081815260ff6020526040908190209390935560fb5492516323b872dd60e01b81526004810191909152306024820152604481018690529116906323b872dd906064016020604051808303816000875af115801561248f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124b391906131fa565b50816001600160a01b03167f35db3d768e685509e031bae369804ca7dc6656af739e079f1d3312cadc7b19d8846040516124ef91815260200190565b60405180910390a2505050565b6125046117f2565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120413390565b6000611047828461327d565b6001600160a01b03821660009081526101006020908152604080832080548251818502810185019093528083529192909190849084015b828210156125cc578382906000526020600020906003020160405180606001604052908160008201548152602001600182015481526020016002820154815250508152602001906001019061257c565b5050505090506000806125df838561189d565b91509150816126005760405162461bcd60e51b815260040161026a906131bb565b83856001600160a01b03167f1b926495e3428180ea43bb94ba7914841b2000e626ea5d157e685cc811d7acb385848151811061263e5761263e6131e4565b60200260200101516040015160405161265991815260200190565b60405180910390a36001600160a01b03851660009081526101006020526040902080548290811061268c5761268c6131e4565b60009182526020822060039091020181815560018101829055600201555050505050565b606060006126bd8361290c565b600101905060008167ffffffffffffffff8111156126dd576126dd6130c8565b6040519080825280601f01601f191660200182016040528015612707576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461271157509392505050565b60008033858560405160200161275b93929190613312565b60405160208183030381529060405280519060200120905061277d81846129e4565b95945050505050565b6127908282610f7b565b610c015761279d81612a7b565b6127a8836020612a8d565b6040516020016127b9929190613351565b60408051601f198184030181529082905262461bcd60e51b825261026a916004016133c6565b60008060005b84518161ffff1610156118f957848161ffff1681518110612808576128086131e4565b60200260200101516000015160001480612843575083858261ffff1681518110612834576128346131e4565b60200260200101516020015111155b15612857576001925061ffff169050611902565b8061286181613232565b9150506127e5565b60975460ff166118385760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161026a565b600054610100900460ff166128d95760405162461bcd60e51b815260040161026a906132a3565b6097805460ff19169055565b600054610100900460ff166119155760405162461bcd60e51b815260040161026a906132a3565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061294b5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612977576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061299557662386f26fc10000830492506010015b6305f5e10083106129ad576305f5e100830492506008015b61271083106129c157612710830492506004015b606483106129d3576064830492506002015b600a83106108215760010192915050565b600080612a3e846040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90506000612a4c8285612c29565b90506001600160a01b0381161580159061277d5750610101546001600160a01b03908116911614949350505050565b60606108216001600160a01b03831660145b60606000612a9c8360026133f9565b612aa790600261327d565b67ffffffffffffffff811115612abf57612abf6130c8565b6040519080825280601f01601f191660200182016040528015612ae9576020820181803683370190505b509050600360fc1b81600081518110612b0457612b046131e4565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612b3357612b336131e4565b60200101906001600160f81b031916908160001a9053506000612b578460026133f9565b612b6290600161327d565b90505b6001811115612bda576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612b9657612b966131e4565b1a60f81b828281518110612bac57612bac6131e4565b60200101906001600160f81b031916908160001a90535060049490941c93612bd381613418565b9050612b65565b5083156110475760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161026a565b6000806000612c388585612c4d565b91509150612c4581612c8f565b509392505050565b6000808251604103612c835760208301516040840151606085015160001a612c7787828585612dd9565b94509450505050611902565b50600090506002611902565b6000816004811115612ca357612ca361342f565b03612cab5750565b6001816004811115612cbf57612cbf61342f565b03612d0c5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161026a565b6002816004811115612d2057612d2061342f565b03612d6d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161026a565b6003816004811115612d8157612d8161342f565b03610b3a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161026a565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612e105750600090506003612e94565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612e64573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612e8d57600060019250925050612e94565b9150600090505b94509492505050565b600060208284031215612eaf57600080fd5b81356001600160e01b03198116811461104757600080fd5b6001600160a01b0381168114610b3a57600080fd5b60008060408385031215612eef57600080fd5b8235612efa81612ec7565b946020939093013593505050565b600060208284031215612f1a57600080fd5b5035919050565b600080600060608486031215612f3657600080fd5b8335612f4181612ec7565b95602085013595506040909401359392505050565b600060208284031215612f6857600080fd5b813561104781612ec7565b60008060408385031215612f8657600080fd5b823591506020830135612f9881612ec7565b809150509250929050565b602080825282518282018190526000919060409081850190868401855b82811015612fef5781518051855286810151878601528501518585015260609093019290850190600101612fc0565b5091979650505050505050565b803561ffff8116811461300e57600080fd5b919050565b60006020828403121561302557600080fd5b61104782612ffc565b803563ffffffff8116811461300e57600080fd5b600080600080600060a0868803121561305a57600080fd5b853561306581612ec7565b9450602086013561307581612ec7565b9350604086013561308581612ec7565b92506130936060870161302e565b91506130a160808701612ffc565b90509295509295909350565b6000602082840312156130bf57600080fd5b6110478261302e565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156130f357600080fd5b8335925060208401359150604084013567ffffffffffffffff8082111561311957600080fd5b818601915086601f83011261312d57600080fd5b81358181111561313f5761313f6130c8565b604051601f8201601f19908116603f01168101908382118183101715613167576131676130c8565b8160405282815289602084870101111561318057600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b6000602082840312156131b457600080fd5b5051919050565b6020808252600f908201526e1393d7d195539114d7d313d0d2d151608a1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561320c57600080fd5b8151801515811461104757600080fd5b634e487b7160e01b600052601160045260246000fd5b600061ffff8083168181036132495761324961321c565b6001019392505050565b60208082526010908201526f4e4f545f454e4f5547485f46554e445360801b604082015260600190565b808201808211156108215761082161321c565b818103818111156108215761082161321c565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b838110156133095781810151838201526020016132f1565b50506000910152565b6bffffffffffffffffffffffff198460601b1681526000835161333c8160148501602088016132ee565b60149201918201929092526034019392505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516133898160178501602088016132ee565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516133ba8160288401602088016132ee565b01602801949350505050565b60208152600082518060208401526133e58160408501602087016132ee565b601f01601f19169190910160400192915050565b60008160001904831182151516156134135761341361321c565b500290565b6000816134275761342761321c565b506000190190565b634e487b7160e01b600052602160045260246000fdfe65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6666bf5bfee463d10a7fc50448047f8a53b7762d7e28fbc5c643182785f3fd3fa26469706673582212208b728ef3d0fe451ccdbf4cef8e000c53c245ccd6391964681f780c0097144d9c64736f6c63430008100033" };

@@ -69,2 +69,27 @@ "use strict";

],
name: "LockedFundsPartialPaymentConfirmation",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "_from",
type: "address",
},
{
indexed: true,
internalType: "uint256",
name: "_lockedFundsId",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "_value",
type: "uint256",
},
],
name: "LockedFundsPaymentConfirmation",

@@ -371,2 +396,25 @@ type: "event",

],
name: "confirmLockedFundPartialPayment",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address",
},
{
internalType: "uint256",
name: "price",
type: "uint256",
},
{
internalType: "uint256",
name: "lockedFundId",
type: "uint256",
},
],
name: "confirmLockedFundPayment",

@@ -381,3 +429,3 @@ outputs: [],

internalType: "uint256",
name: "usdcAmount",
name: "tokenAmount",
type: "uint256",

@@ -395,3 +443,3 @@ },

internalType: "uint256",
name: "usdcAmount",
name: "tokenAmount",
type: "uint256",

@@ -409,3 +457,3 @@ },

internalType: "uint256",
name: "usdcAmount",
name: "tokenAmount",
type: "uint256",

@@ -423,3 +471,3 @@ },

internalType: "uint256",
name: "usdcAmount",
name: "tokenAmount",
type: "uint256",

@@ -442,3 +490,3 @@ },

internalType: "uint256",
name: "usdcAmount",
name: "tokenAmount",
type: "uint256",

@@ -649,3 +697,3 @@ },

internalType: "address",
name: "_usdcSmartContract",
name: "_tokenSmartContract",
type: "address",

@@ -827,2 +875,15 @@ },

{
inputs: [
{
internalType: "address",
name: "newAddress",
type: "address",
},
],
name: "setTokenSmartContractAddress",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],

@@ -874,10 +935,3 @@ name: "settlementAddress",

inputs: [],
name: "unpause",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "usdcSmartContract",
name: "tokenSmartContract",
outputs: [

@@ -895,3 +949,3 @@ {

inputs: [],
name: "usdcSmartContractAddress",
name: "tokenSmartContractAddress",
outputs: [

@@ -908,6 +962,13 @@ {

{
inputs: [],
name: "unpause",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "usdcAmount",
name: "tokenAmount",
type: "uint256",

@@ -925,3 +986,3 @@ },

internalType: "uint256",
name: "usdcAmount",
name: "tokenAmount",
type: "uint256",

@@ -928,0 +989,0 @@ },

@@ -28,2 +28,3 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";

"checkLockedFundPayment(address,uint256,uint256)": FunctionFragment;
"confirmLockedFundPartialPayment(address,uint256,uint256)": FunctionFragment;
"confirmLockedFundPayment(address,uint256,uint256)": FunctionFragment;

@@ -53,12 +54,13 @@ "createLockedFund(uint256)": FunctionFragment;

"setTimeoutBlocks(uint32)": FunctionFragment;
"setTokenSmartContractAddress(address)": FunctionFragment;
"settlementAddress()": FunctionFragment;
"settlerAddress()": FunctionFragment;
"supportsInterface(bytes4)": FunctionFragment;
"tokenSmartContract()": FunctionFragment;
"tokenSmartContractAddress()": FunctionFragment;
"unpause()": FunctionFragment;
"usdcSmartContract()": FunctionFragment;
"usdcSmartContractAddress()": FunctionFragment;
"withdraw(uint256)": FunctionFragment;
"withdrawTo(uint256,address)": FunctionFragment;
};
getFunction(nameOrSignatureOrTopic: "DEFAULT_ADMIN_ROLE" | "PAUSER_ROLE" | "SETTLER_ROLE" | "balances" | "checkLockedFundPayment" | "confirmLockedFundPayment" | "createLockedFund" | "deposit" | "depositAndCreateLockedFund" | "depositAndCreateLockedFundFor" | "depositTo" | "getAvailableLockedFundsBalance" | "getBalance" | "getLockedFunds" | "getRoleAdmin" | "getSenderBalance" | "getSenderLockedFunds" | "grantRole" | "hasRole" | "initialize" | "lockedFunds" | "pause" | "paused" | "renounceRole" | "revokeLockedFund" | "revokeLockedFundMultiSig" | "revokeRole" | "setSafetyBlocks" | "setTimeoutBlocks" | "settlementAddress" | "settlerAddress" | "supportsInterface" | "unpause" | "usdcSmartContract" | "usdcSmartContractAddress" | "withdraw" | "withdrawTo"): FunctionFragment;
getFunction(nameOrSignatureOrTopic: "DEFAULT_ADMIN_ROLE" | "PAUSER_ROLE" | "SETTLER_ROLE" | "balances" | "checkLockedFundPayment" | "confirmLockedFundPartialPayment" | "confirmLockedFundPayment" | "createLockedFund" | "deposit" | "depositAndCreateLockedFund" | "depositAndCreateLockedFundFor" | "depositTo" | "getAvailableLockedFundsBalance" | "getBalance" | "getLockedFunds" | "getRoleAdmin" | "getSenderBalance" | "getSenderLockedFunds" | "grantRole" | "hasRole" | "initialize" | "lockedFunds" | "pause" | "paused" | "renounceRole" | "revokeLockedFund" | "revokeLockedFundMultiSig" | "revokeRole" | "setSafetyBlocks" | "setTimeoutBlocks" | "setTokenSmartContractAddress" | "settlementAddress" | "settlerAddress" | "supportsInterface" | "tokenSmartContract" | "tokenSmartContractAddress" | "unpause" | "withdraw" | "withdrawTo"): FunctionFragment;
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;

@@ -73,2 +75,7 @@ encodeFunctionData(functionFragment: "PAUSER_ROLE", values?: undefined): string;

]): string;
encodeFunctionData(functionFragment: "confirmLockedFundPartialPayment", values: [
PromiseOrValue<string>,
PromiseOrValue<BigNumberish>,
PromiseOrValue<BigNumberish>
]): string;
encodeFunctionData(functionFragment: "confirmLockedFundPayment", values: [

@@ -112,8 +119,9 @@ PromiseOrValue<string>,

encodeFunctionData(functionFragment: "setTimeoutBlocks", values: [PromiseOrValue<BigNumberish>]): string;
encodeFunctionData(functionFragment: "setTokenSmartContractAddress", values: [PromiseOrValue<string>]): string;
encodeFunctionData(functionFragment: "settlementAddress", values?: undefined): string;
encodeFunctionData(functionFragment: "settlerAddress", values?: undefined): string;
encodeFunctionData(functionFragment: "supportsInterface", values: [PromiseOrValue<BytesLike>]): string;
encodeFunctionData(functionFragment: "tokenSmartContract", values?: undefined): string;
encodeFunctionData(functionFragment: "tokenSmartContractAddress", values?: undefined): string;
encodeFunctionData(functionFragment: "unpause", values?: undefined): string;
encodeFunctionData(functionFragment: "usdcSmartContract", values?: undefined): string;
encodeFunctionData(functionFragment: "usdcSmartContractAddress", values?: undefined): string;
encodeFunctionData(functionFragment: "withdraw", values: [PromiseOrValue<BigNumberish>]): string;

@@ -126,2 +134,3 @@ encodeFunctionData(functionFragment: "withdrawTo", values: [PromiseOrValue<BigNumberish>, PromiseOrValue<string>]): string;

decodeFunctionResult(functionFragment: "checkLockedFundPayment", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "confirmLockedFundPartialPayment", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "confirmLockedFundPayment", data: BytesLike): Result;

@@ -151,8 +160,9 @@ decodeFunctionResult(functionFragment: "createLockedFund", data: BytesLike): Result;

decodeFunctionResult(functionFragment: "setTimeoutBlocks", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "setTokenSmartContractAddress", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "settlementAddress", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "settlerAddress", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "tokenSmartContract", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "tokenSmartContractAddress", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "usdcSmartContract", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "usdcSmartContractAddress", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;

@@ -163,2 +173,3 @@ decodeFunctionResult(functionFragment: "withdrawTo", data: BytesLike): Result;

"LockedFunds(address,uint256,uint256)": EventFragment;
"LockedFundsPartialPaymentConfirmation(address,uint256,uint256)": EventFragment;
"LockedFundsPaymentConfirmation(address,uint256,uint256)": EventFragment;

@@ -177,2 +188,3 @@ "LockedFundsRevoked(address,uint256,uint256)": EventFragment;

getEvent(nameOrSignatureOrTopic: "LockedFunds"): EventFragment;
getEvent(nameOrSignatureOrTopic: "LockedFundsPartialPaymentConfirmation"): EventFragment;
getEvent(nameOrSignatureOrTopic: "LockedFundsPaymentConfirmation"): EventFragment;

@@ -205,2 +217,13 @@ getEvent(nameOrSignatureOrTopic: "LockedFundsRevoked"): EventFragment;

export declare type LockedFundsEventFilter = TypedEventFilter<LockedFundsEvent>;
export interface LockedFundsPartialPaymentConfirmationEventObject {
_from: string;
_lockedFundsId: BigNumber;
_value: BigNumber;
}
export declare type LockedFundsPartialPaymentConfirmationEvent = TypedEvent<[
string,
BigNumber,
BigNumber
], LockedFundsPartialPaymentConfirmationEventObject>;
export declare type LockedFundsPartialPaymentConfirmationEventFilter = TypedEventFilter<LockedFundsPartialPaymentConfirmationEvent>;
export interface LockedFundsPaymentConfirmationEventObject {

@@ -320,18 +343,21 @@ _from: string;

checkLockedFundPayment(sender: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[BigNumber]>;
confirmLockedFundPartialPayment(sender: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
confirmLockedFundPayment(sender: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
createLockedFund(usdcAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
createLockedFund(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
deposit(usdcAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
deposit(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
depositAndCreateLockedFund(usdcAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
depositAndCreateLockedFund(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
depositAndCreateLockedFundFor(usdcAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
depositAndCreateLockedFundFor(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
depositTo(usdcAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
depositTo(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
from?: PromiseOrValue<string>;

@@ -349,3 +375,3 @@ }): Promise<ContractTransaction>;

hasRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[boolean]>;
initialize(_settlerRole: PromiseOrValue<string>, _settlementAddress: PromiseOrValue<string>, _usdcSmartContract: PromiseOrValue<string>, _defaultTimeoutBlocks: PromiseOrValue<BigNumberish>, _safetyBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
initialize(_settlerRole: PromiseOrValue<string>, _settlementAddress: PromiseOrValue<string>, _tokenSmartContract: PromiseOrValue<string>, _defaultTimeoutBlocks: PromiseOrValue<BigNumberish>, _safetyBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;

@@ -384,14 +410,17 @@ }): Promise<ContractTransaction>;

}): Promise<ContractTransaction>;
setTokenSmartContractAddress(newAddress: PromiseOrValue<string>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
settlementAddress(overrides?: CallOverrides): Promise<[string]>;
settlerAddress(overrides?: CallOverrides): Promise<[string]>;
supportsInterface(interfaceId: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<[boolean]>;
tokenSmartContract(overrides?: CallOverrides): Promise<[string]>;
tokenSmartContractAddress(overrides?: CallOverrides): Promise<[string]>;
unpause(overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
usdcSmartContract(overrides?: CallOverrides): Promise<[string]>;
usdcSmartContractAddress(overrides?: CallOverrides): Promise<[string]>;
withdraw(usdcAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
withdraw(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
withdrawTo(usdcAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
withdrawTo(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
from?: PromiseOrValue<string>;

@@ -405,18 +434,21 @@ }): Promise<ContractTransaction>;

checkLockedFundPayment(sender: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
confirmLockedFundPartialPayment(sender: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
confirmLockedFundPayment(sender: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
createLockedFund(usdcAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
createLockedFund(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
deposit(usdcAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
deposit(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
depositAndCreateLockedFund(usdcAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
depositAndCreateLockedFund(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
depositAndCreateLockedFundFor(usdcAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
depositAndCreateLockedFundFor(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
depositTo(usdcAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
depositTo(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
from?: PromiseOrValue<string>;

@@ -434,3 +466,3 @@ }): Promise<ContractTransaction>;

hasRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
initialize(_settlerRole: PromiseOrValue<string>, _settlementAddress: PromiseOrValue<string>, _usdcSmartContract: PromiseOrValue<string>, _defaultTimeoutBlocks: PromiseOrValue<BigNumberish>, _safetyBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
initialize(_settlerRole: PromiseOrValue<string>, _settlementAddress: PromiseOrValue<string>, _tokenSmartContract: PromiseOrValue<string>, _defaultTimeoutBlocks: PromiseOrValue<BigNumberish>, _safetyBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;

@@ -469,14 +501,17 @@ }): Promise<ContractTransaction>;

}): Promise<ContractTransaction>;
setTokenSmartContractAddress(newAddress: PromiseOrValue<string>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
settlementAddress(overrides?: CallOverrides): Promise<string>;
settlerAddress(overrides?: CallOverrides): Promise<string>;
supportsInterface(interfaceId: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<boolean>;
tokenSmartContract(overrides?: CallOverrides): Promise<string>;
tokenSmartContractAddress(overrides?: CallOverrides): Promise<string>;
unpause(overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
usdcSmartContract(overrides?: CallOverrides): Promise<string>;
usdcSmartContractAddress(overrides?: CallOverrides): Promise<string>;
withdraw(usdcAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
withdraw(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
withdrawTo(usdcAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
withdrawTo(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
from?: PromiseOrValue<string>;

@@ -490,8 +525,9 @@ }): Promise<ContractTransaction>;

checkLockedFundPayment(sender: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
confirmLockedFundPartialPayment(sender: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
confirmLockedFundPayment(sender: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
createLockedFund(usdcAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
deposit(usdcAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
depositAndCreateLockedFund(usdcAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
depositAndCreateLockedFundFor(usdcAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
depositTo(usdcAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
createLockedFund(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
deposit(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
depositAndCreateLockedFund(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
depositAndCreateLockedFundFor(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
depositTo(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
getAvailableLockedFundsBalance(sender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;

@@ -505,3 +541,3 @@ getBalance(overrides?: CallOverrides): Promise<BigNumber>;

hasRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
initialize(_settlerRole: PromiseOrValue<string>, _settlementAddress: PromiseOrValue<string>, _usdcSmartContract: PromiseOrValue<string>, _defaultTimeoutBlocks: PromiseOrValue<BigNumberish>, _safetyBlocks: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
initialize(_settlerRole: PromiseOrValue<string>, _settlementAddress: PromiseOrValue<string>, _tokenSmartContract: PromiseOrValue<string>, _defaultTimeoutBlocks: PromiseOrValue<BigNumberish>, _safetyBlocks: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
lockedFunds(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[

@@ -524,10 +560,11 @@ BigNumber,

setTimeoutBlocks(timeoutBlocks: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
setTokenSmartContractAddress(newAddress: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
settlementAddress(overrides?: CallOverrides): Promise<string>;
settlerAddress(overrides?: CallOverrides): Promise<string>;
supportsInterface(interfaceId: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<boolean>;
tokenSmartContract(overrides?: CallOverrides): Promise<string>;
tokenSmartContractAddress(overrides?: CallOverrides): Promise<string>;
unpause(overrides?: CallOverrides): Promise<void>;
usdcSmartContract(overrides?: CallOverrides): Promise<string>;
usdcSmartContractAddress(overrides?: CallOverrides): Promise<string>;
withdraw(usdcAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
withdrawTo(usdcAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
withdraw(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
withdrawTo(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
};

@@ -539,2 +576,4 @@ filters: {

LockedFunds(_from?: PromiseOrValue<string> | null, _lockedFundsId?: PromiseOrValue<BigNumberish> | null, _value?: null): LockedFundsEventFilter;
"LockedFundsPartialPaymentConfirmation(address,uint256,uint256)"(_from?: PromiseOrValue<string> | null, _lockedFundsId?: PromiseOrValue<BigNumberish> | null, _value?: null): LockedFundsPartialPaymentConfirmationEventFilter;
LockedFundsPartialPaymentConfirmation(_from?: PromiseOrValue<string> | null, _lockedFundsId?: PromiseOrValue<BigNumberish> | null, _value?: null): LockedFundsPartialPaymentConfirmationEventFilter;
"LockedFundsPaymentConfirmation(address,uint256,uint256)"(_from?: PromiseOrValue<string> | null, _lockedFundsId?: PromiseOrValue<BigNumberish> | null, _value?: null): LockedFundsPaymentConfirmationEventFilter;

@@ -567,18 +606,21 @@ LockedFundsPaymentConfirmation(_from?: PromiseOrValue<string> | null, _lockedFundsId?: PromiseOrValue<BigNumberish> | null, _value?: null): LockedFundsPaymentConfirmationEventFilter;

checkLockedFundPayment(sender: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
confirmLockedFundPartialPayment(sender: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<BigNumber>;
confirmLockedFundPayment(sender: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<BigNumber>;
createLockedFund(usdcAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
createLockedFund(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<BigNumber>;
deposit(usdcAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
deposit(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<BigNumber>;
depositAndCreateLockedFund(usdcAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
depositAndCreateLockedFund(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<BigNumber>;
depositAndCreateLockedFundFor(usdcAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
depositAndCreateLockedFundFor(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<BigNumber>;
depositTo(usdcAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
depositTo(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
from?: PromiseOrValue<string>;

@@ -596,3 +638,3 @@ }): Promise<BigNumber>;

hasRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
initialize(_settlerRole: PromiseOrValue<string>, _settlementAddress: PromiseOrValue<string>, _usdcSmartContract: PromiseOrValue<string>, _defaultTimeoutBlocks: PromiseOrValue<BigNumberish>, _safetyBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
initialize(_settlerRole: PromiseOrValue<string>, _settlementAddress: PromiseOrValue<string>, _tokenSmartContract: PromiseOrValue<string>, _defaultTimeoutBlocks: PromiseOrValue<BigNumberish>, _safetyBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;

@@ -623,14 +665,17 @@ }): Promise<BigNumber>;

}): Promise<BigNumber>;
setTokenSmartContractAddress(newAddress: PromiseOrValue<string>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<BigNumber>;
settlementAddress(overrides?: CallOverrides): Promise<BigNumber>;
settlerAddress(overrides?: CallOverrides): Promise<BigNumber>;
supportsInterface(interfaceId: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<BigNumber>;
tokenSmartContract(overrides?: CallOverrides): Promise<BigNumber>;
tokenSmartContractAddress(overrides?: CallOverrides): Promise<BigNumber>;
unpause(overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<BigNumber>;
usdcSmartContract(overrides?: CallOverrides): Promise<BigNumber>;
usdcSmartContractAddress(overrides?: CallOverrides): Promise<BigNumber>;
withdraw(usdcAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
withdraw(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<BigNumber>;
withdrawTo(usdcAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
withdrawTo(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
from?: PromiseOrValue<string>;

@@ -645,18 +690,21 @@ }): Promise<BigNumber>;

checkLockedFundPayment(sender: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
confirmLockedFundPartialPayment(sender: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<PopulatedTransaction>;
confirmLockedFundPayment(sender: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<PopulatedTransaction>;
createLockedFund(usdcAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
createLockedFund(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<PopulatedTransaction>;
deposit(usdcAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
deposit(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<PopulatedTransaction>;
depositAndCreateLockedFund(usdcAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
depositAndCreateLockedFund(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<PopulatedTransaction>;
depositAndCreateLockedFundFor(usdcAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
depositAndCreateLockedFundFor(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<PopulatedTransaction>;
depositTo(usdcAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
depositTo(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
from?: PromiseOrValue<string>;

@@ -674,3 +722,3 @@ }): Promise<PopulatedTransaction>;

hasRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
initialize(_settlerRole: PromiseOrValue<string>, _settlementAddress: PromiseOrValue<string>, _usdcSmartContract: PromiseOrValue<string>, _defaultTimeoutBlocks: PromiseOrValue<BigNumberish>, _safetyBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
initialize(_settlerRole: PromiseOrValue<string>, _settlementAddress: PromiseOrValue<string>, _tokenSmartContract: PromiseOrValue<string>, _defaultTimeoutBlocks: PromiseOrValue<BigNumberish>, _safetyBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;

@@ -701,14 +749,17 @@ }): Promise<PopulatedTransaction>;

}): Promise<PopulatedTransaction>;
setTokenSmartContractAddress(newAddress: PromiseOrValue<string>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<PopulatedTransaction>;
settlementAddress(overrides?: CallOverrides): Promise<PopulatedTransaction>;
settlerAddress(overrides?: CallOverrides): Promise<PopulatedTransaction>;
supportsInterface(interfaceId: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
tokenSmartContract(overrides?: CallOverrides): Promise<PopulatedTransaction>;
tokenSmartContractAddress(overrides?: CallOverrides): Promise<PopulatedTransaction>;
unpause(overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<PopulatedTransaction>;
usdcSmartContract(overrides?: CallOverrides): Promise<PopulatedTransaction>;
usdcSmartContractAddress(overrides?: CallOverrides): Promise<PopulatedTransaction>;
withdraw(usdcAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
withdraw(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<PopulatedTransaction>;
withdrawTo(usdcAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
withdrawTo(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & {
from?: PromiseOrValue<string>;

@@ -715,0 +766,0 @@ }): Promise<PopulatedTransaction>;

{
"name": "@immersve/payment-protocol-types",
"version": "1.4.0",
"version": "1.4.1",
"description": "Typescript types for Immersve payment protocol smart contract",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc