update contract ABI
This commit is contained in:
1 parent
659cc34d68
commit
4b4b5af550
6 files changed
+196
-166
No files matched your search
@@ -21,9 +21,6 @@ const addLock = async (
|
||||
const lock = await p2pContract.lock(
|
||||
seller,
|
||||
token,
|
||||
etherStore.walletAddress, // String "0x70997970C51812dc3A010C7d01b50e0d17dc79C8" (Example)
|
||||
ethers.constants.AddressZero, // String "0x0000000000000000000000000000000000000000"
|
||||
0,
|
||||
parseEther(String(amount)), // BigNumber
|
||||
[],
|
||||
[]
|
||||
@@ -36,7 +33,7 @@ const addLock = async (
|
||||
};
|
||||
|
||||
const releaseLock = async (
|
||||
pixKey: number,
|
||||
pixKey: string,
|
||||
amount: number,
|
||||
e2eId: string,
|
||||
lockId: string
|
||||
@@ -46,7 +43,7 @@ const releaseLock = async (
|
||||
);
|
||||
|
||||
const messageToSign = ethers.utils.solidityKeccak256(
|
||||
["uint160", "uint256", "bytes32"],
|
||||
["bytes32", "uint256", "bytes32"],
|
||||
[
|
||||
pixKey,
|
||||
parseEther(String(amount)),
|
||||
@@ -65,11 +62,8 @@ const releaseLock = async (
|
||||
|
||||
const release = await p2pContract.release(
|
||||
BigNumber.from(lockId),
|
||||
ethers.constants.AddressZero,
|
||||
ethers.utils.formatBytes32String(e2eId),
|
||||
sig.r,
|
||||
sig.s,
|
||||
sig.v
|
||||
flatSig
|
||||
);
|
||||
await release.wait();
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@ const getValidDeposits = async (
|
||||
blockNumber: deposit.blockNumber,
|
||||
remaining: Number(formatEther(mappedBalance._hex)),
|
||||
seller: deposit.args?.seller,
|
||||
pixKey: Number(mappedPixTarget._hex),
|
||||
pixKey: mappedPixTarget,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ const getUnreleasedLockById = async (
|
||||
|
||||
const pixTarget = lock.pixTarget;
|
||||
const amount = formatEther(lock?.amount);
|
||||
pixData.pixKey = String(Number(pixTarget));
|
||||
pixData.pixKey = pixTarget;
|
||||
pixData.value = Number(amount);
|
||||
|
||||
return {
|
||||
|
||||
@@ -32,11 +32,11 @@ const addDeposit = async (tokenQty: string, pixKey: string): Promise<any> => {
|
||||
const etherStore = useEtherStore();
|
||||
|
||||
const deposit = await p2pContract.deposit(
|
||||
pixKey,
|
||||
ethers.utils.formatBytes32String(""),
|
||||
getTokenAddress(etherStore.selectedToken),
|
||||
parseEther(tokenQty),
|
||||
pixKey,
|
||||
true,
|
||||
ethers.utils.formatBytes32String("")
|
||||
true
|
||||
);
|
||||
|
||||
await deposit.wait();
|
||||
|
||||
@@ -201,7 +201,7 @@ const checkUnreleasedLock = async (
|
||||
|
||||
const pixTarget = lock.pixTarget;
|
||||
const amount = formatEther(lock?.amount);
|
||||
pixData.pixKey = String(Number(pixTarget));
|
||||
pixData.pixKey = pixTarget;
|
||||
pixData.value = Number(amount);
|
||||
|
||||
return {
|
||||
|
||||
@@ -16,12 +16,12 @@
|
||||
"type": "address[]"
|
||||
},
|
||||
{
|
||||
"internalType": "contract IReputation",
|
||||
"internalType": "address",
|
||||
"name": "_reputation",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "address[]",
|
||||
"internalType": "contract ERC20[]",
|
||||
"name": "tokens",
|
||||
"type": "address[]"
|
||||
},
|
||||
@@ -54,11 +54,6 @@
|
||||
"name": "DecOverflow",
|
||||
"type": "error"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "DepositAlreadyExists",
|
||||
"type": "error"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "EmptyPixTarget",
|
||||
@@ -139,6 +134,11 @@
|
||||
"name": "TxAlreadyUsed",
|
||||
"type": "error"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "Unauthorized",
|
||||
"type": "error"
|
||||
},
|
||||
{
|
||||
"anonymous": false,
|
||||
"inputs": [
|
||||
@@ -169,7 +169,7 @@
|
||||
},
|
||||
{
|
||||
"indexed": false,
|
||||
"internalType": "address",
|
||||
"internalType": "contract ERC20",
|
||||
"name": "token",
|
||||
"type": "address"
|
||||
},
|
||||
@@ -194,7 +194,7 @@
|
||||
},
|
||||
{
|
||||
"indexed": false,
|
||||
"internalType": "address",
|
||||
"internalType": "contract ERC20",
|
||||
"name": "token",
|
||||
"type": "address"
|
||||
},
|
||||
@@ -244,9 +244,9 @@
|
||||
},
|
||||
{
|
||||
"indexed": false,
|
||||
"internalType": "uint256",
|
||||
"internalType": "address",
|
||||
"name": "seller",
|
||||
"type": "uint256"
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"indexed": false,
|
||||
@@ -351,13 +351,13 @@
|
||||
"anonymous": false,
|
||||
"inputs": [
|
||||
{
|
||||
"indexed": false,
|
||||
"indexed": true,
|
||||
"internalType": "address",
|
||||
"name": "seller",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"indexed": false,
|
||||
"indexed": true,
|
||||
"internalType": "bytes32",
|
||||
"name": "merkleRoot",
|
||||
"type": "bytes32"
|
||||
@@ -366,6 +366,25 @@
|
||||
"name": "RootUpdated",
|
||||
"type": "event"
|
||||
},
|
||||
{
|
||||
"anonymous": false,
|
||||
"inputs": [
|
||||
{
|
||||
"indexed": true,
|
||||
"internalType": "address",
|
||||
"name": "forwarder",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"indexed": true,
|
||||
"internalType": "bool",
|
||||
"name": "state",
|
||||
"type": "bool"
|
||||
}
|
||||
],
|
||||
"name": "TrustedForwarderUpdated",
|
||||
"type": "event"
|
||||
},
|
||||
{
|
||||
"anonymous": false,
|
||||
"inputs": [
|
||||
@@ -377,7 +396,7 @@
|
||||
},
|
||||
{
|
||||
"indexed": false,
|
||||
"internalType": "address",
|
||||
"internalType": "contract ERC20",
|
||||
"name": "token",
|
||||
"type": "address"
|
||||
},
|
||||
@@ -404,19 +423,6 @@
|
||||
"name": "ValidSignersUpdated",
|
||||
"type": "event"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "WAD",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
@@ -459,7 +465,7 @@
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "contract ERC20",
|
||||
"name": "",
|
||||
"name": "erc20",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
@@ -467,7 +473,7 @@
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"name": "state",
|
||||
"type": "bool"
|
||||
}
|
||||
],
|
||||
@@ -490,29 +496,29 @@
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_token",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint96",
|
||||
"name": "_amount",
|
||||
"type": "uint96"
|
||||
},
|
||||
{
|
||||
"internalType": "uint160",
|
||||
"name": "_pixTarget",
|
||||
"type": "uint160"
|
||||
},
|
||||
{
|
||||
"internalType": "bool",
|
||||
"name": "_valid",
|
||||
"type": "bool"
|
||||
"internalType": "string",
|
||||
"name": "pixTarget",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"internalType": "bytes32",
|
||||
"name": "allowlistRoot",
|
||||
"type": "bytes32"
|
||||
},
|
||||
{
|
||||
"internalType": "contract ERC20",
|
||||
"name": "token",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint96",
|
||||
"name": "amount",
|
||||
"type": "uint96"
|
||||
},
|
||||
{
|
||||
"internalType": "bool",
|
||||
"name": "valid",
|
||||
"type": "bool"
|
||||
}
|
||||
],
|
||||
"name": "deposit",
|
||||
@@ -608,14 +614,57 @@
|
||||
"name": "getPixTarget",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "uint160",
|
||||
"internalType": "bytes32",
|
||||
"name": "pixTarget",
|
||||
"type": "uint160"
|
||||
"type": "bytes32"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "seller",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "contract ERC20",
|
||||
"name": "token",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"name": "getPixTargetString",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "string",
|
||||
"name": "pixTarget",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "string",
|
||||
"name": "str",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"name": "getStr",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "bytes32",
|
||||
"name": "strEnc",
|
||||
"type": "bytes32"
|
||||
}
|
||||
],
|
||||
"stateMutability": "pure",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
@@ -644,33 +693,37 @@
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_seller",
|
||||
"name": "forwarder",
|
||||
"type": "address"
|
||||
},
|
||||
}
|
||||
],
|
||||
"name": "isTrustedForwarder",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_token",
|
||||
"name": "seller",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_buyerAddress",
|
||||
"internalType": "contract ERC20",
|
||||
"name": "token",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_relayerTarget",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_relayerPremium",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_amount",
|
||||
"type": "uint256"
|
||||
"internalType": "uint80",
|
||||
"name": "amount",
|
||||
"type": "uint80"
|
||||
},
|
||||
{
|
||||
"internalType": "bytes32[]",
|
||||
@@ -687,7 +740,7 @@
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"name": "lockID",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
@@ -717,35 +770,30 @@
|
||||
],
|
||||
"name": "mapLocks",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "sellerKey",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "counter",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "relayerPremium",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "amount",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "expirationBlock",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint160",
|
||||
"internalType": "bytes32",
|
||||
"name": "pixTarget",
|
||||
"type": "uint160"
|
||||
"type": "bytes32"
|
||||
},
|
||||
{
|
||||
"internalType": "uint80",
|
||||
"name": "amount",
|
||||
"type": "uint80"
|
||||
},
|
||||
{
|
||||
"internalType": "contract ERC20",
|
||||
"name": "token",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "address",
|
||||
@@ -754,17 +802,7 @@
|
||||
},
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "relayerTarget",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "relayerAddress",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "token",
|
||||
"name": "seller",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
@@ -791,30 +829,15 @@
|
||||
"name": "lockID",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_relayerTarget",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "bytes32",
|
||||
"name": "pixTimestamp",
|
||||
"type": "bytes32"
|
||||
},
|
||||
{
|
||||
"internalType": "bytes32",
|
||||
"name": "r",
|
||||
"type": "bytes32"
|
||||
},
|
||||
{
|
||||
"internalType": "bytes32",
|
||||
"name": "s",
|
||||
"type": "bytes32"
|
||||
},
|
||||
{
|
||||
"internalType": "uint8",
|
||||
"name": "v",
|
||||
"type": "uint8"
|
||||
"internalType": "bytes",
|
||||
"name": "signature",
|
||||
"type": "bytes"
|
||||
}
|
||||
],
|
||||
"name": "release",
|
||||
@@ -838,46 +861,22 @@
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
"internalType": "address",
|
||||
"name": "sellerKey",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"name": "sellerAllowList",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "bytes32",
|
||||
"name": "",
|
||||
"name": "root",
|
||||
"type": "bytes32"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "contract ERC20",
|
||||
"name": "",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"name": "sellerBalance",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
@@ -935,6 +934,24 @@
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address[]",
|
||||
"name": "forwarders",
|
||||
"type": "address[]"
|
||||
},
|
||||
{
|
||||
"internalType": "bool[]",
|
||||
"name": "states",
|
||||
"type": "bool[]"
|
||||
}
|
||||
],
|
||||
"name": "setTrustedFowarders",
|
||||
"outputs": [],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
@@ -969,7 +986,7 @@
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address[]",
|
||||
"internalType": "contract ERC20[]",
|
||||
"name": "_tokens",
|
||||
"type": "address[]"
|
||||
},
|
||||
@@ -984,6 +1001,25 @@
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"name": "trustedForwarders",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
@@ -1001,7 +1037,7 @@
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "bytes32",
|
||||
"name": "",
|
||||
"name": "message",
|
||||
"type": "bytes32"
|
||||
}
|
||||
],
|
||||
@@ -1009,7 +1045,7 @@
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"name": "used",
|
||||
"type": "bool"
|
||||
}
|
||||
],
|
||||
@@ -1039,7 +1075,7 @@
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"name": "signer",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
@@ -1047,7 +1083,7 @@
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"name": "valid",
|
||||
"type": "bool"
|
||||
}
|
||||
],
|
||||
@@ -1089,8 +1125,8 @@
|
||||
"type": "receive"
|
||||
}
|
||||
],
|
||||
"bytecode": "0x6080604052600180556040516200366e3803806200366e8339810160408190526200002a9162000493565b600080546001600160a01b031916339081178255604051909182917f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d76908290a3506200007685620000a3565b620000818362000133565b6200008c84620001bd565b620000988282620002a1565b505050505062000616565b6000546001600160a01b03163314620000f25760405162461bcd60e51b815260206004820152600c60248201526b15539055551213d49256915160a21b60448201526064015b60405180910390fd5b806003557f70fa43ca70216ad905ade86b9e650a691b2ce5a01980d0a81bdd8324141b8511816040516200012891815260200190565b60405180910390a150565b6000546001600160a01b031633146200017e5760405162461bcd60e51b815260206004820152600c60248201526b15539055551213d49256915160a21b6044820152606401620000e9565b60028190556040516001600160a01b03821681527fe127cf589a3879da0156d4a24f43b44f65cfa3570de594806b0bfa2fcf06884f9060200162000128565b6000546001600160a01b03163314620002085760405162461bcd60e51b815260206004820152600c60248201526b15539055551213d49256915160a21b6044820152606401620000e9565b80516000905b808210156200026e57600062000246848481518110620002325762000232620005b1565b60200260200101516200038760201b60201c565b6000908152600860205260409020805460ff191660019081179091559290920191506200020e565b50507f14a422d2412784a5749d03da98921fe468c98577b767851389a9f58ea5a363d781604051620001289190620005c7565b6000546001600160a01b03163314620002ec5760405162461bcd60e51b815260206004820152600c60248201526b15539055551213d49256915160a21b6044820152606401620000e9565b815180620003025763df9578836000526004601cfd5b81518114620003195763ff633a386000526004601cfd5b60208301602083018260051b82015b8083146200037f578251600052600a60205260406000208251815550815183517f5d6e86e5341d57a92c49934296c51542a25015c9b1782a1c2722a940131c3d9a600080a360208301925060208201915062000328565b505050505050565b600c1b90565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620003ce57620003ce6200038d565b604052919050565b60006001600160401b03821115620003f257620003f26200038d565b5060051b60200190565b6001600160a01b03811681146200041257600080fd5b50565b600082601f8301126200042757600080fd5b81516020620004406200043a83620003d6565b620003a3565b82815260059290921b840181019181810190868411156200046057600080fd5b8286015b84811015620004885780516200047a81620003fc565b835291830191830162000464565b509695505050505050565b600080600080600060a08688031215620004ac57600080fd5b8551602080880151919650906001600160401b0380821115620004ce57600080fd5b620004dc8a838b0162000415565b965060408901519150620004f082620003fc565b6060890151919550808211156200050657600080fd5b620005148a838b0162000415565b945060808901519150808211156200052b57600080fd5b508701601f810189136200053e57600080fd5b80516200054f6200043a82620003d6565b81815260059190911b8201830190838101908b8311156200056f57600080fd5b928401925b828410156200059f57835180151581146200058f5760008081fd5b8252928401929084019062000574565b80955050505050509295509295909350565b634e487b7160e01b600052603260045260246000fd5b6020808252825182820181905260009190848201906040850190845b818110156200060a5783516001600160a01b031683529284019291840191600101620005e3565b50909695505050505050565b61304880620006266000396000f3fe6080604052600436106101e75760003560e01c80637f94f65d11610102578063ad8f2eed11610095578063d4fac45d11610064578063d4fac45d1461074c578063d6e8b97314610797578063f7d0e04b146107b7578063fb8c5ef0146107d757600080fd5b8063ad8f2eed14610692578063b0983d39146106d2578063c52164c6146106f2578063d1c070281461071f57600080fd5b80638db564c2116100d15780638db564c2146105fe5780639872dbfe1461061457806398a268711461062a5780639eee8d4b1461065a57600080fd5b80637f94f65d1461052b57806380e1d3021461054b57806384ab1d281461058b5780638da5cb5b146105d157600080fd5b80634b2ae9801161017a5780636a146024116101495780636a146024146104a25780636d82d9e0146104be57806374ba03a0146104de57806377cd38a4146104fe57600080fd5b80634b2ae9801461041c578063574983c81461043d5780635fd8c7101461045d57806369cc6af41461047257600080fd5b8063328a7181116101b6578063328a718114610295578063367821f0146102b5578063461f3120146103ae57806349ef8448146103ee57600080fd5b806304937320146101f35780630a98b9bd146102335780630d2a2d441461025357806313af40351461027557600080fd5b366101ee57005b600080fd5b3480156101ff57600080fd5b5061022061020e3660046126f1565b60076020526000908152604090205481565b6040519081526020015b60405180910390f35b34801561023f57600080fd5b5061022061024e366004612778565b6107f7565b34801561025f57600080fd5b5061027361026e36600461295f565b610ba6565b005b34801561028157600080fd5b5061027361029036600461299c565b610ce0565b3480156102a157600080fd5b506102736102b03660046129d5565b610dd1565b3480156102c157600080fd5b506103426102d03660046126f1565b6005602081905260009182526040909120805460018201546002830154600384015460048501549585015460068601546007870154600888015460099098015496989597949693959473ffffffffffffffffffffffffffffffffffffffff93841694928416939182169290821691168a565b604080519a8b5260208b0199909952978901969096526060880194909452608087019290925273ffffffffffffffffffffffffffffffffffffffff90811660a087015290811660c086015290811660e08501Line truncated
|
||||
"deployedBytecode": "0x6080604052600436106101e75760003560e01c80637f94f65d11610102578063ad8f2eed11610095578063d4fac45d11610064578063d4fac45d1461074c578063d6e8b97314610797578063f7d0e04b146107b7578063fb8c5ef0146107d757600080fd5b8063ad8f2eed14610692578063b0983d39146106d2578063c52164c6146106f2578063d1c070281461071f57600080fd5b80638db564c2116100d15780638db564c2146105fe5780639872dbfe1461061457806398a268711461062a5780639eee8d4b1461065a57600080fd5b80637f94f65d1461052b57806380e1d3021461054b57806384ab1d281461058b5780638da5cb5b146105d157600080fd5b80634b2ae9801161017a5780636a146024116101495780636a146024146104a25780636d82d9e0146104be57806374ba03a0146104de57806377cd38a4146104fe57600080fd5b80634b2ae9801461041c578063574983c81461043d5780635fd8c7101461045d57806369cc6af41461047257600080fd5b8063328a7181116101b6578063328a718114610295578063367821f0146102b5578063461f3120146103ae57806349ef8448146103ee57600080fd5b806304937320146101f35780630a98b9bd146102335780630d2a2d441461025357806313af40351461027557600080fd5b366101ee57005b600080fd5b3480156101ff57600080fd5b5061022061020e3660046126f1565b60076020526000908152604090205481565b6040519081526020015b60405180910390f35b34801561023f57600080fd5b5061022061024e366004612778565b6107f7565b34801561025f57600080fd5b5061027361026e36600461295f565b610ba6565b005b34801561028157600080fd5b5061027361029036600461299c565b610ce0565b3480156102a157600080fd5b506102736102b03660046129d5565b610dd1565b3480156102c157600080fd5b506103426102d03660046126f1565b6005602081905260009182526040909120805460018201546002830154600384015460048501549585015460068601546007870154600888015460099098015496989597949693959473ffffffffffffffffffffffffffffffffffffffff93841694928416939182169290821691168a565b604080519a8b5260208b0199909952978901969096526060880194909452608087019290925273ffffffffffffffffffffffffffffffffffffffff90811660a087015290811660c086015290811660e0850152908116610100840152166101208201526101400161022a565b3480156103ba57600080fd5b506103de6103c93660046126f1565b60096020526000908152604090205460ff1681565b604051901515815260200161022a565b3480156103fa57600080fd5b5061040e610409366004612a48565b611012565b60405161022a929190612b43565b34801561042857600080fd5b5061022061043736600461299c565b600c1b90565b34801561044957600080fd5b506102736104583660046126f1565b6112f5565b34801561046957600080fd5b506102736113ab565b34801561047e57600080fd5b506103de61048d36600461299c565b600a6020526000908152604090205460ff1681565b3480156104ae57600080fd5b50610220670de0b6b3a764000081565b3480156104ca57600080fd5b506102736104d9366004612bd2565b61146d565b3480156104ea57600080fd5b506102736104f9366004612c07565b611584565b34801561050a57600080fd5b506102206105193660046126f1565b60066020526000908152604090205481565b34801561053757600080fd5b50610273610546366004612c6b565b611a63565b34801561055757600080fd5b506103de610566366004612c97565b600c9190911b6000908152600b60209081526040808320938352929052205460ff1c90565b34801561059757600080fd5b506105ac6105a63660046126f1565b600c1c90565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161022a565b3480156105dd57600080fd5b506000546105ac9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561060a57600080fd5b5061022060045481565b34801561062057600080fd5b5061022060035481565b34801561063657600080fd5b506103de6106453660046126f1565b60086020526000908152604090205460ff1681565b34801561066657600080fd5b50610220610675366004612cd0565b600b60209081526000928352604080842090915290825290205481565b34801561069e57600080fd5b506105ac6106ad366004612c97565b600c9190911b6000908152600b602090815260408083209383529290522054605f1c90565b3480156106de57600080fd5b506102736106ed366004612cf5565b611b29565b3480156106fe57600080fd5b506002546105ac9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561072b57600080fd5b5061073f61073a366004612d2b565b611d6c565b60405161022a9190612d72565b34801561075857600080fd5b50610220610767366004612c97565b600c9190911b6000908152600b6020908152604080832093835292905220546b3fffffffffffffffffffffff1690565b3480156107a357600080fd5b506102736107b2366004612d85565b611e46565b3480156107c357600080fd5b506102736107d236600461299c565b611f56565b3480156107e357600080fd5b506102736107f2366004612e47565b612022565b600061080161211e565b61080b8383611b29565b600c8b901b6000908152600b602090815260408083208d84529091529020548a9060ff1c610865576040517fb2e532de00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c8c901b6000908152600b602090815260408083208484529091529020546b3fffffffffffffffffffffff16878110156108cc576040517f22bbb43c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006108d88e600c1b90565b9050600060045460016108eb9190612ed2565b6000818152600560205260409020600401549091504311610938576040517fd0404f8500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006040518061014001604052808481526020018381526020018d81526020018c81526020016003544361096c9190612ed2565b8152602001605f600b600087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681Line truncated
|
||||
"bytecode": "0x60406080815262002875803803806200001881620003a7565b92833981019060a08183031262000366578051602080830151909391906001600160401b0390818111620003665784019383601f8601121562000366578451946200006d6200006787620003e3565b620003a7565b9087828881520188819860051b83010191878311620003665789809101915b8383106200038c5750505050620000a5888301620003fb565b906060830151848111620003665783019386601f860112156200036657845193620000d46200006786620003e3565b958a87878152018b819760051b830101918a831162000366578c01905b8282106200036b5750505060808101519182116200036657019686601f890112156200036657875196620001296200006789620003e3565b988a8a8a815201908b829a60051b82010192831162000366578b01905b8282106200034c575050600080546001600160a01b03191633908117825590977f70fa43ca70216ad905ade86b9e650a691b2ce5a01980d0a81bdd8324141b851192508b91897f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d768180a3806003558c51908152a1815160051b82018901893d1515835b81156200032a575b50505050895191898301908a8452518091528a83019190875b8b8282106200030c575050505090807f14a422d2412784a5749d03da98921fe468c98577b767851389a9f58ea5a363d7920390a183546001600160a01b0391821691163303620002fc5786817fe127cf589a3879da0156d4a24f43b44f65cfa3570de594806b0bfa2fcf06884f926002558951908152a18151948515620002ef57518503620002e2579085919460051b0101925b8381036200029a57856001600455516124649081620004118239f35b84809181600c63cbc9d1c48152825186528651918291205581517f5d6e86e5341d57a92c49934296c51542a25015c9b1782a1c2722a940131c3d9a8680a3019201916200027e565b63ff633a3883526004601cfd5b63df95788384526004601cfd5b87516282b42960e81b8152600490fd5b83516001600160a01b031685529384019390920191600101620001ea565b806001849251600c1b55019083821015620003465790620001c9565b620001d1565b8151801515810362000366578152908b01908b0162000146565b600080fd5b81516001600160a01b038116810362000366578152908c01908c01620000f1565b81906200039984620003fb565b81520191019089906200008c565b6040519190601f01601f191682016001600160401b03811183821017620003cd57604052565b634e487b7160e01b600052604160045260246000fd5b6001600160401b038111620003cd5760051b60200190565b51906001600160a01b0382168203620003665756fe608080604052600436101561001d575b50361561001b57600080fd5b005b60003560e01c9081630493732014611ab8575080630d2a2d44146119b557806311fc7f9a1461166357806313af4035146115d6578063367821f0146115445780633c16f0c414611511578063461f312014610db957806349ef8448146113f75780634b2ae980146113d157806354776bb914611385578063572b6c0514611385578063574983c8146113215780635e918943146110e35780635fd8c7101461106457806369cc6af41461102f5780636d82d9e014610f6b5780637f94f65d14610f4657806380e1d30214610f1057806384ab1d2814610eda5780638da5cb5b14610ea65780638db564c214610e88578063918dff5714610df85780639872dbfe14610dda57806398a2687114610db9578063ad8f2eed14610d8d578063b0983d3914610d53578063c52164c614610d1f578063d1c0702814610c75578063d1ced2b014610b97578063d4fac45d14610b6b578063d6e8b97314610a17578063dc43221c14610451578063e449c52a146103fd578063f7d0e04b146103645763fb8c5ef0146101ab573861000f565b3461035f57606060031936011261035f576101c4611b55565b60243560443567ffffffffffffffff811161035f576101ea6101f8913690600401611ca7565b906101f3611de7565b611ef1565b61020282336121d4565b610299575b6102403383836b3fffffffffffffffffffffff61023a83339060205263739094b1600c5260005260016034600c20015490565b1661215e565b61024b813384611e69565b73ffffffffffffffffffffffffffffffffffffffff6040519216825260208201527f2cd6435b1b961c13f55202979edd0765a809f69a539d8a477436c94c1211e43e60403392a26001600455005b6102b982339060205263739094b1600c5260005260016034600c20015490565b8015610335576b3fffffffffffffffffffffff908360205263739094b1600c52336000521660016034600c20015560405173ffffffffffffffffffffffffffffffffffffffff83168152600060208201527fca585721b6b442dc9183932f7c84dc2880efb67c4da52cc06873e78971105d4960403392a2610207565b60046040517f87138d5c000000000000000000000000000000000000000000000000000000008152fd5b600080fd5b3461035f57602060031936011261035f5773ffffffffffffffffffffffffffffffffffffffff6004358181169182820361035f576000541633036103d3577fe127cf589a3879da0156d4a24f43b44f65cfa3570de594806b0bfa2fcf06884f91602091600255604051908152a1005b60046040517f82b42900000000000000000000000000000000000000000000000000000000008152fd5b3461035f57602060031936011261035f5760043567ffffffffffffffff811161035f573660238201121561035f576104496104446020923690602481600401359101611d3f565b611da4565b604051908152f35b3461035f5760a060031936011261035f5761046a611b55565b610472611c61565b9060443569ffffffffffffffffffff8116810361035f5760643567ffffffffffffffff811161035f576104a9903690600401611ca7565b93909260843567ffffffffffffffff811161035f576101ea6104cf913690600401611ca7565b6104d982826121d4565b156109ed576104e8828261219a565b9069ffffffffffffffffffff841682106109c35760016005540194856005558560005260066020526001604060002001544311156109995761052a8483612211565b9680156107ff576374dfee70600c5282600052602060002054918173ffffffffffffffffffffffffffffffffffffffff610562611e22565b16926107cc575b5050036107a2575b61057d60035443611dda565b90610586611e22565b94604051958660e081011067ffffffffffffffff60e0890111176107735773ffffffffLine truncated
|
||||
"deployedBytecode": "0x608080604052600436101561001d575b50361561001b57600080fd5b005b60003560e01c9081630493732014611ab8575080630d2a2d44146119b557806311fc7f9a1461166357806313af4035146115d6578063367821f0146115445780633c16f0c414611511578063461f312014610db957806349ef8448146113f75780634b2ae980146113d157806354776bb914611385578063572b6c0514611385578063574983c8146113215780635e918943146110e35780635fd8c7101461106457806369cc6af41461102f5780636d82d9e014610f6b5780637f94f65d14610f4657806380e1d30214610f1057806384ab1d2814610eda5780638da5cb5b14610ea65780638db564c214610e88578063918dff5714610df85780639872dbfe14610dda57806398a2687114610db9578063ad8f2eed14610d8d578063b0983d3914610d53578063c52164c614610d1f578063d1c0702814610c75578063d1ced2b014610b97578063d4fac45d14610b6b578063d6e8b97314610a17578063dc43221c14610451578063e449c52a146103fd578063f7d0e04b146103645763fb8c5ef0146101ab573861000f565b3461035f57606060031936011261035f576101c4611b55565b60243560443567ffffffffffffffff811161035f576101ea6101f8913690600401611ca7565b906101f3611de7565b611ef1565b61020282336121d4565b610299575b6102403383836b3fffffffffffffffffffffff61023a83339060205263739094b1600c5260005260016034600c20015490565b1661215e565b61024b813384611e69565b73ffffffffffffffffffffffffffffffffffffffff6040519216825260208201527f2cd6435b1b961c13f55202979edd0765a809f69a539d8a477436c94c1211e43e60403392a26001600455005b6102b982339060205263739094b1600c5260005260016034600c20015490565b8015610335576b3fffffffffffffffffffffff908360205263739094b1600c52336000521660016034600c20015560405173ffffffffffffffffffffffffffffffffffffffff83168152600060208201527fca585721b6b442dc9183932f7c84dc2880efb67c4da52cc06873e78971105d4960403392a2610207565b60046040517f87138d5c000000000000000000000000000000000000000000000000000000008152fd5b600080fd5b3461035f57602060031936011261035f5773ffffffffffffffffffffffffffffffffffffffff6004358181169182820361035f576000541633036103d3577fe127cf589a3879da0156d4a24f43b44f65cfa3570de594806b0bfa2fcf06884f91602091600255604051908152a1005b60046040517f82b42900000000000000000000000000000000000000000000000000000000008152fd5b3461035f57602060031936011261035f5760043567ffffffffffffffff811161035f573660238201121561035f576104496104446020923690602481600401359101611d3f565b611da4565b604051908152f35b3461035f5760a060031936011261035f5761046a611b55565b610472611c61565b9060443569ffffffffffffffffffff8116810361035f5760643567ffffffffffffffff811161035f576104a9903690600401611ca7565b93909260843567ffffffffffffffff811161035f576101ea6104cf913690600401611ca7565b6104d982826121d4565b156109ed576104e8828261219a565b9069ffffffffffffffffffff841682106109c35760016005540194856005558560005260066020526001604060002001544311156109995761052a8483612211565b9680156107ff576374dfee70600c5282600052602060002054918173ffffffffffffffffffffffffffffffffffffffff610562611e22565b16926107cc575b5050036107a2575b61057d60035443611dda565b90610586611e22565b94604051958660e081011067ffffffffffffffff60e0890111176107735773ffffffffffffffffffffffffffffffffffffffff6106ef9669ffffffffffffffffffff82969460209c849660e08d016040528d8d528e8d015260408c01521660608a01521660808801521660a08601521660c0840152836000526006855260406000209083518255858401516001830155604084015160028301556003820173ffffffffffffffffffffffffffffffffffffffff69ffffffffffffffffffff60608701511691805490608088015191847fffff0000000000000000000000000000000000000000000000000000000000007dffffffffffffffffffffffffffffffffffffffff000000000000000000008560501b16921617179055600560048601958360a08a015116967fffffffffffffffffffffffff00000000000000000000000000000000000000009788825416179055018260c0890151168096825416179055169161215e565b73ffffffffffffffffffffffffffffffffffffffff60a0820151167fa8fb61052fec8ed6ed923dd5e14b7d6aaae41d44c8870fc4efebf871389a577d604083519369ffffffffffffffffffff606073ffffffffffffffffffffffffffffffffffffffff60c08401511692015116825191825287820152a36001600455604051908152f35b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60046040517f3b8474be000000000000000000000000000000000000000000000000000000008152fd5b60051b810190915b602083359182811160051b9081521852602060406000209201918183106107d4579150508880610569565b505068056bc75e2d6310000069ffffffffffffffffffff85161180610973575b156105715761082c611e22565b600c1b6000526007602052670de0b6b3a764000060406000205404604051907f4d2b179100000000000000000000000000000000000000000000000000000000602083015260248201526024815280606081011067ffffffffffffffff6060830111176107735760008160606020930160405282815191016002545afa600051901561096557670de0b6b3a7640000810290808204670de0b6b3a764000014901517156109365769ffffffffffffffffffff8516118015610917575b156105715760046040517f1c18f846000000000000000000000000000000000000000000000000000000008152fd5b5069d3c21bcecceda100000069ffffffffffffffffffff8516116108e8565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b63e10bf1cc6000526004601cfd5b5073ffffffffffffffffffffffffffffffffffffffff610991611e22565b16331461081f565b60046040517fd0404f8500000000000000000000000000000000000000Line truncated
|
||||
"linkReferences": {},
|
||||
"deployedLinkReferences": {}
|
||||
}
|
||||
@@ -83,7 +83,7 @@ const checkForUnreleasedLocks = async (): Promise<void> => {
|
||||
if (walletLocks) {
|
||||
lockID.value = walletLocks.lockID;
|
||||
tokenAmount.value = walletLocks.pix.value;
|
||||
pixTarget.value = Number(walletLocks.pix.pixKey);
|
||||
pixTarget.value = walletLocks.pix.pixKey;
|
||||
showModal.value = true;
|
||||
} else {
|
||||
flowStep.value = Step.Search;
|
||||
@@ -96,7 +96,7 @@ if (paramLockID) {
|
||||
if (lockToRedirect) {
|
||||
lockID.value = lockToRedirect.lockID;
|
||||
tokenAmount.value = lockToRedirect.pix.value;
|
||||
pixTarget.value = Number(lockToRedirect.pix.pixKey);
|
||||
pixTarget.value = lockToRedirect.pix.pixKey;
|
||||
flowStep.value = Step.Buy;
|
||||
} else {
|
||||
flowStep.value = Step.Search;
|
||||
|
||||
Reference in new issue
Block a user