@immersve/payment-protocol-types
Advanced tools
Comparing version 1.4.1 to 2.0.0
export declare const contractInfo: { | ||
abi: ({ | ||
anonymous: boolean; | ||
inputs: { | ||
indexed: boolean; | ||
internalType: string; | ||
@@ -12,13 +10,9 @@ name: string; | ||
type: string; | ||
stateMutability?: undefined; | ||
outputs?: undefined; | ||
} | { | ||
stateMutability: string; | ||
type: string; | ||
anonymous?: undefined; | ||
inputs?: undefined; | ||
name?: undefined; | ||
outputs?: undefined; | ||
stateMutability?: undefined; | ||
} | { | ||
anonymous: boolean; | ||
inputs: { | ||
indexed: boolean; | ||
internalType: string; | ||
@@ -29,10 +23,5 @@ name: string; | ||
name: string; | ||
outputs: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
stateMutability: string; | ||
type: string; | ||
anonymous?: undefined; | ||
outputs?: undefined; | ||
stateMutability?: undefined; | ||
} | { | ||
@@ -46,7 +35,2 @@ inputs: { | ||
outputs: { | ||
components: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
internalType: string; | ||
@@ -53,0 +37,0 @@ name: string; |
"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": "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" }; | ||
exports.contractInfo = { "abi": [{ "inputs": [{ "internalType": "string", "name": "_message", "type": "string" }], "name": "ThrowError", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "_address", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "_amount", "type": "uint256" }], "name": "DepositedAndLocked", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "_address", "type": "address" }], "name": "ExtendedLockedFund", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint8", "name": "version", "type": "uint8" }], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }], "name": "Paused", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "_address", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "_amount", "type": "uint256" }, { "indexed": true, "internalType": "string", "name": "_ref", "type": "string" }, { "indexed": false, "internalType": "uint256", "name": "_additionalTimeout", "type": "uint256" }], "name": "ProcessedPartialPayment", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "previousAdminRole", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "newAdminRole", "type": "bytes32" }], "name": "RoleAdminChanged", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" }], "name": "RoleGranted", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" }], "name": "RoleRevoked", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "_address", "type": "address" }], "name": "UnlockedLockedFund", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }], "name": "Unpaused", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "_address", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "_amount", "type": "uint256" }], "name": "Withdrawal", "type": "event" }, { "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": "uint256", "name": "_amount", "type": "uint256" }], "name": "depositAndLock", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "extendLockedFund", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_address", "type": "address" }, { "internalType": "uint256", "name": "_additionalBlocks", "type": "uint256" }], "name": "getLockedFundBalance", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }, { "internalType": "uint256", "name": "", "type": "uint256" }], "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": "_address", "type": "address" }, { "internalType": "uint256", "name": "_additionalBlocks", "type": "uint256" }], "name": "getTimeoutHasPassed", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "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": "uint256", "name": "_timeoutBlocks", "type": "uint256" }], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "lockedFunds", "outputs": [{ "internalType": "uint256", "name": "lastDepositBlock", "type": "uint256" }, { "internalType": "uint256", "name": "balance", "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": "address", "name": "_address", "type": "address" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" }, { "internalType": "string", "name": "_ref", "type": "string" }, { "internalType": "uint256", "name": "_additionalTimeout", "type": "uint256" }, { "internalType": "bool", "name": "_extendLock", "type": "bool" }], "name": "processPartialPayment", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" }], "name": "renounceRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" }], "name": "revokeRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "settlementAddress", "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": "timeoutBlocks", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "tokenSmartContract", "outputs": [{ "internalType": "contract IERC20Upgradeable", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_address", "type": "address" }], "name": "unlockLockedFund", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "unpause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_amount", "type": "uint256" }], "name": "withdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" }], "byteCode": "608060405234801561001057600080fd5b506119f9806100206000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c80638456cb59116100c3578063c4cb1cd41161007c578063c4cb1cd41461030f578063cf756fdf14610317578063d547741f1461032a578063d7f05da71461033d578063e63ab1e914610350578063f738c4a71461036557600080fd5b80638456cb591461027357806391d148541461027b578063a217fddf1461028e578063b065bad314610296578063b86247d7146102a9578063c24152cf146102e557600080fd5b806333e6c5091161011557806333e6c5091461021257806336568abe146102255780633f4ba83a146102385780635c975abb1461024057806362f232451461024b5780637445e85c1461025e57600080fd5b806301ffc9a71461015d57806306bba54e14610185578063248a9ca3146101b05780632e1a7d4d146101e15780632ebe14b0146101f65780632f2ff15d146101ff575b600080fd5b61017061016b366004611555565b610378565b60405190151581526020015b60405180910390f35b60fb54610198906001600160a01b031681565b6040516001600160a01b03909116815260200161017c565b6101d36101be36600461157f565b60009081526065602052604090206001015490565b60405190815260200161017c565b6101f46101ef36600461157f565b6103af565b005b6101d360fc5481565b6101f461020d3660046115ad565b61050f565b6101f461022036600461157f565b610539565b6101f46102333660046115ad565b610600565b6101f461067e565b60975460ff16610170565b6101706102593660046115dd565b61069e565b6101d36000805160206119a483398151915281565b6101f46106e9565b6101706102893660046115ad565b610709565b6101d3600081565b6101f46102a4366004611617565b610734565b6102d06102b73660046116c3565b60fe602052600090815260409020805460019091015482565b6040805192835260208301919091520161017c565b6102f86102f33660046115dd565b6108ee565b60408051921515835260208301919091520161017c565b6101f4610921565b6101f46103253660046116e0565b6109b4565b6101f46103383660046115ad565b610c57565b6101f461034b3660046116c3565b610c7c565b6101d360008051602061198483398151915281565b60fd54610198906001600160a01b031681565b60006001600160e01b03198216637965db0b60e01b14806103a957506301ffc9a760e01b6001600160e01b03198316145b92915050565b6103b7610ceb565b80600081116103e257604051639df396df60e01b81526004016103d990611731565b60405180910390fd5b6103ea610d44565b6000806103f83360006108ee565b90925090508161044057604051639df396df60e01b81526020600482015260126024820152711512535153d55517d393d517d41054d4d15160721b60448201526064016103d9565b8381101561048857604051639df396df60e01b8152602060048201526014602482015273494e53554646494349454e545f42414c414e434560601b60448201526064016103d9565b33600090815260fe6020526040812060010180548692906104aa908490611776565b909155505060fb546104c6906001600160a01b03163386610d8c565b60408051338152602081018690527f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65910160405180910390a150505061050c600160c955565b50565b60008281526065602052604090206001015461052a81610df6565b6105348383610e00565b505050565b610541610ceb565b806000811161056357604051639df396df60e01b81526004016103d990611731565b61056b610d44565b33600090815260fe60205260408120600101805484929061058d908490611789565b909155505060fb546105aa906001600160a01b0316333085610e86565b33600081815260fe6020908152604091829020439055815192835282018490527f369cfb7fac25b2fc8904729a471455f1c45b3506ba6cb72a30b698ce406bb68a910160405180910390a15061050c600160c955565b6001600160a01b03811633146106705760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016103d9565b61067a8282610ec4565b5050565b60008051602061198483398151915261069681610df6565b61050c610f2b565b60008160fc546106ae9190611789565b6001600160a01b038416600090815260fe60205260409020546106d19190611789565b4311156106e0575060016103a9565b50600092915050565b60008051602061198483398151915261070181610df6565b61050c610f7d565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000805160206119a483398151915261074c81610df6565b856000811161076e57604051639df396df60e01b81526004016103d990611731565b610776610d44565b8215610798576001600160a01b038816600090815260fe602052604090204390555b6000806107a58a876108ee565b909250905081156107f257604051639df396df60e01b81526020600482015260166024820152751512535153d55517d053149150511657d41054d4d15160521b60448201526064016103d9565b8881101561083a57604051639df396df60e01b8152602060048201526014602482015273494e53554646494349454e545f42414c414e434560601b60448201526064016103d9565b6001600160a01b038a16600090815260fe6020526040812060010180548b9290610865908490611776565b909155505060fd5460fb54610887916001600160a01b0391821691168b610d8c565b878760405161089792919061179c565b604080519182900382208b835260208301899052916001600160a01b038d16917f8584e70f54f89060dbe9dac58fb794f2643dfd383ff2b6d545596e91dbd3b2fa910160405180910390a350505050505050505050565b6000806108fb848461069e565b6001600160a01b0394909416600090815260fe6020526040902060010154939492505050565b610929610d44565b33600090815260fe602052604090206001015461097a5760405162461bcd60e51b815260206004820152600f60248201526e4e4f5f4c4f434b45445f46554e445360881b60448201526064016103d9565b33600081815260fe6020526040808220439055517f2dbb77f4d61f44b9f50b8dc2c480887564cc76c0c7b0556c13c70c7d45ce0f7f9190a2565b600054610100900460ff16158080156109d45750600054600160ff909116105b806109ee5750303b1580156109ee575060005460ff166001145b610a515760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016103d9565b6000805460ff191660011790558015610a74576000805461ff0019166101001790555b836001600160a01b038116610a9c57604051639df396df60e01b81526004016103d9906117ac565b836001600160a01b038116610ac457604051639df396df60e01b81526004016103d9906117ac565b866001600160a01b038116610aec57604051639df396df60e01b81526004016103d9906117ac565b60008511610b365760405162461bcd60e51b81526020600482015260176024820152761d1a5b595bdd5d109b1bd8dadcc81b9bdd081d985b1a59604a1b60448201526064016103d9565b438510610b7f5760405162461bcd60e51b81526020600482015260176024820152761d1a5b595bdd5d109b1bd8dadcc81b9bdd081d985b1a59604a1b60448201526064016103d9565b610b87610fba565b610b8f610fe9565b610b97611018565b610ba2600033610e00565b610bba60008051602061198483398151915289610e00565b610bd26000805160206119a483398151915289610e00565b505060fb80546001600160a01b038087166001600160a01b03199283161790925560fd8054928816929091169190911790555060fc8290558015610c50576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050565b600082815260656020526040902060010154610c7281610df6565b6105348383610ec4565b6000805160206119a4833981519152610c9481610df6565b610c9c610d44565b60fc546001600160a01b038316600081815260fe60205260408082204394909403909355915190917fd66ea4a557d441d3d10e5e3b74ec4c41ffa71e4d6995b6406005960e938d450991a25050565b600260c95403610d3d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103d9565b600260c955565b60975460ff1615610d8a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016103d9565b565b6040516001600160a01b03831660248201526044810182905261053490849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261103f565b600160c955565b61050c8133611114565b610e0a8282610709565b61067a5760008281526065602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610e423390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6040516001600160a01b0380851660248301528316604482015260648101829052610ebe9085906323b872dd60e01b90608401610db8565b50505050565b610ece8282610709565b1561067a5760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610f3361116d565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610f85610d44565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610f603390565b600054610100900460ff16610fe15760405162461bcd60e51b81526004016103d9906117d9565b610d8a6111b6565b600054610100900460ff166110105760405162461bcd60e51b81526004016103d9906117d9565b610d8a6111e9565b600054610100900460ff16610d8a5760405162461bcd60e51b81526004016103d9906117d9565b6000611094826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112109092919063ffffffff16565b90508051600014806110b55750808060200190518101906110b59190611824565b6105345760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103d9565b61111e8282610709565b61067a5761112b81611227565b611136836020611239565b604051602001611147929190611865565b60408051601f198184030181529082905262461bcd60e51b82526103d9916004016118da565b60975460ff16610d8a5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016103d9565b600054610100900460ff166111dd5760405162461bcd60e51b81526004016103d9906117d9565b6097805460ff19169055565b600054610100900460ff16610def5760405162461bcd60e51b81526004016103d9906117d9565b606061121f84846000856113dc565b949350505050565b60606103a96001600160a01b03831660145b6060600061124883600261190d565b611253906002611789565b67ffffffffffffffff81111561126b5761126b611924565b6040519080825280601f01601f191660200182016040528015611295576020820181803683370190505b509050600360fc1b816000815181106112b0576112b061193a565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106112df576112df61193a565b60200101906001600160f81b031916908160001a905350600061130384600261190d565b61130e906001611789565b90505b6001811115611386576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106113425761134261193a565b1a60f81b8282815181106113585761135861193a565b60200101906001600160f81b031916908160001a90535060049490941c9361137f81611950565b9050611311565b5083156113d55760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016103d9565b9392505050565b60608247101561143d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103d9565b600080866001600160a01b031685876040516114599190611967565b60006040518083038185875af1925050503d8060008114611496576040519150601f19603f3d011682016040523d82523d6000602084013e61149b565b606091505b50915091506114ac878383876114b7565b979650505050505050565b6060831561152657825160000361151f576001600160a01b0385163b61151f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103d9565b508161121f565b61121f838381511561153b5781518083602001fd5b8060405162461bcd60e51b81526004016103d991906118da565b60006020828403121561156757600080fd5b81356001600160e01b0319811681146113d557600080fd5b60006020828403121561159157600080fd5b5035919050565b6001600160a01b038116811461050c57600080fd5b600080604083850312156115c057600080fd5b8235915060208301356115d281611598565b809150509250929050565b600080604083850312156115f057600080fd5b82356115fb81611598565b946020939093013593505050565b801515811461050c57600080fd5b60008060008060008060a0878903121561163057600080fd5b863561163b81611598565b955060208701359450604087013567ffffffffffffffff8082111561165f57600080fd5b818901915089601f83011261167357600080fd5b81358181111561168257600080fd5b8a602082850101111561169457600080fd5b6020830196508095505050506060870135915060808701356116b581611609565b809150509295509295509295565b6000602082840312156116d557600080fd5b81356113d581611598565b600080600080608085870312156116f657600080fd5b843561170181611598565b9350602085013561171181611598565b9250604085013561172181611598565b9396929550929360600135925050565b60208082526015908201527416915493d7d59053155157d11254d0531313d5d151605a1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b818103818111156103a9576103a9611760565b808201808211156103a9576103a9611760565b8183823760009101908152919050565b6020808252601390820152724e554c4c5f53454e4445525f4144445245535360681b604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006020828403121561183657600080fd5b81516113d581611609565b60005b8381101561185c578181015183820152602001611844565b50506000910152565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161189d816017850160208801611841565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516118ce816028840160208801611841565b01602801949350505050565b60208152600082518060208401526118f9816040850160208701611841565b601f01601f19169190910160400192915050565b80820281158282048414176103a9576103a9611760565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60008161195f5761195f611760565b506000190190565b60008251611979818460208701611841565b919091019291505056fe65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6666bf5bfee463d10a7fc50448047f8a53b7762d7e28fbc5c643182785f3fd3fa26469706673582212207043988f25fccc6fe6af574aca978475242f94a7415c10590ad8fd9025a3cc7c64736f6c63430008130033" }; |
@@ -11,3 +11,3 @@ import type { Listener } from "@ethersproject/providers"; | ||
} | ||
declare type __TypechainArgsArray<T> = T extends TypedEvent<infer U> ? U : never; | ||
type __TypechainArgsArray<T> = T extends TypedEvent<infer U> ? U : never; | ||
export interface OnEvent<TRes> { | ||
@@ -17,8 +17,8 @@ <TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>, listener: TypedListener<TEvent>): TRes; | ||
} | ||
export declare type MinEthersFactory<C, ARGS> = { | ||
export type MinEthersFactory<C, ARGS> = { | ||
deploy(...a: ARGS[]): Promise<C>; | ||
}; | ||
export declare type GetContractTypeFromFactory<F> = F extends MinEthersFactory<infer C, any> ? C : never; | ||
export declare type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> ? Parameters<F["deploy"]> : never; | ||
export declare type PromiseOrValue<T> = T | Promise<T>; | ||
export type GetContractTypeFromFactory<F> = F extends MinEthersFactory<infer C, any> ? C : never; | ||
export type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> ? Parameters<F["deploy"]> : never; | ||
export type PromiseOrValue<T> = T | Promise<T>; | ||
export {}; |
@@ -5,59 +5,490 @@ import { Signer } from "ethers"; | ||
export declare class ImmersvePaymentProtocol__factory { | ||
static readonly abi: ({ | ||
anonymous: boolean; | ||
inputs: { | ||
indexed: boolean; | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
name: string; | ||
type: string; | ||
stateMutability?: undefined; | ||
outputs?: undefined; | ||
} | { | ||
stateMutability: string; | ||
type: string; | ||
anonymous?: undefined; | ||
inputs?: undefined; | ||
name?: undefined; | ||
outputs?: undefined; | ||
} | { | ||
inputs: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
name: string; | ||
outputs: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
stateMutability: string; | ||
type: string; | ||
anonymous?: undefined; | ||
} | { | ||
inputs: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
name: string; | ||
outputs: { | ||
components: { | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
internalType: string; | ||
name: string; | ||
type: string; | ||
}[]; | ||
stateMutability: string; | ||
type: string; | ||
anonymous?: undefined; | ||
})[]; | ||
static readonly abi: readonly [{ | ||
readonly inputs: readonly [{ | ||
readonly internalType: "string"; | ||
readonly name: "_message"; | ||
readonly type: "string"; | ||
}]; | ||
readonly name: "ThrowError"; | ||
readonly type: "error"; | ||
}, { | ||
readonly anonymous: false; | ||
readonly inputs: readonly [{ | ||
readonly indexed: false; | ||
readonly internalType: "address"; | ||
readonly name: "_address"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "uint256"; | ||
readonly name: "_amount"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "DepositedAndLocked"; | ||
readonly type: "event"; | ||
}, { | ||
readonly anonymous: false; | ||
readonly inputs: readonly [{ | ||
readonly indexed: true; | ||
readonly internalType: "address"; | ||
readonly name: "_address"; | ||
readonly type: "address"; | ||
}]; | ||
readonly name: "ExtendedLockedFund"; | ||
readonly type: "event"; | ||
}, { | ||
readonly anonymous: false; | ||
readonly inputs: readonly [{ | ||
readonly indexed: false; | ||
readonly internalType: "uint8"; | ||
readonly name: "version"; | ||
readonly type: "uint8"; | ||
}]; | ||
readonly name: "Initialized"; | ||
readonly type: "event"; | ||
}, { | ||
readonly anonymous: false; | ||
readonly inputs: readonly [{ | ||
readonly indexed: false; | ||
readonly internalType: "address"; | ||
readonly name: "account"; | ||
readonly type: "address"; | ||
}]; | ||
readonly name: "Paused"; | ||
readonly type: "event"; | ||
}, { | ||
readonly anonymous: false; | ||
readonly inputs: readonly [{ | ||
readonly indexed: true; | ||
readonly internalType: "address"; | ||
readonly name: "_address"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "uint256"; | ||
readonly name: "_amount"; | ||
readonly type: "uint256"; | ||
}, { | ||
readonly indexed: true; | ||
readonly internalType: "string"; | ||
readonly name: "_ref"; | ||
readonly type: "string"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "uint256"; | ||
readonly name: "_additionalTimeout"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "ProcessedPartialPayment"; | ||
readonly type: "event"; | ||
}, { | ||
readonly anonymous: false; | ||
readonly inputs: readonly [{ | ||
readonly indexed: true; | ||
readonly internalType: "bytes32"; | ||
readonly name: "role"; | ||
readonly type: "bytes32"; | ||
}, { | ||
readonly indexed: true; | ||
readonly internalType: "bytes32"; | ||
readonly name: "previousAdminRole"; | ||
readonly type: "bytes32"; | ||
}, { | ||
readonly indexed: true; | ||
readonly internalType: "bytes32"; | ||
readonly name: "newAdminRole"; | ||
readonly type: "bytes32"; | ||
}]; | ||
readonly name: "RoleAdminChanged"; | ||
readonly type: "event"; | ||
}, { | ||
readonly anonymous: false; | ||
readonly inputs: readonly [{ | ||
readonly indexed: true; | ||
readonly internalType: "bytes32"; | ||
readonly name: "role"; | ||
readonly type: "bytes32"; | ||
}, { | ||
readonly indexed: true; | ||
readonly internalType: "address"; | ||
readonly name: "account"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: true; | ||
readonly internalType: "address"; | ||
readonly name: "sender"; | ||
readonly type: "address"; | ||
}]; | ||
readonly name: "RoleGranted"; | ||
readonly type: "event"; | ||
}, { | ||
readonly anonymous: false; | ||
readonly inputs: readonly [{ | ||
readonly indexed: true; | ||
readonly internalType: "bytes32"; | ||
readonly name: "role"; | ||
readonly type: "bytes32"; | ||
}, { | ||
readonly indexed: true; | ||
readonly internalType: "address"; | ||
readonly name: "account"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: true; | ||
readonly internalType: "address"; | ||
readonly name: "sender"; | ||
readonly type: "address"; | ||
}]; | ||
readonly name: "RoleRevoked"; | ||
readonly type: "event"; | ||
}, { | ||
readonly anonymous: false; | ||
readonly inputs: readonly [{ | ||
readonly indexed: true; | ||
readonly internalType: "address"; | ||
readonly name: "_address"; | ||
readonly type: "address"; | ||
}]; | ||
readonly name: "UnlockedLockedFund"; | ||
readonly type: "event"; | ||
}, { | ||
readonly anonymous: false; | ||
readonly inputs: readonly [{ | ||
readonly indexed: false; | ||
readonly internalType: "address"; | ||
readonly name: "account"; | ||
readonly type: "address"; | ||
}]; | ||
readonly name: "Unpaused"; | ||
readonly type: "event"; | ||
}, { | ||
readonly anonymous: false; | ||
readonly inputs: readonly [{ | ||
readonly indexed: false; | ||
readonly internalType: "address"; | ||
readonly name: "_address"; | ||
readonly type: "address"; | ||
}, { | ||
readonly indexed: false; | ||
readonly internalType: "uint256"; | ||
readonly name: "_amount"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "Withdrawal"; | ||
readonly type: "event"; | ||
}, { | ||
readonly inputs: readonly []; | ||
readonly name: "DEFAULT_ADMIN_ROLE"; | ||
readonly outputs: readonly [{ | ||
readonly internalType: "bytes32"; | ||
readonly name: ""; | ||
readonly type: "bytes32"; | ||
}]; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly []; | ||
readonly name: "PAUSER_ROLE"; | ||
readonly outputs: readonly [{ | ||
readonly internalType: "bytes32"; | ||
readonly name: ""; | ||
readonly type: "bytes32"; | ||
}]; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly []; | ||
readonly name: "SETTLER_ROLE"; | ||
readonly outputs: readonly [{ | ||
readonly internalType: "bytes32"; | ||
readonly name: ""; | ||
readonly type: "bytes32"; | ||
}]; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "uint256"; | ||
readonly name: "_amount"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "depositAndLock"; | ||
readonly outputs: readonly []; | ||
readonly stateMutability: "nonpayable"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly []; | ||
readonly name: "extendLockedFund"; | ||
readonly outputs: readonly []; | ||
readonly stateMutability: "nonpayable"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "address"; | ||
readonly name: "_address"; | ||
readonly type: "address"; | ||
}, { | ||
readonly internalType: "uint256"; | ||
readonly name: "_additionalBlocks"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "getLockedFundBalance"; | ||
readonly outputs: readonly [{ | ||
readonly internalType: "bool"; | ||
readonly name: ""; | ||
readonly type: "bool"; | ||
}, { | ||
readonly internalType: "uint256"; | ||
readonly name: ""; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "bytes32"; | ||
readonly name: "role"; | ||
readonly type: "bytes32"; | ||
}]; | ||
readonly name: "getRoleAdmin"; | ||
readonly outputs: readonly [{ | ||
readonly internalType: "bytes32"; | ||
readonly name: ""; | ||
readonly type: "bytes32"; | ||
}]; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "address"; | ||
readonly name: "_address"; | ||
readonly type: "address"; | ||
}, { | ||
readonly internalType: "uint256"; | ||
readonly name: "_additionalBlocks"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "getTimeoutHasPassed"; | ||
readonly outputs: readonly [{ | ||
readonly internalType: "bool"; | ||
readonly name: ""; | ||
readonly type: "bool"; | ||
}]; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "bytes32"; | ||
readonly name: "role"; | ||
readonly type: "bytes32"; | ||
}, { | ||
readonly internalType: "address"; | ||
readonly name: "account"; | ||
readonly type: "address"; | ||
}]; | ||
readonly name: "grantRole"; | ||
readonly outputs: readonly []; | ||
readonly stateMutability: "nonpayable"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "bytes32"; | ||
readonly name: "role"; | ||
readonly type: "bytes32"; | ||
}, { | ||
readonly internalType: "address"; | ||
readonly name: "account"; | ||
readonly type: "address"; | ||
}]; | ||
readonly name: "hasRole"; | ||
readonly outputs: readonly [{ | ||
readonly internalType: "bool"; | ||
readonly name: ""; | ||
readonly type: "bool"; | ||
}]; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "address"; | ||
readonly name: "_settlerRole"; | ||
readonly type: "address"; | ||
}, { | ||
readonly internalType: "address payable"; | ||
readonly name: "_settlementAddress"; | ||
readonly type: "address"; | ||
}, { | ||
readonly internalType: "address"; | ||
readonly name: "_tokenSmartContract"; | ||
readonly type: "address"; | ||
}, { | ||
readonly internalType: "uint256"; | ||
readonly name: "_timeoutBlocks"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "initialize"; | ||
readonly outputs: readonly []; | ||
readonly stateMutability: "nonpayable"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "address"; | ||
readonly name: ""; | ||
readonly type: "address"; | ||
}]; | ||
readonly name: "lockedFunds"; | ||
readonly outputs: readonly [{ | ||
readonly internalType: "uint256"; | ||
readonly name: "lastDepositBlock"; | ||
readonly type: "uint256"; | ||
}, { | ||
readonly internalType: "uint256"; | ||
readonly name: "balance"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly []; | ||
readonly name: "pause"; | ||
readonly outputs: readonly []; | ||
readonly stateMutability: "nonpayable"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly []; | ||
readonly name: "paused"; | ||
readonly outputs: readonly [{ | ||
readonly internalType: "bool"; | ||
readonly name: ""; | ||
readonly type: "bool"; | ||
}]; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "address"; | ||
readonly name: "_address"; | ||
readonly type: "address"; | ||
}, { | ||
readonly internalType: "uint256"; | ||
readonly name: "_amount"; | ||
readonly type: "uint256"; | ||
}, { | ||
readonly internalType: "string"; | ||
readonly name: "_ref"; | ||
readonly type: "string"; | ||
}, { | ||
readonly internalType: "uint256"; | ||
readonly name: "_additionalTimeout"; | ||
readonly type: "uint256"; | ||
}, { | ||
readonly internalType: "bool"; | ||
readonly name: "_extendLock"; | ||
readonly type: "bool"; | ||
}]; | ||
readonly name: "processPartialPayment"; | ||
readonly outputs: readonly []; | ||
readonly stateMutability: "nonpayable"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "bytes32"; | ||
readonly name: "role"; | ||
readonly type: "bytes32"; | ||
}, { | ||
readonly internalType: "address"; | ||
readonly name: "account"; | ||
readonly type: "address"; | ||
}]; | ||
readonly name: "renounceRole"; | ||
readonly outputs: readonly []; | ||
readonly stateMutability: "nonpayable"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "bytes32"; | ||
readonly name: "role"; | ||
readonly type: "bytes32"; | ||
}, { | ||
readonly internalType: "address"; | ||
readonly name: "account"; | ||
readonly type: "address"; | ||
}]; | ||
readonly name: "revokeRole"; | ||
readonly outputs: readonly []; | ||
readonly stateMutability: "nonpayable"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly []; | ||
readonly name: "settlementAddress"; | ||
readonly outputs: readonly [{ | ||
readonly internalType: "address"; | ||
readonly name: ""; | ||
readonly type: "address"; | ||
}]; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "bytes4"; | ||
readonly name: "interfaceId"; | ||
readonly type: "bytes4"; | ||
}]; | ||
readonly name: "supportsInterface"; | ||
readonly outputs: readonly [{ | ||
readonly internalType: "bool"; | ||
readonly name: ""; | ||
readonly type: "bool"; | ||
}]; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly []; | ||
readonly name: "timeoutBlocks"; | ||
readonly outputs: readonly [{ | ||
readonly internalType: "uint256"; | ||
readonly name: ""; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly []; | ||
readonly name: "tokenSmartContract"; | ||
readonly outputs: readonly [{ | ||
readonly internalType: "contract IERC20Upgradeable"; | ||
readonly name: ""; | ||
readonly type: "address"; | ||
}]; | ||
readonly stateMutability: "view"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "address"; | ||
readonly name: "_address"; | ||
readonly type: "address"; | ||
}]; | ||
readonly name: "unlockLockedFund"; | ||
readonly outputs: readonly []; | ||
readonly stateMutability: "nonpayable"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly []; | ||
readonly name: "unpause"; | ||
readonly outputs: readonly []; | ||
readonly stateMutability: "nonpayable"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "uint256"; | ||
readonly name: "_amount"; | ||
readonly type: "uint256"; | ||
}]; | ||
readonly name: "withdraw"; | ||
readonly outputs: readonly []; | ||
readonly stateMutability: "nonpayable"; | ||
readonly type: "function"; | ||
}]; | ||
static createInterface(): ImmersvePaymentProtocolInterface; | ||
static connect(address: string, signerOrProvider: Signer | Provider): ImmersvePaymentProtocol; | ||
} |
@@ -10,13 +10,11 @@ "use strict"; | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: false, | ||
internalType: "uint8", | ||
name: "version", | ||
type: "uint8", | ||
internalType: "string", | ||
name: "_message", | ||
type: "string", | ||
}, | ||
], | ||
name: "Initialized", | ||
type: "event", | ||
name: "ThrowError", | ||
type: "error", | ||
}, | ||
@@ -27,21 +25,15 @@ { | ||
{ | ||
indexed: true, | ||
indexed: false, | ||
internalType: "address", | ||
name: "_from", | ||
name: "_address", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "uint256", | ||
name: "_lockedFundsId", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "_value", | ||
name: "_amount", | ||
type: "uint256", | ||
}, | ||
], | ||
name: "LockedFunds", | ||
name: "DepositedAndLocked", | ||
type: "event", | ||
@@ -55,19 +47,7 @@ }, | ||
internalType: "address", | ||
name: "_from", | ||
name: "_address", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "uint256", | ||
name: "_lockedFundsId", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "_value", | ||
type: "uint256", | ||
}, | ||
], | ||
name: "LockedFundsPartialPaymentConfirmation", | ||
name: "ExtendedLockedFund", | ||
type: "event", | ||
@@ -79,21 +59,9 @@ }, | ||
{ | ||
indexed: true, | ||
internalType: "address", | ||
name: "_from", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "uint256", | ||
name: "_lockedFundsId", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "_value", | ||
type: "uint256", | ||
internalType: "uint8", | ||
name: "version", | ||
type: "uint8", | ||
}, | ||
], | ||
name: "LockedFundsPaymentConfirmation", | ||
name: "Initialized", | ||
type: "event", | ||
@@ -105,21 +73,9 @@ }, | ||
{ | ||
indexed: true, | ||
indexed: false, | ||
internalType: "address", | ||
name: "_to", | ||
name: "account", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "uint256", | ||
name: "_lockedFundsId", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "_value", | ||
type: "uint256", | ||
}, | ||
], | ||
name: "LockedFundsRevoked", | ||
name: "Paused", | ||
type: "event", | ||
@@ -133,19 +89,25 @@ }, | ||
internalType: "address", | ||
name: "_from", | ||
name: "_address", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: true, | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "_lockedFundsId", | ||
name: "_amount", | ||
type: "uint256", | ||
}, | ||
{ | ||
indexed: true, | ||
internalType: "string", | ||
name: "_ref", | ||
type: "string", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "_value", | ||
name: "_additionalTimeout", | ||
type: "uint256", | ||
}, | ||
], | ||
name: "LockedFundsWithDeposit", | ||
name: "ProcessedPartialPayment", | ||
type: "event", | ||
@@ -157,15 +119,2 @@ }, | ||
{ | ||
indexed: false, | ||
internalType: "address", | ||
name: "account", | ||
type: "address", | ||
}, | ||
], | ||
name: "Paused", | ||
type: "event", | ||
}, | ||
{ | ||
anonymous: false, | ||
inputs: [ | ||
{ | ||
indexed: true, | ||
@@ -246,9 +195,9 @@ internalType: "bytes32", | ||
{ | ||
indexed: false, | ||
indexed: true, | ||
internalType: "address", | ||
name: "account", | ||
name: "_address", | ||
type: "address", | ||
}, | ||
], | ||
name: "Unpaused", | ||
name: "UnlockedLockedFund", | ||
type: "event", | ||
@@ -260,15 +209,9 @@ }, | ||
{ | ||
indexed: true, | ||
indexed: false, | ||
internalType: "address", | ||
name: "_from", | ||
name: "account", | ||
type: "address", | ||
}, | ||
{ | ||
indexed: false, | ||
internalType: "uint256", | ||
name: "_value", | ||
type: "uint256", | ||
}, | ||
], | ||
name: "UserDeposit", | ||
name: "Unpaused", | ||
type: "event", | ||
@@ -280,5 +223,5 @@ }, | ||
{ | ||
indexed: true, | ||
indexed: false, | ||
internalType: "address", | ||
name: "_to", | ||
name: "_address", | ||
type: "address", | ||
@@ -289,14 +232,10 @@ }, | ||
internalType: "uint256", | ||
name: "_value", | ||
name: "_amount", | ||
type: "uint256", | ||
}, | ||
], | ||
name: "UserWithdraw", | ||
name: "Withdrawal", | ||
type: "event", | ||
}, | ||
{ | ||
stateMutability: "payable", | ||
type: "fallback", | ||
}, | ||
{ | ||
inputs: [], | ||
@@ -343,66 +282,8 @@ name: "DEFAULT_ADMIN_ROLE", | ||
{ | ||
internalType: "address", | ||
name: "", | ||
type: "address", | ||
}, | ||
], | ||
name: "balances", | ||
outputs: [ | ||
{ | ||
internalType: "uint256", | ||
name: "", | ||
name: "_amount", | ||
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", | ||
name: "depositAndLock", | ||
outputs: [], | ||
@@ -413,20 +294,4 @@ stateMutability: "nonpayable", | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "address", | ||
name: "sender", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "uint256", | ||
name: "price", | ||
type: "uint256", | ||
}, | ||
{ | ||
internalType: "uint256", | ||
name: "lockedFundId", | ||
type: "uint256", | ||
}, | ||
], | ||
name: "confirmLockedFundPayment", | ||
inputs: [], | ||
name: "extendLockedFund", | ||
outputs: [], | ||
@@ -439,97 +304,19 @@ stateMutability: "nonpayable", | ||
{ | ||
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", | ||
name: "_address", | ||
type: "address", | ||
}, | ||
], | ||
name: "depositAndCreateLockedFundFor", | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "uint256", | ||
name: "tokenAmount", | ||
name: "_additionalBlocks", | ||
type: "uint256", | ||
}, | ||
{ | ||
internalType: "address", | ||
name: "sender", | ||
type: "address", | ||
}, | ||
], | ||
name: "depositTo", | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "address", | ||
name: "sender", | ||
type: "address", | ||
}, | ||
], | ||
name: "getAvailableLockedFundsBalance", | ||
name: "getLockedFundBalance", | ||
outputs: [ | ||
{ | ||
internalType: "uint256", | ||
internalType: "bool", | ||
name: "", | ||
type: "uint256", | ||
type: "bool", | ||
}, | ||
], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [], | ||
name: "getBalance", | ||
outputs: [ | ||
{ | ||
@@ -545,32 +332,2 @@ internalType: "uint256", | ||
{ | ||
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: [ | ||
@@ -598,48 +355,17 @@ { | ||
internalType: "address", | ||
name: "sender", | ||
name: "_address", | ||
type: "address", | ||
}, | ||
], | ||
name: "getSenderBalance", | ||
outputs: [ | ||
{ | ||
internalType: "uint256", | ||
name: "", | ||
name: "_additionalBlocks", | ||
type: "uint256", | ||
}, | ||
], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "address", | ||
name: "sender", | ||
type: "address", | ||
}, | ||
], | ||
name: "getSenderLockedFunds", | ||
name: "getTimeoutHasPassed", | ||
outputs: [ | ||
{ | ||
components: [ | ||
{ | ||
internalType: "uint256", | ||
name: "lockedFundId", | ||
type: "uint256", | ||
}, | ||
{ | ||
internalType: "uint256", | ||
name: "timeout", | ||
type: "uint256", | ||
}, | ||
{ | ||
internalType: "uint256", | ||
name: "price", | ||
type: "uint256", | ||
}, | ||
], | ||
internalType: "struct ImmersvePaymentProtocol.AssetLockedFund[]", | ||
internalType: "bool", | ||
name: "", | ||
type: "tuple[]", | ||
type: "bool", | ||
}, | ||
@@ -710,11 +436,6 @@ ], | ||
{ | ||
internalType: "uint32", | ||
name: "_defaultTimeoutBlocks", | ||
type: "uint32", | ||
internalType: "uint256", | ||
name: "_timeoutBlocks", | ||
type: "uint256", | ||
}, | ||
{ | ||
internalType: "uint16", | ||
name: "_safetyBlocks", | ||
type: "uint16", | ||
}, | ||
], | ||
@@ -733,7 +454,2 @@ name: "initialize", | ||
}, | ||
{ | ||
internalType: "uint256", | ||
name: "", | ||
type: "uint256", | ||
}, | ||
], | ||
@@ -744,3 +460,3 @@ name: "lockedFunds", | ||
internalType: "uint256", | ||
name: "lockedFundId", | ||
name: "lastDepositBlock", | ||
type: "uint256", | ||
@@ -750,10 +466,5 @@ }, | ||
internalType: "uint256", | ||
name: "timeout", | ||
name: "balance", | ||
type: "uint256", | ||
}, | ||
{ | ||
internalType: "uint256", | ||
name: "price", | ||
type: "uint256", | ||
}, | ||
], | ||
@@ -786,54 +497,28 @@ stateMutability: "view", | ||
{ | ||
internalType: "bytes32", | ||
name: "role", | ||
type: "bytes32", | ||
}, | ||
{ | ||
internalType: "address", | ||
name: "account", | ||
name: "_address", | ||
type: "address", | ||
}, | ||
], | ||
name: "renounceRole", | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "address", | ||
name: "sender", | ||
type: "address", | ||
}, | ||
{ | ||
internalType: "uint256", | ||
name: "lockedFundId", | ||
name: "_amount", | ||
type: "uint256", | ||
}, | ||
], | ||
name: "revokeLockedFund", | ||
outputs: [], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "uint256", | ||
name: "lockedFundId", | ||
type: "uint256", | ||
internalType: "string", | ||
name: "_ref", | ||
type: "string", | ||
}, | ||
{ | ||
internalType: "uint256", | ||
name: "nonce", | ||
name: "_additionalTimeout", | ||
type: "uint256", | ||
}, | ||
{ | ||
internalType: "bytes", | ||
name: "signature", | ||
type: "bytes", | ||
internalType: "bool", | ||
name: "_extendLock", | ||
type: "bool", | ||
}, | ||
], | ||
name: "revokeLockedFundMultiSig", | ||
name: "processPartialPayment", | ||
outputs: [], | ||
@@ -856,3 +541,3 @@ stateMutability: "nonpayable", | ||
], | ||
name: "revokeRole", | ||
name: "renounceRole", | ||
outputs: [], | ||
@@ -865,34 +550,13 @@ stateMutability: "nonpayable", | ||
{ | ||
internalType: "uint16", | ||
name: "_safetyBlocks", | ||
type: "uint16", | ||
internalType: "bytes32", | ||
name: "role", | ||
type: "bytes32", | ||
}, | ||
], | ||
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", | ||
name: "account", | ||
type: "address", | ||
}, | ||
], | ||
name: "setTokenSmartContractAddress", | ||
name: "revokeRole", | ||
outputs: [], | ||
@@ -907,15 +571,2 @@ stateMutability: "nonpayable", | ||
{ | ||
internalType: "address payable", | ||
name: "", | ||
type: "address", | ||
}, | ||
], | ||
stateMutability: "view", | ||
type: "function", | ||
}, | ||
{ | ||
inputs: [], | ||
name: "settlerAddress", | ||
outputs: [ | ||
{ | ||
internalType: "address", | ||
@@ -950,8 +601,8 @@ name: "", | ||
inputs: [], | ||
name: "tokenSmartContract", | ||
name: "timeoutBlocks", | ||
outputs: [ | ||
{ | ||
internalType: "contract IERC20Upgradeable", | ||
internalType: "uint256", | ||
name: "", | ||
type: "address", | ||
type: "uint256", | ||
}, | ||
@@ -964,6 +615,6 @@ ], | ||
inputs: [], | ||
name: "tokenSmartContractAddress", | ||
name: "tokenSmartContract", | ||
outputs: [ | ||
{ | ||
internalType: "address", | ||
internalType: "contract IERC20Upgradeable", | ||
name: "", | ||
@@ -977,4 +628,10 @@ type: "address", | ||
{ | ||
inputs: [], | ||
name: "unpause", | ||
inputs: [ | ||
{ | ||
internalType: "address", | ||
name: "_address", | ||
type: "address", | ||
}, | ||
], | ||
name: "unlockLockedFund", | ||
outputs: [], | ||
@@ -985,10 +642,4 @@ stateMutability: "nonpayable", | ||
{ | ||
inputs: [ | ||
{ | ||
internalType: "uint256", | ||
name: "tokenAmount", | ||
type: "uint256", | ||
}, | ||
], | ||
name: "withdraw", | ||
inputs: [], | ||
name: "unpause", | ||
outputs: [], | ||
@@ -1002,12 +653,7 @@ stateMutability: "nonpayable", | ||
internalType: "uint256", | ||
name: "tokenAmount", | ||
name: "_amount", | ||
type: "uint256", | ||
}, | ||
{ | ||
internalType: "address", | ||
name: "sender", | ||
type: "address", | ||
}, | ||
], | ||
name: "withdrawTo", | ||
name: "withdraw", | ||
outputs: [], | ||
@@ -1017,6 +663,2 @@ stateMutability: "nonpayable", | ||
}, | ||
{ | ||
stateMutability: "payable", | ||
type: "receive", | ||
}, | ||
]; | ||
@@ -1023,0 +665,0 @@ class ImmersvePaymentProtocol__factory { |
@@ -5,18 +5,2 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers"; | ||
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "./common"; | ||
export declare namespace ImmersvePaymentProtocol { | ||
type AssetLockedFundStruct = { | ||
lockedFundId: PromiseOrValue<BigNumberish>; | ||
timeout: PromiseOrValue<BigNumberish>; | ||
price: PromiseOrValue<BigNumberish>; | ||
}; | ||
type AssetLockedFundStructOutput = [ | ||
BigNumber, | ||
BigNumber, | ||
BigNumber | ||
] & { | ||
lockedFundId: BigNumber; | ||
timeout: BigNumber; | ||
price: BigNumber; | ||
}; | ||
} | ||
export interface ImmersvePaymentProtocolInterface extends utils.Interface { | ||
@@ -27,70 +11,33 @@ functions: { | ||
"SETTLER_ROLE()": FunctionFragment; | ||
"balances(address)": FunctionFragment; | ||
"checkLockedFundPayment(address,uint256,uint256)": FunctionFragment; | ||
"confirmLockedFundPartialPayment(address,uint256,uint256)": FunctionFragment; | ||
"confirmLockedFundPayment(address,uint256,uint256)": FunctionFragment; | ||
"createLockedFund(uint256)": FunctionFragment; | ||
"deposit(uint256)": FunctionFragment; | ||
"depositAndCreateLockedFund(uint256)": FunctionFragment; | ||
"depositAndCreateLockedFundFor(uint256,address)": FunctionFragment; | ||
"depositTo(uint256,address)": FunctionFragment; | ||
"getAvailableLockedFundsBalance(address)": FunctionFragment; | ||
"getBalance()": FunctionFragment; | ||
"getLockedFunds()": FunctionFragment; | ||
"depositAndLock(uint256)": FunctionFragment; | ||
"extendLockedFund()": FunctionFragment; | ||
"getLockedFundBalance(address,uint256)": FunctionFragment; | ||
"getRoleAdmin(bytes32)": FunctionFragment; | ||
"getSenderBalance(address)": FunctionFragment; | ||
"getSenderLockedFunds(address)": FunctionFragment; | ||
"getTimeoutHasPassed(address,uint256)": FunctionFragment; | ||
"grantRole(bytes32,address)": FunctionFragment; | ||
"hasRole(bytes32,address)": FunctionFragment; | ||
"initialize(address,address,address,uint32,uint16)": FunctionFragment; | ||
"lockedFunds(address,uint256)": FunctionFragment; | ||
"initialize(address,address,address,uint256)": FunctionFragment; | ||
"lockedFunds(address)": FunctionFragment; | ||
"pause()": FunctionFragment; | ||
"paused()": FunctionFragment; | ||
"processPartialPayment(address,uint256,string,uint256,bool)": FunctionFragment; | ||
"renounceRole(bytes32,address)": FunctionFragment; | ||
"revokeLockedFund(address,uint256)": FunctionFragment; | ||
"revokeLockedFundMultiSig(uint256,uint256,bytes)": FunctionFragment; | ||
"revokeRole(bytes32,address)": FunctionFragment; | ||
"setSafetyBlocks(uint16)": FunctionFragment; | ||
"setTimeoutBlocks(uint32)": FunctionFragment; | ||
"setTokenSmartContractAddress(address)": FunctionFragment; | ||
"settlementAddress()": FunctionFragment; | ||
"settlerAddress()": FunctionFragment; | ||
"supportsInterface(bytes4)": FunctionFragment; | ||
"timeoutBlocks()": FunctionFragment; | ||
"tokenSmartContract()": FunctionFragment; | ||
"tokenSmartContractAddress()": FunctionFragment; | ||
"unlockLockedFund(address)": FunctionFragment; | ||
"unpause()": FunctionFragment; | ||
"withdraw(uint256)": FunctionFragment; | ||
"withdrawTo(uint256,address)": 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; | ||
getFunction(nameOrSignatureOrTopic: "DEFAULT_ADMIN_ROLE" | "PAUSER_ROLE" | "SETTLER_ROLE" | "depositAndLock" | "extendLockedFund" | "getLockedFundBalance" | "getRoleAdmin" | "getTimeoutHasPassed" | "grantRole" | "hasRole" | "initialize" | "lockedFunds" | "pause" | "paused" | "processPartialPayment" | "renounceRole" | "revokeRole" | "settlementAddress" | "supportsInterface" | "timeoutBlocks" | "tokenSmartContract" | "unlockLockedFund" | "unpause" | "withdraw"): FunctionFragment; | ||
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string; | ||
encodeFunctionData(functionFragment: "PAUSER_ROLE", values?: undefined): string; | ||
encodeFunctionData(functionFragment: "SETTLER_ROLE", values?: undefined): string; | ||
encodeFunctionData(functionFragment: "balances", values: [PromiseOrValue<string>]): string; | ||
encodeFunctionData(functionFragment: "checkLockedFundPayment", values: [ | ||
PromiseOrValue<string>, | ||
PromiseOrValue<BigNumberish>, | ||
PromiseOrValue<BigNumberish> | ||
]): string; | ||
encodeFunctionData(functionFragment: "confirmLockedFundPartialPayment", values: [ | ||
PromiseOrValue<string>, | ||
PromiseOrValue<BigNumberish>, | ||
PromiseOrValue<BigNumberish> | ||
]): string; | ||
encodeFunctionData(functionFragment: "confirmLockedFundPayment", values: [ | ||
PromiseOrValue<string>, | ||
PromiseOrValue<BigNumberish>, | ||
PromiseOrValue<BigNumberish> | ||
]): string; | ||
encodeFunctionData(functionFragment: "createLockedFund", values: [PromiseOrValue<BigNumberish>]): string; | ||
encodeFunctionData(functionFragment: "deposit", values: [PromiseOrValue<BigNumberish>]): string; | ||
encodeFunctionData(functionFragment: "depositAndCreateLockedFund", values: [PromiseOrValue<BigNumberish>]): string; | ||
encodeFunctionData(functionFragment: "depositAndCreateLockedFundFor", values: [PromiseOrValue<BigNumberish>, PromiseOrValue<string>]): string; | ||
encodeFunctionData(functionFragment: "depositTo", values: [PromiseOrValue<BigNumberish>, PromiseOrValue<string>]): string; | ||
encodeFunctionData(functionFragment: "getAvailableLockedFundsBalance", values: [PromiseOrValue<string>]): string; | ||
encodeFunctionData(functionFragment: "getBalance", values?: undefined): string; | ||
encodeFunctionData(functionFragment: "getLockedFunds", values?: undefined): string; | ||
encodeFunctionData(functionFragment: "depositAndLock", values: [PromiseOrValue<BigNumberish>]): string; | ||
encodeFunctionData(functionFragment: "extendLockedFund", values?: undefined): string; | ||
encodeFunctionData(functionFragment: "getLockedFundBalance", values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string; | ||
encodeFunctionData(functionFragment: "getRoleAdmin", values: [PromiseOrValue<BytesLike>]): string; | ||
encodeFunctionData(functionFragment: "getSenderBalance", values: [PromiseOrValue<string>]): string; | ||
encodeFunctionData(functionFragment: "getSenderLockedFunds", values: [PromiseOrValue<string>]): string; | ||
encodeFunctionData(functionFragment: "getTimeoutHasPassed", values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string; | ||
encodeFunctionData(functionFragment: "grantRole", values: [PromiseOrValue<BytesLike>, PromiseOrValue<string>]): string; | ||
@@ -102,45 +49,31 @@ encodeFunctionData(functionFragment: "hasRole", values: [PromiseOrValue<BytesLike>, PromiseOrValue<string>]): string; | ||
PromiseOrValue<string>, | ||
PromiseOrValue<BigNumberish>, | ||
PromiseOrValue<BigNumberish> | ||
]): string; | ||
encodeFunctionData(functionFragment: "lockedFunds", values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string; | ||
encodeFunctionData(functionFragment: "lockedFunds", values: [PromiseOrValue<string>]): string; | ||
encodeFunctionData(functionFragment: "pause", values?: undefined): string; | ||
encodeFunctionData(functionFragment: "paused", values?: undefined): string; | ||
encodeFunctionData(functionFragment: "renounceRole", values: [PromiseOrValue<BytesLike>, PromiseOrValue<string>]): string; | ||
encodeFunctionData(functionFragment: "revokeLockedFund", values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string; | ||
encodeFunctionData(functionFragment: "revokeLockedFundMultiSig", values: [ | ||
encodeFunctionData(functionFragment: "processPartialPayment", values: [ | ||
PromiseOrValue<string>, | ||
PromiseOrValue<BigNumberish>, | ||
PromiseOrValue<string>, | ||
PromiseOrValue<BigNumberish>, | ||
PromiseOrValue<BytesLike> | ||
PromiseOrValue<boolean> | ||
]): string; | ||
encodeFunctionData(functionFragment: "renounceRole", values: [PromiseOrValue<BytesLike>, PromiseOrValue<string>]): string; | ||
encodeFunctionData(functionFragment: "revokeRole", values: [PromiseOrValue<BytesLike>, PromiseOrValue<string>]): string; | ||
encodeFunctionData(functionFragment: "setSafetyBlocks", values: [PromiseOrValue<BigNumberish>]): 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: "timeoutBlocks", values?: undefined): string; | ||
encodeFunctionData(functionFragment: "tokenSmartContract", values?: undefined): string; | ||
encodeFunctionData(functionFragment: "tokenSmartContractAddress", values?: undefined): string; | ||
encodeFunctionData(functionFragment: "unlockLockedFund", values: [PromiseOrValue<string>]): string; | ||
encodeFunctionData(functionFragment: "unpause", values?: undefined): string; | ||
encodeFunctionData(functionFragment: "withdraw", values: [PromiseOrValue<BigNumberish>]): string; | ||
encodeFunctionData(functionFragment: "withdrawTo", values: [PromiseOrValue<BigNumberish>, PromiseOrValue<string>]): string; | ||
decodeFunctionResult(functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "PAUSER_ROLE", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "SETTLER_ROLE", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "balances", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "checkLockedFundPayment", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "confirmLockedFundPartialPayment", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "confirmLockedFundPayment", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "createLockedFund", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "depositAndCreateLockedFund", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "depositAndCreateLockedFundFor", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "depositTo", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "getAvailableLockedFundsBalance", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "getBalance", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "getLockedFunds", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "depositAndLock", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "extendLockedFund", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "getLockedFundBalance", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "getRoleAdmin", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "getSenderBalance", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "getSenderLockedFunds", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "getTimeoutHasPassed", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; | ||
@@ -152,111 +85,76 @@ decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "processPartialPayment", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "revokeLockedFund", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "revokeLockedFundMultiSig", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "setSafetyBlocks", 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: "timeoutBlocks", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "tokenSmartContract", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "tokenSmartContractAddress", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "unlockLockedFund", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "withdrawTo", data: BytesLike): Result; | ||
events: { | ||
"DepositedAndLocked(address,uint256)": EventFragment; | ||
"ExtendedLockedFund(address)": EventFragment; | ||
"Initialized(uint8)": EventFragment; | ||
"LockedFunds(address,uint256,uint256)": EventFragment; | ||
"LockedFundsPartialPaymentConfirmation(address,uint256,uint256)": EventFragment; | ||
"LockedFundsPaymentConfirmation(address,uint256,uint256)": EventFragment; | ||
"LockedFundsRevoked(address,uint256,uint256)": EventFragment; | ||
"LockedFundsWithDeposit(address,uint256,uint256)": EventFragment; | ||
"Paused(address)": EventFragment; | ||
"ProcessedPartialPayment(address,uint256,string,uint256)": EventFragment; | ||
"RoleAdminChanged(bytes32,bytes32,bytes32)": EventFragment; | ||
"RoleGranted(bytes32,address,address)": EventFragment; | ||
"RoleRevoked(bytes32,address,address)": EventFragment; | ||
"UnlockedLockedFund(address)": EventFragment; | ||
"Unpaused(address)": EventFragment; | ||
"UserDeposit(address,uint256)": EventFragment; | ||
"UserWithdraw(address,uint256)": EventFragment; | ||
"Withdrawal(address,uint256)": EventFragment; | ||
}; | ||
getEvent(nameOrSignatureOrTopic: "DepositedAndLocked"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "ExtendedLockedFund"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "LockedFunds"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "LockedFundsPartialPaymentConfirmation"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "LockedFundsPaymentConfirmation"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "LockedFundsRevoked"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "LockedFundsWithDeposit"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "Paused"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "ProcessedPartialPayment"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "RoleAdminChanged"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "RoleGranted"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "RoleRevoked"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "UnlockedLockedFund"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "Unpaused"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "UserDeposit"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "UserWithdraw"): EventFragment; | ||
getEvent(nameOrSignatureOrTopic: "Withdrawal"): EventFragment; | ||
} | ||
export interface InitializedEventObject { | ||
version: number; | ||
export interface DepositedAndLockedEventObject { | ||
_address: string; | ||
_amount: BigNumber; | ||
} | ||
export declare type InitializedEvent = TypedEvent<[number], InitializedEventObject>; | ||
export declare type InitializedEventFilter = TypedEventFilter<InitializedEvent>; | ||
export interface LockedFundsEventObject { | ||
_from: string; | ||
_lockedFundsId: BigNumber; | ||
_value: BigNumber; | ||
} | ||
export declare type LockedFundsEvent = TypedEvent<[ | ||
export type DepositedAndLockedEvent = TypedEvent<[ | ||
string, | ||
BigNumber, | ||
BigNumber | ||
], LockedFundsEventObject>; | ||
export declare type LockedFundsEventFilter = TypedEventFilter<LockedFundsEvent>; | ||
export interface LockedFundsPartialPaymentConfirmationEventObject { | ||
_from: string; | ||
_lockedFundsId: BigNumber; | ||
_value: BigNumber; | ||
], DepositedAndLockedEventObject>; | ||
export type DepositedAndLockedEventFilter = TypedEventFilter<DepositedAndLockedEvent>; | ||
export interface ExtendedLockedFundEventObject { | ||
_address: string; | ||
} | ||
export declare type LockedFundsPartialPaymentConfirmationEvent = TypedEvent<[ | ||
string, | ||
BigNumber, | ||
BigNumber | ||
], LockedFundsPartialPaymentConfirmationEventObject>; | ||
export declare type LockedFundsPartialPaymentConfirmationEventFilter = TypedEventFilter<LockedFundsPartialPaymentConfirmationEvent>; | ||
export interface LockedFundsPaymentConfirmationEventObject { | ||
_from: string; | ||
_lockedFundsId: BigNumber; | ||
_value: BigNumber; | ||
export type ExtendedLockedFundEvent = TypedEvent<[ | ||
string | ||
], ExtendedLockedFundEventObject>; | ||
export type ExtendedLockedFundEventFilter = TypedEventFilter<ExtendedLockedFundEvent>; | ||
export interface InitializedEventObject { | ||
version: number; | ||
} | ||
export declare type LockedFundsPaymentConfirmationEvent = TypedEvent<[ | ||
string, | ||
BigNumber, | ||
BigNumber | ||
], LockedFundsPaymentConfirmationEventObject>; | ||
export declare type LockedFundsPaymentConfirmationEventFilter = TypedEventFilter<LockedFundsPaymentConfirmationEvent>; | ||
export interface LockedFundsRevokedEventObject { | ||
_to: string; | ||
_lockedFundsId: BigNumber; | ||
_value: BigNumber; | ||
export type InitializedEvent = TypedEvent<[number], InitializedEventObject>; | ||
export type InitializedEventFilter = TypedEventFilter<InitializedEvent>; | ||
export interface PausedEventObject { | ||
account: string; | ||
} | ||
export declare type LockedFundsRevokedEvent = TypedEvent<[ | ||
export type PausedEvent = TypedEvent<[string], PausedEventObject>; | ||
export type PausedEventFilter = TypedEventFilter<PausedEvent>; | ||
export interface ProcessedPartialPaymentEventObject { | ||
_address: string; | ||
_amount: BigNumber; | ||
_ref: string; | ||
_additionalTimeout: BigNumber; | ||
} | ||
export type ProcessedPartialPaymentEvent = TypedEvent<[ | ||
string, | ||
BigNumber, | ||
BigNumber | ||
], LockedFundsRevokedEventObject>; | ||
export declare type LockedFundsRevokedEventFilter = TypedEventFilter<LockedFundsRevokedEvent>; | ||
export interface LockedFundsWithDepositEventObject { | ||
_from: string; | ||
_lockedFundsId: BigNumber; | ||
_value: BigNumber; | ||
} | ||
export declare type LockedFundsWithDepositEvent = TypedEvent<[ | ||
string, | ||
BigNumber, | ||
BigNumber | ||
], LockedFundsWithDepositEventObject>; | ||
export declare type LockedFundsWithDepositEventFilter = TypedEventFilter<LockedFundsWithDepositEvent>; | ||
export interface PausedEventObject { | ||
account: string; | ||
} | ||
export declare type PausedEvent = TypedEvent<[string], PausedEventObject>; | ||
export declare type PausedEventFilter = TypedEventFilter<PausedEvent>; | ||
], ProcessedPartialPaymentEventObject>; | ||
export type ProcessedPartialPaymentEventFilter = TypedEventFilter<ProcessedPartialPaymentEvent>; | ||
export interface RoleAdminChangedEventObject { | ||
@@ -267,3 +165,3 @@ role: string; | ||
} | ||
export declare type RoleAdminChangedEvent = TypedEvent<[ | ||
export type RoleAdminChangedEvent = TypedEvent<[ | ||
string, | ||
@@ -273,3 +171,3 @@ string, | ||
], RoleAdminChangedEventObject>; | ||
export declare type RoleAdminChangedEventFilter = TypedEventFilter<RoleAdminChangedEvent>; | ||
export type RoleAdminChangedEventFilter = TypedEventFilter<RoleAdminChangedEvent>; | ||
export interface RoleGrantedEventObject { | ||
@@ -280,3 +178,3 @@ role: string; | ||
} | ||
export declare type RoleGrantedEvent = TypedEvent<[ | ||
export type RoleGrantedEvent = TypedEvent<[ | ||
string, | ||
@@ -286,3 +184,3 @@ string, | ||
], RoleGrantedEventObject>; | ||
export declare type RoleGrantedEventFilter = TypedEventFilter<RoleGrantedEvent>; | ||
export type RoleGrantedEventFilter = TypedEventFilter<RoleGrantedEvent>; | ||
export interface RoleRevokedEventObject { | ||
@@ -293,3 +191,3 @@ role: string; | ||
} | ||
export declare type RoleRevokedEvent = TypedEvent<[ | ||
export type RoleRevokedEvent = TypedEvent<[ | ||
string, | ||
@@ -299,26 +197,24 @@ string, | ||
], RoleRevokedEventObject>; | ||
export declare type RoleRevokedEventFilter = TypedEventFilter<RoleRevokedEvent>; | ||
export type RoleRevokedEventFilter = TypedEventFilter<RoleRevokedEvent>; | ||
export interface UnlockedLockedFundEventObject { | ||
_address: string; | ||
} | ||
export type UnlockedLockedFundEvent = TypedEvent<[ | ||
string | ||
], UnlockedLockedFundEventObject>; | ||
export type UnlockedLockedFundEventFilter = TypedEventFilter<UnlockedLockedFundEvent>; | ||
export interface UnpausedEventObject { | ||
account: string; | ||
} | ||
export declare type UnpausedEvent = TypedEvent<[string], UnpausedEventObject>; | ||
export declare type UnpausedEventFilter = TypedEventFilter<UnpausedEvent>; | ||
export interface UserDepositEventObject { | ||
_from: string; | ||
_value: BigNumber; | ||
export type UnpausedEvent = TypedEvent<[string], UnpausedEventObject>; | ||
export type UnpausedEventFilter = TypedEventFilter<UnpausedEvent>; | ||
export interface WithdrawalEventObject { | ||
_address: string; | ||
_amount: BigNumber; | ||
} | ||
export declare type UserDepositEvent = TypedEvent<[ | ||
export type WithdrawalEvent = TypedEvent<[ | ||
string, | ||
BigNumber | ||
], UserDepositEventObject>; | ||
export declare type UserDepositEventFilter = TypedEventFilter<UserDepositEvent>; | ||
export interface UserWithdrawEventObject { | ||
_to: string; | ||
_value: BigNumber; | ||
} | ||
export declare type UserWithdrawEvent = TypedEvent<[ | ||
string, | ||
BigNumber | ||
], UserWithdrawEventObject>; | ||
export declare type UserWithdrawEventFilter = TypedEventFilter<UserWithdrawEvent>; | ||
], WithdrawalEventObject>; | ||
export type WithdrawalEventFilter = TypedEventFilter<WithdrawalEvent>; | ||
export interface ImmersvePaymentProtocol extends BaseContract { | ||
@@ -342,31 +238,11 @@ connect(signerOrProvider: Signer | Provider | string): this; | ||
SETTLER_ROLE(overrides?: CallOverrides): Promise<[string]>; | ||
balances(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[BigNumber]>; | ||
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 & { | ||
depositAndLock(_amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
confirmLockedFundPayment(sender: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
extendLockedFund(overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
createLockedFund(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
deposit(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
depositAndCreateLockedFund(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
depositAndCreateLockedFundFor(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
depositTo(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
getAvailableLockedFundsBalance(sender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[BigNumber]>; | ||
getBalance(overrides?: CallOverrides): Promise<[BigNumber]>; | ||
getLockedFunds(overrides?: CallOverrides): Promise<[ImmersvePaymentProtocol.AssetLockedFundStructOutput[]]>; | ||
getLockedFundBalance(_address: PromiseOrValue<string>, _additionalBlocks: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[boolean, BigNumber]>; | ||
getRoleAdmin(role: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<[string]>; | ||
getSenderBalance(sender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[BigNumber]>; | ||
getSenderLockedFunds(sender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[ImmersvePaymentProtocol.AssetLockedFundStructOutput[]]>; | ||
getTimeoutHasPassed(_address: PromiseOrValue<string>, _additionalBlocks: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[boolean]>; | ||
grantRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & { | ||
@@ -376,13 +252,11 @@ from?: PromiseOrValue<string>; | ||
hasRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[boolean]>; | ||
initialize(_settlerRole: PromiseOrValue<string>, _settlementAddress: PromiseOrValue<string>, _tokenSmartContract: PromiseOrValue<string>, _defaultTimeoutBlocks: PromiseOrValue<BigNumberish>, _safetyBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
initialize(_settlerRole: PromiseOrValue<string>, _settlementAddress: PromiseOrValue<string>, _tokenSmartContract: PromiseOrValue<string>, _timeoutBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
lockedFunds(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[ | ||
lockedFunds(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[ | ||
BigNumber, | ||
BigNumber, | ||
BigNumber | ||
] & { | ||
lockedFundId: BigNumber; | ||
timeout: BigNumber; | ||
price: BigNumber; | ||
lastDepositBlock: BigNumber; | ||
balance: BigNumber; | ||
}>; | ||
@@ -393,35 +267,22 @@ pause(overrides?: Overrides & { | ||
paused(overrides?: CallOverrides): Promise<[boolean]>; | ||
renounceRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & { | ||
processPartialPayment(_address: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, _ref: PromiseOrValue<string>, _additionalTimeout: PromiseOrValue<BigNumberish>, _extendLock: PromiseOrValue<boolean>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
revokeLockedFund(sender: PromiseOrValue<string>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
renounceRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
revokeLockedFundMultiSig(lockedFundId: PromiseOrValue<BigNumberish>, nonce: PromiseOrValue<BigNumberish>, signature: PromiseOrValue<BytesLike>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
revokeRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
setSafetyBlocks(_safetyBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
setTimeoutBlocks(timeoutBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): 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]>; | ||
timeoutBlocks(overrides?: CallOverrides): Promise<[BigNumber]>; | ||
tokenSmartContract(overrides?: CallOverrides): Promise<[string]>; | ||
tokenSmartContractAddress(overrides?: CallOverrides): Promise<[string]>; | ||
unpause(overrides?: Overrides & { | ||
unlockLockedFund(_address: PromiseOrValue<string>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
withdraw(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
unpause(overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
withdrawTo(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & { | ||
withdraw(_amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
@@ -433,31 +294,11 @@ }): Promise<ContractTransaction>; | ||
SETTLER_ROLE(overrides?: CallOverrides): Promise<string>; | ||
balances(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>; | ||
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 & { | ||
depositAndLock(_amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
confirmLockedFundPayment(sender: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
extendLockedFund(overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
createLockedFund(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
deposit(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
depositAndCreateLockedFund(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
depositAndCreateLockedFundFor(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
depositTo(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
getAvailableLockedFundsBalance(sender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>; | ||
getBalance(overrides?: CallOverrides): Promise<BigNumber>; | ||
getLockedFunds(overrides?: CallOverrides): Promise<ImmersvePaymentProtocol.AssetLockedFundStructOutput[]>; | ||
getLockedFundBalance(_address: PromiseOrValue<string>, _additionalBlocks: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[boolean, BigNumber]>; | ||
getRoleAdmin(role: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<string>; | ||
getSenderBalance(sender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>; | ||
getSenderLockedFunds(sender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<ImmersvePaymentProtocol.AssetLockedFundStructOutput[]>; | ||
getTimeoutHasPassed(_address: PromiseOrValue<string>, _additionalBlocks: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<boolean>; | ||
grantRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & { | ||
@@ -467,13 +308,11 @@ from?: PromiseOrValue<string>; | ||
hasRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>; | ||
initialize(_settlerRole: PromiseOrValue<string>, _settlementAddress: PromiseOrValue<string>, _tokenSmartContract: PromiseOrValue<string>, _defaultTimeoutBlocks: PromiseOrValue<BigNumberish>, _safetyBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
initialize(_settlerRole: PromiseOrValue<string>, _settlementAddress: PromiseOrValue<string>, _tokenSmartContract: PromiseOrValue<string>, _timeoutBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
lockedFunds(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[ | ||
lockedFunds(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[ | ||
BigNumber, | ||
BigNumber, | ||
BigNumber | ||
] & { | ||
lockedFundId: BigNumber; | ||
timeout: BigNumber; | ||
price: BigNumber; | ||
lastDepositBlock: BigNumber; | ||
balance: BigNumber; | ||
}>; | ||
@@ -484,35 +323,22 @@ pause(overrides?: Overrides & { | ||
paused(overrides?: CallOverrides): Promise<boolean>; | ||
renounceRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & { | ||
processPartialPayment(_address: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, _ref: PromiseOrValue<string>, _additionalTimeout: PromiseOrValue<BigNumberish>, _extendLock: PromiseOrValue<boolean>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
revokeLockedFund(sender: PromiseOrValue<string>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
renounceRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
revokeLockedFundMultiSig(lockedFundId: PromiseOrValue<BigNumberish>, nonce: PromiseOrValue<BigNumberish>, signature: PromiseOrValue<BytesLike>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
revokeRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
setSafetyBlocks(_safetyBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
setTimeoutBlocks(timeoutBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): 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>; | ||
timeoutBlocks(overrides?: CallOverrides): Promise<BigNumber>; | ||
tokenSmartContract(overrides?: CallOverrides): Promise<string>; | ||
tokenSmartContractAddress(overrides?: CallOverrides): Promise<string>; | ||
unpause(overrides?: Overrides & { | ||
unlockLockedFund(_address: PromiseOrValue<string>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
withdraw(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
unpause(overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<ContractTransaction>; | ||
withdrawTo(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & { | ||
withdraw(_amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
@@ -524,62 +350,41 @@ }): Promise<ContractTransaction>; | ||
SETTLER_ROLE(overrides?: CallOverrides): Promise<string>; | ||
balances(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>; | ||
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(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>; | ||
getBalance(overrides?: CallOverrides): Promise<BigNumber>; | ||
getLockedFunds(overrides?: CallOverrides): Promise<ImmersvePaymentProtocol.AssetLockedFundStructOutput[]>; | ||
depositAndLock(_amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>; | ||
extendLockedFund(overrides?: CallOverrides): Promise<void>; | ||
getLockedFundBalance(_address: PromiseOrValue<string>, _additionalBlocks: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[boolean, BigNumber]>; | ||
getRoleAdmin(role: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<string>; | ||
getSenderBalance(sender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>; | ||
getSenderLockedFunds(sender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<ImmersvePaymentProtocol.AssetLockedFundStructOutput[]>; | ||
getTimeoutHasPassed(_address: PromiseOrValue<string>, _additionalBlocks: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<boolean>; | ||
grantRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>; | ||
hasRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>; | ||
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<[ | ||
initialize(_settlerRole: PromiseOrValue<string>, _settlementAddress: PromiseOrValue<string>, _tokenSmartContract: PromiseOrValue<string>, _timeoutBlocks: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>; | ||
lockedFunds(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[ | ||
BigNumber, | ||
BigNumber, | ||
BigNumber | ||
] & { | ||
lockedFundId: BigNumber; | ||
timeout: BigNumber; | ||
price: BigNumber; | ||
lastDepositBlock: BigNumber; | ||
balance: BigNumber; | ||
}>; | ||
pause(overrides?: CallOverrides): Promise<void>; | ||
paused(overrides?: CallOverrides): Promise<boolean>; | ||
processPartialPayment(_address: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, _ref: PromiseOrValue<string>, _additionalTimeout: PromiseOrValue<BigNumberish>, _extendLock: PromiseOrValue<boolean>, overrides?: CallOverrides): Promise<void>; | ||
renounceRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>; | ||
revokeLockedFund(sender: PromiseOrValue<string>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>; | ||
revokeLockedFundMultiSig(lockedFundId: PromiseOrValue<BigNumberish>, nonce: PromiseOrValue<BigNumberish>, signature: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<void>; | ||
revokeRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>; | ||
setSafetyBlocks(_safetyBlocks: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>; | ||
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>; | ||
timeoutBlocks(overrides?: CallOverrides): Promise<BigNumber>; | ||
tokenSmartContract(overrides?: CallOverrides): Promise<string>; | ||
tokenSmartContractAddress(overrides?: CallOverrides): Promise<string>; | ||
unlockLockedFund(_address: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>; | ||
unpause(overrides?: CallOverrides): Promise<void>; | ||
withdraw(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>; | ||
withdrawTo(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>; | ||
withdraw(_amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>; | ||
}; | ||
filters: { | ||
"DepositedAndLocked(address,uint256)"(_address?: null, _amount?: null): DepositedAndLockedEventFilter; | ||
DepositedAndLocked(_address?: null, _amount?: null): DepositedAndLockedEventFilter; | ||
"ExtendedLockedFund(address)"(_address?: PromiseOrValue<string> | null): ExtendedLockedFundEventFilter; | ||
ExtendedLockedFund(_address?: PromiseOrValue<string> | null): ExtendedLockedFundEventFilter; | ||
"Initialized(uint8)"(version?: null): InitializedEventFilter; | ||
Initialized(version?: null): InitializedEventFilter; | ||
"LockedFunds(address,uint256,uint256)"(_from?: PromiseOrValue<string> | null, _lockedFundsId?: PromiseOrValue<BigNumberish> | null, _value?: null): LockedFundsEventFilter; | ||
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; | ||
LockedFundsPaymentConfirmation(_from?: PromiseOrValue<string> | null, _lockedFundsId?: PromiseOrValue<BigNumberish> | null, _value?: null): LockedFundsPaymentConfirmationEventFilter; | ||
"LockedFundsRevoked(address,uint256,uint256)"(_to?: PromiseOrValue<string> | null, _lockedFundsId?: PromiseOrValue<BigNumberish> | null, _value?: null): LockedFundsRevokedEventFilter; | ||
LockedFundsRevoked(_to?: PromiseOrValue<string> | null, _lockedFundsId?: PromiseOrValue<BigNumberish> | null, _value?: null): LockedFundsRevokedEventFilter; | ||
"LockedFundsWithDeposit(address,uint256,uint256)"(_from?: PromiseOrValue<string> | null, _lockedFundsId?: PromiseOrValue<BigNumberish> | null, _value?: null): LockedFundsWithDepositEventFilter; | ||
LockedFundsWithDeposit(_from?: PromiseOrValue<string> | null, _lockedFundsId?: PromiseOrValue<BigNumberish> | null, _value?: null): LockedFundsWithDepositEventFilter; | ||
"Paused(address)"(account?: null): PausedEventFilter; | ||
Paused(account?: null): PausedEventFilter; | ||
"ProcessedPartialPayment(address,uint256,string,uint256)"(_address?: PromiseOrValue<string> | null, _amount?: null, _ref?: PromiseOrValue<string> | null, _additionalTimeout?: null): ProcessedPartialPaymentEventFilter; | ||
ProcessedPartialPayment(_address?: PromiseOrValue<string> | null, _amount?: null, _ref?: PromiseOrValue<string> | null, _additionalTimeout?: null): ProcessedPartialPaymentEventFilter; | ||
"RoleAdminChanged(bytes32,bytes32,bytes32)"(role?: PromiseOrValue<BytesLike> | null, previousAdminRole?: PromiseOrValue<BytesLike> | null, newAdminRole?: PromiseOrValue<BytesLike> | null): RoleAdminChangedEventFilter; | ||
@@ -591,8 +396,8 @@ RoleAdminChanged(role?: PromiseOrValue<BytesLike> | null, previousAdminRole?: PromiseOrValue<BytesLike> | null, newAdminRole?: PromiseOrValue<BytesLike> | null): RoleAdminChangedEventFilter; | ||
RoleRevoked(role?: PromiseOrValue<BytesLike> | null, account?: PromiseOrValue<string> | null, sender?: PromiseOrValue<string> | null): RoleRevokedEventFilter; | ||
"UnlockedLockedFund(address)"(_address?: PromiseOrValue<string> | null): UnlockedLockedFundEventFilter; | ||
UnlockedLockedFund(_address?: PromiseOrValue<string> | null): UnlockedLockedFundEventFilter; | ||
"Unpaused(address)"(account?: null): UnpausedEventFilter; | ||
Unpaused(account?: null): UnpausedEventFilter; | ||
"UserDeposit(address,uint256)"(_from?: PromiseOrValue<string> | null, _value?: null): UserDepositEventFilter; | ||
UserDeposit(_from?: PromiseOrValue<string> | null, _value?: null): UserDepositEventFilter; | ||
"UserWithdraw(address,uint256)"(_to?: PromiseOrValue<string> | null, _value?: null): UserWithdrawEventFilter; | ||
UserWithdraw(_to?: PromiseOrValue<string> | null, _value?: null): UserWithdrawEventFilter; | ||
"Withdrawal(address,uint256)"(_address?: null, _amount?: null): WithdrawalEventFilter; | ||
Withdrawal(_address?: null, _amount?: null): WithdrawalEventFilter; | ||
}; | ||
@@ -603,31 +408,11 @@ estimateGas: { | ||
SETTLER_ROLE(overrides?: CallOverrides): Promise<BigNumber>; | ||
balances(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>; | ||
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 & { | ||
depositAndLock(_amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<BigNumber>; | ||
confirmLockedFundPayment(sender: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
extendLockedFund(overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<BigNumber>; | ||
createLockedFund(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<BigNumber>; | ||
deposit(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<BigNumber>; | ||
depositAndCreateLockedFund(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<BigNumber>; | ||
depositAndCreateLockedFundFor(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<BigNumber>; | ||
depositTo(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<BigNumber>; | ||
getAvailableLockedFundsBalance(sender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>; | ||
getBalance(overrides?: CallOverrides): Promise<BigNumber>; | ||
getLockedFunds(overrides?: CallOverrides): Promise<BigNumber>; | ||
getLockedFundBalance(_address: PromiseOrValue<string>, _additionalBlocks: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>; | ||
getRoleAdmin(role: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<BigNumber>; | ||
getSenderBalance(sender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>; | ||
getSenderLockedFunds(sender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>; | ||
getTimeoutHasPassed(_address: PromiseOrValue<string>, _additionalBlocks: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>; | ||
grantRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & { | ||
@@ -637,6 +422,6 @@ from?: PromiseOrValue<string>; | ||
hasRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>; | ||
initialize(_settlerRole: PromiseOrValue<string>, _settlementAddress: PromiseOrValue<string>, _tokenSmartContract: PromiseOrValue<string>, _defaultTimeoutBlocks: PromiseOrValue<BigNumberish>, _safetyBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
initialize(_settlerRole: PromiseOrValue<string>, _settlementAddress: PromiseOrValue<string>, _tokenSmartContract: PromiseOrValue<string>, _timeoutBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<BigNumber>; | ||
lockedFunds(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>; | ||
lockedFunds(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>; | ||
pause(overrides?: Overrides & { | ||
@@ -646,35 +431,22 @@ from?: PromiseOrValue<string>; | ||
paused(overrides?: CallOverrides): Promise<BigNumber>; | ||
renounceRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & { | ||
processPartialPayment(_address: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, _ref: PromiseOrValue<string>, _additionalTimeout: PromiseOrValue<BigNumberish>, _extendLock: PromiseOrValue<boolean>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<BigNumber>; | ||
revokeLockedFund(sender: PromiseOrValue<string>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
renounceRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<BigNumber>; | ||
revokeLockedFundMultiSig(lockedFundId: PromiseOrValue<BigNumberish>, nonce: PromiseOrValue<BigNumberish>, signature: PromiseOrValue<BytesLike>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<BigNumber>; | ||
revokeRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<BigNumber>; | ||
setSafetyBlocks(_safetyBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<BigNumber>; | ||
setTimeoutBlocks(timeoutBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): 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>; | ||
timeoutBlocks(overrides?: CallOverrides): Promise<BigNumber>; | ||
tokenSmartContract(overrides?: CallOverrides): Promise<BigNumber>; | ||
tokenSmartContractAddress(overrides?: CallOverrides): Promise<BigNumber>; | ||
unpause(overrides?: Overrides & { | ||
unlockLockedFund(_address: PromiseOrValue<string>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<BigNumber>; | ||
withdraw(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
unpause(overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<BigNumber>; | ||
withdrawTo(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & { | ||
withdraw(_amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
@@ -687,31 +459,11 @@ }): Promise<BigNumber>; | ||
SETTLER_ROLE(overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
balances(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
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 & { | ||
depositAndLock(_amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<PopulatedTransaction>; | ||
confirmLockedFundPayment(sender: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
extendLockedFund(overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<PopulatedTransaction>; | ||
createLockedFund(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<PopulatedTransaction>; | ||
deposit(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<PopulatedTransaction>; | ||
depositAndCreateLockedFund(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<PopulatedTransaction>; | ||
depositAndCreateLockedFundFor(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<PopulatedTransaction>; | ||
depositTo(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<PopulatedTransaction>; | ||
getAvailableLockedFundsBalance(sender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
getBalance(overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
getLockedFunds(overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
getLockedFundBalance(_address: PromiseOrValue<string>, _additionalBlocks: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
getRoleAdmin(role: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
getSenderBalance(sender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
getSenderLockedFunds(sender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
getTimeoutHasPassed(_address: PromiseOrValue<string>, _additionalBlocks: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
grantRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & { | ||
@@ -721,6 +473,6 @@ from?: PromiseOrValue<string>; | ||
hasRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
initialize(_settlerRole: PromiseOrValue<string>, _settlementAddress: PromiseOrValue<string>, _tokenSmartContract: PromiseOrValue<string>, _defaultTimeoutBlocks: PromiseOrValue<BigNumberish>, _safetyBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
initialize(_settlerRole: PromiseOrValue<string>, _settlementAddress: PromiseOrValue<string>, _tokenSmartContract: PromiseOrValue<string>, _timeoutBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<PopulatedTransaction>; | ||
lockedFunds(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
lockedFunds(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
pause(overrides?: Overrides & { | ||
@@ -730,35 +482,22 @@ from?: PromiseOrValue<string>; | ||
paused(overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
renounceRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & { | ||
processPartialPayment(_address: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, _ref: PromiseOrValue<string>, _additionalTimeout: PromiseOrValue<BigNumberish>, _extendLock: PromiseOrValue<boolean>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<PopulatedTransaction>; | ||
revokeLockedFund(sender: PromiseOrValue<string>, lockedFundId: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
renounceRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<PopulatedTransaction>; | ||
revokeLockedFundMultiSig(lockedFundId: PromiseOrValue<BigNumberish>, nonce: PromiseOrValue<BigNumberish>, signature: PromiseOrValue<BytesLike>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<PopulatedTransaction>; | ||
revokeRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<PopulatedTransaction>; | ||
setSafetyBlocks(_safetyBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<PopulatedTransaction>; | ||
setTimeoutBlocks(timeoutBlocks: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): 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>; | ||
timeoutBlocks(overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
tokenSmartContract(overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
tokenSmartContractAddress(overrides?: CallOverrides): Promise<PopulatedTransaction>; | ||
unpause(overrides?: Overrides & { | ||
unlockLockedFund(_address: PromiseOrValue<string>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<PopulatedTransaction>; | ||
withdraw(tokenAmount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
unpause(overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
}): Promise<PopulatedTransaction>; | ||
withdrawTo(tokenAmount: PromiseOrValue<BigNumberish>, sender: PromiseOrValue<string>, overrides?: Overrides & { | ||
withdraw(_amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & { | ||
from?: PromiseOrValue<string>; | ||
@@ -765,0 +504,0 @@ }): Promise<PopulatedTransaction>; |
{ | ||
"name": "@immersve/payment-protocol-types", | ||
"version": "1.4.1", | ||
"version": "2.0.0", | ||
"description": "Typescript types for Immersve payment protocol smart contract", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
90255
1811
1