From a6e0c3a2148acf3b23bb40e17e44e23070b3a9ee Mon Sep 17 00:00:00 2001 From: hvthhien Date: Tue, 21 May 2024 09:33:39 +0700 Subject: [PATCH 01/17] add feralfile token contract --- contracts/FeralfileToken.sol | 18 ++++++++++++++++++ test/feralfile_token.js | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 contracts/FeralfileToken.sol create mode 100644 test/feralfile_token.js diff --git a/contracts/FeralfileToken.sol b/contracts/FeralfileToken.sol new file mode 100644 index 0000000..3529e44 --- /dev/null +++ b/contracts/FeralfileToken.sol @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.13; + +import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; +import { Authorizable } from "./Authorizable.sol"; + +contract FeralfileToken is ERC20, Authorizable { + + // Constructor to initialize the token with a name and symbol + constructor(string memory name_, string memory symbol_) ERC20(name_, symbol_) {} + + /// @notice Mint new tokens to an owner + /// @param amount The amount of tokens to mint + /// @param owner The address of the owner to receive the minted tokens + function mintToken(uint256 amount, address owner) external onlyAuthorized { + _mint(owner, amount); + } +} \ No newline at end of file diff --git a/test/feralfile_token.js b/test/feralfile_token.js new file mode 100644 index 0000000..bf6c9c6 --- /dev/null +++ b/test/feralfile_token.js @@ -0,0 +1,34 @@ +const FeralfileToken = artifacts.require('FeralfileToken'); + +contract('FeralfileToken', async (accounts) => { + before(async function () { + this.contract = await FeralfileToken.new("Feral File Token Test", "FFToken",); + }); + + it("test contract constructor", async function () { + const name = await this.contract.name(); + assert.equal(name, "Feral File Token Test"); + + const symbol = await this.contract.symbol(); + assert.equal(symbol, "FFToken"); + + const totalSupply = await this.contract.totalSupply(); + assert.equal(totalSupply, 0); + + }); + + it("test mint token", async function () { + const owner = accounts[1]; + const amount = 24; + + const tx = await this.contract.mintToken(amount, owner); + + // total supply + const totalSupply = await this.contract.totalSupply(); + assert.equal(totalSupply, amount); + + // balance + const balance = await this.contract.balanceOf(owner); + assert.equal(balance, amount); + }); +}); \ No newline at end of file From 50f6bfe50d39861da65e1f3c7b4343426ba51aa9 Mon Sep 17 00:00:00 2001 From: hvthhien Date: Wed, 22 May 2024 10:17:11 +0700 Subject: [PATCH 02/17] add batchMint supported --- contracts/FeralfileToken.sol | 14 ++++++++++++-- test/feralfile_token.js | 29 ++++++++++++++++++++++++++++- 2 files changed, 40 insertions(+), 3 deletions(-) diff --git a/contracts/FeralfileToken.sol b/contracts/FeralfileToken.sol index 3529e44..b6f67f3 100644 --- a/contracts/FeralfileToken.sol +++ b/contracts/FeralfileToken.sol @@ -10,9 +10,19 @@ contract FeralfileToken is ERC20, Authorizable { constructor(string memory name_, string memory symbol_) ERC20(name_, symbol_) {} /// @notice Mint new tokens to an owner - /// @param amount The amount of tokens to mint /// @param owner The address of the owner to receive the minted tokens - function mintToken(uint256 amount, address owner) external onlyAuthorized { + /// @param amount The amount of tokens to mint + function mint(address owner, uint256 amount) external onlyAuthorized { _mint(owner, amount); } + + /// @notice Mint tokens for multiple owners + /// @param owners An array of addresses to receive the minted tokens + /// @param amounts An array of amounts of tokens to mint for each respective owner + function batchMint(address[] calldata owners, uint256[] calldata amounts) external virtual onlyAuthorized { + require(owners.length == amounts.length, "FeralfileToken: owners and amounts length mismatch"); + for (uint256 i = 0; i < owners.length; i++) { + _mint(owners[i], amounts[i]); + } + } } \ No newline at end of file diff --git a/test/feralfile_token.js b/test/feralfile_token.js index bf6c9c6..747930a 100644 --- a/test/feralfile_token.js +++ b/test/feralfile_token.js @@ -21,7 +21,7 @@ contract('FeralfileToken', async (accounts) => { const owner = accounts[1]; const amount = 24; - const tx = await this.contract.mintToken(amount, owner); + await this.contract.mint(owner, amount, { from: accounts[0] }); // total supply const totalSupply = await this.contract.totalSupply(); @@ -31,4 +31,31 @@ contract('FeralfileToken', async (accounts) => { const balance = await this.contract.balanceOf(owner); assert.equal(balance, amount); }); + + it("test mint tokens for multiple owners", async function () { + const owners = [accounts[2], accounts[3], accounts[4]]; + const amounts = [50, 100, 150]; + + await this.contract.batchMint(owners, amounts, { from: accounts[0] }); + + const totalSupply = await this.contract.totalSupply(); + assert.equal(totalSupply.toNumber(), 300, "Total supply does not match minted amount for multiple users"); + + for (let i = 0; i < owners.length; i++) { + const balance = await this.contract.balanceOf(owners[i]); + assert.equal(balance.toNumber(), amounts[i], `Balance of owner ${i + 1} does not match minted amount`); + } + }); + + it("test mint tokens for multiple owners mismatched array lengths", async function () { + const owners = [accounts[2], accounts[3]]; + const amounts = [50, 100, 150]; + + try { + await this.contract.batchMint(owners, amounts, { from: accounts[0] }); + assert.fail("Minting with mismatched array lengths should have thrown an error"); + } catch (error) { + assert(error.message.includes("owners and amounts length mismatch"), "Expected Owners and amounts length mismatch error"); + } + }); }); \ No newline at end of file From 4ae7c2f027a51556e2d40fce2e1d3d30b9eb1c70 Mon Sep 17 00:00:00 2001 From: hvthhien Date: Wed, 22 May 2024 15:36:08 +0700 Subject: [PATCH 03/17] add FeralfileArtworkV4_2 contract --- contracts/FeralfileArtworkV4_2.sol | 60 ++++++++++++++++++++++++++++++ contracts/FeralfileToken.sol | 7 +++- 2 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 contracts/FeralfileArtworkV4_2.sol diff --git a/contracts/FeralfileArtworkV4_2.sol b/contracts/FeralfileArtworkV4_2.sol new file mode 100644 index 0000000..07d76fe --- /dev/null +++ b/contracts/FeralfileArtworkV4_2.sol @@ -0,0 +1,60 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.13; + +import { FeralfileExhibitionV4_1 } from "./FeralfileArtworkV4_1.sol"; + +contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { + + error ArtworkEditionNotFound(); + + mapping(uint256 => string) public artworkParameters; // artworkEditionID => parameters as string + + constructor( + string memory name_, + string memory symbol_, + bool burnable_, + bool bridgeable_, + address signer_, + address vault_, + address costReceiver_, + string memory contractURI_, + uint256[] memory seriesIds_, + uint256[] memory seriesMaxSupplies_ + ) + FeralfileExhibitionV4_1( + name_, + symbol_, + burnable_, + bridgeable_, + signer_, + vault_, + costReceiver_, + contractURI_, + seriesIds_, + seriesMaxSupplies_ + ) + {} + + /// @notice Update the parameters of an edition to a new value + function updateArtworkParameters(uint256 tokenId, string calldata parameters) + external + onlyAuthorized + { + if (!_exists(tokenId)) { + revert ArtworkEditionNotFound(); + } + + artworkParameters[tokenId] = parameters; + } + + /// @notice Get the parameters of an edition + function getArtworkParameters( + uint256 tokenId + ) public view virtual returns (string memory) { + if (!_exists(tokenId)) { + revert ArtworkEditionNotFound(); + } + + return artworkParameters[tokenId]; + } +} diff --git a/contracts/FeralfileToken.sol b/contracts/FeralfileToken.sol index b6f67f3..406253f 100644 --- a/contracts/FeralfileToken.sol +++ b/contracts/FeralfileToken.sol @@ -6,6 +6,8 @@ import { Authorizable } from "./Authorizable.sol"; contract FeralfileToken is ERC20, Authorizable { + error InvalidOwnersAndAmounts(); + // Constructor to initialize the token with a name and symbol constructor(string memory name_, string memory symbol_) ERC20(name_, symbol_) {} @@ -20,7 +22,10 @@ contract FeralfileToken is ERC20, Authorizable { /// @param owners An array of addresses to receive the minted tokens /// @param amounts An array of amounts of tokens to mint for each respective owner function batchMint(address[] calldata owners, uint256[] calldata amounts) external virtual onlyAuthorized { - require(owners.length == amounts.length, "FeralfileToken: owners and amounts length mismatch"); + if (owners.length != amounts.length) { + revert InvalidOwnersAndAmounts(); + } + for (uint256 i = 0; i < owners.length; i++) { _mint(owners[i], amounts[i]); } From 0e0c7d1c50f79d70461a28b1c3ed5b0637cbd317 Mon Sep 17 00:00:00 2001 From: hvthhien Date: Thu, 23 May 2024 09:36:47 +0700 Subject: [PATCH 04/17] update tests --- test/feralfile_exhibition_v4_2.js | 1213 +++++++++++++++++++++++++++++ 1 file changed, 1213 insertions(+) create mode 100644 test/feralfile_exhibition_v4_2.js diff --git a/test/feralfile_exhibition_v4_2.js b/test/feralfile_exhibition_v4_2.js new file mode 100644 index 0000000..e90ffd7 --- /dev/null +++ b/test/feralfile_exhibition_v4_2.js @@ -0,0 +1,1213 @@ +const FeralfileExhibitionV4_2 = artifacts.require("FeralfileExhibitionV4_2"); +const FeralfileVault = artifacts.require("FeralfileVault"); + +const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000"; +const COST_RECEIVER = "0x46f2B641d8702f29c45f6D06292dC34Eb9dB1801"; +const VAULT_ADDRESS = "0x7a15b36cb834aea88553de69077d3777460d73ac"; +const CONTRACT_URI = "ipfs://QmQPeNsJPyVWPFDVHb77w8G42Fvo15z4bG2X8D2GhfbSXc"; + +contract("FeralfileExhibitionV4_2", async (accounts) => { + before(async function () { + this.signer = accounts[0]; + this.vault = await FeralfileVault.new(this.signer); + this.seriesIds = [0, 1, 2, 3, 4]; + this.seriesMaxSupply = [1, 1, 100, 1000, 10000]; + + // Deploy multiple contracts + this.contracts = []; + for (let i = 0; i < 12; i++) { + let contract = await FeralfileExhibitionV4_2.new( + "Feral File V4 Test", + "FFv4", + true, + true, + this.signer, + this.vault.address, + COST_RECEIVER, + CONTRACT_URI, + this.seriesIds, + this.seriesMaxSupply + ); + this.contracts.push(contract); + } + }); + + it("test contract constructor", async function () { + const contract = this.contracts[0]; + + const burnable = await contract.burnable(); + assert.ok(burnable); + + const bridgeable = await contract.bridgeable(); + assert.ok(bridgeable); + + const mintable = await contract.mintable(); + assert.ok(mintable); + + const vaultAddress = await contract.vault(); + assert.equal(vaultAddress, this.vault.address); + + const signer = await contract.signer(); + assert.equal(signer, signer); + + const seriesMaxSupply1 = await contract.seriesMaxSupply( + this.seriesIds[0] + ); + assert.equal(seriesMaxSupply1, this.seriesMaxSupply[0]); + + const seriesMaxSupply2 = await contract.seriesMaxSupply( + this.seriesIds[1] + ); + assert.equal(seriesMaxSupply2, this.seriesMaxSupply[1]); + + const seriesTotalSupply1 = await contract.seriesTotalSupply( + this.seriesIds[0] + ); + assert.equal(seriesTotalSupply1, 0); + }); + + it("test duplicate series in constructor", async function () { + // Deploy contract with duplicate series defined + let seriesIds = [0, 1, 2, 3, 1]; + let seriesMaxSupply = [1, 1, 100, 1000, 10000]; + try { + await FeralfileExhibitionV4_2.new( + "Feral File V4 Test", + "FFv4", + true, + true, + this.signer, + this.vault.address, + COST_RECEIVER, + CONTRACT_URI, + seriesIds, + seriesMaxSupply + ); + } catch (error) { + assert.ok( + error.message.includes( + "FeralfileExhibitionV4: duplicate seriesId" + ) + ); + } + }); + + it("test mint artwork", async function () { + const contract = this.contracts[0]; + + // 1. mint successful + const owner = accounts[1]; + const tokenId1 = this.seriesIds[3] * 1000000 + 0; + const tokenId2 = this.seriesIds[4] * 1000000 + 0; + let data = [ + [this.seriesIds[2], tokenId1, owner], + [this.seriesIds[3], tokenId2, owner], + ]; + const tx = await contract.mintArtworks(data); + + // total supply + const totalSupply = await contract.totalSupply(); + assert.equal(totalSupply, 2); + + // series total supply + const totalSupply1 = await contract.seriesTotalSupply( + this.seriesIds[2] + ); + const totalSupply2 = await contract.seriesTotalSupply( + this.seriesIds[3] + ); + assert.equal(totalSupply1, 1); + assert.equal(totalSupply2, 1); + + // owner + const tokenOwner = await contract.ownerOf(tokenId1); + assert.equal(tokenOwner, owner); + + // balance + const balance = await contract.balanceOf(owner); + assert.equal(balance, 2); + + // get artwork + const artwork = await contract.getArtwork(tokenId1); + assert.equal(artwork.tokenId, tokenId1); + assert.equal(artwork.seriesId, this.seriesIds[2]); + + // get token ID from owner + const tokenIds = await contract.tokensOfOwner(owner); + assert.equal(tokenIds.length, 2); + assert.equal(tokenIds[0], tokenId1); + assert.equal(tokenIds[1], tokenId2); + + // get token ID from owner & index + const tokenId = await contract.tokenOfOwnerByIndex(owner, 0); + assert.equal(tokenId, tokenId1); + + // event emitted + const { logs } = tx; + assert.ok(Array.isArray(logs)); + assert.equal(logs.length, 4); + + const log0 = logs[0]; + const log1 = logs[1]; + assert.equal(log0.event, "Transfer"); + assert.equal(log1.event, "NewArtwork"); + + // 2. mint failed + // series doesn't exist + data = [[999999, 0, owner]]; + try { + await contract.mintArtworks(data); + } catch (error) { + assert.ok( + error.message.includes( + "FeralfileExhibitionV4: seriesId doesn't exist: 999999" + ) + ); + } + + // mint to zero address + data = [[this.seriesIds[3], 999999, ZERO_ADDRESS]]; + try { + await contract.mintArtworks(data); + } catch (error) { + assert.ok( + error.message.includes("ERC721: mint to the zero address") + ); + } + + // token already minted + data = [[this.seriesIds[3], tokenId1, accounts[2]]]; + try { + await contract.mintArtworks(data); + } catch (error) { + assert.ok(error.message.includes("ERC721: token already minted")); + } + + // no more slots + data = [[this.seriesIds[2], 999999, accounts[2]]]; + try { + await contract.mintArtworks(data); + } catch (error) { + assert.ok( + error.message.includes( + "FeralfileExhibitionV4: no slots available" + ) + ); + } + }); + + it("test burn artwork", async function () { + const contract = this.contracts[1]; + + // 1. Prepare data + const owner = accounts[1]; + const tokenId1 = this.seriesIds[0] * 1000000 + 0; + const tokenId2 = this.seriesIds[1] * 1000000 + 0; + const tokenId3 = this.seriesIds[2] * 1000000 + 0; + let mintData = [ + [this.seriesIds[0], tokenId1, owner], + [this.seriesIds[1], tokenId2, owner], + [this.seriesIds[2], tokenId3, owner], + ]; + let tx = await contract.mintArtworks(mintData); + + // 2. Burn successfully + let burnData = [tokenId1, tokenId2]; + tx = await contract.burnArtworks(burnData, { from: owner }); + + // total supply + const totalSupply = await contract.totalSupply(); + assert.equal(totalSupply, 1); + + // series total supply + const totalSupply1 = await contract.seriesTotalSupply( + this.seriesIds[0] + ); + const totalSupply2 = await contract.seriesTotalSupply( + this.seriesIds[1] + ); + assert.equal(totalSupply1, 0); + assert.equal(totalSupply2, 0); + + // balance + const balance = await contract.balanceOf(owner); + assert.equal(balance, 1); + + // token of owner + const tokenIds = await contract.tokensOfOwner(owner); + assert.equal(tokenIds.length, 1); + + // get artwork + try { + await contract.getArtwork(tokenId1); + } catch (error) { + assert.ok(error.message.includes("ERC721: invalid token ID")); + } + + // event emitted + const { logs } = tx; + assert.ok(Array.isArray(logs)); + assert.equal(logs.length, 4); + + const log1 = logs[0]; + const log2 = logs[1]; + assert.equal(log1.event, "Transfer"); + assert.equal(log2.event, "BurnArtwork"); + + // 3. Burn failed + + // token doesn't exist + try { + await contract.burnArtworks([111111, 222222]); + } catch (error) { + assert.ok(error.message.includes("ERC721: invalid token ID")); + } + + // Wrong owner or approval + const wrongOwner = accounts[5]; + try { + await contract.burnArtworks([tokenId3], { + from: wrongOwner, + }); + } catch (error) { + assert.ok( + error.message.includes( + "ERC721: caller is not token owner or approved" + ) + ); + } + }); + + it("test buy artworks successfully", async function () { + let contract = this.contracts[2]; + + // Mint for buy by crypto + let owner = contract.address; + await contract.mintArtworks([ + [this.seriesIds[3], 3000000, owner], + [this.seriesIds[3], 3000001, owner], + [this.seriesIds[4], 4000000, owner], + [this.seriesIds[4], 4000001, owner], + [this.seriesIds[4], 4000002, owner], + ]); + + // Generate signature + const expiryTime = (new Date().getTime() / 1000 + 300).toFixed(0); + const signParams = web3.eth.abi.encodeParameters( + [ + "uint", + "address", + "tuple(uint256,uint256,uint256,address,uint256[],tuple(address,uint256)[][],bool)", + ], + [ + BigInt(await web3.eth.getChainId()).toString(), + contract.address, + [ + BigInt(0.25 * 1e18).toString(), + BigInt(0.02 * 1e18).toString(), + expiryTime, + accounts[2], + [3000000, 3000001, 4000000, 4000001, 4000002], + [ + [ + [accounts[3], 8000], + [accounts[4], 2000], + ], + [ + [accounts[3], 8000], + [accounts[4], 2000], + ], + [ + [accounts[3], 8000], + [accounts[4], 2000], + ], + [ + [accounts[3], 8000], + [accounts[4], 2000], + ], + [ + [accounts[3], 8000], + [accounts[4], 2000], + ], + ], + false, + ], + ] + ); + const hash = web3.utils.keccak256(signParams); + var sig = await web3.eth.sign(hash, this.signer); + sig = sig.substr(2); + const r = "0x" + sig.slice(0, 64); + const s = "0x" + sig.slice(64, 128); + const v = "0x" + sig.slice(128, 130); + // Generate signature + + try { + const acc3BalanceBefore = await web3.eth.getBalance(accounts[3]); + const acc4BalanceBefore = await web3.eth.getBalance(accounts[4]); + const accCostReceiverBalanceBefore = await web3.eth.getBalance( + COST_RECEIVER + ); + + await contract.startSale(); + await contract.buyArtworks( + r, + s, + web3.utils.toDecimal(v) + 27, // magic 27 + [ + BigInt(0.25 * 1e18).toString(), + BigInt(0.02 * 1e18).toString(), + expiryTime, + accounts[2], + [3000000, 3000001, 4000000, 4000001, 4000002], + [ + [ + [accounts[3], 8000], + [accounts[4], 2000], + ], + [ + [accounts[3], 8000], + [accounts[4], 2000], + ], + [ + [accounts[3], 8000], + [accounts[4], 2000], + ], + [ + [accounts[3], 8000], + [accounts[4], 2000], + ], + [ + [accounts[3], 8000], + [accounts[4], 2000], + ], + ], + false, + ], + { from: accounts[5], value: 0.25 * 1e18 } + ); + const ownerOfToken0 = await contract.ownerOf(3000000); + const ownerOfToken1 = await contract.ownerOf(3000001); + const ownerOfToken2 = await contract.ownerOf(4000000); + const ownerOfToken3 = await contract.ownerOf(4000001); + const ownerOfToken4 = await contract.ownerOf(4000002); + assert.equal(ownerOfToken0, accounts[2]); + assert.equal(ownerOfToken1, accounts[2]); + assert.equal(ownerOfToken2, accounts[2]); + assert.equal(ownerOfToken3, accounts[2]); + assert.equal(ownerOfToken4, accounts[2]); + + const acc3BalanceAfter = await web3.eth.getBalance(accounts[3]); + const acc4BalanceAfter = await web3.eth.getBalance(accounts[4]); + const accCostReceiverBalanceAfter = await web3.eth.getBalance( + COST_RECEIVER + ); + + assert.equal( + ( + BigInt(acc3BalanceAfter) - BigInt(acc3BalanceBefore) + ).toString(), + BigInt((0.23 * 1e18 * 80) / 100).toString() + ); + assert.equal( + ( + BigInt(acc4BalanceAfter) - BigInt(acc4BalanceBefore) + ).toString(), + BigInt((0.23 * 1e18 * 20) / 100).toString() + ); + assert.equal( + ( + BigInt(accCostReceiverBalanceAfter) - + BigInt(accCostReceiverBalanceBefore) + ).toString(), + BigInt(0.02 * 1e18).toString() + ); + } catch (err) { + console.log(err); + assert.fail(); + } + }); + + it("test buy artworks successfully with vault contract", async function () { + let contract = this.contracts[3]; + + // Mint for credit card + let owner = contract.address; + await contract.mintArtworks([ + [this.seriesIds[3], 3000002, owner], + [this.seriesIds[3], 3000003, owner], + [this.seriesIds[4], 4000003, owner], + [this.seriesIds[4], 4000004, owner], + ]); + + await web3.eth.sendTransaction({ + to: this.vault.address, + from: accounts[8], + value: BigInt(0.5 * 1e18).toString(), + }); + // Generate signature + const expiryTime = (new Date().getTime() / 1000 + 300).toFixed(0); + const signParams = web3.eth.abi.encodeParameters( + [ + "uint", + "address", + "tuple(uint256,uint256,uint256,address,uint256[],tuple(address,uint256)[][],bool)", + ], + [ + BigInt(await web3.eth.getChainId()).toString(), + contract.address, + [ + BigInt(0.22 * 1e18).toString(), + BigInt(0.02 * 1e18).toString(), + expiryTime, + accounts[2], + [3000002, 3000003, 4000003, 4000004], + [ + [ + [accounts[3], 5000], + [accounts[4], 5000], + ], + [ + [accounts[3], 5000], + [accounts[4], 5000], + ], + [ + [accounts[3], 8000], + [accounts[4], 2000], + ], + [ + [accounts[3], 8000], + [accounts[4], 2000], + ], + ], + true, + ], + ] + ); + const hash = web3.utils.keccak256(signParams); + var sig = await web3.eth.sign(hash, this.signer); + sig = sig.substr(2); + const r = "0x" + sig.slice(0, 64); + const s = "0x" + sig.slice(64, 128); + const v = "0x" + sig.slice(128, 130); + // Generate signature + try { + const acc3BalanceBefore = await web3.eth.getBalance(accounts[3]); + const acc4BalanceBefore = await web3.eth.getBalance(accounts[4]); + const vaultBalanceBefore = await web3.eth.getBalance( + this.vault.address + ); + const accCostReceiverBalanceBefore = await web3.eth.getBalance( + COST_RECEIVER + ); + + await contract.startSale(); + await contract.buyArtworks( + r, + s, + web3.utils.toDecimal(v) + 27, // magic 27 + [ + BigInt(0.22 * 1e18).toString(), + BigInt(0.02 * 1e18).toString(), + expiryTime, + accounts[2], + [3000002, 3000003, 4000003, 4000004], + [ + [ + [accounts[3], 5000], + [accounts[4], 5000], + ], + [ + [accounts[3], 5000], + [accounts[4], 5000], + ], + [ + [accounts[3], 8000], + [accounts[4], 2000], + ], + [ + [accounts[3], 8000], + [accounts[4], 2000], + ], + ], + true, + ], + { from: accounts[5], value: 0 } // itx relay + ); + const ownerOfToken0 = await contract.ownerOf(3000002); + const ownerOfToken1 = await contract.ownerOf(3000003); + const ownerOfToken2 = await contract.ownerOf(4000003); + const ownerOfToken3 = await contract.ownerOf(4000004); + assert.equal(ownerOfToken0, accounts[2]); + assert.equal(ownerOfToken1, accounts[2]); + assert.equal(ownerOfToken2, accounts[2]); + assert.equal(ownerOfToken3, accounts[2]); + + const acc3BalanceAfter = await web3.eth.getBalance(accounts[3]); + const acc4BalanceAfter = await web3.eth.getBalance(accounts[4]); + const vaultBalanceAfter = await web3.eth.getBalance( + this.vault.address + ); + const accCostReceiverBalanceAfter = await web3.eth.getBalance( + COST_RECEIVER + ); + + assert.equal( + ( + BigInt(acc3BalanceAfter) - BigInt(acc3BalanceBefore) + ).toString(), + BigInt(((0.2 / 4) * 2 * 1e18 * 130) / 100).toString() + ); + assert.equal( + ( + BigInt(acc4BalanceAfter) - BigInt(acc4BalanceBefore) + ).toString(), + BigInt(((0.2 / 4) * 2 * 1e18 * 70) / 100).toString() + ); + assert.equal( + ( + BigInt(vaultBalanceBefore) - BigInt(vaultBalanceAfter) + ).toString(), + BigInt(0.22 * 1e18).toString() + ); + assert.equal( + ( + BigInt(accCostReceiverBalanceAfter) - + BigInt(accCostReceiverBalanceBefore) + ).toString(), + BigInt(0.02 * 1e18).toString() + ); + } catch (err) { + console.log(err); + assert.fail(); + } + }); + + it("test buy artworks failed with total bps over 10k", async function () { + let contract = this.contracts[7]; + + // Mint for buy by crypto + let owner = contract.address; + await contract.mintArtworks([ + [this.seriesIds[3], 3000000, owner], + [this.seriesIds[3], 3000001, owner], + [this.seriesIds[4], 4000000, owner], + [this.seriesIds[4], 4000001, owner], + [this.seriesIds[4], 4000002, owner], + ]); + + // Generate signature + const expiryTime = (new Date().getTime() / 1000 + 300).toFixed(0); + const signParams = web3.eth.abi.encodeParameters( + [ + "uint", + "address", + "tuple(uint256,uint256,uint256,address,uint256[],tuple(address,uint256)[][],bool)", + ], + [ + BigInt(await web3.eth.getChainId()).toString(), + contract.address, + [ + BigInt(0.25 * 1e18).toString(), + BigInt(0.02 * 1e18).toString(), + expiryTime, + accounts[2], + [3000000, 3000001, 4000000, 4000001, 4000002], + [ + [ + [accounts[3], 8001], + [COST_RECEIVER, 2000], + ], + [ + [accounts[3], 8001], + [COST_RECEIVER, 2000], + ], + [ + [accounts[3], 9000], + [COST_RECEIVER, 2000], + ], + [ + [accounts[3], 9000], + [COST_RECEIVER, 2000], + ], + [ + [accounts[3], 8500], + [COST_RECEIVER, 2000], + ], + ], + false, + ], + ] + ); + const hash = web3.utils.keccak256(signParams); + var sig = await web3.eth.sign(hash, this.signer); + sig = sig.substr(2); + const r = "0x" + sig.slice(0, 64); + const s = "0x" + sig.slice(64, 128); + const v = "0x" + sig.slice(128, 130); + // Generate signature + + try { + await contract.startSale(); + await contract.buyArtworks( + r, + s, + web3.utils.toDecimal(v) + 27, // magic 27 + [ + BigInt(0.25 * 1e18).toString(), + BigInt(0.02 * 1e18).toString(), + expiryTime, + accounts[2], + [3000000, 3000001, 4000000, 4000001, 4000002], + [ + [ + [accounts[3], 8001], + [COST_RECEIVER, 2000], + ], + [ + [accounts[3], 8001], + [COST_RECEIVER, 2000], + ], + [ + [accounts[3], 9000], + [COST_RECEIVER, 2000], + ], + [ + [accounts[3], 9000], + [COST_RECEIVER, 2000], + ], + [ + [accounts[3], 8500], + [COST_RECEIVER, 2000], + ], + ], + false, + ], + { from: accounts[5], value: 0.25 * 1e18 } + ); + } catch (error) { + assert.ok( + error.message.includes( + "FeralfileExhibitionV4: total bps over 10,000" + ) + ); + } + }); + + it("test start/stop and burn, pause/resume sale", async function () { + const contract = this.contracts[4]; + + // Resume the sale is not allowed before starting the sale + try { + await contract.resumeSale(); + } catch (error) { + assert.ok( + error.message.includes( + "FeralfileExhibitionV4: mintable required to be false" + ) + ); + } + + // Pause the sale is not allowed before starting the sale + try { + await contract.pauseSale(); + } catch (error) { + assert.ok( + error.message.includes( + "FeralfileExhibitionV4: mintable required to be false" + ) + ); + } + + // Mint new tokens + const owner = contract.address; + const tokenIDs = [4000997, 4000998, 4000999]; + await contract.mintArtworks([ + [this.seriesIds[4], tokenIDs[0], owner], + [this.seriesIds[4], tokenIDs[1], owner], + [this.seriesIds[4], tokenIDs[2], owner], + ]); + + // Start the sale + await contract.startSale(); + + // Validate mintable flag to be false + const mintable = await contract.mintable(); + assert.equal(mintable, false); + + // Validate selling flag to be true + let selling = await contract.selling(); + assert.equal(selling, true); + + // Pause and resume the sale + try { + await contract.pauseSale(); + + // Validate selling flag to be false + selling = await contract.selling(); + assert.equal(selling, false); + + await contract.resumeSale(); + + // Validate selling flag to be true + selling = await contract.selling(); + assert.equal(selling, true); + } catch (error) { + console.log(error); + assert.fail(); + } + + // Stop sale and burn remaining tokens + try { + await contract.stopSaleAndBurn(); + } catch (error) { + console.log(error); + assert.fail(); + } + + // Validate selling flag to be false + selling = await contract.selling(); + assert.equal(selling, false); + + // Validate tokens were burned + for (let i = 0; i < tokenIDs.length; i++) { + try { + await contract.getArtwork(tokenIDs[i]); + } catch (error) { + assert.ok(error.message.includes("ERC721: invalid token ID")); + } + } + + // Resume the sale is not allowed since there is no token left for sale + try { + await contract.resumeSale(); + } catch (error) { + assert.ok( + error.message.includes( + "FeralfileExhibitionV4: No token owned by the contract" + ) + ); + } + }); + + it("test start/stop and transfer remaining token", async function () { + const contract = this.contracts[5]; + + // Mint new tokens + const tokenIDs = [3000997, 3000998, 4000998, 4000999]; + await contract.mintArtworks([ + [this.seriesIds[3], tokenIDs[0], contract.address], + [this.seriesIds[3], tokenIDs[1], contract.address], + [this.seriesIds[4], tokenIDs[2], contract.address], + [this.seriesIds[4], tokenIDs[3], contract.address], + ]); + + // Start the sale + await contract.startSale(); + + const owner1 = accounts[1]; + const owner2 = accounts[2]; + + // 1. Stop the sale and transfer remaining tokens failed + try { + await contract.stopSaleAndTransfer( + [this.seriesIds[3], this.seriesIds[4]], + [owner1] + ); + } catch (error) { + assert.ok( + error.message.includes( + "FeralfileExhibitionV4: seriesIds length is different from recipientAddresses" + ) + ); + } + + try { + await contract.stopSaleAndTransfer( + [this.seriesIds[1], this.seriesIds[2]], + [] + ); + } catch (error) { + assert.ok( + error.message.includes( + "FeralfileExhibitionV4: seriesIds or recipientAddresses length is zero" + ) + ); + } + + try { + await contract.stopSaleAndTransfer( + [this.seriesIds[1], this.seriesIds[2]], + [owner1, owner2] + ); + } catch (error) { + assert.ok( + error.message.includes( + "FeralfileExhibitionV4: Token for sale balance has to be zero" + ) + ); + } + + // 2. Stop the sale and transfer remaining token successful + try { + await contract.stopSaleAndTransfer( + [this.seriesIds[3], this.seriesIds[4]], + [owner1, owner2] + ); + } catch (error) { + assert.fail(); + } + + // Validate balances + const contractBal = await contract.balanceOf(contract.address); + assert.equal(contractBal, 0); + + const owner1Bal = await contract.balanceOf(owner1); + assert.equal(owner1Bal, 2); + + const owner2Bal = await contract.balanceOf(owner2); + assert.equal(owner2Bal, 2); + }); + + it("test transfer token", async function () { + const contract = this.contracts[6]; + + // mint tokens + const owner1 = accounts[1]; + const owner2 = accounts[2]; + const tokenId1 = this.seriesIds[3] * 1000000 + 555; + const tokenId2 = this.seriesIds[3] * 1000000 + 556; + const tokenId3 = this.seriesIds[4] * 1000000 + 555; + const tokenId4 = this.seriesIds[4] * 1000000 + 556; + let data = [ + [this.seriesIds[3], tokenId1, owner1], + [this.seriesIds[3], tokenId2, owner1], + [this.seriesIds[4], tokenId3, owner2], + [this.seriesIds[4], tokenId4, owner2], + ]; + + try { + await contract.mintArtworks(data); + } catch (error) { + console.log(error); + assert.fail(); + } + + // transfer tokens + // 1. Transfer to other address rather than contract + try { + await contract.transferFrom(owner1, owner2, tokenId1, { + from: owner1, + }); + } catch (error) { + console.log(error); + assert.fail(); + } + + // Validate new owner of token + let owner = await contract.ownerOf(tokenId1); + assert.equal(owner, owner2); + + // 2. Transfer to contract address + try { + await contract.transferFrom(owner2, owner1, tokenId1, { + from: owner2, + }); + } catch (error) { + assert.ok( + error.message.includes( + "FeralfileExhibitionV4: Contract isn't allowed to receive token" + ) + ); + } + + // 3. Transfer as operator + // TODO add later + + // 4. Transfer as approval + // TODO add later + }); + + it("test set advance setting successfully", async function () { + const contract = this.contracts[7]; + const advanceAddresses = [accounts[3], accounts[4]]; + const advanceAmounts = [ + web3.utils.toWei("0.3", "ether"), + web3.utils.toWei("0.8", "ether"), + ]; + + // 1. Set advance setting + try { + await contract.setAdvanceSetting(advanceAddresses, advanceAmounts); + + const advanceAmount0 = await contract.advances(advanceAddresses[0]); + assert.equal(advanceAmount0, advanceAmounts[0]); + const advanceAmount1 = await contract.advances(advanceAddresses[1]); + assert.equal(advanceAmount0, advanceAmounts[1]); + } catch (error) { + console.log(error); + assert.fail(); + } + }); + + it("test set advance setting failed because address in use", async function () { + const contract = this.contracts[8]; + const advanceAddresses = [accounts[3], accounts[4]]; + const advanceAmounts = [ + web3.utils.toWei("0.3", "ether"), + web3.utils.toWei("0.8", "ether"), + ]; + + // 1. Set advance setting + await contract.setAdvanceSetting(advanceAddresses, advanceAmounts); + + const advanceAmount0 = await contract.advances(advanceAddresses[0]); + assert.equal(advanceAmount0, advanceAmounts[0]); + const advanceAmount1 = await contract.advances(advanceAddresses[1]); + assert.equal(advanceAmount1, advanceAmounts[1]); + + const updatedAddresses = [advanceAddresses[0], accounts[5]]; + const updatedAmounts = [ + web3.utils.toWei("0.5", "ether"), + web3.utils.toWei("1", "ether"), + ]; + + // 2. Update advance setting + try { + await contract.setAdvanceSetting(updatedAddresses, updatedAmounts); + } catch (error) { + console.log(error); + assert.equal(error.reason, "Custom error (could not decode)"); + } + }); + + it("test replace advance addresses successfully", async function () { + const contract = this.contracts[9]; + const advanceAddresses = [accounts[3], accounts[4]]; + const advanceAmounts = [ + web3.utils.toWei("0.3", "ether"), + web3.utils.toWei("0.8", "ether"), + ]; + + // 1. Set advance setting + await contract.setAdvanceSetting(advanceAddresses, advanceAmounts); + + const advanceAmount0 = await contract.advances(advanceAddresses[0]); + assert.equal(advanceAmount0, advanceAmounts[0]); + const advanceAmount1 = await contract.advances(advanceAddresses[1]); + assert.equal(advanceAmount1, advanceAmounts[1]); + + const oldAddresses = [advanceAddresses[0]]; + const newAddresses = [accounts[7]]; + + // 2. Replace advance addresses + await contract.replaceAdvanceAddresses(oldAddresses, newAddresses); + + const newAdvanceAmount0 = await contract.advances(newAddresses[0]); + assert.equal(newAdvanceAmount0, advanceAmounts[0]); + }); + + it("test advance amount", async function () { + const costReceiver = accounts[6]; + const seriesIds = [0, 1, 2]; + const seriesMaxSupply = [100, 100, 100]; + const advanceAddresses = [accounts[3], accounts[4]]; + const advanceAmounts = [ + web3.utils.toWei("0.3", "ether"), + web3.utils.toWei("0.8", "ether"), + ]; + const contract = await FeralfileExhibitionV4_2.new( + "Feral File V4 Test", + "FFv4", + true, + true, + this.signer, + this.vault.address, + costReceiver, + CONTRACT_URI, + seriesIds, + seriesMaxSupply + ); + + // 0. set advance setting + await contract.setAdvanceSetting(advanceAddresses, advanceAmounts); + + // 1. mint artworks + const tokenID1 = seriesIds[0] * 1000000 + 0; + const tokenID2 = seriesIds[0] * 1000000 + 1; + const tokenID3 = seriesIds[1] * 1000000 + 0; + const tokenID4 = seriesIds[1] * 1000000 + 1; + const data = [ + [seriesIds[0], tokenID1, contract.address], + [seriesIds[0], tokenID2, contract.address], + [seriesIds[1], tokenID3, contract.address], + [seriesIds[1], tokenID4, contract.address], + ]; + await contract.mintArtworks(data); + + // 2. buy artworks + const expiryTime = (new Date().getTime() / 1000 + 300).toFixed(0); + const signParams = web3.eth.abi.encodeParameters( + [ + "uint", + "address", + "tuple(uint256,uint256,uint256,address,uint256[],tuple(address,uint256)[][],bool)", + ], + [ + BigInt(await web3.eth.getChainId()).toString(), + contract.address, + [ + web3.utils.toWei("1", "ether"), + "0", + expiryTime, + accounts[2], + [tokenID1, tokenID2, tokenID3, tokenID4], + [ + [ + [accounts[3], 7000], + [costReceiver, 2000], + [accounts[5], 1000], // Curator + ], + [ + [accounts[3], 7000], + [costReceiver, 2000], + [accounts[5], 1000], + ], + [ + [accounts[4], 7000], + [costReceiver, 2000], + [accounts[5], 1000], + ], + [ + [accounts[4], 7000], + [costReceiver, 2000], + [accounts[5], 1000], + ], + ], + false, + ], + ] + ); + const hash = web3.utils.keccak256(signParams); + var sig = await web3.eth.sign(hash, this.signer); + sig = sig.substr(2); + const r = "0x" + sig.slice(0, 64); + const s = "0x" + sig.slice(64, 128); + const v = "0x" + sig.slice(128, 130); + + try { + const acc3BalanceBefore = await web3.eth.getBalance(accounts[3]); + const acc4BalanceBefore = await web3.eth.getBalance(accounts[4]); + const acc5BalanceBefore = await web3.eth.getBalance(accounts[5]); + const accCostReceiverBalanceBefore = await web3.eth.getBalance( + costReceiver + ); + + await contract.startSale(); + await contract.buyArtworks( + r, + s, + web3.utils.toDecimal(v) + 27, // magic 27 + [ + web3.utils.toWei("1", "ether"), + "0", + expiryTime, + accounts[2], + [tokenID1, tokenID2, tokenID3, tokenID4], + [ + [ + [accounts[3], 7000], + [costReceiver, 2000], + [accounts[5], 1000], // Curator + ], + [ + [accounts[3], 7000], + [costReceiver, 2000], + [accounts[5], 1000], + ], + [ + [accounts[4], 7000], + [costReceiver, 2000], + [accounts[5], 1000], + ], + [ + [accounts[4], 7000], + [costReceiver, 2000], + [accounts[5], 1000], + ], + ], + false, + ], + { from: accounts[2], value: 1 * 1e18 } + ); + const ownerOfToken1 = await contract.ownerOf(tokenID1); + const ownerOfToken2 = await contract.ownerOf(tokenID2); + const ownerOfToken3 = await contract.ownerOf(tokenID3); + const ownerOfToken4 = await contract.ownerOf(tokenID4); + assert.equal(ownerOfToken1, accounts[2]); + assert.equal(ownerOfToken2, accounts[2]); + assert.equal(ownerOfToken3, accounts[2]); + assert.equal(ownerOfToken4, accounts[2]); + + const acc3BalanceAfter = await web3.eth.getBalance(accounts[3]); + const acc4BalanceAfter = await web3.eth.getBalance(accounts[4]); + const acc5BalanceAfter = await web3.eth.getBalance(accounts[5]); + const accCostReceiverBalanceAfter = await web3.eth.getBalance( + costReceiver + ); + + // Revenue per item is 1 / 4 = 0.25 + // Revenues is 0.25 * 2 then deduct advance amount 0.3 => received 0.2 * 70% = 0.14 + assert.equal( + ( + BigInt(acc3BalanceAfter) - BigInt(acc3BalanceBefore) + ).toString(), + web3.utils.toWei("0.14", "ether") + ); + // Revenue is 0.25 * 2 then deduct advance amount 0.8 => received 0 + assert.equal( + ( + BigInt(acc4BalanceAfter) - BigInt(acc4BalanceBefore) + ).toString(), + "0" + ); + // revenue is 10% of price 0.2 * 10% = 0.02 + assert.equal( + ( + BigInt(acc5BalanceAfter) - BigInt(acc5BalanceBefore) + ).toString(), + web3.utils.toWei("0.02", "ether") + ); + // revenue is 20% of price 0.2 = 0.04 and 0.8 advance amount + assert.equal( + ( + BigInt(accCostReceiverBalanceAfter) - + BigInt(accCostReceiverBalanceBefore) + ).toString(), + web3.utils.toWei("0.84", "ether") + ); + } catch (err) { + console.log(err); + assert.fail(); + } + }); + + it("test update artwork metadata", async function () { + const contract = this.contracts[10]; + + // 1. Prepare data + const owner = accounts[1]; + const tokenId1 = this.seriesIds[0] * 1000000 + 0; + let mintData = [ + [this.seriesIds[0], tokenId1, owner], + ]; + await contract.mintArtworks(mintData); + + // 2. Update artwork parameters + const parameters = "ramdomestringparameters"; + await contract.updateArtworkParameters(tokenId1, parameters) + + const tokenParams = await contract.ownerOf(tokenID1); + assert.equal(tokenParams, parameters); + }); +}); From fc2331f8266ad6d8d6625c54a27f90e333cfd942 Mon Sep 17 00:00:00 2001 From: hvthhien Date: Thu, 23 May 2024 09:51:13 +0700 Subject: [PATCH 05/17] update abi gen --- Makefile | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index b2e9177..76e03e3 100644 --- a/Makefile +++ b/Makefile @@ -21,16 +21,18 @@ merge: sol-merger-check mkdir /tmp/sol-merger && mkdir ./contracts/sol-merger && \ sol-merger --export-plugin SPDXLicenseRemovePlugin ./contracts/FeralfileArtworkV2.sol /tmp/sol-merger && \ sol-merger --export-plugin SPDXLicenseRemovePlugin ./contracts/FeralfileArtworkV3.sol /tmp/sol-merger && \ - sol-merger --export-plugin SPDXLicenseRemovePlugin ./contracts/FeralfileArtworkV4_1.sol /tmp/sol-merger && \ + sol-merger --export-plugin SPDXLicenseRemovePlugin ./contracts/FeralfileArtworkV4_2.sol /tmp/sol-merger && \ sol-merger --export-plugin SPDXLicenseRemovePlugin ./contracts/FeralfileEnglishAuction.sol /tmp/sol-merger && \ sol-merger --export-plugin SPDXLicenseRemovePlugin ./contracts/FeralFileAirdropV1.sol /tmp/sol-merger && \ sol-merger --export-plugin SPDXLicenseRemovePlugin ./contracts/OwnerData.sol /tmp/sol-merger && \ + sol-merger --export-plugin SPDXLicenseRemovePlugin ./contracts/FeralfileToken.sol /tmp/sol-merger && \ mv /tmp/sol-merger/FeralfileArtworkV2.sol ./contracts/sol-merger/FeralfileExhibitionV2.sol && \ mv /tmp/sol-merger/FeralfileArtworkV3.sol ./contracts/sol-merger/FeralfileExhibitionV3.sol && \ - mv /tmp/sol-merger/FeralfileArtworkV4_1.sol ./contracts/sol-merger/FeralfileExhibitionV4.sol && \ + mv /tmp/sol-merger/FeralfileArtworkV4_2.sol ./contracts/sol-merger/FeralfileExhibitionV4.sol && \ mv /tmp/sol-merger/FeralfileEnglishAuction.sol ./contracts/sol-merger/FeralfileEnglishAuction.sol && \ mv /tmp/sol-merger/FeralFileAirdropV1.sol ./contracts/sol-merger/FeralFileAirdropV1.sol && \ - mv /tmp/sol-merger/OwnerData.sol ./contracts/sol-merger/OwnerData.sol + mv /tmp/sol-merger/OwnerData.sol ./contracts/sol-merger/OwnerData.sol && \ + mv /tmp/sol-merger/FeralfileToken.sol ./contracts/sol-merger/FeralfileToken.sol build-contract: check npm install && \ @@ -39,14 +41,16 @@ build-contract: check jq -r ".abi" build/contracts/FeralfileExhibitionV2.json > ./build/FeralfileExhibitionV2.abi && \ jq -r ".bytecode" build/contracts/FeralfileExhibitionV3.json > ./build/FeralfileExhibitionV3.bin && \ jq -r ".abi" build/contracts/FeralfileExhibitionV3.json > ./build/FeralfileExhibitionV3.abi && \ - jq -r ".bytecode" build/contracts/FeralfileExhibitionV4_1.json > ./build/FeralfileExhibitionV4.bin && \ - jq -r ".abi" build/contracts/FeralfileExhibitionV4_1.json > ./build/FeralfileExhibitionV4.abi && \ + jq -r ".bytecode" build/contracts/FeralfileExhibitionV4_2.json > ./build/FeralfileExhibitionV4.bin && \ + jq -r ".abi" build/contracts/FeralfileExhibitionV4_2.json > ./build/FeralfileExhibitionV4.abi && \ jq -r ".bytecode" build/contracts/FeralfileEnglishAuction.json > ./build/FeralfileEnglishAuction.bin && \ jq -r ".abi" build/contracts/FeralfileEnglishAuction.json > ./build/FeralfileEnglishAuction.abi && \ jq -r ".bytecode" build/contracts/FeralFileAirdropV1.json > ./build/FeralFileAirdropV1.bin && \ jq -r ".abi" build/contracts/FeralFileAirdropV1.json > ./build/FeralFileAirdropV1.abi && \ jq -r ".bytecode" build/contracts/OwnerData.json > ./build/OwnerData.bin && \ - jq -r ".abi" build/contracts/OwnerData.json > ./build/OwnerData.abi + jq -r ".abi" build/contracts/OwnerData.json > ./build/OwnerData.abi && \ + jq -r ".bytecode" build/contracts/FeralfileToken.json > ./build/FeralfileToken.bin && \ + jq -r ".abi" build/contracts/FeralfileToken.json > ./build/FeralfileToken.abi build: build-contract mkdir -p ./go-binding/feralfile-exhibition-v2 && \ @@ -55,9 +59,11 @@ build: build-contract mkdir -p ./go-binding/feralfile-english-auction && \ mkdir -p ./go-binding/feralfile-airdrop-v1 && \ mkdir -p ./go-binding/owner-data && \ + mkdir -p ./go-binding/feralfile-token && \ abigen --abi ./build/FeralfileExhibitionV2.abi --bin ./build/FeralfileExhibitionV2.bin --pkg feralfilev2 -type FeralfileExhibitionV2 --out ./go-binding/feralfile-exhibition-v2/abi.go abigen --abi ./build/FeralfileExhibitionV3.abi --bin ./build/FeralfileExhibitionV3.bin --pkg feralfilev3 -type FeralfileExhibitionV3 --out ./go-binding/feralfile-exhibition-v3/abi.go abigen --abi ./build/FeralfileExhibitionV4.abi --bin ./build/FeralfileExhibitionV4.bin --pkg feralfilev4 -type FeralfileExhibitionV4 --out ./go-binding/feralfile-exhibition-v4/abi.go abigen --abi ./build/FeralfileEnglishAuction.abi --bin ./build/FeralfileEnglishAuction.bin --pkg english_auction -type FeralfileEnglishAuction --out ./go-binding/feralfile-english-auction/abi.go abigen --abi ./build/FeralFileAirdropV1.abi --bin ./build/FeralFileAirdropV1.bin --pkg airdropv1 -type FeralFileAirdropV1 --out ./go-binding/feralfile-airdrop-v1/abi.go && \ - abigen --abi ./build/OwnerData.abi --bin ./build/OwnerData.bin --pkg ownerdata -type OwnerData --out ./go-binding/owner-data/abi.go + abigen --abi ./build/OwnerData.abi --bin ./build/OwnerData.bin --pkg ownerdata -type OwnerData --out ./go-binding/owner-data/abi.go && \ + abigen --abi ./build/FeralfileToken.abi --bin ./build/FeralfileToken.bin --pkg feralfiletoken -type FeralfileToken --out ./go-binding/feralfile-token/abi.go From 3bb7a532b38adb51c60562f89ce2641e7713c229 Mon Sep 17 00:00:00 2001 From: hvthhien Date: Thu, 23 May 2024 03:01:32 +0000 Subject: [PATCH 06/17] Generate ABIs for PR #41 --- go-binding/feralfile-exhibition-v4/abi.go | 87 +- go-binding/feralfile-token/abi.go | 1143 +++++++++++++++++++++ 2 files changed, 1228 insertions(+), 2 deletions(-) create mode 100644 go-binding/feralfile-token/abi.go diff --git a/go-binding/feralfile-exhibition-v4/abi.go b/go-binding/feralfile-exhibition-v4/abi.go index 646ca1c..592e3ca 100644 --- a/go-binding/feralfile-exhibition-v4/abi.go +++ b/go-binding/feralfile-exhibition-v4/abi.go @@ -61,8 +61,8 @@ type IFeralfileSaleDataSaleData struct { // FeralfileExhibitionV4MetaData contains all meta data concerning the FeralfileExhibitionV4 contract. var FeralfileExhibitionV4MetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol_\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"burnable_\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"bridgeable_\",\"type\":\"bool\"},{\"internalType\":\"address\",\"name\":\"signer_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"vault_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"costReceiver_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"contractURI_\",\"type\":\"string\"},{\"internalType\":\"uint256[]\",\"name\":\"seriesIds_\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"seriesMaxSupplies_\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AdvanceAddressAlreadyUsed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAdvanceAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAdvanceAddressesAndAmounts\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAdvanceAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"OperatorNotAllowed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"BurnArtwork\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"BuyArtwork\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"NewArtwork\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"OperatorFilterRegistry\",\"outputs\":[{\"internalType\":\"contractIOperatorFilterRegistry\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_trustee\",\"type\":\"address\"}],\"name\":\"addTrustee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"advances\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"bridgeable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"}],\"name\":\"burnArtworks\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"burnable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"codeVersion\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"contractURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"costReceiver\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getArtwork\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"internalType\":\"structFeralfileExhibitionV4.Artwork\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"internalType\":\"structFeralfileExhibitionV4.MintData[]\",\"name\":\"data\",\"type\":\"tuple[]\"}],\"name\":\"mintArtworks\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"mintable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pauseSale\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_trustee\",\"type\":\"address\"}],\"name\":\"removeTrustee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"resumeSale\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"selling\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"}],\"name\":\"seriesMaxSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"}],\"name\":\"seriesTotalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"costReceiver_\",\"type\":\"address\"}],\"name\":\"setCostReceiver\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signer_\",\"type\":\"address\"}],\"name\":\"setSigner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"baseURI_\",\"type\":\"string\"}],\"name\":\"setTokenBaseURI\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"vault_\",\"type\":\"address\"}],\"name\":\"setVault\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"signer\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"startSale\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stopSaleAndBurn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"seriesIds\",\"type\":\"uint256[]\"},{\"internalType\":\"address[]\",\"name\":\"recipientAddresses\",\"type\":\"address[]\"}],\"name\":\"stopSaleAndTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenBaseURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenOfOwnerByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"tokensOfOwner\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"trustees\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operatorFilterRegisterAddress\",\"type\":\"address\"}],\"name\":\"updateOperatorFilterRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vault\",\"outputs\":[{\"internalType\":\"contractIFeralfileVault\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"addresses_\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts_\",\"type\":\"uint256[]\"}],\"name\":\"setAdvanceSetting\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"oldAddresses_\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"newAddresses_\",\"type\":\"address[]\"}],\"name\":\"replaceAdvanceAddresses\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"r_\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s_\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"v_\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"cost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiryTime\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"destination\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"bps\",\"type\":\"uint256\"}],\"internalType\":\"structIFeralfileSaleData.RevenueShare[][]\",\"name\":\"revenueShares\",\"type\":\"tuple[][]\"},{\"internalType\":\"bool\",\"name\":\"payByVaultContract\",\"type\":\"bool\"}],\"internalType\":\"structIFeralfileSaleData.SaleData\",\"name\":\"saleData_\",\"type\":\"tuple\"}],\"name\":\"buyArtworks\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}]", - Bin: "0x6080604052600880546001600160a01b0319166daaeb6d7670e522a718067333cd4e179055600d805463ff000000191663010000001790553480156200004457600080fd5b506040516200550938038062005509833981016040819052620000679162000971565b89898989898989898989858a8a600062000082838262000b40565b50600162000091828262000b40565b505050620000ae620000a86200078f60201b60201c565b62000793565b6008546001600160a01b03163b156200013b57600854604051633e9f1edf60e11b8152306004820152733cc6cdda760b79bafa08df41ecfa224f810dceb660248201526001600160a01b0390911690637d3e3dbe90604401600060405180830381600087803b1580156200012157600080fd5b505af115801562000136573d6000803e3d6000fd5b505050505b6001600160a01b038116620001a25760405162461bcd60e51b815260206004820152602260248201527f45434453415369676e3a207369676e65725f206973207a65726f206164647265604482015261737360f01b60648201526084015b60405180910390fd5b600980546001600160a01b0319166001600160a01b03929092169190911790558951620002205760405162461bcd60e51b815260206004820152602560248201527f466572616c66696c6545786869626974696f6e56343a206e616d655f20697320604482015264656d70747960d81b606482015260840162000199565b6000895111620002835760405162461bcd60e51b815260206004820152602760248201527f466572616c66696c6545786869626974696f6e56343a2073796d626f6c5f20696044820152667320656d70747960c81b606482015260840162000199565b6001600160a01b038516620003015760405162461bcd60e51b815260206004820152603460248201527f466572616c66696c6545786869626974696f6e56343a207661756c744164647260448201527f6573735f206973207a65726f2061646472657373000000000000000000000000606482015260840162000199565b6001600160a01b0384166200037f5760405162461bcd60e51b815260206004820152603460248201527f466572616c66696c6545786869626974696f6e56343a20636f7374526563656960448201527f7665725f206973207a65726f2061646472657373000000000000000000000000606482015260840162000199565b6000835111620003e75760405162461bcd60e51b815260206004820152602c60248201527f466572616c66696c6545786869626974696f6e56343a20636f6e74726163745560448201526b52495f20697320656d70747960a01b606482015260840162000199565b60008251116200044d5760405162461bcd60e51b815260206004820152602a60248201527f466572616c66696c6545786869626974696f6e56343a207365726965734964736044820152695f20697320656d70747960b01b606482015260840162000199565b6000815111620004bb5760405162461bcd60e51b815260206004820152603260248201527f466572616c66696c6545786869626974696f6e56343a205f7365726965734d6160448201527178537570706c69657320697320656d70747960701b606482015260840162000199565b80518251146200054e5760405162461bcd60e51b815260206004820152605160248201527f466572616c66696c6545786869626974696f6e56343a207365726965734d617860448201527f537570706c6965735f20616e64207365726965734964735f206c656e6774687360648201527020617265206e6f74207468652073616d6560781b608482015260a40162000199565b600d805461ffff191689151561ff001916176101008915150217600160201b600160c01b0319166401000000006001600160a01b038781169190910291909117909155600e80546001600160a01b031916918716919091179055600b620005b6848262000b40565b5060005b825181101562000774576000620005d382600162000c22565b90505b83518110156200069057838181518110620005f557620005f562000c3e565b602002602001015184838151811062000612576200061262000c3e565b6020026020010151036200067b5760405162461bcd60e51b815260206004820152602960248201527f466572616c66696c6545786869626974696f6e56343a206475706c6963617465604482015268081cd95c9a595cd25960ba1b606482015260840162000199565b80620006878162000c54565b915050620005d6565b506000828281518110620006a857620006a862000c3e565b6020026020010151116200070e5760405162461bcd60e51b815260206004820152602660248201527f466572616c66696c6545786869626974696f6e56343a207a65726f206d617820604482015265737570706c7960d01b606482015260840162000199565b81818151811062000723576200072362000c3e565b6020026020010151600f600085848151811062000744576200074462000c3e565b602002602001015181526020019081526020016000208190555080806200076b9062000c54565b915050620005ba565b50505050505050505050505050505050505050505062000c70565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620008265762000826620007e5565b604052919050565b600082601f8301126200084057600080fd5b81516001600160401b038111156200085c576200085c620007e5565b602062000872601f8301601f19168201620007fb565b82815285828487010111156200088757600080fd5b60005b83811015620008a75785810183015182820184015282016200088a565b506000928101909101919091529392505050565b80518015158114620008cc57600080fd5b919050565b80516001600160a01b0381168114620008cc57600080fd5b600082601f830112620008fb57600080fd5b815160206001600160401b03821115620009195762000919620007e5565b8160051b6200092a828201620007fb565b92835284810182019282810190878511156200094557600080fd5b83870192505b8483101562000966578251825291830191908301906200094b565b979650505050505050565b6000806000806000806000806000806101408b8d0312156200099257600080fd5b8a516001600160401b0380821115620009aa57600080fd5b620009b88e838f016200082e565b9b5060208d0151915080821115620009cf57600080fd5b620009dd8e838f016200082e565b9a50620009ed60408e01620008bb565b9950620009fd60608e01620008bb565b985062000a0d60808e01620008d1565b975062000a1d60a08e01620008d1565b965062000a2d60c08e01620008d1565b955060e08d015191508082111562000a4457600080fd5b62000a528e838f016200082e565b94506101008d015191508082111562000a6a57600080fd5b62000a788e838f01620008e9565b93506101208d015191508082111562000a9057600080fd5b5062000a9f8d828e01620008e9565b9150509295989b9194979a5092959850565b600181811c9082168062000ac657607f821691505b60208210810362000ae757634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000b3b57600081815260208120601f850160051c8101602086101562000b165750805b601f850160051c820191505b8181101562000b375782815560010162000b22565b5050505b505050565b81516001600160401b0381111562000b5c5762000b5c620007e5565b62000b748162000b6d845462000ab1565b8462000aed565b602080601f83116001811462000bac576000841562000b935750858301515b600019600386901b1c1916600185901b17855562000b37565b600085815260208120601f198616915b8281101562000bdd5788860151825594840194600190910190840162000bbc565b508582101562000bfc5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082018082111562000c385762000c3862000c0c565b92915050565b634e487b7160e01b600052603260045260246000fd5b60006001820162000c695762000c6962000c0c565b5060010190565b6148898062000c806000396000f3fe6080604052600436106103035760003560e01c80636817031b11610190578063b66a0e5d116100dc578063e985e9c511610095578063f07e7fd01161006f578063f07e7fd0146109ff578063f2fde38b14610a1f578063f4e638be14610a3f578063fbfa77cf14610a6757600080fd5b8063e985e9c514610959578063eb5c60f2146109a2578063eee608a4146109cf57600080fd5b8063b66a0e5d146108ba578063b88d4fde146108cf578063b9b8311a146108ef578063c87b56dd14610904578063dc78ac1c14610924578063e8a3d4851461094457600080fd5b80638cba1c6711610149578063926ce44e11610123578063926ce44e1461083e57806395d89b411461086b578063a07c7ce414610880578063a22cb4651461089a57600080fd5b80638cba1c67146107e05780638da5cb5b146108005780638ef79e911461081e57600080fd5b80636817031b146107115780636c19e7831461073157806370a0823114610751578063715018a6146107715780637f06ee06146107865780638462151c146107b357600080fd5b80632977e4b31161024f5780634bf365df1161020857806355367ba9116101e257806355367ba91461067b5780636352211e1461069057806363e60230146106b057806365a46e08146106f157600080fd5b80634bf365df146106265780634e99b80014610647578063530da8ef1461065c57600080fd5b80632977e4b31461057e5780632f745c591461059157806333e364cb146105b15780633c352b0d146105c657806341a5626a146105e657806342842e0e1461060657600080fd5b80631623528f116102bc57806321fe0c641161029657806321fe0c6414610502578063238ac9331461052257806323aed2281461054057806323b872dd1461055e57600080fd5b80631623528f14610483578063167ddf6e146104a357806318160ddd146104de57600080fd5b806301ffc9a71461039457806303120506146103c957806306fdde03146103e9578063081812fc1461040b578063095ea7b314610443578063114ba8ee1461046357600080fd5b3661038f57600e546001600160a01b0316331461038d5760405162461bcd60e51b815260206004820152603c60248201527f466572616c66696c6545786869626974696f6e56343a206f6e6c79206163636560448201527f70742066756e642066726f6d207661756c7420636f6e74726163742e0000000060648201526084015b60405180910390fd5b005b600080fd5b3480156103a057600080fd5b506103b46103af366004613921565b610a87565b60405190151581526020015b60405180910390f35b3480156103d557600080fd5b5061038d6103e4366004613961565b610ad9565b3480156103f557600080fd5b506103fe610b02565b6040516103c091906139cc565b34801561041757600080fd5b5061042b6104263660046139df565b610b94565b6040516001600160a01b0390911681526020016103c0565b34801561044f57600080fd5b5061038d61045e3660046139f8565b610bbb565b34801561046f57600080fd5b5061038d61047e366004613961565b610bd4565b34801561048f57600080fd5b5061038d61049e366004613961565b610bfe565b3480156104af57600080fd5b506104c36104be3660046139df565b610ca7565b604080518251815260209283015192810192909252016103c0565b3480156104ea57600080fd5b506104f4600c5481565b6040519081526020016103c0565b34801561050e57600080fd5b5061038d61051d366004613af6565b610d0a565b34801561052e57600080fd5b506009546001600160a01b031661042b565b34801561054c57600080fd5b50600d5462010000900460ff166103b4565b34801561056a57600080fd5b5061038d610579366004613b2a565b610df4565b61038d61058c366004613b66565b610e47565b34801561059d57600080fd5b506104f46105ac3660046139f8565b611484565b3480156105bd57600080fd5b5061038d61152e565b3480156105d257600080fd5b5061038d6105e1366004613c1e565b6115f1565b3480156105f257600080fd5b5061038d610601366004613c1e565b611791565b34801561061257600080fd5b5061038d610621366004613b2a565b611975565b34801561063257600080fd5b50600d546103b4906301000000900460ff1681565b34801561065357600080fd5b506103fe6119c2565b34801561066857600080fd5b50600d546103b490610100900460ff1681565b34801561068757600080fd5b5061038d611a50565b34801561069c57600080fd5b5061042b6106ab3660046139df565b611b04565b3480156106bc57600080fd5b506103fe6040518060400160405280601581526020017411995c985b199a5b19515e1a1a589a5d1a5bdb958d605a1b81525081565b3480156106fd57600080fd5b5061038d61070c366004613c89565b611b39565b34801561071d57600080fd5b5061038d61072c366004613961565b611e37565b34801561073d57600080fd5b5061038d61074c366004613961565b611ecd565b34801561075d57600080fd5b506104f461076c366004613961565b611f58565b34801561077d57600080fd5b5061038d611fde565b34801561079257600080fd5b506104f46107a13660046139df565b60009081526010602052604090205490565b3480156107bf57600080fd5b506107d36107ce366004613961565b611ff2565b6040516103c09190613d4a565b3480156107ec57600080fd5b5061038d6107fb366004613d8e565b61205e565b34801561080c57600080fd5b506006546001600160a01b031661042b565b34801561082a57600080fd5b5061038d610839366004613e59565b61218d565b34801561084a57600080fd5b506104f4610859366004613961565b60146020526000908152604090205481565b34801561087757600080fd5b506103fe6121fc565b34801561088c57600080fd5b50600d546103b49060ff1681565b3480156108a657600080fd5b5061038d6108b5366004613eba565b61220b565b3480156108c657600080fd5b5061038d61221f565b3480156108db57600080fd5b5061038d6108ea366004613ef1565b61223c565b3480156108fb57600080fd5b5061038d61228a565b34801561091057600080fd5b506103fe61091f3660046139df565b61232b565b34801561093057600080fd5b5061038d61093f366004613961565b612439565b34801561095057600080fd5b506103fe612465565b34801561096557600080fd5b506103b4610974366004613f6c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109ae57600080fd5b506104f46109bd3660046139df565b6000908152600f602052604090205490565b3480156109db57600080fd5b506103b46109ea366004613961565b60076020526000908152604090205460ff1681565b348015610a0b57600080fd5b5060085461042b906001600160a01b031681565b348015610a2b57600080fd5b5061038d610a3a366004613961565b612472565b348015610a4b57600080fd5b50600d5461042b9064010000000090046001600160a01b031681565b348015610a7357600080fd5b50600e5461042b906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b1480610ab857506001600160e01b03198216635b5e139f60e01b145b80610ad357506301ffc9a760e01b6001600160e01b03198316145b92915050565b610ae16124eb565b6001600160a01b03166000908152600760205260409020805460ff19169055565b606060008054610b1190613f9f565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3d90613f9f565b8015610b8a5780601f10610b5f57610100808354040283529160200191610b8a565b820191906000526020600020905b815481529060010190602001808311610b6d57829003601f168201915b5050505050905090565b6000610b9f82612545565b506000908152600460205260409020546001600160a01b031690565b81610bc58161256a565b610bcf838361263c565b505050565b610bdc6124eb565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b610c066124eb565b6001600160a01b038116610c795760405162461bcd60e51b815260206004820152603460248201527f466572616c66696c6545786869626974696f6e56343a20636f737452656365696044820152737665725f206973207a65726f206164647265737360601b6064820152608401610384565b600d80546001600160a01b0390921664010000000002640100000000600160c01b0319909216919091179055565b6040805180820190915260008082526020820152610cc48261274c565b610ce05760405162461bcd60e51b815260040161038490613fd9565b50600090815260116020908152604091829020825180840190935280548352600101549082015290565b600d5460ff16610d715760405162461bcd60e51b815260206004820152602c60248201527f466572616c66696c6545786869626974696f6e56343a20746f6b656e2069732060448201526b6e6f74206275726e61626c6560a01b6064820152608401610384565b60005b8151811015610df057610da033838381518110610d9357610d93614010565b6020026020010151612769565b610dbc5760405162461bcd60e51b815260040161038490614026565b610dde828281518110610dd157610dd1614010565b60200260200101516127e8565b80610de881614089565b915050610d74565b5050565b826001600160a01b0381163314610e0e57610e0e3361256a565b306001600160a01b03841603610e365760405162461bcd60e51b8152600401610384906140a2565b610e418484846128be565b50505050565b600d5462010000900460ff16610eb25760405162461bcd60e51b815260206004820152602a60248201527f466572616c66696c6545786869626974696f6e56343a2073616c65206973206e6044820152691bdd081cdd185c9d195960b21b6064820152608401610384565b610eba6128ef565b610ec38161296a565b610ed360e0820160c083016140ff565b610f425780353414610f3d5760405162461bcd60e51b815260206004820152602d60248201527f466572616c66696c6545786869626974696f6e56343a20696e76616c6964207060448201526c185e5b595b9d08185b5bdd5b9d609a1b6064820152608401610384565b610fab565b600e54604051632eeee16360e01b81526001600160a01b0390911690632eeee16390610f78908790879087908790600401614304565b600060405180830381600087803b158015610f9257600080fd5b505af1158015610fa6573d6000803e3d6000fd5b505050505b6000463083604051602001610fc293929190614336565b604051602081830303815290604052805190602001209050610fe681868686612ac3565b61100357604051638baa579f60e01b815260040160405180910390fd5b600060208301358335111561103d5761101f6080840184614369565b9050611030602085013585356143b2565b61103a91906143c5565b90505b60008060005b6110506080870187614369565b90508110156113a4576110a63061106d6080890160608a01613961565b61107a60808a018a614369565b8581811061108a5761108a614010565b9050602002013560405180602001604052806000815250612b1b565b60006110b560a0880188614369565b838181106110c5576110c5614010565b90506020028101906110d791906143e7565b808060200260200160405190810160405280939291908181526020016000905b828210156111235761111460408302860136819003810190614430565b815260200190600101906110f7565b50505050509050600085905060005b8251811080156111425750600082115b156112275760006014600085848151811061115f5761115f614010565b6020026020010151600001516001600160a01b03166001600160a01b0316815260200190815260200160002054905060008382101561119e57816111a0565b835b90506111ac8188614486565b965080601460008786815181106111c5576111c5614010565b6020026020010151600001516001600160a01b03166001600160a01b03168152602001908152602001600020600082825461120091906143b2565b90915550611210905081856143b2565b93505050808061121f90614089565b915050611132565b5080156113235760005b825181101561132157600083828151811061124e5761124e614010565b6020026020010151600001519050600061271085848151811061127357611273614010565b6020026020010151602001518561128a9190614499565b61129491906143c5565b600d549091506001600160a01b036401000000009091048116908316036112c8576112bf8188614486565b9650505061130f565b6112d28189614486565b6040519098506001600160a01b0383169082156108fc029083906000818181858888f1935050505015801561130b573d6000803e3d6000fd5b5050505b8061131981614089565b915050611231565b505b6113306080890189614369565b8481811061134057611340614010565b9050602002013588606001602081019061135a9190613961565b6001600160a01b03167f0475389cd69b8d3163620b43283bf74e8fc71020c3c6cef2a529b5c405e9687f60405160405180910390a35050808061139c90614089565b915050611043565b506113af8183614486565b6113be602087013587356143b2565b10156114215760405162461bcd60e51b815260206004820152602c60248201527f466572616c66696c6545786869626974696f6e56343a20746f74616c2062707360448201526b0206f7665722031302c3030360a41b6064820152608401610384565b600061142e8387356143b2565b9050801561147957600d546040516401000000009091046001600160a01b0316906108fc8315029083906000818181858888f19350505050158015611477573d6000803e3d6000fd5b505b505050505050505050565b600061148f83611f58565b82106114f15760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610384565b6001600160a01b038316600090815260126020526040902080548390811061151b5761151b614010565b9060005260206000200154905092915050565b6115366124eb565b600d546301000000900460ff16156115605760405162461bcd60e51b8152600401610384906144b0565b600d5462010000900460ff16156115d65760405162461bcd60e51b815260206004820152603460248201527f466572616c66696c6545786869626974696f6e56343a205f73656c6c696e6720604482015273726571756972656420746f2062652066616c736560601b6064820152608401610384565b6115de6128ef565b600d805462ff0000191662010000179055565b6115f96124eb565b828114611619576040516313086eff60e21b815260040160405180910390fd5b60005b8381101561178a57600085858381811061163857611638614010565b905060200201602081019061164d9190613961565b6001600160a01b03160361167457604051630107349760e51b815260040160405180910390fd5b82828281811061168657611686614010565b905060200201356000036116ad57604051636745f8fb60e01b815260040160405180910390fd5b6000601460008787858181106116c5576116c5614010565b90506020020160208101906116da9190613961565b6001600160a01b03166001600160a01b0316815260200190815260200160002054111561171a576040516328547bdf60e01b815260040160405180910390fd5b82828281811061172c5761172c614010565b905060200201356014600087878581811061174957611749614010565b905060200201602081019061175e9190613961565b6001600160a01b031681526020810191909152604001600020558061178281614089565b91505061161c565b5050505050565b6117996124eb565b8281146117b9576040516313086eff60e21b815260040160405180910390fd5b60005b8381101561178a5760008383838181106117d8576117d8614010565b90506020020160208101906117ed9190613961565b6001600160a01b03160361181457604051630107349760e51b815260040160405180910390fd5b60006014600085858581811061182c5761182c614010565b90506020020160208101906118419190613961565b6001600160a01b03166001600160a01b03168152602001908152602001600020541115611881576040516328547bdf60e01b815260040160405180910390fd5b6014600086868481811061189757611897614010565b90506020020160208101906118ac9190613961565b6001600160a01b03166001600160a01b0316815260200190815260200160002054601460008585858181106118e3576118e3614010565b90506020020160208101906118f89190613961565b6001600160a01b03166001600160a01b03168152602001908152602001600020819055506014600086868481811061193257611932614010565b90506020020160208101906119479190613961565b6001600160a01b0316815260208101919091526040016000908120558061196d81614089565b9150506117bc565b826001600160a01b038116331461198f5761198f3361256a565b306001600160a01b038416036119b75760405162461bcd60e51b8152600401610384906140a2565b610e41848484612b4e565b600a80546119cf90613f9f565b80601f01602080910402602001604051908101604052809291908181526020018280546119fb90613f9f565b8015611a485780601f10611a1d57610100808354040283529160200191611a48565b820191906000526020600020905b815481529060010190602001808311611a2b57829003601f168201915b505050505081565b611a586124eb565b600d546301000000900460ff1615611a825760405162461bcd60e51b8152600401610384906144b0565b600d5462010000900460ff16611af65760405162461bcd60e51b815260206004820152603360248201527f466572616c66696c6545786869626974696f6e56343a205f73656c6c696e6720604482015272726571756972656420746f206265207472756560681b6064820152608401610384565b600d805462ff000019169055565b6000818152600260205260408120546001600160a01b031680610ad35760405162461bcd60e51b815260040161038490613fd9565b611b416124eb565b60008251118015611b53575060008151115b611bd35760405162461bcd60e51b815260206004820152604560248201527f466572616c66696c6545786869626974696f6e56343a2073657269657349647360448201527f206f7220726563697069656e74416464726573736573206c656e677468206973606482015264207a65726f60d81b608482015260a401610384565b8051825114611c5f5760405162461bcd60e51b815260206004820152604c60248201527f466572616c66696c6545786869626974696f6e56343a2073657269657349647360448201527f206c656e67746820697320646966666572656e742066726f6d2072656369706960648201526b656e7441646472657373657360a01b608482015260a401610384565b611c67611a50565b30600081815260126020908152604080832080548251818502810185019093528083529192909190830182828015611cbe57602002820191906000526020600020905b815481526020019060010190808311611caa575b5050505050905060005b8151811015611dba576000828281518110611ce557611ce5614010565b602090810291909101810151600081815260118352604080822081518083019092528054825260010154938101939093529092505b87518161ffff161015611da457878161ffff1681518110611d3d57611d3d614010565b6020026020010151826000015103611d92576000878261ffff1681518110611d6757611d67614010565b60200260200101519050611d8c87828660405180602001604052806000815250612b1b565b50611da4565b80611d9c81614504565b915050611d1a565b5050508080611db290614089565b915050611cc8565b50611dc482611f58565b15610e415760405162461bcd60e51b815260206004820152603c60248201527f466572616c66696c6545786869626974696f6e56343a20546f6b656e20666f7260448201527f2073616c652062616c616e63652068617320746f206265207a65726f000000006064820152608401610384565b611e3f6124eb565b6001600160a01b038116611eab5760405162461bcd60e51b815260206004820152602d60248201527f466572616c66696c6545786869626974696f6e56343a207661756c745f20697360448201526c207a65726f206164647265737360981b6064820152608401610384565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b611ed56124eb565b6001600160a01b038116611f365760405162461bcd60e51b815260206004820152602260248201527f45434453415369676e3a207369676e65725f206973207a65726f206164647265604482015261737360f01b6064820152608401610384565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216611fc25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610384565b506001600160a01b031660009081526003602052604090205490565b611fe66124eb565b611ff06000612b69565b565b6001600160a01b03811660009081526012602090815260409182902080548351818402810184019094528084526060939283018282801561205257602002820191906000526020600020905b81548152602001906001019080831161203e575b50505050509050919050565b3360009081526007602052604090205460ff168061208657506006546001600160a01b031633145b61208f57600080fd5b600d546301000000900460ff166121065760405162461bcd60e51b815260206004820152603560248201527f466572616c66696c6545786869626974696f6e56343a20636f6e747261637420604482015274191bd95cdb89dd08185b1b1bddc81d1bc81b5a5b9d605a1b6064820152608401610384565b60005b81811015610bcf5761217b83838381811061212657612126614010565b9050606002016000013584848481811061214257612142614010565b9050606002016020013585858581811061215e5761215e614010565b90506060020160400160208101906121769190613961565b612bbb565b8061218581614089565b915050612109565b6121956124eb565b60008151116121f05760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a20626173655552495f20697320656d70746044820152607960f81b6064820152608401610384565b600a610df08282614573565b606060018054610b1190613f9f565b816122158161256a565b610bcf8383612d3d565b6122276124eb565b600d805463ff00000019169055611ff061152e565b836001600160a01b0381163314612256576122563361256a565b306001600160a01b0385160361227e5760405162461bcd60e51b8152600401610384906140a2565b61178a85858585612d48565b6122926124eb565b61229a611a50565b306000908152601260209081526040808320805482518185028101850190935280835291929091908301828280156122f157602002820191906000526020600020905b8154815260200190600101908083116122dd575b5050505050905060005b8151811015610df057612319828281518110610dd157610dd1614010565b8061232381614089565b9150506122fb565b60606000600a805461233c90613f9f565b90501161239a5760405162461bcd60e51b815260206004820152602660248201527f4552433732314d657461646174613a205f746f6b656e4261736555524920697360448201526520656d70747960d01b6064820152608401610384565b6123a38261274c565b6124075760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610384565b600a61241283612d7a565b604051602001612423929190614632565b6040516020818303038152906040529050919050565b6124416124eb565b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b600b80546119cf90613f9f565b61247a6124eb565b6001600160a01b0381166124df5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610384565b6124e881612b69565b50565b6006546001600160a01b03163314611ff05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610384565b61254e8161274c565b6124e85760405162461bcd60e51b815260040161038490613fd9565b6008546001600160a01b03163b156124e857600854604051633185c44d60e21b81523060048201526001600160a01b0383811660248301529091169063c617113490604401602060405180830381865afa1580156125cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125f091906146c6565b6124e85760405162461bcd60e51b815260206004820152601760248201527f6f70657261746f72206973206e6f7420616c6c6f7765640000000000000000006044820152606401610384565b600061264782611b04565b9050806001600160a01b0316836001600160a01b0316036126b45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610384565b336001600160a01b03821614806126d057506126d08133610974565b6127425760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610384565b610bcf8383612e0d565b6000908152600260205260409020546001600160a01b0316151590565b60008061277583611b04565b9050806001600160a01b0316846001600160a01b031614806127bc57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806127e05750836001600160a01b03166127d584610b94565b6001600160a01b0316145b949350505050565b6127f18161274c565b61280d5760405162461bcd60e51b815260040161038490613fd9565b600081815260116020908152604080832081518083018352815480825260019283015482860152855260109093529083208054929391929091906128529084906143b2565b925050819055506001600c600082825461286c91906143b2565b909155505060008281526011602052604081208181556001015561288f82612e7b565b60405182907fbde7938970372996ff103863625e348ef2bf8f38a5b02181be75aafef17c23d590600090a25050565b6128c83382612769565b6128e45760405162461bcd60e51b815260040161038490614026565b610bcf838383612f1e565b60006128fa30611f58565b9050600081116124e85760405162461bcd60e51b815260206004820152603560248201527f466572616c66696c6545786869626974696f6e56343a204e6f20746f6b656e206044820152741bdddb995908189e481d1a194818dbdb9d1c9858dd605a1b6064820152608401610384565b60006129796080830183614369565b9050116129d45760405162461bcd60e51b8152602060048201526024808201527f466572616c66696c6553616c65446174613a20746f6b656e49647320697320656044820152636d70747960e01b6064820152608401610384565b6129e160a0820182614369565b90506129f06080830183614369565b905014612a655760405162461bcd60e51b815260206004820152603d60248201527f466572616c66696c6553616c65446174613a20746f6b656e49647320616e642060448201527f726576656e7565536861726573206c656e677468206d69736d617463680000006064820152608401610384565b428160400135116124e85760405162461bcd60e51b815260206004820152602260248201527f466572616c66696c6553616c65446174613a2073616c65206973206578706972604482015261195960f21b6064820152608401610384565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c859052603c81208190612b009084878761308f565b6009546001600160a01b039081169116149695505050505050565b612b26848484612f1e565b612b32848484846130b7565b610e415760405162461bcd60e51b8152600401610384906146e3565b610bcf8383836040518060200160405280600081525061223c565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000838152600f60205260409020541515612bd584612d7a565b604051602001612be59190614735565b60405160208183030381529060405290612c125760405162461bcd60e51b815260040161038491906139cc565b506000838152600f602090815260408083205460109092529091205410612c8d5760405162461bcd60e51b815260206004820152602960248201527f466572616c66696c6545786869626974696f6e56343a206e6f20736c6f747320604482015268617661696c61626c6560b81b6064820152608401610384565b6001600c6000828254612ca09190614486565b90915550506000838152601060205260408120805460019290612cc4908490614486565b9091555050604080518082018252848152602080820185815260008681526011909252929020905181559051600190910155612d0081836131b5565b8183826001600160a01b03167f407d7da1d3b2b1871fbfa2b5b1c4657a3cc5711d3023c552798551c7ee301eea60405160405180910390a4505050565b610df0338383613330565b612d523383612769565b612d6e5760405162461bcd60e51b815260040161038490614026565b610e4184848484612b1b565b60606000612d87836133fe565b60010190506000816001600160401b03811115612da657612da6613a22565b6040519080825280601f01601f191660200182016040528015612dd0576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612dda575b509392505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612e4282611b04565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612e8682611b04565b9050612e968160008460016134d6565b612e9f82611b04565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b826001600160a01b0316612f3182611b04565b6001600160a01b031614612f575760405162461bcd60e51b815260040161038490614792565b6001600160a01b038216612fb95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610384565b612fc683838360016134d6565b826001600160a01b0316612fd982611b04565b6001600160a01b031614612fff5760405162461bcd60e51b815260040161038490614792565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008060006130a0878787876135ed565b915091506130ad816136b1565b5095945050505050565b60006001600160a01b0384163b156131ad57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906130fb9033908990889088906004016147d7565b6020604051808303816000875af1925050508015613136575060408051601f3d908101601f191682019092526131339181019061480a565b60015b613193573d808015613164576040519150601f19603f3d011682016040523d82523d6000602084013e613169565b606091505b50805160000361318b5760405162461bcd60e51b8152600401610384906146e3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506127e0565b5060016127e0565b6001600160a01b03821661320b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610384565b6132148161274c565b156132615760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610384565b61326f6000838360016134d6565b6132788161274c565b156132c55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610384565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b0316036133915760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610384565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061343d5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310613469576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061348757662386f26fc10000830492506010015b6305f5e100831061349f576305f5e100830492506008015b61271083106134b357612710830492506004015b606483106134c5576064830492506002015b600a8310610ad35760010192915050565b60018111156135455760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b6064820152608401610384565b816001600160a01b038516158015906135705750836001600160a01b0316856001600160a01b031614155b1561357f5761357f85826137fb565b6001600160a01b038416158015906135a95750846001600160a01b0316846001600160a01b031614155b1561178a576001600160a01b03841660009081526012602090815260408083208054600181018255908452828420810185905584845260139092529091205561178a565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561362457506000905060036136a8565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613678573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166136a1576000600192509250506136a8565b9150600090505b94509492505050565b60008160048111156136c5576136c5614827565b036136cd5750565b60018160048111156136e1576136e1614827565b0361372e5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610384565b600281600481111561374257613742614827565b0361378f5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610384565b60038160048111156137a3576137a3614827565b036124e85760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610384565b6000600161380884611f58565b61381291906143b2565b6000838152601360205260409020549091508082146138b9576001600160a01b038416600090815260126020526040812080548490811061385557613855614010565b906000526020600020015490508060126000876001600160a01b03166001600160a01b03168152602001908152602001600020838154811061389957613899614010565b600091825260208083209091019290925591825260139052604090208190555b60008381526013602090815260408083208390556001600160a01b0387168352601290915290208054806138ef576138ef61483d565b6001900381819060005260206000200160009055905550505050565b6001600160e01b0319811681146124e857600080fd5b60006020828403121561393357600080fd5b813561393e8161390b565b9392505050565b80356001600160a01b038116811461395c57600080fd5b919050565b60006020828403121561397357600080fd5b61393e82613945565b60005b8381101561399757818101518382015260200161397f565b50506000910152565b600081518084526139b881602086016020860161397c565b601f01601f19169290920160200192915050565b60208152600061393e60208301846139a0565b6000602082840312156139f157600080fd5b5035919050565b60008060408385031215613a0b57600080fd5b613a1483613945565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613a6057613a60613a22565b604052919050565b60006001600160401b03821115613a8157613a81613a22565b5060051b60200190565b600082601f830112613a9c57600080fd5b81356020613ab1613aac83613a68565b613a38565b82815260059290921b84018101918181019086841115613ad057600080fd5b8286015b84811015613aeb5780358352918301918301613ad4565b509695505050505050565b600060208284031215613b0857600080fd5b81356001600160401b03811115613b1e57600080fd5b6127e084828501613a8b565b600080600060608486031215613b3f57600080fd5b613b4884613945565b9250613b5660208501613945565b9150604084013590509250925092565b60008060008060808587031215613b7c57600080fd5b8435935060208501359250604085013560ff81168114613b9b57600080fd5b915060608501356001600160401b03811115613bb657600080fd5b850160e08188031215613bc857600080fd5b939692955090935050565b60008083601f840112613be557600080fd5b5081356001600160401b03811115613bfc57600080fd5b6020830191508360208260051b8501011115613c1757600080fd5b9250929050565b60008060008060408587031215613c3457600080fd5b84356001600160401b0380821115613c4b57600080fd5b613c5788838901613bd3565b90965094506020870135915080821115613c7057600080fd5b50613c7d87828801613bd3565b95989497509550505050565b60008060408385031215613c9c57600080fd5b82356001600160401b0380821115613cb357600080fd5b613cbf86838701613a8b565b9350602091508185013581811115613cd657600080fd5b85019050601f81018613613ce957600080fd5b8035613cf7613aac82613a68565b81815260059190911b82018301908381019088831115613d1657600080fd5b928401925b82841015613d3b57613d2c84613945565b82529284019290840190613d1b565b80955050505050509250929050565b6020808252825182820181905260009190848201906040850190845b81811015613d8257835183529284019291840191600101613d66565b50909695505050505050565b60008060208385031215613da157600080fd5b82356001600160401b0380821115613db857600080fd5b818501915085601f830112613dcc57600080fd5b813581811115613ddb57600080fd5b866020606083028501011115613df057600080fd5b60209290920196919550909350505050565b60006001600160401b03831115613e1b57613e1b613a22565b613e2e601f8401601f1916602001613a38565b9050828152838383011115613e4257600080fd5b828260208301376000602084830101529392505050565b600060208284031215613e6b57600080fd5b81356001600160401b03811115613e8157600080fd5b8201601f81018413613e9257600080fd5b6127e084823560208401613e02565b80151581146124e857600080fd5b803561395c81613ea1565b60008060408385031215613ecd57600080fd5b613ed683613945565b91506020830135613ee681613ea1565b809150509250929050565b60008060008060808587031215613f0757600080fd5b613f1085613945565b9350613f1e60208601613945565b92506040850135915060608501356001600160401b03811115613f4057600080fd5b8501601f81018713613f5157600080fd5b613f6087823560208401613e02565b91505092959194509250565b60008060408385031215613f7f57600080fd5b613f8883613945565b9150613f9660208401613945565b90509250929050565b600181811c90821680613fb357607f821691505b602082108103613fd357634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526018908201527f4552433732313a20696e76616c696420746f6b656e2049440000000000000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60006001820161409b5761409b614073565b5060010190565b6020808252603e908201527f466572616c66696c6545786869626974696f6e56343a20436f6e74726163742060408201527f69736e277420616c6c6f77656420746f207265636569766520746f6b656e0000606082015260800190565b60006020828403121561411157600080fd5b813561393e81613ea1565b6000808335601e1984360301811261413357600080fd5b83016020810192503590506001600160401b0381111561415257600080fd5b8060051b3603821315613c1757600080fd5b8183526000602080850194508260005b858110156141aa576001600160a01b0361418d83613945565b168752818301358388015260409687019690910190600101614174565b509495945050505050565b81835260006020808501808196508560051b810191508460005b8781101561423c5782840389528135601e198836030181126141f057600080fd5b870185810190356001600160401b0381111561420b57600080fd5b8060061b360382131561421d57600080fd5b614228868284614164565b9a87019a95505050908401906001016141cf565b5091979650505050505050565b8035825260208082013590830152604080820135908301526001600160a01b0361427560608301613945565b166060830152600061428a608083018361411c565b60e06080860181905285018190526101006001600160fb1b038211156142af57600080fd5b8160051b915081838288013781860192506142cd60a086018661411c565b9250818785030160a08801526142e682850184836141b5565b93505050506142f760c08401613eaf565b80151560c0860152612e05565b84815283602082015260ff8316604082015260806060820152600061432c6080830184614249565b9695505050505050565b8381526001600160a01b038316602082015260606040820181905260009061436090830184614249565b95945050505050565b6000808335601e1984360301811261438057600080fd5b8301803591506001600160401b0382111561439a57600080fd5b6020019150600581901b3603821315613c1757600080fd5b81810381811115610ad357610ad3614073565b6000826143e257634e487b7160e01b600052601260045260246000fd5b500490565b6000808335601e198436030181126143fe57600080fd5b8301803591506001600160401b0382111561441857600080fd5b6020019150600681901b3603821315613c1757600080fd5b60006040828403121561444257600080fd5b604051604081018181106001600160401b038211171561446457614464613a22565b60405261447083613945565b8152602083013560208201528091505092915050565b80820180821115610ad357610ad3614073565b8082028115828204841417610ad357610ad3614073565b60208082526034908201527f466572616c66696c6545786869626974696f6e56343a206d696e7461626c6520604082015273726571756972656420746f2062652066616c736560601b606082015260800190565b600061ffff80831681810361451b5761451b614073565b6001019392505050565b601f821115610bcf57600081815260208120601f850160051c8101602086101561454c5750805b601f850160051c820191505b8181101561456b57828155600101614558565b505050505050565b81516001600160401b0381111561458c5761458c613a22565b6145a08161459a8454613f9f565b84614525565b602080601f8311600181146145d557600084156145bd5750858301515b600019600386901b1c1916600185901b17855561456b565b600085815260208120601f198616915b82811015614604578886015182559484019460019091019084016145e5565b50858210156146225787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600080845461464081613f9f565b60018281168015614658576001811461466d5761469c565b60ff198416875282151583028701945061469c565b8860005260208060002060005b858110156146935781548a82015290840190820161467a565b50505082870194505b50602f60f81b8452865192506146b88382860160208a0161397c565b919092010195945050505050565b6000602082840312156146d857600080fd5b815161393e81613ea1565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b7f466572616c66696c6545786869626974696f6e56343a2073657269657349642081526e03237b2b9b713ba1032bc34b9ba1d1608d1b60208201526000825161478581602f85016020870161397c565b91909101602f0192915050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061432c908301846139a0565b60006020828403121561481c57600080fd5b815161393e8161390b565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fdfea26469706673582212204ff7e6e452d5b4d13fd7f3049373fcbb2ec0c220c727d0b112624b8cbf508da164736f6c63430008110033", + ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol_\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"burnable_\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"bridgeable_\",\"type\":\"bool\"},{\"internalType\":\"address\",\"name\":\"signer_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"vault_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"costReceiver_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"contractURI_\",\"type\":\"string\"},{\"internalType\":\"uint256[]\",\"name\":\"seriesIds_\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"seriesMaxSupplies_\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AdvanceAddressAlreadyUsed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ArtworkEditionNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAdvanceAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAdvanceAddressesAndAmounts\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAdvanceAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"OperatorNotAllowed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"BurnArtwork\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"BuyArtwork\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"NewArtwork\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"OperatorFilterRegistry\",\"outputs\":[{\"internalType\":\"contractIOperatorFilterRegistry\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_trustee\",\"type\":\"address\"}],\"name\":\"addTrustee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"advances\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"artworkParameters\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"bridgeable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"}],\"name\":\"burnArtworks\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"burnable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"r_\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s_\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"v_\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"cost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiryTime\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"destination\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"bps\",\"type\":\"uint256\"}],\"internalType\":\"structIFeralfileSaleData.RevenueShare[][]\",\"name\":\"revenueShares\",\"type\":\"tuple[][]\"},{\"internalType\":\"bool\",\"name\":\"payByVaultContract\",\"type\":\"bool\"}],\"internalType\":\"structIFeralfileSaleData.SaleData\",\"name\":\"saleData_\",\"type\":\"tuple\"}],\"name\":\"buyArtworks\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"codeVersion\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"contractURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"costReceiver\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getArtwork\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"internalType\":\"structFeralfileExhibitionV4.Artwork\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"internalType\":\"structFeralfileExhibitionV4.MintData[]\",\"name\":\"data\",\"type\":\"tuple[]\"}],\"name\":\"mintArtworks\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"mintable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pauseSale\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_trustee\",\"type\":\"address\"}],\"name\":\"removeTrustee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"oldAddresses_\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"newAddresses_\",\"type\":\"address[]\"}],\"name\":\"replaceAdvanceAddresses\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"resumeSale\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"selling\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"}],\"name\":\"seriesMaxSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"}],\"name\":\"seriesTotalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"addresses_\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts_\",\"type\":\"uint256[]\"}],\"name\":\"setAdvanceSetting\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"costReceiver_\",\"type\":\"address\"}],\"name\":\"setCostReceiver\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signer_\",\"type\":\"address\"}],\"name\":\"setSigner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"baseURI_\",\"type\":\"string\"}],\"name\":\"setTokenBaseURI\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"vault_\",\"type\":\"address\"}],\"name\":\"setVault\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"signer\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"startSale\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stopSaleAndBurn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"seriesIds\",\"type\":\"uint256[]\"},{\"internalType\":\"address[]\",\"name\":\"recipientAddresses\",\"type\":\"address[]\"}],\"name\":\"stopSaleAndTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenBaseURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenOfOwnerByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"tokensOfOwner\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"trustees\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operatorFilterRegisterAddress\",\"type\":\"address\"}],\"name\":\"updateOperatorFilterRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vault\",\"outputs\":[{\"internalType\":\"contractIFeralfileVault\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"parameters\",\"type\":\"string\"}],\"name\":\"updateArtworkParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getArtworkParameters\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", + Bin: "0x6080604052600880546001600160a01b0319166daaeb6d7670e522a718067333cd4e179055600d805463ff000000191663010000001790553480156200004457600080fd5b506040516200584a3803806200584a833981016040819052620000679162000985565b8989898989898989898989898989898989898989858a8a60006200008c838262000b54565b5060016200009b828262000b54565b505050620000b8620000b2620007a360201b60201c565b620007a7565b6008546001600160a01b03163b156200014557600854604051633e9f1edf60e11b8152306004820152733cc6cdda760b79bafa08df41ecfa224f810dceb660248201526001600160a01b0390911690637d3e3dbe90604401600060405180830381600087803b1580156200012b57600080fd5b505af115801562000140573d6000803e3d6000fd5b505050505b6001600160a01b038116620001ac5760405162461bcd60e51b815260206004820152602260248201527f45434453415369676e3a207369676e65725f206973207a65726f206164647265604482015261737360f01b60648201526084015b60405180910390fd5b600980546001600160a01b0319166001600160a01b039290921691909117905589516200022a5760405162461bcd60e51b815260206004820152602560248201527f466572616c66696c6545786869626974696f6e56343a206e616d655f20697320604482015264656d70747960d81b6064820152608401620001a3565b60008951116200028d5760405162461bcd60e51b815260206004820152602760248201527f466572616c66696c6545786869626974696f6e56343a2073796d626f6c5f20696044820152667320656d70747960c81b6064820152608401620001a3565b6001600160a01b0385166200030b5760405162461bcd60e51b815260206004820152603460248201527f466572616c66696c6545786869626974696f6e56343a207661756c744164647260448201527f6573735f206973207a65726f20616464726573730000000000000000000000006064820152608401620001a3565b6001600160a01b038416620003895760405162461bcd60e51b815260206004820152603460248201527f466572616c66696c6545786869626974696f6e56343a20636f7374526563656960448201527f7665725f206973207a65726f20616464726573730000000000000000000000006064820152608401620001a3565b6000835111620003f15760405162461bcd60e51b815260206004820152602c60248201527f466572616c66696c6545786869626974696f6e56343a20636f6e74726163745560448201526b52495f20697320656d70747960a01b6064820152608401620001a3565b6000825111620004575760405162461bcd60e51b815260206004820152602a60248201527f466572616c66696c6545786869626974696f6e56343a207365726965734964736044820152695f20697320656d70747960b01b6064820152608401620001a3565b6000815111620004c55760405162461bcd60e51b815260206004820152603260248201527f466572616c66696c6545786869626974696f6e56343a205f7365726965734d6160448201527178537570706c69657320697320656d70747960701b6064820152608401620001a3565b8051825114620005585760405162461bcd60e51b815260206004820152605160248201527f466572616c66696c6545786869626974696f6e56343a207365726965734d617860448201527f537570706c6965735f20616e64207365726965734964735f206c656e6774687360648201527020617265206e6f74207468652073616d6560781b608482015260a401620001a3565b600d805461ffff191689151561ff001916176101008915150217600160201b600160c01b0319166401000000006001600160a01b038781169190910291909117909155600e80546001600160a01b031916918716919091179055600b620005c0848262000b54565b5060005b82518110156200077e576000620005dd82600162000c36565b90505b83518110156200069a57838181518110620005ff57620005ff62000c52565b60200260200101518483815181106200061c576200061c62000c52565b602002602001015103620006855760405162461bcd60e51b815260206004820152602960248201527f466572616c66696c6545786869626974696f6e56343a206475706c6963617465604482015268081cd95c9a595cd25960ba1b6064820152608401620001a3565b80620006918162000c68565b915050620005e0565b506000828281518110620006b257620006b262000c52565b602002602001015111620007185760405162461bcd60e51b815260206004820152602660248201527f466572616c66696c6545786869626974696f6e56343a207a65726f206d617820604482015265737570706c7960d01b6064820152608401620001a3565b8181815181106200072d576200072d62000c52565b6020026020010151600f60008584815181106200074e576200074e62000c52565b60200260200101518152602001908152602001600020819055508080620007759062000c68565b915050620005c4565b5050505050505050505050505050505050505050505050505050505050505062000c84565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200083a576200083a620007f9565b604052919050565b600082601f8301126200085457600080fd5b81516001600160401b03811115620008705762000870620007f9565b602062000886601f8301601f191682016200080f565b82815285828487010111156200089b57600080fd5b60005b83811015620008bb5785810183015182820184015282016200089e565b506000928101909101919091529392505050565b80518015158114620008e057600080fd5b919050565b80516001600160a01b0381168114620008e057600080fd5b600082601f8301126200090f57600080fd5b815160206001600160401b038211156200092d576200092d620007f9565b8160051b6200093e8282016200080f565b92835284810182019282810190878511156200095957600080fd5b83870192505b848310156200097a578251825291830191908301906200095f565b979650505050505050565b6000806000806000806000806000806101408b8d031215620009a657600080fd5b8a516001600160401b0380821115620009be57600080fd5b620009cc8e838f0162000842565b9b5060208d0151915080821115620009e357600080fd5b620009f18e838f0162000842565b9a5062000a0160408e01620008cf565b995062000a1160608e01620008cf565b985062000a2160808e01620008e5565b975062000a3160a08e01620008e5565b965062000a4160c08e01620008e5565b955060e08d015191508082111562000a5857600080fd5b62000a668e838f0162000842565b94506101008d015191508082111562000a7e57600080fd5b62000a8c8e838f01620008fd565b93506101208d015191508082111562000aa457600080fd5b5062000ab38d828e01620008fd565b9150509295989b9194979a5092959850565b600181811c9082168062000ada57607f821691505b60208210810362000afb57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000b4f57600081815260208120601f850160051c8101602086101562000b2a5750805b601f850160051c820191505b8181101562000b4b5782815560010162000b36565b5050505b505050565b81516001600160401b0381111562000b705762000b70620007f9565b62000b888162000b81845462000ac5565b8462000b01565b602080601f83116001811462000bc0576000841562000ba75750858301515b600019600386901b1c1916600185901b17855562000b4b565b600085815260208120601f198616915b8281101562000bf15788860151825594840194600190910190840162000bd0565b508582101562000c105787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082018082111562000c4c5762000c4c62000c20565b92915050565b634e487b7160e01b600052603260045260246000fd5b60006001820162000c7d5762000c7d62000c20565b5060010190565b614bb68062000c946000396000f3fe6080604052600436106103545760003560e01c80636817031b116101c6578063a22cb465116100f7578063e985e9c511610095578063f07e7fd01161006f578063f07e7fd014610ab0578063f2fde38b14610ad0578063f4e638be14610af0578063fbfa77cf14610b1857600080fd5b8063e985e9c514610a0a578063eb5c60f214610a53578063eee608a414610a8057600080fd5b8063b9b8311a116100d1578063b9b8311a146109a0578063c87b56dd146109b5578063dc78ac1c146109d5578063e8a3d485146109f557600080fd5b8063a22cb4651461094b578063b66a0e5d1461096b578063b88d4fde1461098057600080fd5b80638a25f461116101645780638ef79e911161013e5780638ef79e91146108cf578063926ce44e146108ef57806395d89b411461091c578063a07c7ce41461093157600080fd5b80638a25f461146108715780638cba1c67146108915780638da5cb5b146108b157600080fd5b8063715018a6116101a0578063715018a6146107e25780637f06ee06146107f757806381516fc7146108245780638462151c1461084457600080fd5b80636817031b146107825780636c19e783146107a257806370a08231146107c257600080fd5b80632977e4b3116102a05780634bf365df1161023e57806355367ba91161021857806355367ba9146106ec5780636352211e1461070157806363e602301461072157806365a46e081461076257600080fd5b80634bf365df146106975780634e99b800146106b8578063530da8ef146106cd57600080fd5b806333e364cb1161027a57806333e364cb146106225780633c352b0d1461063757806341a5626a1461065757806342842e0e1461067757600080fd5b80632977e4b3146105cf5780632f745c59146105e2578063318047381461060257600080fd5b80631623528f1161030d57806321fe0c64116102e757806321fe0c6414610553578063238ac9331461057357806323aed2281461059157806323b872dd146105af57600080fd5b80631623528f146104d4578063167ddf6e146104f457806318160ddd1461052f57600080fd5b806301ffc9a7146103e5578063031205061461041a57806306fdde031461043a578063081812fc1461045c578063095ea7b314610494578063114ba8ee146104b457600080fd5b366103e057600e546001600160a01b031633146103de5760405162461bcd60e51b815260206004820152603c60248201527f466572616c66696c6545786869626974696f6e56343a206f6e6c79206163636560448201527f70742066756e642066726f6d207661756c7420636f6e74726163742e0000000060648201526084015b60405180910390fd5b005b600080fd5b3480156103f157600080fd5b50610405610400366004613b17565b610b38565b60405190151581526020015b60405180910390f35b34801561042657600080fd5b506103de610435366004613b57565b610b8a565b34801561044657600080fd5b5061044f610bb3565b6040516104119190613bc2565b34801561046857600080fd5b5061047c610477366004613bd5565b610c45565b6040516001600160a01b039091168152602001610411565b3480156104a057600080fd5b506103de6104af366004613bee565b610c6c565b3480156104c057600080fd5b506103de6104cf366004613b57565b610c85565b3480156104e057600080fd5b506103de6104ef366004613b57565b610caf565b34801561050057600080fd5b5061051461050f366004613bd5565b610d58565b60408051825181526020928301519281019290925201610411565b34801561053b57600080fd5b50610545600c5481565b604051908152602001610411565b34801561055f57600080fd5b506103de61056e366004613cec565b610dbb565b34801561057f57600080fd5b506009546001600160a01b031661047c565b34801561059d57600080fd5b50600d5462010000900460ff16610405565b3480156105bb57600080fd5b506103de6105ca366004613d20565b610ea5565b6103de6105dd366004613d5c565b610ef8565b3480156105ee57600080fd5b506105456105fd366004613bee565b611535565b34801561060e57600080fd5b506103de61061d366004613dc9565b6115df565b34801561062e57600080fd5b506103de61164f565b34801561064357600080fd5b506103de610652366004613e8f565b611712565b34801561066357600080fd5b506103de610672366004613e8f565b6118b2565b34801561068357600080fd5b506103de610692366004613d20565b611a96565b3480156106a357600080fd5b50600d54610405906301000000900460ff1681565b3480156106c457600080fd5b5061044f611ae3565b3480156106d957600080fd5b50600d5461040590610100900460ff1681565b3480156106f857600080fd5b506103de611b71565b34801561070d57600080fd5b5061047c61071c366004613bd5565b611c25565b34801561072d57600080fd5b5061044f6040518060400160405280601581526020017411995c985b199a5b19515e1a1a589a5d1a5bdb958d605a1b81525081565b34801561076e57600080fd5b506103de61077d366004613efa565b611c5a565b34801561078e57600080fd5b506103de61079d366004613b57565b611f58565b3480156107ae57600080fd5b506103de6107bd366004613b57565b611fee565b3480156107ce57600080fd5b506105456107dd366004613b57565b612079565b3480156107ee57600080fd5b506103de6120ff565b34801561080357600080fd5b50610545610812366004613bd5565b60009081526010602052604090205490565b34801561083057600080fd5b5061044f61083f366004613bd5565b612113565b34801561085057600080fd5b5061086461085f366004613b57565b61212c565b6040516104119190613fbb565b34801561087d57600080fd5b5061044f61088c366004613bd5565b612198565b34801561089d57600080fd5b506103de6108ac366004613fff565b612254565b3480156108bd57600080fd5b506006546001600160a01b031661047c565b3480156108db57600080fd5b506103de6108ea3660046140ca565b612383565b3480156108fb57600080fd5b5061054561090a366004613b57565b60146020526000908152604090205481565b34801561092857600080fd5b5061044f6123f2565b34801561093d57600080fd5b50600d546104059060ff1681565b34801561095757600080fd5b506103de61096636600461412b565b612401565b34801561097757600080fd5b506103de612415565b34801561098c57600080fd5b506103de61099b366004614162565b612432565b3480156109ac57600080fd5b506103de612480565b3480156109c157600080fd5b5061044f6109d0366004613bd5565b612521565b3480156109e157600080fd5b506103de6109f0366004613b57565b61262f565b348015610a0157600080fd5b5061044f61265b565b348015610a1657600080fd5b50610405610a253660046141dd565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a5f57600080fd5b50610545610a6e366004613bd5565b6000908152600f602052604090205490565b348015610a8c57600080fd5b50610405610a9b366004613b57565b60076020526000908152604090205460ff1681565b348015610abc57600080fd5b5060085461047c906001600160a01b031681565b348015610adc57600080fd5b506103de610aeb366004613b57565b612668565b348015610afc57600080fd5b50600d5461047c9064010000000090046001600160a01b031681565b348015610b2457600080fd5b50600e5461047c906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b1480610b6957506001600160e01b03198216635b5e139f60e01b145b80610b8457506301ffc9a760e01b6001600160e01b03198316145b92915050565b610b926126e1565b6001600160a01b03166000908152600760205260409020805460ff19169055565b606060008054610bc290614210565b80601f0160208091040260200160405190810160405280929190818152602001828054610bee90614210565b8015610c3b5780601f10610c1057610100808354040283529160200191610c3b565b820191906000526020600020905b815481529060010190602001808311610c1e57829003601f168201915b5050505050905090565b6000610c508261273b565b506000908152600460205260409020546001600160a01b031690565b81610c7681612760565b610c808383612832565b505050565b610c8d6126e1565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b610cb76126e1565b6001600160a01b038116610d2a5760405162461bcd60e51b815260206004820152603460248201527f466572616c66696c6545786869626974696f6e56343a20636f737452656365696044820152737665725f206973207a65726f206164647265737360601b60648201526084016103d5565b600d80546001600160a01b0390921664010000000002640100000000600160c01b0319909216919091179055565b6040805180820190915260008082526020820152610d7582612942565b610d915760405162461bcd60e51b81526004016103d59061424a565b50600090815260116020908152604091829020825180840190935280548352600101549082015290565b600d5460ff16610e225760405162461bcd60e51b815260206004820152602c60248201527f466572616c66696c6545786869626974696f6e56343a20746f6b656e2069732060448201526b6e6f74206275726e61626c6560a01b60648201526084016103d5565b60005b8151811015610ea157610e5133838381518110610e4457610e44614281565b602002602001015161295f565b610e6d5760405162461bcd60e51b81526004016103d590614297565b610e8f828281518110610e8257610e82614281565b60200260200101516129de565b80610e99816142fa565b915050610e25565b5050565b826001600160a01b0381163314610ebf57610ebf33612760565b306001600160a01b03841603610ee75760405162461bcd60e51b81526004016103d590614313565b610ef2848484612ab4565b50505050565b600d5462010000900460ff16610f635760405162461bcd60e51b815260206004820152602a60248201527f466572616c66696c6545786869626974696f6e56343a2073616c65206973206e6044820152691bdd081cdd185c9d195960b21b60648201526084016103d5565b610f6b612ae5565b610f7481612b60565b610f8460e0820160c08301614370565b610ff35780353414610fee5760405162461bcd60e51b815260206004820152602d60248201527f466572616c66696c6545786869626974696f6e56343a20696e76616c6964207060448201526c185e5b595b9d08185b5bdd5b9d609a1b60648201526084016103d5565b61105c565b600e54604051632eeee16360e01b81526001600160a01b0390911690632eeee16390611029908790879087908790600401614572565b600060405180830381600087803b15801561104357600080fd5b505af1158015611057573d6000803e3d6000fd5b505050505b6000463083604051602001611073939291906145a4565b60405160208183030381529060405280519060200120905061109781868686612cb9565b6110b457604051638baa579f60e01b815260040160405180910390fd5b60006020830135833511156110ee576110d060808401846145d7565b90506110e160208501358535614620565b6110eb9190614633565b90505b60008060005b61110160808701876145d7565b9050811015611455576111573061111e6080890160608a01613b57565b61112b60808a018a6145d7565b8581811061113b5761113b614281565b9050602002013560405180602001604052806000815250612d11565b600061116660a08801886145d7565b8381811061117657611176614281565b90506020028101906111889190614655565b808060200260200160405190810160405280939291908181526020016000905b828210156111d4576111c56040830286013681900381019061469e565b815260200190600101906111a8565b50505050509050600085905060005b8251811080156111f35750600082115b156112d85760006014600085848151811061121057611210614281565b6020026020010151600001516001600160a01b03166001600160a01b0316815260200190815260200160002054905060008382101561124f5781611251565b835b905061125d81886146f4565b9650806014600087868151811061127657611276614281565b6020026020010151600001516001600160a01b03166001600160a01b0316815260200190815260200160002060008282546112b19190614620565b909155506112c190508185614620565b9350505080806112d0906142fa565b9150506111e3565b5080156113d45760005b82518110156113d25760008382815181106112ff576112ff614281565b6020026020010151600001519050600061271085848151811061132457611324614281565b6020026020010151602001518561133b9190614707565b6113459190614633565b600d549091506001600160a01b036401000000009091048116908316036113795761137081886146f4565b965050506113c0565b61138381896146f4565b6040519098506001600160a01b0383169082156108fc029083906000818181858888f193505050501580156113bc573d6000803e3d6000fd5b5050505b806113ca816142fa565b9150506112e2565b505b6113e160808901896145d7565b848181106113f1576113f1614281565b9050602002013588606001602081019061140b9190613b57565b6001600160a01b03167f0475389cd69b8d3163620b43283bf74e8fc71020c3c6cef2a529b5c405e9687f60405160405180910390a35050808061144d906142fa565b9150506110f4565b5061146081836146f4565b61146f60208701358735614620565b10156114d25760405162461bcd60e51b815260206004820152602c60248201527f466572616c66696c6545786869626974696f6e56343a20746f74616c2062707360448201526b0206f7665722031302c3030360a41b60648201526084016103d5565b60006114df838735614620565b9050801561152a57600d546040516401000000009091046001600160a01b0316906108fc8315029083906000818181858888f19350505050158015611528573d6000803e3d6000fd5b505b505050505050505050565b600061154083612079565b82106115a25760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016103d5565b6001600160a01b03831660009081526012602052604090208054839081106115cc576115cc614281565b9060005260206000200154905092915050565b3360009081526007602052604090205460ff168061160757506006546001600160a01b031633145b61161057600080fd5b61161983612942565b6116365760405163e36fc81560e01b815260040160405180910390fd5b6000838152601560205260409020610ef282848361476c565b6116576126e1565b600d546301000000900460ff16156116815760405162461bcd60e51b81526004016103d59061482b565b600d5462010000900460ff16156116f75760405162461bcd60e51b815260206004820152603460248201527f466572616c66696c6545786869626974696f6e56343a205f73656c6c696e6720604482015273726571756972656420746f2062652066616c736560601b60648201526084016103d5565b6116ff612ae5565b600d805462ff0000191662010000179055565b61171a6126e1565b82811461173a576040516313086eff60e21b815260040160405180910390fd5b60005b838110156118ab57600085858381811061175957611759614281565b905060200201602081019061176e9190613b57565b6001600160a01b03160361179557604051630107349760e51b815260040160405180910390fd5b8282828181106117a7576117a7614281565b905060200201356000036117ce57604051636745f8fb60e01b815260040160405180910390fd5b6000601460008787858181106117e6576117e6614281565b90506020020160208101906117fb9190613b57565b6001600160a01b03166001600160a01b0316815260200190815260200160002054111561183b576040516328547bdf60e01b815260040160405180910390fd5b82828281811061184d5761184d614281565b905060200201356014600087878581811061186a5761186a614281565b905060200201602081019061187f9190613b57565b6001600160a01b03168152602081019190915260400160002055806118a3816142fa565b91505061173d565b5050505050565b6118ba6126e1565b8281146118da576040516313086eff60e21b815260040160405180910390fd5b60005b838110156118ab5760008383838181106118f9576118f9614281565b905060200201602081019061190e9190613b57565b6001600160a01b03160361193557604051630107349760e51b815260040160405180910390fd5b60006014600085858581811061194d5761194d614281565b90506020020160208101906119629190613b57565b6001600160a01b03166001600160a01b031681526020019081526020016000205411156119a2576040516328547bdf60e01b815260040160405180910390fd5b601460008686848181106119b8576119b8614281565b90506020020160208101906119cd9190613b57565b6001600160a01b03166001600160a01b031681526020019081526020016000205460146000858585818110611a0457611a04614281565b9050602002016020810190611a199190613b57565b6001600160a01b03166001600160a01b031681526020019081526020016000208190555060146000868684818110611a5357611a53614281565b9050602002016020810190611a689190613b57565b6001600160a01b03168152602081019190915260400160009081205580611a8e816142fa565b9150506118dd565b826001600160a01b0381163314611ab057611ab033612760565b306001600160a01b03841603611ad85760405162461bcd60e51b81526004016103d590614313565b610ef2848484612d44565b600a8054611af090614210565b80601f0160208091040260200160405190810160405280929190818152602001828054611b1c90614210565b8015611b695780601f10611b3e57610100808354040283529160200191611b69565b820191906000526020600020905b815481529060010190602001808311611b4c57829003601f168201915b505050505081565b611b796126e1565b600d546301000000900460ff1615611ba35760405162461bcd60e51b81526004016103d59061482b565b600d5462010000900460ff16611c175760405162461bcd60e51b815260206004820152603360248201527f466572616c66696c6545786869626974696f6e56343a205f73656c6c696e6720604482015272726571756972656420746f206265207472756560681b60648201526084016103d5565b600d805462ff000019169055565b6000818152600260205260408120546001600160a01b031680610b845760405162461bcd60e51b81526004016103d59061424a565b611c626126e1565b60008251118015611c74575060008151115b611cf45760405162461bcd60e51b815260206004820152604560248201527f466572616c66696c6545786869626974696f6e56343a2073657269657349647360448201527f206f7220726563697069656e74416464726573736573206c656e677468206973606482015264207a65726f60d81b608482015260a4016103d5565b8051825114611d805760405162461bcd60e51b815260206004820152604c60248201527f466572616c66696c6545786869626974696f6e56343a2073657269657349647360448201527f206c656e67746820697320646966666572656e742066726f6d2072656369706960648201526b656e7441646472657373657360a01b608482015260a4016103d5565b611d88611b71565b30600081815260126020908152604080832080548251818502810185019093528083529192909190830182828015611ddf57602002820191906000526020600020905b815481526020019060010190808311611dcb575b5050505050905060005b8151811015611edb576000828281518110611e0657611e06614281565b602090810291909101810151600081815260118352604080822081518083019092528054825260010154938101939093529092505b87518161ffff161015611ec557878161ffff1681518110611e5e57611e5e614281565b6020026020010151826000015103611eb3576000878261ffff1681518110611e8857611e88614281565b60200260200101519050611ead87828660405180602001604052806000815250612d11565b50611ec5565b80611ebd8161487f565b915050611e3b565b5050508080611ed3906142fa565b915050611de9565b50611ee582612079565b15610ef25760405162461bcd60e51b815260206004820152603c60248201527f466572616c66696c6545786869626974696f6e56343a20546f6b656e20666f7260448201527f2073616c652062616c616e63652068617320746f206265207a65726f0000000060648201526084016103d5565b611f606126e1565b6001600160a01b038116611fcc5760405162461bcd60e51b815260206004820152602d60248201527f466572616c66696c6545786869626974696f6e56343a207661756c745f20697360448201526c207a65726f206164647265737360981b60648201526084016103d5565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b611ff66126e1565b6001600160a01b0381166120575760405162461bcd60e51b815260206004820152602260248201527f45434453415369676e3a207369676e65725f206973207a65726f206164647265604482015261737360f01b60648201526084016103d5565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166120e35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016103d5565b506001600160a01b031660009081526003602052604090205490565b6121076126e1565b6121116000612d5f565b565b60156020526000908152604090208054611af090614210565b6001600160a01b03811660009081526012602090815260409182902080548351818402810184019094528084526060939283018282801561218c57602002820191906000526020600020905b815481526020019060010190808311612178575b50505050509050919050565b60606121a382612942565b6121c05760405163e36fc81560e01b815260040160405180910390fd5b600082815260156020526040902080546121d990614210565b80601f016020809104026020016040519081016040528092919081815260200182805461220590614210565b801561218c5780601f106122275761010080835404028352916020019161218c565b820191906000526020600020905b8154815290600101906020018083116122355750939695505050505050565b3360009081526007602052604090205460ff168061227c57506006546001600160a01b031633145b61228557600080fd5b600d546301000000900460ff166122fc5760405162461bcd60e51b815260206004820152603560248201527f466572616c66696c6545786869626974696f6e56343a20636f6e747261637420604482015274191bd95cdb89dd08185b1b1bddc81d1bc81b5a5b9d605a1b60648201526084016103d5565b60005b81811015610c805761237183838381811061231c5761231c614281565b9050606002016000013584848481811061233857612338614281565b9050606002016020013585858581811061235457612354614281565b905060600201604001602081019061236c9190613b57565b612db1565b8061237b816142fa565b9150506122ff565b61238b6126e1565b60008151116123e65760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a20626173655552495f20697320656d70746044820152607960f81b60648201526084016103d5565b600a610ea182826148a0565b606060018054610bc290614210565b8161240b81612760565b610c808383612f33565b61241d6126e1565b600d805463ff0000001916905561211161164f565b836001600160a01b038116331461244c5761244c33612760565b306001600160a01b038516036124745760405162461bcd60e51b81526004016103d590614313565b6118ab85858585612f3e565b6124886126e1565b612490611b71565b306000908152601260209081526040808320805482518185028101850190935280835291929091908301828280156124e757602002820191906000526020600020905b8154815260200190600101908083116124d3575b5050505050905060005b8151811015610ea15761250f828281518110610e8257610e82614281565b80612519816142fa565b9150506124f1565b60606000600a805461253290614210565b9050116125905760405162461bcd60e51b815260206004820152602660248201527f4552433732314d657461646174613a205f746f6b656e4261736555524920697360448201526520656d70747960d01b60648201526084016103d5565b61259982612942565b6125fd5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016103d5565b600a61260883612f70565b60405160200161261992919061495f565b6040516020818303038152906040529050919050565b6126376126e1565b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b600b8054611af090614210565b6126706126e1565b6001600160a01b0381166126d55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103d5565b6126de81612d5f565b50565b6006546001600160a01b031633146121115760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103d5565b61274481612942565b6126de5760405162461bcd60e51b81526004016103d59061424a565b6008546001600160a01b03163b156126de57600854604051633185c44d60e21b81523060048201526001600160a01b0383811660248301529091169063c617113490604401602060405180830381865afa1580156127c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127e691906149f3565b6126de5760405162461bcd60e51b815260206004820152601760248201527f6f70657261746f72206973206e6f7420616c6c6f77656400000000000000000060448201526064016103d5565b600061283d82611c25565b9050806001600160a01b0316836001600160a01b0316036128aa5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016103d5565b336001600160a01b03821614806128c657506128c68133610a25565b6129385760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016103d5565b610c808383613003565b6000908152600260205260409020546001600160a01b0316151590565b60008061296b83611c25565b9050806001600160a01b0316846001600160a01b031614806129b257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806129d65750836001600160a01b03166129cb84610c45565b6001600160a01b0316145b949350505050565b6129e781612942565b612a035760405162461bcd60e51b81526004016103d59061424a565b60008181526011602090815260408083208151808301835281548082526001928301548286015285526010909352908320805492939192909190612a48908490614620565b925050819055506001600c6000828254612a629190614620565b9091555050600082815260116020526040812081815560010155612a8582613071565b60405182907fbde7938970372996ff103863625e348ef2bf8f38a5b02181be75aafef17c23d590600090a25050565b612abe338261295f565b612ada5760405162461bcd60e51b81526004016103d590614297565b610c80838383613114565b6000612af030612079565b9050600081116126de5760405162461bcd60e51b815260206004820152603560248201527f466572616c66696c6545786869626974696f6e56343a204e6f20746f6b656e206044820152741bdddb995908189e481d1a194818dbdb9d1c9858dd605a1b60648201526084016103d5565b6000612b6f60808301836145d7565b905011612bca5760405162461bcd60e51b8152602060048201526024808201527f466572616c66696c6553616c65446174613a20746f6b656e49647320697320656044820152636d70747960e01b60648201526084016103d5565b612bd760a08201826145d7565b9050612be660808301836145d7565b905014612c5b5760405162461bcd60e51b815260206004820152603d60248201527f466572616c66696c6553616c65446174613a20746f6b656e49647320616e642060448201527f726576656e7565536861726573206c656e677468206d69736d6174636800000060648201526084016103d5565b428160400135116126de5760405162461bcd60e51b815260206004820152602260248201527f466572616c66696c6553616c65446174613a2073616c65206973206578706972604482015261195960f21b60648201526084016103d5565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c859052603c81208190612cf690848787613285565b6009546001600160a01b039081169116149695505050505050565b612d1c848484613114565b612d28848484846132ad565b610ef25760405162461bcd60e51b81526004016103d590614a10565b610c8083838360405180602001604052806000815250612432565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000838152600f60205260409020541515612dcb84612f70565b604051602001612ddb9190614a62565b60405160208183030381529060405290612e085760405162461bcd60e51b81526004016103d59190613bc2565b506000838152600f602090815260408083205460109092529091205410612e835760405162461bcd60e51b815260206004820152602960248201527f466572616c66696c6545786869626974696f6e56343a206e6f20736c6f747320604482015268617661696c61626c6560b81b60648201526084016103d5565b6001600c6000828254612e9691906146f4565b90915550506000838152601060205260408120805460019290612eba9084906146f4565b9091555050604080518082018252848152602080820185815260008681526011909252929020905181559051600190910155612ef681836133ab565b8183826001600160a01b03167f407d7da1d3b2b1871fbfa2b5b1c4657a3cc5711d3023c552798551c7ee301eea60405160405180910390a4505050565b610ea1338383613526565b612f48338361295f565b612f645760405162461bcd60e51b81526004016103d590614297565b610ef284848484612d11565b60606000612f7d836135f4565b60010190506000816001600160401b03811115612f9c57612f9c613c18565b6040519080825280601f01601f191660200182016040528015612fc6576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612fd0575b509392505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061303882611c25565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061307c82611c25565b905061308c8160008460016136cc565b61309582611c25565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b826001600160a01b031661312782611c25565b6001600160a01b03161461314d5760405162461bcd60e51b81526004016103d590614abf565b6001600160a01b0382166131af5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016103d5565b6131bc83838360016136cc565b826001600160a01b03166131cf82611c25565b6001600160a01b0316146131f55760405162461bcd60e51b81526004016103d590614abf565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000806000613296878787876137e3565b915091506132a3816138a7565b5095945050505050565b60006001600160a01b0384163b156133a357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906132f1903390899088908890600401614b04565b6020604051808303816000875af192505050801561332c575060408051601f3d908101601f1916820190925261332991810190614b37565b60015b613389573d80801561335a576040519150601f19603f3d011682016040523d82523d6000602084013e61335f565b606091505b5080516000036133815760405162461bcd60e51b81526004016103d590614a10565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506129d6565b5060016129d6565b6001600160a01b0382166134015760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016103d5565b61340a81612942565b156134575760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016103d5565b6134656000838360016136cc565b61346e81612942565b156134bb5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016103d5565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b0316036135875760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016103d5565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106136335772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061365f576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061367d57662386f26fc10000830492506010015b6305f5e1008310613695576305f5e100830492506008015b61271083106136a957612710830492506004015b606483106136bb576064830492506002015b600a8310610b845760010192915050565b600181111561373b5760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b60648201526084016103d5565b816001600160a01b038516158015906137665750836001600160a01b0316856001600160a01b031614155b156137755761377585826139f1565b6001600160a01b0384161580159061379f5750846001600160a01b0316846001600160a01b031614155b156118ab576001600160a01b0384166000908152601260209081526040808320805460018101825590845282842081018590558484526013909252909120556118ab565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561381a575060009050600361389e565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561386e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166138975760006001925092505061389e565b9150600090505b94509492505050565b60008160048111156138bb576138bb614b54565b036138c35750565b60018160048111156138d7576138d7614b54565b036139245760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016103d5565b600281600481111561393857613938614b54565b036139855760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016103d5565b600381600481111561399957613999614b54565b036126de5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016103d5565b600060016139fe84612079565b613a089190614620565b600083815260136020526040902054909150808214613aaf576001600160a01b0384166000908152601260205260408120805484908110613a4b57613a4b614281565b906000526020600020015490508060126000876001600160a01b03166001600160a01b031681526020019081526020016000208381548110613a8f57613a8f614281565b600091825260208083209091019290925591825260139052604090208190555b60008381526013602090815260408083208390556001600160a01b038716835260129091529020805480613ae557613ae5614b6a565b6001900381819060005260206000200160009055905550505050565b6001600160e01b0319811681146126de57600080fd5b600060208284031215613b2957600080fd5b8135613b3481613b01565b9392505050565b80356001600160a01b0381168114613b5257600080fd5b919050565b600060208284031215613b6957600080fd5b613b3482613b3b565b60005b83811015613b8d578181015183820152602001613b75565b50506000910152565b60008151808452613bae816020860160208601613b72565b601f01601f19169290920160200192915050565b602081526000613b346020830184613b96565b600060208284031215613be757600080fd5b5035919050565b60008060408385031215613c0157600080fd5b613c0a83613b3b565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613c5657613c56613c18565b604052919050565b60006001600160401b03821115613c7757613c77613c18565b5060051b60200190565b600082601f830112613c9257600080fd5b81356020613ca7613ca283613c5e565b613c2e565b82815260059290921b84018101918181019086841115613cc657600080fd5b8286015b84811015613ce15780358352918301918301613cca565b509695505050505050565b600060208284031215613cfe57600080fd5b81356001600160401b03811115613d1457600080fd5b6129d684828501613c81565b600080600060608486031215613d3557600080fd5b613d3e84613b3b565b9250613d4c60208501613b3b565b9150604084013590509250925092565b60008060008060808587031215613d7257600080fd5b8435935060208501359250604085013560ff81168114613d9157600080fd5b915060608501356001600160401b03811115613dac57600080fd5b850160e08188031215613dbe57600080fd5b939692955090935050565b600080600060408486031215613dde57600080fd5b8335925060208401356001600160401b0380821115613dfc57600080fd5b818601915086601f830112613e1057600080fd5b813581811115613e1f57600080fd5b876020828501011115613e3157600080fd5b6020830194508093505050509250925092565b60008083601f840112613e5657600080fd5b5081356001600160401b03811115613e6d57600080fd5b6020830191508360208260051b8501011115613e8857600080fd5b9250929050565b60008060008060408587031215613ea557600080fd5b84356001600160401b0380821115613ebc57600080fd5b613ec888838901613e44565b90965094506020870135915080821115613ee157600080fd5b50613eee87828801613e44565b95989497509550505050565b60008060408385031215613f0d57600080fd5b82356001600160401b0380821115613f2457600080fd5b613f3086838701613c81565b9350602091508185013581811115613f4757600080fd5b85019050601f81018613613f5a57600080fd5b8035613f68613ca282613c5e565b81815260059190911b82018301908381019088831115613f8757600080fd5b928401925b82841015613fac57613f9d84613b3b565b82529284019290840190613f8c565b80955050505050509250929050565b6020808252825182820181905260009190848201906040850190845b81811015613ff357835183529284019291840191600101613fd7565b50909695505050505050565b6000806020838503121561401257600080fd5b82356001600160401b038082111561402957600080fd5b818501915085601f83011261403d57600080fd5b81358181111561404c57600080fd5b86602060608302850101111561406157600080fd5b60209290920196919550909350505050565b60006001600160401b0383111561408c5761408c613c18565b61409f601f8401601f1916602001613c2e565b90508281528383830111156140b357600080fd5b828260208301376000602084830101529392505050565b6000602082840312156140dc57600080fd5b81356001600160401b038111156140f257600080fd5b8201601f8101841361410357600080fd5b6129d684823560208401614073565b80151581146126de57600080fd5b8035613b5281614112565b6000806040838503121561413e57600080fd5b61414783613b3b565b9150602083013561415781614112565b809150509250929050565b6000806000806080858703121561417857600080fd5b61418185613b3b565b935061418f60208601613b3b565b92506040850135915060608501356001600160401b038111156141b157600080fd5b8501601f810187136141c257600080fd5b6141d187823560208401614073565b91505092959194509250565b600080604083850312156141f057600080fd5b6141f983613b3b565b915061420760208401613b3b565b90509250929050565b600181811c9082168061422457607f821691505b60208210810361424457634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526018908201527f4552433732313a20696e76616c696420746f6b656e2049440000000000000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60006001820161430c5761430c6142e4565b5060010190565b6020808252603e908201527f466572616c66696c6545786869626974696f6e56343a20436f6e74726163742060408201527f69736e277420616c6c6f77656420746f207265636569766520746f6b656e0000606082015260800190565b60006020828403121561438257600080fd5b8135613b3481614112565b6000808335601e198436030181126143a457600080fd5b83016020810192503590506001600160401b038111156143c357600080fd5b8060051b3603821315613e8857600080fd5b8183526000602080850194508260005b8581101561441b576001600160a01b036143fe83613b3b565b1687528183013583880152604096870196909101906001016143e5565b509495945050505050565b818352600060208085019450848460051b86018460005b878110156144aa5783830389528135601e1988360301811261445e57600080fd5b870185810190356001600160401b0381111561447957600080fd5b8060061b360382131561448b57600080fd5b6144968582846143d5565b9a87019a945050509084019060010161443d565b5090979650505050505050565b8035825260208082013590830152604080820135908301526001600160a01b036144e360608301613b3b565b16606083015260006144f8608083018361438d565b60e06080860181905285018190526101006001600160fb1b0382111561451d57600080fd5b8160051b9150818382880137818601925061453b60a086018661438d565b9250818785030160a08801526145548285018483614426565b935050505061456560c08401614120565b80151560c0860152612ffb565b84815283602082015260ff8316604082015260806060820152600061459a60808301846144b7565b9695505050505050565b8381526001600160a01b03831660208201526060604082018190526000906145ce908301846144b7565b95945050505050565b6000808335601e198436030181126145ee57600080fd5b8301803591506001600160401b0382111561460857600080fd5b6020019150600581901b3603821315613e8857600080fd5b81810381811115610b8457610b846142e4565b60008261465057634e487b7160e01b600052601260045260246000fd5b500490565b6000808335601e1984360301811261466c57600080fd5b8301803591506001600160401b0382111561468657600080fd5b6020019150600681901b3603821315613e8857600080fd5b6000604082840312156146b057600080fd5b604051604081018181106001600160401b03821117156146d2576146d2613c18565b6040526146de83613b3b565b8152602083013560208201528091505092915050565b80820180821115610b8457610b846142e4565b8082028115828204841417610b8457610b846142e4565b601f821115610c8057600081815260208120601f850160051c810160208610156147455750805b601f850160051c820191505b8181101561476457828155600101614751565b505050505050565b6001600160401b0383111561478357614783613c18565b614797836147918354614210565b8361471e565b6000601f8411600181146147cb57600085156147b35750838201355b600019600387901b1c1916600186901b1783556118ab565b600083815260209020601f19861690835b828110156147fc57868501358255602094850194600190920191016147dc565b50868210156148195760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208082526034908201527f466572616c66696c6545786869626974696f6e56343a206d696e7461626c6520604082015273726571756972656420746f2062652066616c736560601b606082015260800190565b600061ffff808316818103614896576148966142e4565b6001019392505050565b81516001600160401b038111156148b9576148b9613c18565b6148cd816148c78454614210565b8461471e565b602080601f83116001811461490257600084156148ea5750858301515b600019600386901b1c1916600185901b178555614764565b600085815260208120601f198616915b8281101561493157888601518255948401946001909101908401614912565b508582101561494f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600080845461496d81614210565b60018281168015614985576001811461499a576149c9565b60ff19841687528215158302870194506149c9565b8860005260208060002060005b858110156149c05781548a8201529084019082016149a7565b50505082870194505b50602f60f81b8452865192506149e58382860160208a01613b72565b919092010195945050505050565b600060208284031215614a0557600080fd5b8151613b3481614112565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b7f466572616c66696c6545786869626974696f6e56343a2073657269657349642081526e03237b2b9b713ba1032bc34b9ba1d1608d1b602082015260008251614ab281602f850160208701613b72565b91909101602f0192915050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061459a90830184613b96565b600060208284031215614b4957600080fd5b8151613b3481613b01565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fdfea2646970667358221220df0be93afc5cf12fb39a9a2b5147daed04440dd78228fff96b63663b66d32f0264736f6c63430008110033", } // FeralfileExhibitionV4ABI is the input ABI used to generate the binding from. @@ -294,6 +294,37 @@ func (_FeralfileExhibitionV4 *FeralfileExhibitionV4CallerSession) Advances(arg0 return _FeralfileExhibitionV4.Contract.Advances(&_FeralfileExhibitionV4.CallOpts, arg0) } +// ArtworkParameters is a free data retrieval call binding the contract method 0x81516fc7. +// +// Solidity: function artworkParameters(uint256 ) view returns(string) +func (_FeralfileExhibitionV4 *FeralfileExhibitionV4Caller) ArtworkParameters(opts *bind.CallOpts, arg0 *big.Int) (string, error) { + var out []interface{} + err := _FeralfileExhibitionV4.contract.Call(opts, &out, "artworkParameters", arg0) + + if err != nil { + return *new(string), err + } + + out0 := *abi.ConvertType(out[0], new(string)).(*string) + + return out0, err + +} + +// ArtworkParameters is a free data retrieval call binding the contract method 0x81516fc7. +// +// Solidity: function artworkParameters(uint256 ) view returns(string) +func (_FeralfileExhibitionV4 *FeralfileExhibitionV4Session) ArtworkParameters(arg0 *big.Int) (string, error) { + return _FeralfileExhibitionV4.Contract.ArtworkParameters(&_FeralfileExhibitionV4.CallOpts, arg0) +} + +// ArtworkParameters is a free data retrieval call binding the contract method 0x81516fc7. +// +// Solidity: function artworkParameters(uint256 ) view returns(string) +func (_FeralfileExhibitionV4 *FeralfileExhibitionV4CallerSession) ArtworkParameters(arg0 *big.Int) (string, error) { + return _FeralfileExhibitionV4.Contract.ArtworkParameters(&_FeralfileExhibitionV4.CallOpts, arg0) +} + // BalanceOf is a free data retrieval call binding the contract method 0x70a08231. // // Solidity: function balanceOf(address owner) view returns(uint256) @@ -542,6 +573,37 @@ func (_FeralfileExhibitionV4 *FeralfileExhibitionV4CallerSession) GetArtwork(tok return _FeralfileExhibitionV4.Contract.GetArtwork(&_FeralfileExhibitionV4.CallOpts, tokenId) } +// GetArtworkParameters is a free data retrieval call binding the contract method 0x8a25f461. +// +// Solidity: function getArtworkParameters(uint256 tokenId) view returns(string) +func (_FeralfileExhibitionV4 *FeralfileExhibitionV4Caller) GetArtworkParameters(opts *bind.CallOpts, tokenId *big.Int) (string, error) { + var out []interface{} + err := _FeralfileExhibitionV4.contract.Call(opts, &out, "getArtworkParameters", tokenId) + + if err != nil { + return *new(string), err + } + + out0 := *abi.ConvertType(out[0], new(string)).(*string) + + return out0, err + +} + +// GetArtworkParameters is a free data retrieval call binding the contract method 0x8a25f461. +// +// Solidity: function getArtworkParameters(uint256 tokenId) view returns(string) +func (_FeralfileExhibitionV4 *FeralfileExhibitionV4Session) GetArtworkParameters(tokenId *big.Int) (string, error) { + return _FeralfileExhibitionV4.Contract.GetArtworkParameters(&_FeralfileExhibitionV4.CallOpts, tokenId) +} + +// GetArtworkParameters is a free data retrieval call binding the contract method 0x8a25f461. +// +// Solidity: function getArtworkParameters(uint256 tokenId) view returns(string) +func (_FeralfileExhibitionV4 *FeralfileExhibitionV4CallerSession) GetArtworkParameters(tokenId *big.Int) (string, error) { + return _FeralfileExhibitionV4.Contract.GetArtworkParameters(&_FeralfileExhibitionV4.CallOpts, tokenId) +} + // IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5. // // Solidity: function isApprovedForAll(address owner, address operator) view returns(bool) @@ -1583,6 +1645,27 @@ func (_FeralfileExhibitionV4 *FeralfileExhibitionV4TransactorSession) TransferOw return _FeralfileExhibitionV4.Contract.TransferOwnership(&_FeralfileExhibitionV4.TransactOpts, newOwner) } +// UpdateArtworkParameters is a paid mutator transaction binding the contract method 0x31804738. +// +// Solidity: function updateArtworkParameters(uint256 tokenId, string parameters) returns() +func (_FeralfileExhibitionV4 *FeralfileExhibitionV4Transactor) UpdateArtworkParameters(opts *bind.TransactOpts, tokenId *big.Int, parameters string) (*types.Transaction, error) { + return _FeralfileExhibitionV4.contract.Transact(opts, "updateArtworkParameters", tokenId, parameters) +} + +// UpdateArtworkParameters is a paid mutator transaction binding the contract method 0x31804738. +// +// Solidity: function updateArtworkParameters(uint256 tokenId, string parameters) returns() +func (_FeralfileExhibitionV4 *FeralfileExhibitionV4Session) UpdateArtworkParameters(tokenId *big.Int, parameters string) (*types.Transaction, error) { + return _FeralfileExhibitionV4.Contract.UpdateArtworkParameters(&_FeralfileExhibitionV4.TransactOpts, tokenId, parameters) +} + +// UpdateArtworkParameters is a paid mutator transaction binding the contract method 0x31804738. +// +// Solidity: function updateArtworkParameters(uint256 tokenId, string parameters) returns() +func (_FeralfileExhibitionV4 *FeralfileExhibitionV4TransactorSession) UpdateArtworkParameters(tokenId *big.Int, parameters string) (*types.Transaction, error) { + return _FeralfileExhibitionV4.Contract.UpdateArtworkParameters(&_FeralfileExhibitionV4.TransactOpts, tokenId, parameters) +} + // UpdateOperatorFilterRegistry is a paid mutator transaction binding the contract method 0x114ba8ee. // // Solidity: function updateOperatorFilterRegistry(address operatorFilterRegisterAddress) returns() diff --git a/go-binding/feralfile-token/abi.go b/go-binding/feralfile-token/abi.go new file mode 100644 index 0000000..d12291d --- /dev/null +++ b/go-binding/feralfile-token/abi.go @@ -0,0 +1,1143 @@ +// Code generated - DO NOT EDIT. +// This file is a generated binding and any manual changes will be lost. + +package feralfiletoken + +import ( + "errors" + "math/big" + "strings" + + ethereum "github.com/ethereum/go-ethereum" + "github.com/ethereum/go-ethereum/accounts/abi" + "github.com/ethereum/go-ethereum/accounts/abi/bind" + "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/core/types" + "github.com/ethereum/go-ethereum/event" +) + +// Reference imports to suppress errors if they are not otherwise used. +var ( + _ = errors.New + _ = big.NewInt + _ = strings.NewReader + _ = ethereum.NotFound + _ = bind.Bind + _ = common.Big1 + _ = types.BloomLookup + _ = event.NewSubscription + _ = abi.ConvertType +) + +// FeralfileTokenMetaData contains all meta data concerning the FeralfileToken contract. +var FeralfileTokenMetaData = &bind.MetaData{ + ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol_\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"InvalidOwnersAndAmounts\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_trustee\",\"type\":\"address\"}],\"name\":\"addTrustee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_trustee\",\"type\":\"address\"}],\"name\":\"removeTrustee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"trustees\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"owners\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"name\":\"batchMint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", + Bin: "0x60806040523480156200001157600080fd5b506040516200111138038062001111833981016040819052620000349162000193565b818160036200004483826200028c565b5060046200005382826200028c565b505050620000706200006a6200007860201b60201c565b6200007c565b505062000358565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620000f657600080fd5b81516001600160401b0380821115620001135762000113620000ce565b604051601f8301601f19908116603f011681019082821181831017156200013e576200013e620000ce565b816040528381526020925086838588010111156200015b57600080fd5b600091505b838210156200017f578582018301518183018401529082019062000160565b600093810190920192909252949350505050565b60008060408385031215620001a757600080fd5b82516001600160401b0380821115620001bf57600080fd5b620001cd86838701620000e4565b93506020850151915080821115620001e457600080fd5b50620001f385828601620000e4565b9150509250929050565b600181811c908216806200021257607f821691505b6020821081036200023357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200028757600081815260208120601f850160051c81016020861015620002625750805b601f850160051c820191505b8181101562000283578281556001016200026e565b5050505b505050565b81516001600160401b03811115620002a857620002a8620000ce565b620002c081620002b98454620001fd565b8462000239565b602080601f831160018114620002f85760008415620002df5750858301515b600019600386901b1c1916600185901b17855562000283565b600085815260208120601f198616915b82811015620003295788860151825594840194600190910190840162000308565b5085821015620003485787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b610da980620003686000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806370a08231116100ad578063a9059cbb11610071578063a9059cbb14610250578063dc78ac1c14610263578063dd62ed3e14610276578063eee608a414610289578063f2fde38b146102ac57600080fd5b806370a08231146101e9578063715018a6146102125780638da5cb5b1461021a57806395d89b4114610235578063a457c2d71461023d57600080fd5b806323b872dd116100f457806323b872dd1461018e578063313ce567146101a157806339509351146101b057806340c10f19146101c357806368573107146101d657600080fd5b8063031205061461012657806306fdde031461013b578063095ea7b31461015957806318160ddd1461017c575b600080fd5b610139610134366004610b20565b6102bf565b005b6101436102e8565b6040516101509190610b42565b60405180910390f35b61016c610167366004610b90565b61037a565b6040519015158152602001610150565b6002545b604051908152602001610150565b61016c61019c366004610bba565b610394565b60405160128152602001610150565b61016c6101be366004610b90565b6103b8565b6101396101d1366004610b90565b6103da565b6101396101e4366004610c42565b610419565b6101806101f7366004610b20565b6001600160a01b031660009081526020819052604090205490565b6101396104d6565b6005546040516001600160a01b039091168152602001610150565b6101436104ea565b61016c61024b366004610b90565b6104f9565b61016c61025e366004610b90565b610579565b610139610271366004610b20565b610587565b610180610284366004610cae565b6105b3565b61016c610297366004610b20565b60066020526000908152604090205460ff1681565b6101396102ba366004610b20565b6105de565b6102c7610657565b6001600160a01b03166000908152600660205260409020805460ff19169055565b6060600380546102f790610ce1565b80601f016020809104026020016040519081016040528092919081815260200182805461032390610ce1565b80156103705780601f1061034557610100808354040283529160200191610370565b820191906000526020600020905b81548152906001019060200180831161035357829003601f168201915b5050505050905090565b6000336103888185856106b1565b60019150505b92915050565b6000336103a28582856107d5565b6103ad85858561084f565b506001949350505050565b6000336103888185856103cb83836105b3565b6103d59190610d31565b6106b1565b3360009081526006602052604090205460ff168061040257506005546001600160a01b031633145b61040b57600080fd5b61041582826109f3565b5050565b3360009081526006602052604090205460ff168061044157506005546001600160a01b031633145b61044a57600080fd5b82811461046a576040516314445a9f60e01b815260040160405180910390fd5b60005b838110156104cf576104bd85858381811061048a5761048a610d44565b905060200201602081019061049f9190610b20565b8484848181106104b1576104b1610d44565b905060200201356109f3565b806104c781610d5a565b91505061046d565b5050505050565b6104de610657565b6104e86000610ab2565b565b6060600480546102f790610ce1565b6000338161050782866105b3565b90508381101561056c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6103ad82868684036106b1565b60003361038881858561084f565b61058f610657565b6001600160a01b03166000908152600660205260409020805460ff19166001179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6105e6610657565b6001600160a01b03811661064b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610563565b61065481610ab2565b50565b6005546001600160a01b031633146104e85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610563565b6001600160a01b0383166107135760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610563565b6001600160a01b0382166107745760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610563565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006107e184846105b3565b90506000198114610849578181101561083c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610563565b61084984848484036106b1565b50505050565b6001600160a01b0383166108b35760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610563565b6001600160a01b0382166109155760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610563565b6001600160a01b0383166000908152602081905260409020548181101561098d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610563565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610849565b6001600160a01b038216610a495760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610563565b8060026000828254610a5b9190610d31565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80356001600160a01b0381168114610b1b57600080fd5b919050565b600060208284031215610b3257600080fd5b610b3b82610b04565b9392505050565b600060208083528351808285015260005b81811015610b6f57858101830151858201604001528201610b53565b506000604082860101526040601f19601f8301168501019250505092915050565b60008060408385031215610ba357600080fd5b610bac83610b04565b946020939093013593505050565b600080600060608486031215610bcf57600080fd5b610bd884610b04565b9250610be660208501610b04565b9150604084013590509250925092565b60008083601f840112610c0857600080fd5b50813567ffffffffffffffff811115610c2057600080fd5b6020830191508360208260051b8501011115610c3b57600080fd5b9250929050565b60008060008060408587031215610c5857600080fd5b843567ffffffffffffffff80821115610c7057600080fd5b610c7c88838901610bf6565b90965094506020870135915080821115610c9557600080fd5b50610ca287828801610bf6565b95989497509550505050565b60008060408385031215610cc157600080fd5b610cca83610b04565b9150610cd860208401610b04565b90509250929050565b600181811c90821680610cf557607f821691505b602082108103610d1557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561038e5761038e610d1b565b634e487b7160e01b600052603260045260246000fd5b600060018201610d6c57610d6c610d1b565b506001019056fea2646970667358221220c80f3e126b60ecb18fcf1eba7d1ca6176c409e7c21adb36bc404cf2206b78c9764736f6c63430008110033", +} + +// FeralfileTokenABI is the input ABI used to generate the binding from. +// Deprecated: Use FeralfileTokenMetaData.ABI instead. +var FeralfileTokenABI = FeralfileTokenMetaData.ABI + +// FeralfileTokenBin is the compiled bytecode used for deploying new contracts. +// Deprecated: Use FeralfileTokenMetaData.Bin instead. +var FeralfileTokenBin = FeralfileTokenMetaData.Bin + +// DeployFeralfileToken deploys a new Ethereum contract, binding an instance of FeralfileToken to it. +func DeployFeralfileToken(auth *bind.TransactOpts, backend bind.ContractBackend, name_ string, symbol_ string) (common.Address, *types.Transaction, *FeralfileToken, error) { + parsed, err := FeralfileTokenMetaData.GetAbi() + if err != nil { + return common.Address{}, nil, nil, err + } + if parsed == nil { + return common.Address{}, nil, nil, errors.New("GetABI returned nil") + } + + address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(FeralfileTokenBin), backend, name_, symbol_) + if err != nil { + return common.Address{}, nil, nil, err + } + return address, tx, &FeralfileToken{FeralfileTokenCaller: FeralfileTokenCaller{contract: contract}, FeralfileTokenTransactor: FeralfileTokenTransactor{contract: contract}, FeralfileTokenFilterer: FeralfileTokenFilterer{contract: contract}}, nil +} + +// FeralfileToken is an auto generated Go binding around an Ethereum contract. +type FeralfileToken struct { + FeralfileTokenCaller // Read-only binding to the contract + FeralfileTokenTransactor // Write-only binding to the contract + FeralfileTokenFilterer // Log filterer for contract events +} + +// FeralfileTokenCaller is an auto generated read-only Go binding around an Ethereum contract. +type FeralfileTokenCaller struct { + contract *bind.BoundContract // Generic contract wrapper for the low level calls +} + +// FeralfileTokenTransactor is an auto generated write-only Go binding around an Ethereum contract. +type FeralfileTokenTransactor struct { + contract *bind.BoundContract // Generic contract wrapper for the low level calls +} + +// FeralfileTokenFilterer is an auto generated log filtering Go binding around an Ethereum contract events. +type FeralfileTokenFilterer struct { + contract *bind.BoundContract // Generic contract wrapper for the low level calls +} + +// FeralfileTokenSession is an auto generated Go binding around an Ethereum contract, +// with pre-set call and transact options. +type FeralfileTokenSession struct { + Contract *FeralfileToken // Generic contract binding to set the session for + CallOpts bind.CallOpts // Call options to use throughout this session + TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session +} + +// FeralfileTokenCallerSession is an auto generated read-only Go binding around an Ethereum contract, +// with pre-set call options. +type FeralfileTokenCallerSession struct { + Contract *FeralfileTokenCaller // Generic contract caller binding to set the session for + CallOpts bind.CallOpts // Call options to use throughout this session +} + +// FeralfileTokenTransactorSession is an auto generated write-only Go binding around an Ethereum contract, +// with pre-set transact options. +type FeralfileTokenTransactorSession struct { + Contract *FeralfileTokenTransactor // Generic contract transactor binding to set the session for + TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session +} + +// FeralfileTokenRaw is an auto generated low-level Go binding around an Ethereum contract. +type FeralfileTokenRaw struct { + Contract *FeralfileToken // Generic contract binding to access the raw methods on +} + +// FeralfileTokenCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. +type FeralfileTokenCallerRaw struct { + Contract *FeralfileTokenCaller // Generic read-only contract binding to access the raw methods on +} + +// FeralfileTokenTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. +type FeralfileTokenTransactorRaw struct { + Contract *FeralfileTokenTransactor // Generic write-only contract binding to access the raw methods on +} + +// NewFeralfileToken creates a new instance of FeralfileToken, bound to a specific deployed contract. +func NewFeralfileToken(address common.Address, backend bind.ContractBackend) (*FeralfileToken, error) { + contract, err := bindFeralfileToken(address, backend, backend, backend) + if err != nil { + return nil, err + } + return &FeralfileToken{FeralfileTokenCaller: FeralfileTokenCaller{contract: contract}, FeralfileTokenTransactor: FeralfileTokenTransactor{contract: contract}, FeralfileTokenFilterer: FeralfileTokenFilterer{contract: contract}}, nil +} + +// NewFeralfileTokenCaller creates a new read-only instance of FeralfileToken, bound to a specific deployed contract. +func NewFeralfileTokenCaller(address common.Address, caller bind.ContractCaller) (*FeralfileTokenCaller, error) { + contract, err := bindFeralfileToken(address, caller, nil, nil) + if err != nil { + return nil, err + } + return &FeralfileTokenCaller{contract: contract}, nil +} + +// NewFeralfileTokenTransactor creates a new write-only instance of FeralfileToken, bound to a specific deployed contract. +func NewFeralfileTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*FeralfileTokenTransactor, error) { + contract, err := bindFeralfileToken(address, nil, transactor, nil) + if err != nil { + return nil, err + } + return &FeralfileTokenTransactor{contract: contract}, nil +} + +// NewFeralfileTokenFilterer creates a new log filterer instance of FeralfileToken, bound to a specific deployed contract. +func NewFeralfileTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*FeralfileTokenFilterer, error) { + contract, err := bindFeralfileToken(address, nil, nil, filterer) + if err != nil { + return nil, err + } + return &FeralfileTokenFilterer{contract: contract}, nil +} + +// bindFeralfileToken binds a generic wrapper to an already deployed contract. +func bindFeralfileToken(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { + parsed, err := FeralfileTokenMetaData.GetAbi() + if err != nil { + return nil, err + } + return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil +} + +// Call invokes the (constant) contract method with params as input values and +// sets the output to result. The result type might be a single field for simple +// returns, a slice of interfaces for anonymous returns and a struct for named +// returns. +func (_FeralfileToken *FeralfileTokenRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _FeralfileToken.Contract.FeralfileTokenCaller.contract.Call(opts, result, method, params...) +} + +// Transfer initiates a plain transaction to move funds to the contract, calling +// its default method if one is available. +func (_FeralfileToken *FeralfileTokenRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _FeralfileToken.Contract.FeralfileTokenTransactor.contract.Transfer(opts) +} + +// Transact invokes the (paid) contract method with params as input values. +func (_FeralfileToken *FeralfileTokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _FeralfileToken.Contract.FeralfileTokenTransactor.contract.Transact(opts, method, params...) +} + +// Call invokes the (constant) contract method with params as input values and +// sets the output to result. The result type might be a single field for simple +// returns, a slice of interfaces for anonymous returns and a struct for named +// returns. +func (_FeralfileToken *FeralfileTokenCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _FeralfileToken.Contract.contract.Call(opts, result, method, params...) +} + +// Transfer initiates a plain transaction to move funds to the contract, calling +// its default method if one is available. +func (_FeralfileToken *FeralfileTokenTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _FeralfileToken.Contract.contract.Transfer(opts) +} + +// Transact invokes the (paid) contract method with params as input values. +func (_FeralfileToken *FeralfileTokenTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _FeralfileToken.Contract.contract.Transact(opts, method, params...) +} + +// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. +// +// Solidity: function allowance(address owner, address spender) view returns(uint256) +func (_FeralfileToken *FeralfileTokenCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) { + var out []interface{} + err := _FeralfileToken.contract.Call(opts, &out, "allowance", owner, spender) + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. +// +// Solidity: function allowance(address owner, address spender) view returns(uint256) +func (_FeralfileToken *FeralfileTokenSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { + return _FeralfileToken.Contract.Allowance(&_FeralfileToken.CallOpts, owner, spender) +} + +// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. +// +// Solidity: function allowance(address owner, address spender) view returns(uint256) +func (_FeralfileToken *FeralfileTokenCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { + return _FeralfileToken.Contract.Allowance(&_FeralfileToken.CallOpts, owner, spender) +} + +// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. +// +// Solidity: function balanceOf(address account) view returns(uint256) +func (_FeralfileToken *FeralfileTokenCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error) { + var out []interface{} + err := _FeralfileToken.contract.Call(opts, &out, "balanceOf", account) + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. +// +// Solidity: function balanceOf(address account) view returns(uint256) +func (_FeralfileToken *FeralfileTokenSession) BalanceOf(account common.Address) (*big.Int, error) { + return _FeralfileToken.Contract.BalanceOf(&_FeralfileToken.CallOpts, account) +} + +// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. +// +// Solidity: function balanceOf(address account) view returns(uint256) +func (_FeralfileToken *FeralfileTokenCallerSession) BalanceOf(account common.Address) (*big.Int, error) { + return _FeralfileToken.Contract.BalanceOf(&_FeralfileToken.CallOpts, account) +} + +// Decimals is a free data retrieval call binding the contract method 0x313ce567. +// +// Solidity: function decimals() view returns(uint8) +func (_FeralfileToken *FeralfileTokenCaller) Decimals(opts *bind.CallOpts) (uint8, error) { + var out []interface{} + err := _FeralfileToken.contract.Call(opts, &out, "decimals") + + if err != nil { + return *new(uint8), err + } + + out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8) + + return out0, err + +} + +// Decimals is a free data retrieval call binding the contract method 0x313ce567. +// +// Solidity: function decimals() view returns(uint8) +func (_FeralfileToken *FeralfileTokenSession) Decimals() (uint8, error) { + return _FeralfileToken.Contract.Decimals(&_FeralfileToken.CallOpts) +} + +// Decimals is a free data retrieval call binding the contract method 0x313ce567. +// +// Solidity: function decimals() view returns(uint8) +func (_FeralfileToken *FeralfileTokenCallerSession) Decimals() (uint8, error) { + return _FeralfileToken.Contract.Decimals(&_FeralfileToken.CallOpts) +} + +// Name is a free data retrieval call binding the contract method 0x06fdde03. +// +// Solidity: function name() view returns(string) +func (_FeralfileToken *FeralfileTokenCaller) Name(opts *bind.CallOpts) (string, error) { + var out []interface{} + err := _FeralfileToken.contract.Call(opts, &out, "name") + + if err != nil { + return *new(string), err + } + + out0 := *abi.ConvertType(out[0], new(string)).(*string) + + return out0, err + +} + +// Name is a free data retrieval call binding the contract method 0x06fdde03. +// +// Solidity: function name() view returns(string) +func (_FeralfileToken *FeralfileTokenSession) Name() (string, error) { + return _FeralfileToken.Contract.Name(&_FeralfileToken.CallOpts) +} + +// Name is a free data retrieval call binding the contract method 0x06fdde03. +// +// Solidity: function name() view returns(string) +func (_FeralfileToken *FeralfileTokenCallerSession) Name() (string, error) { + return _FeralfileToken.Contract.Name(&_FeralfileToken.CallOpts) +} + +// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. +// +// Solidity: function owner() view returns(address) +func (_FeralfileToken *FeralfileTokenCaller) Owner(opts *bind.CallOpts) (common.Address, error) { + var out []interface{} + err := _FeralfileToken.contract.Call(opts, &out, "owner") + + if err != nil { + return *new(common.Address), err + } + + out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) + + return out0, err + +} + +// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. +// +// Solidity: function owner() view returns(address) +func (_FeralfileToken *FeralfileTokenSession) Owner() (common.Address, error) { + return _FeralfileToken.Contract.Owner(&_FeralfileToken.CallOpts) +} + +// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. +// +// Solidity: function owner() view returns(address) +func (_FeralfileToken *FeralfileTokenCallerSession) Owner() (common.Address, error) { + return _FeralfileToken.Contract.Owner(&_FeralfileToken.CallOpts) +} + +// Symbol is a free data retrieval call binding the contract method 0x95d89b41. +// +// Solidity: function symbol() view returns(string) +func (_FeralfileToken *FeralfileTokenCaller) Symbol(opts *bind.CallOpts) (string, error) { + var out []interface{} + err := _FeralfileToken.contract.Call(opts, &out, "symbol") + + if err != nil { + return *new(string), err + } + + out0 := *abi.ConvertType(out[0], new(string)).(*string) + + return out0, err + +} + +// Symbol is a free data retrieval call binding the contract method 0x95d89b41. +// +// Solidity: function symbol() view returns(string) +func (_FeralfileToken *FeralfileTokenSession) Symbol() (string, error) { + return _FeralfileToken.Contract.Symbol(&_FeralfileToken.CallOpts) +} + +// Symbol is a free data retrieval call binding the contract method 0x95d89b41. +// +// Solidity: function symbol() view returns(string) +func (_FeralfileToken *FeralfileTokenCallerSession) Symbol() (string, error) { + return _FeralfileToken.Contract.Symbol(&_FeralfileToken.CallOpts) +} + +// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. +// +// Solidity: function totalSupply() view returns(uint256) +func (_FeralfileToken *FeralfileTokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { + var out []interface{} + err := _FeralfileToken.contract.Call(opts, &out, "totalSupply") + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. +// +// Solidity: function totalSupply() view returns(uint256) +func (_FeralfileToken *FeralfileTokenSession) TotalSupply() (*big.Int, error) { + return _FeralfileToken.Contract.TotalSupply(&_FeralfileToken.CallOpts) +} + +// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. +// +// Solidity: function totalSupply() view returns(uint256) +func (_FeralfileToken *FeralfileTokenCallerSession) TotalSupply() (*big.Int, error) { + return _FeralfileToken.Contract.TotalSupply(&_FeralfileToken.CallOpts) +} + +// Trustees is a free data retrieval call binding the contract method 0xeee608a4. +// +// Solidity: function trustees(address ) view returns(bool) +func (_FeralfileToken *FeralfileTokenCaller) Trustees(opts *bind.CallOpts, arg0 common.Address) (bool, error) { + var out []interface{} + err := _FeralfileToken.contract.Call(opts, &out, "trustees", arg0) + + if err != nil { + return *new(bool), err + } + + out0 := *abi.ConvertType(out[0], new(bool)).(*bool) + + return out0, err + +} + +// Trustees is a free data retrieval call binding the contract method 0xeee608a4. +// +// Solidity: function trustees(address ) view returns(bool) +func (_FeralfileToken *FeralfileTokenSession) Trustees(arg0 common.Address) (bool, error) { + return _FeralfileToken.Contract.Trustees(&_FeralfileToken.CallOpts, arg0) +} + +// Trustees is a free data retrieval call binding the contract method 0xeee608a4. +// +// Solidity: function trustees(address ) view returns(bool) +func (_FeralfileToken *FeralfileTokenCallerSession) Trustees(arg0 common.Address) (bool, error) { + return _FeralfileToken.Contract.Trustees(&_FeralfileToken.CallOpts, arg0) +} + +// AddTrustee is a paid mutator transaction binding the contract method 0xdc78ac1c. +// +// Solidity: function addTrustee(address _trustee) returns() +func (_FeralfileToken *FeralfileTokenTransactor) AddTrustee(opts *bind.TransactOpts, _trustee common.Address) (*types.Transaction, error) { + return _FeralfileToken.contract.Transact(opts, "addTrustee", _trustee) +} + +// AddTrustee is a paid mutator transaction binding the contract method 0xdc78ac1c. +// +// Solidity: function addTrustee(address _trustee) returns() +func (_FeralfileToken *FeralfileTokenSession) AddTrustee(_trustee common.Address) (*types.Transaction, error) { + return _FeralfileToken.Contract.AddTrustee(&_FeralfileToken.TransactOpts, _trustee) +} + +// AddTrustee is a paid mutator transaction binding the contract method 0xdc78ac1c. +// +// Solidity: function addTrustee(address _trustee) returns() +func (_FeralfileToken *FeralfileTokenTransactorSession) AddTrustee(_trustee common.Address) (*types.Transaction, error) { + return _FeralfileToken.Contract.AddTrustee(&_FeralfileToken.TransactOpts, _trustee) +} + +// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. +// +// Solidity: function approve(address spender, uint256 amount) returns(bool) +func (_FeralfileToken *FeralfileTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) { + return _FeralfileToken.contract.Transact(opts, "approve", spender, amount) +} + +// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. +// +// Solidity: function approve(address spender, uint256 amount) returns(bool) +func (_FeralfileToken *FeralfileTokenSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { + return _FeralfileToken.Contract.Approve(&_FeralfileToken.TransactOpts, spender, amount) +} + +// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. +// +// Solidity: function approve(address spender, uint256 amount) returns(bool) +func (_FeralfileToken *FeralfileTokenTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { + return _FeralfileToken.Contract.Approve(&_FeralfileToken.TransactOpts, spender, amount) +} + +// BatchMint is a paid mutator transaction binding the contract method 0x68573107. +// +// Solidity: function batchMint(address[] owners, uint256[] amounts) returns() +func (_FeralfileToken *FeralfileTokenTransactor) BatchMint(opts *bind.TransactOpts, owners []common.Address, amounts []*big.Int) (*types.Transaction, error) { + return _FeralfileToken.contract.Transact(opts, "batchMint", owners, amounts) +} + +// BatchMint is a paid mutator transaction binding the contract method 0x68573107. +// +// Solidity: function batchMint(address[] owners, uint256[] amounts) returns() +func (_FeralfileToken *FeralfileTokenSession) BatchMint(owners []common.Address, amounts []*big.Int) (*types.Transaction, error) { + return _FeralfileToken.Contract.BatchMint(&_FeralfileToken.TransactOpts, owners, amounts) +} + +// BatchMint is a paid mutator transaction binding the contract method 0x68573107. +// +// Solidity: function batchMint(address[] owners, uint256[] amounts) returns() +func (_FeralfileToken *FeralfileTokenTransactorSession) BatchMint(owners []common.Address, amounts []*big.Int) (*types.Transaction, error) { + return _FeralfileToken.Contract.BatchMint(&_FeralfileToken.TransactOpts, owners, amounts) +} + +// DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. +// +// Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) +func (_FeralfileToken *FeralfileTokenTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { + return _FeralfileToken.contract.Transact(opts, "decreaseAllowance", spender, subtractedValue) +} + +// DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. +// +// Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) +func (_FeralfileToken *FeralfileTokenSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { + return _FeralfileToken.Contract.DecreaseAllowance(&_FeralfileToken.TransactOpts, spender, subtractedValue) +} + +// DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. +// +// Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) +func (_FeralfileToken *FeralfileTokenTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { + return _FeralfileToken.Contract.DecreaseAllowance(&_FeralfileToken.TransactOpts, spender, subtractedValue) +} + +// IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. +// +// Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) +func (_FeralfileToken *FeralfileTokenTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error) { + return _FeralfileToken.contract.Transact(opts, "increaseAllowance", spender, addedValue) +} + +// IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. +// +// Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) +func (_FeralfileToken *FeralfileTokenSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) { + return _FeralfileToken.Contract.IncreaseAllowance(&_FeralfileToken.TransactOpts, spender, addedValue) +} + +// IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. +// +// Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) +func (_FeralfileToken *FeralfileTokenTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) { + return _FeralfileToken.Contract.IncreaseAllowance(&_FeralfileToken.TransactOpts, spender, addedValue) +} + +// Mint is a paid mutator transaction binding the contract method 0x40c10f19. +// +// Solidity: function mint(address owner, uint256 amount) returns() +func (_FeralfileToken *FeralfileTokenTransactor) Mint(opts *bind.TransactOpts, owner common.Address, amount *big.Int) (*types.Transaction, error) { + return _FeralfileToken.contract.Transact(opts, "mint", owner, amount) +} + +// Mint is a paid mutator transaction binding the contract method 0x40c10f19. +// +// Solidity: function mint(address owner, uint256 amount) returns() +func (_FeralfileToken *FeralfileTokenSession) Mint(owner common.Address, amount *big.Int) (*types.Transaction, error) { + return _FeralfileToken.Contract.Mint(&_FeralfileToken.TransactOpts, owner, amount) +} + +// Mint is a paid mutator transaction binding the contract method 0x40c10f19. +// +// Solidity: function mint(address owner, uint256 amount) returns() +func (_FeralfileToken *FeralfileTokenTransactorSession) Mint(owner common.Address, amount *big.Int) (*types.Transaction, error) { + return _FeralfileToken.Contract.Mint(&_FeralfileToken.TransactOpts, owner, amount) +} + +// RemoveTrustee is a paid mutator transaction binding the contract method 0x03120506. +// +// Solidity: function removeTrustee(address _trustee) returns() +func (_FeralfileToken *FeralfileTokenTransactor) RemoveTrustee(opts *bind.TransactOpts, _trustee common.Address) (*types.Transaction, error) { + return _FeralfileToken.contract.Transact(opts, "removeTrustee", _trustee) +} + +// RemoveTrustee is a paid mutator transaction binding the contract method 0x03120506. +// +// Solidity: function removeTrustee(address _trustee) returns() +func (_FeralfileToken *FeralfileTokenSession) RemoveTrustee(_trustee common.Address) (*types.Transaction, error) { + return _FeralfileToken.Contract.RemoveTrustee(&_FeralfileToken.TransactOpts, _trustee) +} + +// RemoveTrustee is a paid mutator transaction binding the contract method 0x03120506. +// +// Solidity: function removeTrustee(address _trustee) returns() +func (_FeralfileToken *FeralfileTokenTransactorSession) RemoveTrustee(_trustee common.Address) (*types.Transaction, error) { + return _FeralfileToken.Contract.RemoveTrustee(&_FeralfileToken.TransactOpts, _trustee) +} + +// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. +// +// Solidity: function renounceOwnership() returns() +func (_FeralfileToken *FeralfileTokenTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { + return _FeralfileToken.contract.Transact(opts, "renounceOwnership") +} + +// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. +// +// Solidity: function renounceOwnership() returns() +func (_FeralfileToken *FeralfileTokenSession) RenounceOwnership() (*types.Transaction, error) { + return _FeralfileToken.Contract.RenounceOwnership(&_FeralfileToken.TransactOpts) +} + +// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. +// +// Solidity: function renounceOwnership() returns() +func (_FeralfileToken *FeralfileTokenTransactorSession) RenounceOwnership() (*types.Transaction, error) { + return _FeralfileToken.Contract.RenounceOwnership(&_FeralfileToken.TransactOpts) +} + +// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. +// +// Solidity: function transfer(address to, uint256 amount) returns(bool) +func (_FeralfileToken *FeralfileTokenTransactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error) { + return _FeralfileToken.contract.Transact(opts, "transfer", to, amount) +} + +// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. +// +// Solidity: function transfer(address to, uint256 amount) returns(bool) +func (_FeralfileToken *FeralfileTokenSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { + return _FeralfileToken.Contract.Transfer(&_FeralfileToken.TransactOpts, to, amount) +} + +// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. +// +// Solidity: function transfer(address to, uint256 amount) returns(bool) +func (_FeralfileToken *FeralfileTokenTransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { + return _FeralfileToken.Contract.Transfer(&_FeralfileToken.TransactOpts, to, amount) +} + +// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. +// +// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) +func (_FeralfileToken *FeralfileTokenTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { + return _FeralfileToken.contract.Transact(opts, "transferFrom", from, to, amount) +} + +// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. +// +// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) +func (_FeralfileToken *FeralfileTokenSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { + return _FeralfileToken.Contract.TransferFrom(&_FeralfileToken.TransactOpts, from, to, amount) +} + +// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. +// +// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) +func (_FeralfileToken *FeralfileTokenTransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { + return _FeralfileToken.Contract.TransferFrom(&_FeralfileToken.TransactOpts, from, to, amount) +} + +// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. +// +// Solidity: function transferOwnership(address newOwner) returns() +func (_FeralfileToken *FeralfileTokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) { + return _FeralfileToken.contract.Transact(opts, "transferOwnership", newOwner) +} + +// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. +// +// Solidity: function transferOwnership(address newOwner) returns() +func (_FeralfileToken *FeralfileTokenSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { + return _FeralfileToken.Contract.TransferOwnership(&_FeralfileToken.TransactOpts, newOwner) +} + +// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. +// +// Solidity: function transferOwnership(address newOwner) returns() +func (_FeralfileToken *FeralfileTokenTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { + return _FeralfileToken.Contract.TransferOwnership(&_FeralfileToken.TransactOpts, newOwner) +} + +// FeralfileTokenApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the FeralfileToken contract. +type FeralfileTokenApprovalIterator struct { + Event *FeralfileTokenApproval // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *FeralfileTokenApprovalIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(FeralfileTokenApproval) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(FeralfileTokenApproval) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *FeralfileTokenApprovalIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *FeralfileTokenApprovalIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// FeralfileTokenApproval represents a Approval event raised by the FeralfileToken contract. +type FeralfileTokenApproval struct { + Owner common.Address + Spender common.Address + Value *big.Int + Raw types.Log // Blockchain specific contextual infos +} + +// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. +// +// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) +func (_FeralfileToken *FeralfileTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*FeralfileTokenApprovalIterator, error) { + + var ownerRule []interface{} + for _, ownerItem := range owner { + ownerRule = append(ownerRule, ownerItem) + } + var spenderRule []interface{} + for _, spenderItem := range spender { + spenderRule = append(spenderRule, spenderItem) + } + + logs, sub, err := _FeralfileToken.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule) + if err != nil { + return nil, err + } + return &FeralfileTokenApprovalIterator{contract: _FeralfileToken.contract, event: "Approval", logs: logs, sub: sub}, nil +} + +// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. +// +// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) +func (_FeralfileToken *FeralfileTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *FeralfileTokenApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) { + + var ownerRule []interface{} + for _, ownerItem := range owner { + ownerRule = append(ownerRule, ownerItem) + } + var spenderRule []interface{} + for _, spenderItem := range spender { + spenderRule = append(spenderRule, spenderItem) + } + + logs, sub, err := _FeralfileToken.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(FeralfileTokenApproval) + if err := _FeralfileToken.contract.UnpackLog(event, "Approval", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. +// +// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) +func (_FeralfileToken *FeralfileTokenFilterer) ParseApproval(log types.Log) (*FeralfileTokenApproval, error) { + event := new(FeralfileTokenApproval) + if err := _FeralfileToken.contract.UnpackLog(event, "Approval", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// FeralfileTokenOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the FeralfileToken contract. +type FeralfileTokenOwnershipTransferredIterator struct { + Event *FeralfileTokenOwnershipTransferred // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *FeralfileTokenOwnershipTransferredIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(FeralfileTokenOwnershipTransferred) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(FeralfileTokenOwnershipTransferred) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *FeralfileTokenOwnershipTransferredIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *FeralfileTokenOwnershipTransferredIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// FeralfileTokenOwnershipTransferred represents a OwnershipTransferred event raised by the FeralfileToken contract. +type FeralfileTokenOwnershipTransferred struct { + PreviousOwner common.Address + NewOwner common.Address + Raw types.Log // Blockchain specific contextual infos +} + +// FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. +// +// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) +func (_FeralfileToken *FeralfileTokenFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*FeralfileTokenOwnershipTransferredIterator, error) { + + var previousOwnerRule []interface{} + for _, previousOwnerItem := range previousOwner { + previousOwnerRule = append(previousOwnerRule, previousOwnerItem) + } + var newOwnerRule []interface{} + for _, newOwnerItem := range newOwner { + newOwnerRule = append(newOwnerRule, newOwnerItem) + } + + logs, sub, err := _FeralfileToken.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) + if err != nil { + return nil, err + } + return &FeralfileTokenOwnershipTransferredIterator{contract: _FeralfileToken.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil +} + +// WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. +// +// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) +func (_FeralfileToken *FeralfileTokenFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *FeralfileTokenOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { + + var previousOwnerRule []interface{} + for _, previousOwnerItem := range previousOwner { + previousOwnerRule = append(previousOwnerRule, previousOwnerItem) + } + var newOwnerRule []interface{} + for _, newOwnerItem := range newOwner { + newOwnerRule = append(newOwnerRule, newOwnerItem) + } + + logs, sub, err := _FeralfileToken.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(FeralfileTokenOwnershipTransferred) + if err := _FeralfileToken.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. +// +// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) +func (_FeralfileToken *FeralfileTokenFilterer) ParseOwnershipTransferred(log types.Log) (*FeralfileTokenOwnershipTransferred, error) { + event := new(FeralfileTokenOwnershipTransferred) + if err := _FeralfileToken.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// FeralfileTokenTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the FeralfileToken contract. +type FeralfileTokenTransferIterator struct { + Event *FeralfileTokenTransfer // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *FeralfileTokenTransferIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(FeralfileTokenTransfer) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(FeralfileTokenTransfer) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *FeralfileTokenTransferIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *FeralfileTokenTransferIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// FeralfileTokenTransfer represents a Transfer event raised by the FeralfileToken contract. +type FeralfileTokenTransfer struct { + From common.Address + To common.Address + Value *big.Int + Raw types.Log // Blockchain specific contextual infos +} + +// FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. +// +// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) +func (_FeralfileToken *FeralfileTokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*FeralfileTokenTransferIterator, error) { + + var fromRule []interface{} + for _, fromItem := range from { + fromRule = append(fromRule, fromItem) + } + var toRule []interface{} + for _, toItem := range to { + toRule = append(toRule, toItem) + } + + logs, sub, err := _FeralfileToken.contract.FilterLogs(opts, "Transfer", fromRule, toRule) + if err != nil { + return nil, err + } + return &FeralfileTokenTransferIterator{contract: _FeralfileToken.contract, event: "Transfer", logs: logs, sub: sub}, nil +} + +// WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. +// +// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) +func (_FeralfileToken *FeralfileTokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *FeralfileTokenTransfer, from []common.Address, to []common.Address) (event.Subscription, error) { + + var fromRule []interface{} + for _, fromItem := range from { + fromRule = append(fromRule, fromItem) + } + var toRule []interface{} + for _, toItem := range to { + toRule = append(toRule, toItem) + } + + logs, sub, err := _FeralfileToken.contract.WatchLogs(opts, "Transfer", fromRule, toRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(FeralfileTokenTransfer) + if err := _FeralfileToken.contract.UnpackLog(event, "Transfer", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. +// +// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) +func (_FeralfileToken *FeralfileTokenFilterer) ParseTransfer(log types.Log) (*FeralfileTokenTransfer, error) { + event := new(FeralfileTokenTransfer) + if err := _FeralfileToken.contract.UnpackLog(event, "Transfer", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} From 5b9dfc75e96daf7f8423515dfe9625fa70c5791d Mon Sep 17 00:00:00 2001 From: hvthhien Date: Thu, 23 May 2024 15:32:15 +0700 Subject: [PATCH 07/17] update contract --- contracts/FeralfileArtworkV4_2.sol | 150 ++++++++++++++++++++++++++--- test/feralfile_exhibition_v4_2.js | 19 ---- 2 files changed, 139 insertions(+), 30 deletions(-) diff --git a/contracts/FeralfileArtworkV4_2.sol b/contracts/FeralfileArtworkV4_2.sol index 07d76fe..d83420a 100644 --- a/contracts/FeralfileArtworkV4_2.sol +++ b/contracts/FeralfileArtworkV4_2.sol @@ -2,12 +2,30 @@ pragma solidity ^0.8.13; import { FeralfileExhibitionV4_1 } from "./FeralfileArtworkV4_1.sol"; +import { Base64 } from "@openzeppelin/contracts/utils/Base64.sol"; contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { - error ArtworkEditionNotFound(); + error TokenIDNotFound(); + error MintNotEnabled(); - mapping(uint256 => string) public artworkParameters; // artworkEditionID => parameters as string + struct TokenInfo { + string thumbnail; + bytes parameters; + } + + struct MintDataWithIndex { + uint256 seriesId; + uint256 tokenId; + address owner; + uint256 tokenIndex; + } + + mapping(uint256 => TokenInfo) public _tokenInfos; // tokenID => tokenInfo + mapping(uint256 => uint256) public _tokenIndexes; // tokenID => tokenIndex + + string public tokenPlaceholderURL; + string public tokenPlaceholderThubmnail; constructor( string memory name_, @@ -34,27 +52,137 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { seriesMaxSupplies_ ) {} + + /// @notice Mint new collection of Artwork + /// @dev the function iterates over the array of MintDataWithIndex to call the internal function mintArtworksWithIndex + /// @param data an array of MintDataWithIndex + function mintArtworksWithIndex( + MintDataWithIndex[] calldata data + ) external onlyAuthorized { + if (!mintable) { + revert MintNotEnabled(); + } + + for (uint256 i = 0; i < data.length; i++) { + _tokenIndexes[data[i].tokenId] = data[i].tokenIndex; + _mintArtwork(data[i].seriesId, data[i].tokenId, data[i].owner); + } + } /// @notice Update the parameters of an edition to a new value - function updateArtworkParameters(uint256 tokenId, string calldata parameters) + function updateArtworkParameters(uint256 tokenId, string calldata thumbnail, bytes calldata parameters) external onlyAuthorized { if (!_exists(tokenId)) { - revert ArtworkEditionNotFound(); + revert TokenIDNotFound(); } - artworkParameters[tokenId] = parameters; + _tokenInfos[tokenId] = TokenInfo(thumbnail, parameters); + } + + /// @notice _buildArtworkData returns an object of artwork which would push to the actually artwork + /// @param parameters - the parameters for building artwork data + function _buildArtworkData(bytes memory parameters) + private + pure + returns (string memory) + { + return Base64.encode(parameters); } - /// @notice Get the parameters of an edition - function getArtworkParameters( - uint256 tokenId - ) public view virtual returns (string memory) { + /// @notice _buildPreviewURL returns the preview url + /// @param parameters - the token paramters + function _buildPreviewURL(bytes memory parameters) + private + view + returns (string memory) + { + if (parameters.length == 0) { + return tokenPlaceholderURL; + } + + return _buildIframe(_buildArtworkData(parameters), tokenBaseURI); + } + + /// @notice _buildThumbnailURL returns the preview url + /// @param thumbnail - the token thumbnail + function _buildThumbnailURL(string memory thumbnail) + private + view + returns (string memory) + { + if (bytes(thumbnail).length == 0) { + return tokenPlaceholderThubmnail; + } + + return thumbnail; + } + + /// @notice _buildIframe returns a base64 encoded data for ff-frame + /// @param artworkData - the artwork data which would bring into the artwork + /// @param iframeURI - the artwork URL to be loaded into the iframe + function _buildIframe(string memory artworkData, string memory iframeURI) + private + pure + returns (string memory) + { + return + Base64.encode( + abi.encodePacked( + "", + "", + " " + ) + ); + } + + /// @notice _buildDataURL returns a base64 encoded data for ff-frame + /// @param tokenID - the token ID for building artwork data + function _buildDataURL(uint256 tokenID) private view returns (string memory) { + TokenInfo memory tokenInfo = _tokenInfos[tokenID]; + uint256 tokenIndex = _tokenIndexes[tokenID]; + + string memory tokenName = string( + abi.encodePacked(name(), " #", tokenIndex+1) + ); + + string memory json = string( + abi.encodePacked( + "{\"name\":\"", tokenName, + "\", \"external_url\":\"https://feralfile.com\", \"image\":\"", _buildThumbnailURL(tokenInfo.thumbnail), + "\", \"animation_url\":\"data:text/html;base64,", _buildPreviewURL(tokenInfo.parameters), + "\"}" + ) + ); + + return string( + abi.encodePacked( + "data:application/json;base64,", Base64.encode(bytes(json)) + ) + ); + } + + /// @notice A distinct Uniform Resource Identifier (URI) for a given asset. + function tokenURI(uint256 tokenId) + public + view + virtual + override + returns (string memory) + { if (!_exists(tokenId)) { - revert ArtworkEditionNotFound(); + revert TokenIDNotFound(); } - return artworkParameters[tokenId]; + return _buildDataURL(tokenId); } } diff --git a/test/feralfile_exhibition_v4_2.js b/test/feralfile_exhibition_v4_2.js index e90ffd7..dda8056 100644 --- a/test/feralfile_exhibition_v4_2.js +++ b/test/feralfile_exhibition_v4_2.js @@ -1191,23 +1191,4 @@ contract("FeralfileExhibitionV4_2", async (accounts) => { assert.fail(); } }); - - it("test update artwork metadata", async function () { - const contract = this.contracts[10]; - - // 1. Prepare data - const owner = accounts[1]; - const tokenId1 = this.seriesIds[0] * 1000000 + 0; - let mintData = [ - [this.seriesIds[0], tokenId1, owner], - ]; - await contract.mintArtworks(mintData); - - // 2. Update artwork parameters - const parameters = "ramdomestringparameters"; - await contract.updateArtworkParameters(tokenId1, parameters) - - const tokenParams = await contract.ownerOf(tokenID1); - assert.equal(tokenParams, parameters); - }); }); From 3dc7fbc68b7b8c5392e0caa92310de76f85ecf0a Mon Sep 17 00:00:00 2001 From: hvthhien Date: Thu, 23 May 2024 16:05:27 +0700 Subject: [PATCH 08/17] udpate rename --- contracts/FeralfileArtworkV4_2.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/FeralfileArtworkV4_2.sol b/contracts/FeralfileArtworkV4_2.sol index d83420a..41e47eb 100644 --- a/contracts/FeralfileArtworkV4_2.sol +++ b/contracts/FeralfileArtworkV4_2.sol @@ -69,8 +69,8 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { } } - /// @notice Update the parameters of an edition to a new value - function updateArtworkParameters(uint256 tokenId, string calldata thumbnail, bytes calldata parameters) + /// @notice Update the thumbnail & parameters of an edition to a new value + function updateTokenInformation(uint256 tokenId, string calldata thumbnail, bytes calldata parameters) external onlyAuthorized { From b680aeb5ab23751bc34f1351b7d72ba8e3a09911 Mon Sep 17 00:00:00 2001 From: hvthhien Date: Thu, 23 May 2024 17:37:08 +0700 Subject: [PATCH 09/17] refactor & update abi gen --- Makefile | 11 ++-- contracts/FeralfileArtworkV4_2.sol | 87 ++++++++++++++++-------------- 2 files changed, 54 insertions(+), 44 deletions(-) diff --git a/Makefile b/Makefile index 76e03e3..e6bfe71 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,7 @@ merge: sol-merger-check mkdir /tmp/sol-merger && mkdir ./contracts/sol-merger && \ sol-merger --export-plugin SPDXLicenseRemovePlugin ./contracts/FeralfileArtworkV2.sol /tmp/sol-merger && \ sol-merger --export-plugin SPDXLicenseRemovePlugin ./contracts/FeralfileArtworkV3.sol /tmp/sol-merger && \ + sol-merger --export-plugin SPDXLicenseRemovePlugin ./contracts/FeralfileArtworkV4_1.sol /tmp/sol-merger && \ sol-merger --export-plugin SPDXLicenseRemovePlugin ./contracts/FeralfileArtworkV4_2.sol /tmp/sol-merger && \ sol-merger --export-plugin SPDXLicenseRemovePlugin ./contracts/FeralfileEnglishAuction.sol /tmp/sol-merger && \ sol-merger --export-plugin SPDXLicenseRemovePlugin ./contracts/FeralFileAirdropV1.sol /tmp/sol-merger && \ @@ -28,7 +29,8 @@ merge: sol-merger-check sol-merger --export-plugin SPDXLicenseRemovePlugin ./contracts/FeralfileToken.sol /tmp/sol-merger && \ mv /tmp/sol-merger/FeralfileArtworkV2.sol ./contracts/sol-merger/FeralfileExhibitionV2.sol && \ mv /tmp/sol-merger/FeralfileArtworkV3.sol ./contracts/sol-merger/FeralfileExhibitionV3.sol && \ - mv /tmp/sol-merger/FeralfileArtworkV4_2.sol ./contracts/sol-merger/FeralfileExhibitionV4.sol && \ + mv /tmp/sol-merger/FeralfileArtworkV4_1.sol ./contracts/sol-merger/FeralfileExhibitionV4.sol && \ + mv /tmp/sol-merger/FeralfileArtworkV4_2.sol ./contracts/sol-merger/FeralfileExhibitionV4_2.sol && \ mv /tmp/sol-merger/FeralfileEnglishAuction.sol ./contracts/sol-merger/FeralfileEnglishAuction.sol && \ mv /tmp/sol-merger/FeralFileAirdropV1.sol ./contracts/sol-merger/FeralFileAirdropV1.sol && \ mv /tmp/sol-merger/OwnerData.sol ./contracts/sol-merger/OwnerData.sol && \ @@ -41,8 +43,10 @@ build-contract: check jq -r ".abi" build/contracts/FeralfileExhibitionV2.json > ./build/FeralfileExhibitionV2.abi && \ jq -r ".bytecode" build/contracts/FeralfileExhibitionV3.json > ./build/FeralfileExhibitionV3.bin && \ jq -r ".abi" build/contracts/FeralfileExhibitionV3.json > ./build/FeralfileExhibitionV3.abi && \ - jq -r ".bytecode" build/contracts/FeralfileExhibitionV4_2.json > ./build/FeralfileExhibitionV4.bin && \ - jq -r ".abi" build/contracts/FeralfileExhibitionV4_2.json > ./build/FeralfileExhibitionV4.abi && \ + jq -r ".bytecode" build/contracts/FeralfileExhibitionV4_1.json > ./build/FeralfileExhibitionV4.bin && \ + jq -r ".abi" build/contracts/FeralfileExhibitionV4_1.json > ./build/FeralfileExhibitionV4.abi && \ + jq -r ".bytecode" build/contracts/FeralfileExhibitionV4_2.json > ./build/FeralfileExhibitionV4_2.bin && \ + jq -r ".abi" build/contracts/FeralfileExhibitionV4_2.json > ./build/FeralfileExhibitionV4_2.abi && \ jq -r ".bytecode" build/contracts/FeralfileEnglishAuction.json > ./build/FeralfileEnglishAuction.bin && \ jq -r ".abi" build/contracts/FeralfileEnglishAuction.json > ./build/FeralfileEnglishAuction.abi && \ jq -r ".bytecode" build/contracts/FeralFileAirdropV1.json > ./build/FeralFileAirdropV1.bin && \ @@ -63,6 +67,7 @@ build: build-contract abigen --abi ./build/FeralfileExhibitionV2.abi --bin ./build/FeralfileExhibitionV2.bin --pkg feralfilev2 -type FeralfileExhibitionV2 --out ./go-binding/feralfile-exhibition-v2/abi.go abigen --abi ./build/FeralfileExhibitionV3.abi --bin ./build/FeralfileExhibitionV3.bin --pkg feralfilev3 -type FeralfileExhibitionV3 --out ./go-binding/feralfile-exhibition-v3/abi.go abigen --abi ./build/FeralfileExhibitionV4.abi --bin ./build/FeralfileExhibitionV4.bin --pkg feralfilev4 -type FeralfileExhibitionV4 --out ./go-binding/feralfile-exhibition-v4/abi.go + abigen --abi ./build/FeralfileExhibitionV4_2.abi --bin ./build/FeralfileExhibitionV4_2.bin --pkg feralfilev4_2 -type FeralfileExhibitionV4_2 --out ./go-binding/feralfile-exhibition-v4_2/abi.go abigen --abi ./build/FeralfileEnglishAuction.abi --bin ./build/FeralfileEnglishAuction.bin --pkg english_auction -type FeralfileEnglishAuction --out ./go-binding/feralfile-english-auction/abi.go abigen --abi ./build/FeralFileAirdropV1.abi --bin ./build/FeralFileAirdropV1.bin --pkg airdropv1 -type FeralFileAirdropV1 --out ./go-binding/feralfile-airdrop-v1/abi.go && \ abigen --abi ./build/OwnerData.abi --bin ./build/OwnerData.bin --pkg ownerdata -type OwnerData --out ./go-binding/owner-data/abi.go && \ diff --git a/contracts/FeralfileArtworkV4_2.sol b/contracts/FeralfileArtworkV4_2.sol index 41e47eb..4daa52c 100644 --- a/contracts/FeralfileArtworkV4_2.sol +++ b/contracts/FeralfileArtworkV4_2.sol @@ -8,9 +8,11 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { error TokenIDNotFound(); error MintNotEnabled(); + error FunctionNotSupported(); + error EmptyArtworkFileURI(); struct TokenInfo { - string thumbnail; + string imageURI; bytes parameters; } @@ -24,8 +26,10 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { mapping(uint256 => TokenInfo) public _tokenInfos; // tokenID => tokenInfo mapping(uint256 => uint256) public _tokenIndexes; // tokenID => tokenIndex - string public tokenPlaceholderURL; - string public tokenPlaceholderThubmnail; + string public tokenPlaceholderAnimationURI; + string public tokenPlaceholderImageURI; + + string public artworkFileURI; constructor( string memory name_, @@ -54,7 +58,7 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { {} /// @notice Mint new collection of Artwork - /// @dev the function iterates over the array of MintDataWithIndex to call the internal function mintArtworksWithIndex + /// @dev the function iterates over the array of MintDataWithIndex to call the internal function _mintArtwork /// @param data an array of MintDataWithIndex function mintArtworksWithIndex( MintDataWithIndex[] calldata data @@ -69,8 +73,13 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { } } - /// @notice Update the thumbnail & parameters of an edition to a new value - function updateTokenInformation(uint256 tokenId, string calldata thumbnail, bytes calldata parameters) + /// @notice overrdie revert mint new collection of Artwork + function mintArtworks(MintData[] calldata) external override view onlyAuthorized { + revert FunctionNotSupported(); + } + + /// @notice Update the imageURI & parameters of an edition to a new value + function updateTokenInformation(uint256 tokenId, string calldata imageURI, bytes calldata parameters) external onlyAuthorized { @@ -78,51 +87,51 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { revert TokenIDNotFound(); } - _tokenInfos[tokenId] = TokenInfo(thumbnail, parameters); + _tokenInfos[tokenId] = TokenInfo(imageURI, parameters); } - /// @notice _buildArtworkData returns an object of artwork which would push to the actually artwork - /// @param parameters - the parameters for building artwork data - function _buildArtworkData(bytes memory parameters) - private - pure - returns (string memory) - { - return Base64.encode(parameters); + + /// @notice Update the base URI for all tokens + function setArtworkFileURI(string memory fileURI) external virtual onlyOwner { + if (bytes(fileURI).length == 0) { + revert EmptyArtworkFileURI(); + } + + artworkFileURI = fileURI; } - /// @notice _buildPreviewURL returns the preview url + /// @notice _buildAnimationURI returns the animation url /// @param parameters - the token paramters - function _buildPreviewURL(bytes memory parameters) + function _buildAnimationURI(bytes memory parameters) private view returns (string memory) { if (parameters.length == 0) { - return tokenPlaceholderURL; + return tokenPlaceholderAnimationURI; } - return _buildIframe(_buildArtworkData(parameters), tokenBaseURI); + return _buildIframe(Base64.encode(parameters), artworkFileURI); } - /// @notice _buildThumbnailURL returns the preview url - /// @param thumbnail - the token thumbnail - function _buildThumbnailURL(string memory thumbnail) + /// @notice _buildImageURI returns the image url + /// @param imageURI - the token imageURI + function _buildImageURI(string memory imageURI) private view returns (string memory) { - if (bytes(thumbnail).length == 0) { - return tokenPlaceholderThubmnail; + if (bytes(imageURI).length == 0) { + return tokenPlaceholderImageURI; } - return thumbnail; + return imageURI; } /// @notice _buildIframe returns a base64 encoded data for ff-frame - /// @param artworkData - the artwork data which would bring into the artwork - /// @param iframeURI - the artwork URL to be loaded into the iframe - function _buildIframe(string memory artworkData, string memory iframeURI) + /// @param tokenParams - the paramteres which would bring into the artwork + /// @param artworkURI - the artwork file URI to be loaded into the iframe + function _buildIframe(string memory tokenParams, string memory artworkURI) private pure returns (string memory) @@ -130,17 +139,13 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { return Base64.encode( abi.encodePacked( - "", - "", - " " + "", + "", + "" ) ); } @@ -158,8 +163,8 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { string memory json = string( abi.encodePacked( "{\"name\":\"", tokenName, - "\", \"external_url\":\"https://feralfile.com\", \"image\":\"", _buildThumbnailURL(tokenInfo.thumbnail), - "\", \"animation_url\":\"data:text/html;base64,", _buildPreviewURL(tokenInfo.parameters), + "\", \"external_url\":\"https://feralfile.com\", \"image\":\"", _buildImageURI(tokenInfo.imageURI), + "\", \"animation_url\":\"data:text/html;base64,", _buildAnimationURI(tokenInfo.parameters), "\"}" ) ); From 9ea5f01c5249a9480b188e92dfc3caae680a858e Mon Sep 17 00:00:00 2001 From: hvthhien Date: Fri, 24 May 2024 08:54:24 +0700 Subject: [PATCH 10/17] update iframe html --- Makefile | 1 + contracts/FeralfileArtworkV4_2.sol | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e6bfe71..84aa25f 100644 --- a/Makefile +++ b/Makefile @@ -60,6 +60,7 @@ build: build-contract mkdir -p ./go-binding/feralfile-exhibition-v2 && \ mkdir -p ./go-binding/feralfile-exhibition-v3 && \ mkdir -p ./go-binding/feralfile-exhibition-v4 && \ + mkdir -p ./go-binding/feralfile-exhibition-v4_2 && \ mkdir -p ./go-binding/feralfile-english-auction && \ mkdir -p ./go-binding/feralfile-airdrop-v1 && \ mkdir -p ./go-binding/owner-data && \ diff --git a/contracts/FeralfileArtworkV4_2.sol b/contracts/FeralfileArtworkV4_2.sol index 4daa52c..b265930 100644 --- a/contracts/FeralfileArtworkV4_2.sol +++ b/contracts/FeralfileArtworkV4_2.sol @@ -142,7 +142,7 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { "", "", + ";let allowOrigins = {\"https://feralfile.com\": !0};function initData(){document.getElementById(\"mainframe\").contentWindow.postMessage(defaultArtworkData, \"*\");}", "" From 674aac36e9f07251f4023157a46b01d6ca370f33 Mon Sep 17 00:00:00 2001 From: hvthhien Date: Fri, 24 May 2024 09:57:31 +0700 Subject: [PATCH 11/17] update place holder uris functions --- contracts/FeralfileArtworkV4_2.sol | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/contracts/FeralfileArtworkV4_2.sol b/contracts/FeralfileArtworkV4_2.sol index b265930..86e363f 100644 --- a/contracts/FeralfileArtworkV4_2.sol +++ b/contracts/FeralfileArtworkV4_2.sol @@ -9,7 +9,7 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { error TokenIDNotFound(); error MintNotEnabled(); error FunctionNotSupported(); - error EmptyArtworkFileURI(); + error EmptyURI(); struct TokenInfo { string imageURI; @@ -92,12 +92,30 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { /// @notice Update the base URI for all tokens - function setArtworkFileURI(string memory fileURI) external virtual onlyOwner { - if (bytes(fileURI).length == 0) { - revert EmptyArtworkFileURI(); + function setArtworkFileURI(string calldata uri) external virtual onlyOwner { + if (bytes(uri).length == 0) { + revert EmptyURI(); } - artworkFileURI = fileURI; + artworkFileURI = uri; + } + + /// @notice Update tokenPlaceholderImageURI + function setTokenPlaceholderImageURI(string calldata uri) external virtual onlyOwner { + if (bytes(uri).length == 0) { + revert EmptyURI(); + } + + tokenPlaceholderImageURI = uri; + } + + /// @notice Update tokenPlaceholderAnimationURI + function setTokenPlaceholderAnimationURI(string calldata uri) external virtual onlyOwner { + if (bytes(uri).length == 0) { + revert EmptyURI(); + } + + tokenPlaceholderAnimationURI = uri; } /// @notice _buildAnimationURI returns the animation url From 86fc4506455a1289706f7af25925b1a90989a03c Mon Sep 17 00:00:00 2001 From: hvthhien Date: Fri, 24 May 2024 16:48:46 +0700 Subject: [PATCH 12/17] adjust animation url fallback placeholder value --- contracts/FeralfileArtworkV4_2.sol | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/contracts/FeralfileArtworkV4_2.sol b/contracts/FeralfileArtworkV4_2.sol index 86e363f..e3d10df 100644 --- a/contracts/FeralfileArtworkV4_2.sol +++ b/contracts/FeralfileArtworkV4_2.sol @@ -129,7 +129,12 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { return tokenPlaceholderAnimationURI; } - return _buildIframe(Base64.encode(parameters), artworkFileURI); + return string( + abi.encodePacked( + "data:text/html;base64,", + _buildIframe(Base64.encode(parameters), artworkFileURI) + ) + ); } /// @notice _buildImageURI returns the image url @@ -182,7 +187,7 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { abi.encodePacked( "{\"name\":\"", tokenName, "\", \"external_url\":\"https://feralfile.com\", \"image\":\"", _buildImageURI(tokenInfo.imageURI), - "\", \"animation_url\":\"data:text/html;base64,", _buildAnimationURI(tokenInfo.parameters), + "\", \"animation_url\":\"", _buildAnimationURI(tokenInfo.parameters), "\"}" ) ); From 15a83fea536ba3656574fd52f29e93f7b899b4d2 Mon Sep 17 00:00:00 2001 From: hvthhien Date: Tue, 28 May 2024 09:30:20 +0700 Subject: [PATCH 13/17] update token uri response format --- contracts/FeralfileArtworkV4_2.sol | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/contracts/FeralfileArtworkV4_2.sol b/contracts/FeralfileArtworkV4_2.sol index e3d10df..51addb9 100644 --- a/contracts/FeralfileArtworkV4_2.sol +++ b/contracts/FeralfileArtworkV4_2.sol @@ -1,8 +1,9 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.13; -import { FeralfileExhibitionV4_1 } from "./FeralfileArtworkV4_1.sol"; +import { Strings } from "@openzeppelin/contracts/utils/Strings.sol"; import { Base64 } from "@openzeppelin/contracts/utils/Base64.sol"; +import { FeralfileExhibitionV4_1 } from "./FeralfileArtworkV4_1.sol"; contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { @@ -163,9 +164,9 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { Base64.encode( abi.encodePacked( "", - "", + "\";let allowOrigins = {\"https://feralfile.com\": !0};function initData(){document.getElementById(\"mainframe\").contentWindow.postMessage(defaultArtworkData, \"*\");}", "" @@ -180,7 +181,7 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { uint256 tokenIndex = _tokenIndexes[tokenID]; string memory tokenName = string( - abi.encodePacked(name(), " #", tokenIndex+1) + abi.encodePacked(name(), " #", Strings.toString(tokenIndex + 1)) ); string memory json = string( From eae8c9ed2871c646e9b288e0be7b41ec6e7c2d9a Mon Sep 17 00:00:00 2001 From: hvthhien Date: Tue, 28 May 2024 17:05:12 +0700 Subject: [PATCH 14/17] update contract to mint & transfer erc20 token --- contracts/FeralfileArtworkV4_1.sol | 2 +- contracts/FeralfileArtworkV4_2.sol | 136 +++++++++++++++++++++++++++-- 2 files changed, 130 insertions(+), 8 deletions(-) diff --git a/contracts/FeralfileArtworkV4_1.sol b/contracts/FeralfileArtworkV4_1.sol index 1626783..19d3cc6 100644 --- a/contracts/FeralfileArtworkV4_1.sol +++ b/contracts/FeralfileArtworkV4_1.sol @@ -94,7 +94,7 @@ contract FeralfileExhibitionV4_1 is FeralfileExhibitionV4 { bytes32 s_, uint8 v_, SaleData calldata saleData_ - ) external payable override { + ) external payable override virtual { require(_selling, "FeralfileExhibitionV4: sale is not started"); super._checkContractOwnedToken(); validateSaleData(saleData_); diff --git a/contracts/FeralfileArtworkV4_2.sol b/contracts/FeralfileArtworkV4_2.sol index 51addb9..b342bf5 100644 --- a/contracts/FeralfileArtworkV4_2.sol +++ b/contracts/FeralfileArtworkV4_2.sol @@ -4,6 +4,7 @@ pragma solidity ^0.8.13; import { Strings } from "@openzeppelin/contracts/utils/Strings.sol"; import { Base64 } from "@openzeppelin/contracts/utils/Base64.sol"; import { FeralfileExhibitionV4_1 } from "./FeralfileArtworkV4_1.sol"; +import { FeralfileToken } from "./FeralfileToken.sol"; contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { @@ -15,6 +16,7 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { struct TokenInfo { string imageURI; bytes parameters; + uint256 coinAmount; } struct MintDataWithIndex { @@ -24,8 +26,10 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { uint256 tokenIndex; } - mapping(uint256 => TokenInfo) public _tokenInfos; // tokenID => tokenInfo - mapping(uint256 => uint256) public _tokenIndexes; // tokenID => tokenIndex + FeralfileToken private _erc20Token; + + mapping(uint256 => TokenInfo) private _tokenInfos; // tokenID => tokenInfo + mapping(uint256 => uint256) private _tokenIndexes; // tokenID => tokenIndex string public tokenPlaceholderAnimationURI; string public tokenPlaceholderImageURI; @@ -42,7 +46,8 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { address costReceiver_, string memory contractURI_, uint256[] memory seriesIds_, - uint256[] memory seriesMaxSupplies_ + uint256[] memory seriesMaxSupplies_, + address erc20ContractAddress_ ) FeralfileExhibitionV4_1( name_, @@ -56,7 +61,9 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { seriesIds_, seriesMaxSupplies_ ) - {} + { + _erc20Token = FeralfileToken(erc20ContractAddress_); + } /// @notice Mint new collection of Artwork /// @dev the function iterates over the array of MintDataWithIndex to call the internal function _mintArtwork @@ -74,13 +81,13 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { } } - /// @notice overrdie revert mint new collection of Artwork + /// @notice override revert mint new collection of Artwork function mintArtworks(MintData[] calldata) external override view onlyAuthorized { revert FunctionNotSupported(); } /// @notice Update the imageURI & parameters of an edition to a new value - function updateTokenInformation(uint256 tokenId, string calldata imageURI, bytes calldata parameters) + function updateTokenInformation(uint256 tokenId, string calldata imageURI, bytes calldata parameters, uint256 coinAmount) external onlyAuthorized { @@ -88,9 +95,124 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { revert TokenIDNotFound(); } - _tokenInfos[tokenId] = TokenInfo(imageURI, parameters); + TokenInfo memory tokenInfo = _tokenInfos[tokenId]; + _tokenInfos[tokenId] = TokenInfo(imageURI, parameters, coinAmount); + + // mint token for the owner + uint256 mintAmount = coinAmount - tokenInfo.coinAmount; + if (mintAmount > 0) { + address owner = ownerOf(tokenId); + _erc20Token.mint(owner, mintAmount * 10**18); + } } + /// @notice pay to get artworks to a destination address. The pricing, costs and other details is included in the saleData + /// @param r_ - part of signature for validating parameters integrity + /// @param s_ - part of signature for validating parameters integrity + /// @param v_ - part of signature for validating parameters integrity + /// @param saleData_ - the sale data + function buyArtworks( + bytes32 r_, + bytes32 s_, + uint8 v_, + SaleData calldata saleData_ + ) external payable override { + require(_selling, "FeralfileExhibitionV4: sale is not started"); + super._checkContractOwnedToken(); + validateSaleData(saleData_); + + saleData_.payByVaultContract + ? vault.payForSale(r_, s_, v_, saleData_) + : require( + saleData_.price == msg.value, + "FeralfileExhibitionV4: invalid payment amount" + ); + + bytes32 message = keccak256( + abi.encode(block.chainid, address(this), saleData_) + ); + + if (!isValidSignature(message, r_, s_, v_)) { + revert InvalidSignature(); + } + + uint256 itemRevenue; + if (saleData_.price > saleData_.cost) { + itemRevenue = + (saleData_.price - saleData_.cost) / + saleData_.tokenIds.length; + } + + uint256 distributedRevenue; + uint256 platformRevenue; + uint256 coinsTransferAmount = 0; + for (uint256 i = 0; i < saleData_.tokenIds.length; i++) { + // send NFT + _safeTransfer( + address(this), + saleData_.destination, + saleData_.tokenIds[i], + "" + ); + // distribute royalty + RevenueShare[] memory revenueShares = saleData_.revenueShares[i]; + uint256 remainingRev = itemRevenue; + + // deduct advances payment from revenue + for ( + uint256 j = 0; + j < revenueShares.length && remainingRev > 0; + j++ + ) { + uint256 remainingAdvanceAmount = advances[ + revenueShares[j].recipient + ]; + uint256 rev = remainingAdvanceAmount >= remainingRev + ? remainingRev + : remainingAdvanceAmount; + platformRevenue += rev; + advances[revenueShares[j].recipient] -= rev; + remainingRev -= rev; + } + + // distribute revenue + if (remainingRev > 0) { + for (uint256 j = 0; j < revenueShares.length; j++) { + address recipient = revenueShares[j].recipient; + uint256 rev = (remainingRev * revenueShares[j].bps) / 10000; + if (recipient == costReceiver) { + platformRevenue += rev; + continue; + } + distributedRevenue += rev; + payable(recipient).transfer(rev); + } + } + + TokenInfo memory tokenInfo = _tokenInfos[saleData_.tokenIds[i]]; + coinsTransferAmount += tokenInfo.coinAmount; + + emit BuyArtwork(saleData_.destination, saleData_.tokenIds[i]); + } + + // Call the transfer function of the ERC20 contract + if (coinsTransferAmount > 0 && _erc20Token.balanceOf(address(this)) > coinsTransferAmount * 10**18) { + bool success = _erc20Token.transfer(saleData_.destination, coinsTransferAmount * 10**18); + require(success, "FeralfileExhibitionV4: FeralfileToken transfer failed"); + } + + require( + saleData_.price - saleData_.cost >= + distributedRevenue + platformRevenue, + "FeralfileExhibitionV4: total bps over 10,000" + ); + + // Transfer cost, platform revenue and remaining funds + uint256 leftOver = saleData_.price - distributedRevenue; + if (leftOver > 0) { + payable(costReceiver).transfer(leftOver); + } + } /// @notice Update the base URI for all tokens function setArtworkFileURI(string calldata uri) external virtual onlyOwner { From e1b774e66c08d56a556f9559034e1a1aeb714bf5 Mon Sep 17 00:00:00 2001 From: hvthhien Date: Wed, 29 May 2024 09:16:47 +0700 Subject: [PATCH 15/17] refactor function for reuse --- contracts/FeralfileArtworkV4_2.sol | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/contracts/FeralfileArtworkV4_2.sol b/contracts/FeralfileArtworkV4_2.sol index b342bf5..ea841b6 100644 --- a/contracts/FeralfileArtworkV4_2.sol +++ b/contracts/FeralfileArtworkV4_2.sol @@ -102,7 +102,7 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { uint256 mintAmount = coinAmount - tokenInfo.coinAmount; if (mintAmount > 0) { address owner = ownerOf(tokenId); - _erc20Token.mint(owner, mintAmount * 10**18); + _erc20Token.mint(owner, _convertToTokenUnits(mintAmount)); } } @@ -196,9 +196,12 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { } // Call the transfer function of the ERC20 contract - if (coinsTransferAmount > 0 && _erc20Token.balanceOf(address(this)) > coinsTransferAmount * 10**18) { - bool success = _erc20Token.transfer(saleData_.destination, coinsTransferAmount * 10**18); - require(success, "FeralfileExhibitionV4: FeralfileToken transfer failed"); + if (coinsTransferAmount > 0) { + uint256 coinUnits = _convertToTokenUnits(coinsTransferAmount); + if (_erc20Token.balanceOf(address(this)) > coinUnits) { + bool success = _erc20Token.transfer(saleData_.destination, coinUnits); + require(success, "FeralfileExhibitionV4: FeralfileToken transfer failed"); + } } require( @@ -214,6 +217,10 @@ contract FeralfileExhibitionV4_2 is FeralfileExhibitionV4_1 { } } + function _convertToTokenUnits(uint256 amount) internal view returns (uint256) { + return amount * 10**_erc20Token.decimals(); + } + /// @notice Update the base URI for all tokens function setArtworkFileURI(string calldata uri) external virtual onlyOwner { if (bytes(uri).length == 0) { From 7bf26c71234e8e23b5f4b12324251e8cf29fe45e Mon Sep 17 00:00:00 2001 From: hvthhien Date: Wed, 29 May 2024 11:26:27 +0700 Subject: [PATCH 16/17] update test --- test/feralfile_exhibition_v4_2.js | 38 ++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/test/feralfile_exhibition_v4_2.js b/test/feralfile_exhibition_v4_2.js index dda8056..0ea026d 100644 --- a/test/feralfile_exhibition_v4_2.js +++ b/test/feralfile_exhibition_v4_2.js @@ -1,5 +1,6 @@ const FeralfileExhibitionV4_2 = artifacts.require("FeralfileExhibitionV4_2"); const FeralfileVault = artifacts.require("FeralfileVault"); +const FeralfileToken = artifacts.require("FeralfileToken"); const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000"; const COST_RECEIVER = "0x46f2B641d8702f29c45f6D06292dC34Eb9dB1801"; @@ -10,6 +11,7 @@ contract("FeralfileExhibitionV4_2", async (accounts) => { before(async function () { this.signer = accounts[0]; this.vault = await FeralfileVault.new(this.signer); + this.token = await FeralfileToken.new("Feralfile Token", "FFT"); this.seriesIds = [0, 1, 2, 3, 4]; this.seriesMaxSupply = [1, 1, 100, 1000, 10000]; @@ -26,8 +28,10 @@ contract("FeralfileExhibitionV4_2", async (accounts) => { COST_RECEIVER, CONTRACT_URI, this.seriesIds, - this.seriesMaxSupply + this.seriesMaxSupply, + this.token.address ); + await this.token.addTrustee(contract.address); this.contracts.push(contract); } }); @@ -81,7 +85,8 @@ contract("FeralfileExhibitionV4_2", async (accounts) => { COST_RECEIVER, CONTRACT_URI, seriesIds, - seriesMaxSupply + seriesMaxSupply, + this.token.address ); } catch (error) { assert.ok( @@ -1026,7 +1031,8 @@ contract("FeralfileExhibitionV4_2", async (accounts) => { costReceiver, CONTRACT_URI, seriesIds, - seriesMaxSupply + seriesMaxSupply, + this.token.address ); // 0. set advance setting @@ -1191,4 +1197,30 @@ contract("FeralfileExhibitionV4_2", async (accounts) => { assert.fail(); } }); + + it("test update token information successfully", async function () { + const contract = this.contracts[10]; + // Mint new tokens + const tokenIDs = [3001000, 3001001]; + await contract.mintArtworks([ + [this.seriesIds[3], tokenIDs[0], contract.address], + [this.seriesIds[3], tokenIDs[1], contract.address], + ]); + + // update token infomation + await contract.updateTokenInformation(tokenIDs[0], "thubnail_uri1", "0x68656c6c6f", 10) + + const ownerBal1 = await this.token.balanceOf(contract.address); + assert.equal(ownerBal1, 10 * 10**18); + + // update token infomation for another token + await contract.updateTokenInformation(tokenIDs[1], "thubnail_uri2", "0x68656c6c6f", 20) + const ownerBal2 = await this.token.balanceOf(contract.address); + assert.equal(ownerBal2, 30 * 10**18); + + // update 1 token multiple times + await contract.updateTokenInformation(tokenIDs[1], "thubnail_uri3", "0x68656c6c6f", 25) + const ownerBal3 = await this.token.balanceOf(contract.address); + assert.equal(ownerBal3, 35 * 10**18); + }); }); From 0b6972bb280bf7380a2ff53827f2eaf11431c0e2 Mon Sep 17 00:00:00 2001 From: hvthhien Date: Wed, 29 May 2024 04:29:39 +0000 Subject: [PATCH 17/17] Generate ABIs for PR #41 --- go-binding/feralfile-exhibition-v4/abi.go | 87 +- go-binding/feralfile-exhibition-v4_2/abi.go | 2930 +++++++++++++++++++ 2 files changed, 2932 insertions(+), 85 deletions(-) create mode 100644 go-binding/feralfile-exhibition-v4_2/abi.go diff --git a/go-binding/feralfile-exhibition-v4/abi.go b/go-binding/feralfile-exhibition-v4/abi.go index 592e3ca..a9c42f6 100644 --- a/go-binding/feralfile-exhibition-v4/abi.go +++ b/go-binding/feralfile-exhibition-v4/abi.go @@ -61,8 +61,8 @@ type IFeralfileSaleDataSaleData struct { // FeralfileExhibitionV4MetaData contains all meta data concerning the FeralfileExhibitionV4 contract. var FeralfileExhibitionV4MetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol_\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"burnable_\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"bridgeable_\",\"type\":\"bool\"},{\"internalType\":\"address\",\"name\":\"signer_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"vault_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"costReceiver_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"contractURI_\",\"type\":\"string\"},{\"internalType\":\"uint256[]\",\"name\":\"seriesIds_\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"seriesMaxSupplies_\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AdvanceAddressAlreadyUsed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ArtworkEditionNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAdvanceAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAdvanceAddressesAndAmounts\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAdvanceAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"OperatorNotAllowed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"BurnArtwork\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"BuyArtwork\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"NewArtwork\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"OperatorFilterRegistry\",\"outputs\":[{\"internalType\":\"contractIOperatorFilterRegistry\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_trustee\",\"type\":\"address\"}],\"name\":\"addTrustee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"advances\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"artworkParameters\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"bridgeable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"}],\"name\":\"burnArtworks\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"burnable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"r_\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s_\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"v_\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"cost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiryTime\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"destination\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"bps\",\"type\":\"uint256\"}],\"internalType\":\"structIFeralfileSaleData.RevenueShare[][]\",\"name\":\"revenueShares\",\"type\":\"tuple[][]\"},{\"internalType\":\"bool\",\"name\":\"payByVaultContract\",\"type\":\"bool\"}],\"internalType\":\"structIFeralfileSaleData.SaleData\",\"name\":\"saleData_\",\"type\":\"tuple\"}],\"name\":\"buyArtworks\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"codeVersion\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"contractURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"costReceiver\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getArtwork\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"internalType\":\"structFeralfileExhibitionV4.Artwork\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"internalType\":\"structFeralfileExhibitionV4.MintData[]\",\"name\":\"data\",\"type\":\"tuple[]\"}],\"name\":\"mintArtworks\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"mintable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pauseSale\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_trustee\",\"type\":\"address\"}],\"name\":\"removeTrustee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"oldAddresses_\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"newAddresses_\",\"type\":\"address[]\"}],\"name\":\"replaceAdvanceAddresses\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"resumeSale\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"selling\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"}],\"name\":\"seriesMaxSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"}],\"name\":\"seriesTotalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"addresses_\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts_\",\"type\":\"uint256[]\"}],\"name\":\"setAdvanceSetting\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"costReceiver_\",\"type\":\"address\"}],\"name\":\"setCostReceiver\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signer_\",\"type\":\"address\"}],\"name\":\"setSigner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"baseURI_\",\"type\":\"string\"}],\"name\":\"setTokenBaseURI\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"vault_\",\"type\":\"address\"}],\"name\":\"setVault\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"signer\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"startSale\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stopSaleAndBurn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"seriesIds\",\"type\":\"uint256[]\"},{\"internalType\":\"address[]\",\"name\":\"recipientAddresses\",\"type\":\"address[]\"}],\"name\":\"stopSaleAndTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenBaseURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenOfOwnerByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"tokensOfOwner\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"trustees\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operatorFilterRegisterAddress\",\"type\":\"address\"}],\"name\":\"updateOperatorFilterRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vault\",\"outputs\":[{\"internalType\":\"contractIFeralfileVault\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"parameters\",\"type\":\"string\"}],\"name\":\"updateArtworkParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getArtworkParameters\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", - Bin: "0x6080604052600880546001600160a01b0319166daaeb6d7670e522a718067333cd4e179055600d805463ff000000191663010000001790553480156200004457600080fd5b506040516200584a3803806200584a833981016040819052620000679162000985565b8989898989898989898989898989898989898989858a8a60006200008c838262000b54565b5060016200009b828262000b54565b505050620000b8620000b2620007a360201b60201c565b620007a7565b6008546001600160a01b03163b156200014557600854604051633e9f1edf60e11b8152306004820152733cc6cdda760b79bafa08df41ecfa224f810dceb660248201526001600160a01b0390911690637d3e3dbe90604401600060405180830381600087803b1580156200012b57600080fd5b505af115801562000140573d6000803e3d6000fd5b505050505b6001600160a01b038116620001ac5760405162461bcd60e51b815260206004820152602260248201527f45434453415369676e3a207369676e65725f206973207a65726f206164647265604482015261737360f01b60648201526084015b60405180910390fd5b600980546001600160a01b0319166001600160a01b039290921691909117905589516200022a5760405162461bcd60e51b815260206004820152602560248201527f466572616c66696c6545786869626974696f6e56343a206e616d655f20697320604482015264656d70747960d81b6064820152608401620001a3565b60008951116200028d5760405162461bcd60e51b815260206004820152602760248201527f466572616c66696c6545786869626974696f6e56343a2073796d626f6c5f20696044820152667320656d70747960c81b6064820152608401620001a3565b6001600160a01b0385166200030b5760405162461bcd60e51b815260206004820152603460248201527f466572616c66696c6545786869626974696f6e56343a207661756c744164647260448201527f6573735f206973207a65726f20616464726573730000000000000000000000006064820152608401620001a3565b6001600160a01b038416620003895760405162461bcd60e51b815260206004820152603460248201527f466572616c66696c6545786869626974696f6e56343a20636f7374526563656960448201527f7665725f206973207a65726f20616464726573730000000000000000000000006064820152608401620001a3565b6000835111620003f15760405162461bcd60e51b815260206004820152602c60248201527f466572616c66696c6545786869626974696f6e56343a20636f6e74726163745560448201526b52495f20697320656d70747960a01b6064820152608401620001a3565b6000825111620004575760405162461bcd60e51b815260206004820152602a60248201527f466572616c66696c6545786869626974696f6e56343a207365726965734964736044820152695f20697320656d70747960b01b6064820152608401620001a3565b6000815111620004c55760405162461bcd60e51b815260206004820152603260248201527f466572616c66696c6545786869626974696f6e56343a205f7365726965734d6160448201527178537570706c69657320697320656d70747960701b6064820152608401620001a3565b8051825114620005585760405162461bcd60e51b815260206004820152605160248201527f466572616c66696c6545786869626974696f6e56343a207365726965734d617860448201527f537570706c6965735f20616e64207365726965734964735f206c656e6774687360648201527020617265206e6f74207468652073616d6560781b608482015260a401620001a3565b600d805461ffff191689151561ff001916176101008915150217600160201b600160c01b0319166401000000006001600160a01b038781169190910291909117909155600e80546001600160a01b031916918716919091179055600b620005c0848262000b54565b5060005b82518110156200077e576000620005dd82600162000c36565b90505b83518110156200069a57838181518110620005ff57620005ff62000c52565b60200260200101518483815181106200061c576200061c62000c52565b602002602001015103620006855760405162461bcd60e51b815260206004820152602960248201527f466572616c66696c6545786869626974696f6e56343a206475706c6963617465604482015268081cd95c9a595cd25960ba1b6064820152608401620001a3565b80620006918162000c68565b915050620005e0565b506000828281518110620006b257620006b262000c52565b602002602001015111620007185760405162461bcd60e51b815260206004820152602660248201527f466572616c66696c6545786869626974696f6e56343a207a65726f206d617820604482015265737570706c7960d01b6064820152608401620001a3565b8181815181106200072d576200072d62000c52565b6020026020010151600f60008584815181106200074e576200074e62000c52565b60200260200101518152602001908152602001600020819055508080620007759062000c68565b915050620005c4565b5050505050505050505050505050505050505050505050505050505050505062000c84565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200083a576200083a620007f9565b604052919050565b600082601f8301126200085457600080fd5b81516001600160401b03811115620008705762000870620007f9565b602062000886601f8301601f191682016200080f565b82815285828487010111156200089b57600080fd5b60005b83811015620008bb5785810183015182820184015282016200089e565b506000928101909101919091529392505050565b80518015158114620008e057600080fd5b919050565b80516001600160a01b0381168114620008e057600080fd5b600082601f8301126200090f57600080fd5b815160206001600160401b038211156200092d576200092d620007f9565b8160051b6200093e8282016200080f565b92835284810182019282810190878511156200095957600080fd5b83870192505b848310156200097a578251825291830191908301906200095f565b979650505050505050565b6000806000806000806000806000806101408b8d031215620009a657600080fd5b8a516001600160401b0380821115620009be57600080fd5b620009cc8e838f0162000842565b9b5060208d0151915080821115620009e357600080fd5b620009f18e838f0162000842565b9a5062000a0160408e01620008cf565b995062000a1160608e01620008cf565b985062000a2160808e01620008e5565b975062000a3160a08e01620008e5565b965062000a4160c08e01620008e5565b955060e08d015191508082111562000a5857600080fd5b62000a668e838f0162000842565b94506101008d015191508082111562000a7e57600080fd5b62000a8c8e838f01620008fd565b93506101208d015191508082111562000aa457600080fd5b5062000ab38d828e01620008fd565b9150509295989b9194979a5092959850565b600181811c9082168062000ada57607f821691505b60208210810362000afb57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000b4f57600081815260208120601f850160051c8101602086101562000b2a5750805b601f850160051c820191505b8181101562000b4b5782815560010162000b36565b5050505b505050565b81516001600160401b0381111562000b705762000b70620007f9565b62000b888162000b81845462000ac5565b8462000b01565b602080601f83116001811462000bc0576000841562000ba75750858301515b600019600386901b1c1916600185901b17855562000b4b565b600085815260208120601f198616915b8281101562000bf15788860151825594840194600190910190840162000bd0565b508582101562000c105787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082018082111562000c4c5762000c4c62000c20565b92915050565b634e487b7160e01b600052603260045260246000fd5b60006001820162000c7d5762000c7d62000c20565b5060010190565b614bb68062000c946000396000f3fe6080604052600436106103545760003560e01c80636817031b116101c6578063a22cb465116100f7578063e985e9c511610095578063f07e7fd01161006f578063f07e7fd014610ab0578063f2fde38b14610ad0578063f4e638be14610af0578063fbfa77cf14610b1857600080fd5b8063e985e9c514610a0a578063eb5c60f214610a53578063eee608a414610a8057600080fd5b8063b9b8311a116100d1578063b9b8311a146109a0578063c87b56dd146109b5578063dc78ac1c146109d5578063e8a3d485146109f557600080fd5b8063a22cb4651461094b578063b66a0e5d1461096b578063b88d4fde1461098057600080fd5b80638a25f461116101645780638ef79e911161013e5780638ef79e91146108cf578063926ce44e146108ef57806395d89b411461091c578063a07c7ce41461093157600080fd5b80638a25f461146108715780638cba1c67146108915780638da5cb5b146108b157600080fd5b8063715018a6116101a0578063715018a6146107e25780637f06ee06146107f757806381516fc7146108245780638462151c1461084457600080fd5b80636817031b146107825780636c19e783146107a257806370a08231146107c257600080fd5b80632977e4b3116102a05780634bf365df1161023e57806355367ba91161021857806355367ba9146106ec5780636352211e1461070157806363e602301461072157806365a46e081461076257600080fd5b80634bf365df146106975780634e99b800146106b8578063530da8ef146106cd57600080fd5b806333e364cb1161027a57806333e364cb146106225780633c352b0d1461063757806341a5626a1461065757806342842e0e1461067757600080fd5b80632977e4b3146105cf5780632f745c59146105e2578063318047381461060257600080fd5b80631623528f1161030d57806321fe0c64116102e757806321fe0c6414610553578063238ac9331461057357806323aed2281461059157806323b872dd146105af57600080fd5b80631623528f146104d4578063167ddf6e146104f457806318160ddd1461052f57600080fd5b806301ffc9a7146103e5578063031205061461041a57806306fdde031461043a578063081812fc1461045c578063095ea7b314610494578063114ba8ee146104b457600080fd5b366103e057600e546001600160a01b031633146103de5760405162461bcd60e51b815260206004820152603c60248201527f466572616c66696c6545786869626974696f6e56343a206f6e6c79206163636560448201527f70742066756e642066726f6d207661756c7420636f6e74726163742e0000000060648201526084015b60405180910390fd5b005b600080fd5b3480156103f157600080fd5b50610405610400366004613b17565b610b38565b60405190151581526020015b60405180910390f35b34801561042657600080fd5b506103de610435366004613b57565b610b8a565b34801561044657600080fd5b5061044f610bb3565b6040516104119190613bc2565b34801561046857600080fd5b5061047c610477366004613bd5565b610c45565b6040516001600160a01b039091168152602001610411565b3480156104a057600080fd5b506103de6104af366004613bee565b610c6c565b3480156104c057600080fd5b506103de6104cf366004613b57565b610c85565b3480156104e057600080fd5b506103de6104ef366004613b57565b610caf565b34801561050057600080fd5b5061051461050f366004613bd5565b610d58565b60408051825181526020928301519281019290925201610411565b34801561053b57600080fd5b50610545600c5481565b604051908152602001610411565b34801561055f57600080fd5b506103de61056e366004613cec565b610dbb565b34801561057f57600080fd5b506009546001600160a01b031661047c565b34801561059d57600080fd5b50600d5462010000900460ff16610405565b3480156105bb57600080fd5b506103de6105ca366004613d20565b610ea5565b6103de6105dd366004613d5c565b610ef8565b3480156105ee57600080fd5b506105456105fd366004613bee565b611535565b34801561060e57600080fd5b506103de61061d366004613dc9565b6115df565b34801561062e57600080fd5b506103de61164f565b34801561064357600080fd5b506103de610652366004613e8f565b611712565b34801561066357600080fd5b506103de610672366004613e8f565b6118b2565b34801561068357600080fd5b506103de610692366004613d20565b611a96565b3480156106a357600080fd5b50600d54610405906301000000900460ff1681565b3480156106c457600080fd5b5061044f611ae3565b3480156106d957600080fd5b50600d5461040590610100900460ff1681565b3480156106f857600080fd5b506103de611b71565b34801561070d57600080fd5b5061047c61071c366004613bd5565b611c25565b34801561072d57600080fd5b5061044f6040518060400160405280601581526020017411995c985b199a5b19515e1a1a589a5d1a5bdb958d605a1b81525081565b34801561076e57600080fd5b506103de61077d366004613efa565b611c5a565b34801561078e57600080fd5b506103de61079d366004613b57565b611f58565b3480156107ae57600080fd5b506103de6107bd366004613b57565b611fee565b3480156107ce57600080fd5b506105456107dd366004613b57565b612079565b3480156107ee57600080fd5b506103de6120ff565b34801561080357600080fd5b50610545610812366004613bd5565b60009081526010602052604090205490565b34801561083057600080fd5b5061044f61083f366004613bd5565b612113565b34801561085057600080fd5b5061086461085f366004613b57565b61212c565b6040516104119190613fbb565b34801561087d57600080fd5b5061044f61088c366004613bd5565b612198565b34801561089d57600080fd5b506103de6108ac366004613fff565b612254565b3480156108bd57600080fd5b506006546001600160a01b031661047c565b3480156108db57600080fd5b506103de6108ea3660046140ca565b612383565b3480156108fb57600080fd5b5061054561090a366004613b57565b60146020526000908152604090205481565b34801561092857600080fd5b5061044f6123f2565b34801561093d57600080fd5b50600d546104059060ff1681565b34801561095757600080fd5b506103de61096636600461412b565b612401565b34801561097757600080fd5b506103de612415565b34801561098c57600080fd5b506103de61099b366004614162565b612432565b3480156109ac57600080fd5b506103de612480565b3480156109c157600080fd5b5061044f6109d0366004613bd5565b612521565b3480156109e157600080fd5b506103de6109f0366004613b57565b61262f565b348015610a0157600080fd5b5061044f61265b565b348015610a1657600080fd5b50610405610a253660046141dd565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a5f57600080fd5b50610545610a6e366004613bd5565b6000908152600f602052604090205490565b348015610a8c57600080fd5b50610405610a9b366004613b57565b60076020526000908152604090205460ff1681565b348015610abc57600080fd5b5060085461047c906001600160a01b031681565b348015610adc57600080fd5b506103de610aeb366004613b57565b612668565b348015610afc57600080fd5b50600d5461047c9064010000000090046001600160a01b031681565b348015610b2457600080fd5b50600e5461047c906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b1480610b6957506001600160e01b03198216635b5e139f60e01b145b80610b8457506301ffc9a760e01b6001600160e01b03198316145b92915050565b610b926126e1565b6001600160a01b03166000908152600760205260409020805460ff19169055565b606060008054610bc290614210565b80601f0160208091040260200160405190810160405280929190818152602001828054610bee90614210565b8015610c3b5780601f10610c1057610100808354040283529160200191610c3b565b820191906000526020600020905b815481529060010190602001808311610c1e57829003601f168201915b5050505050905090565b6000610c508261273b565b506000908152600460205260409020546001600160a01b031690565b81610c7681612760565b610c808383612832565b505050565b610c8d6126e1565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b610cb76126e1565b6001600160a01b038116610d2a5760405162461bcd60e51b815260206004820152603460248201527f466572616c66696c6545786869626974696f6e56343a20636f737452656365696044820152737665725f206973207a65726f206164647265737360601b60648201526084016103d5565b600d80546001600160a01b0390921664010000000002640100000000600160c01b0319909216919091179055565b6040805180820190915260008082526020820152610d7582612942565b610d915760405162461bcd60e51b81526004016103d59061424a565b50600090815260116020908152604091829020825180840190935280548352600101549082015290565b600d5460ff16610e225760405162461bcd60e51b815260206004820152602c60248201527f466572616c66696c6545786869626974696f6e56343a20746f6b656e2069732060448201526b6e6f74206275726e61626c6560a01b60648201526084016103d5565b60005b8151811015610ea157610e5133838381518110610e4457610e44614281565b602002602001015161295f565b610e6d5760405162461bcd60e51b81526004016103d590614297565b610e8f828281518110610e8257610e82614281565b60200260200101516129de565b80610e99816142fa565b915050610e25565b5050565b826001600160a01b0381163314610ebf57610ebf33612760565b306001600160a01b03841603610ee75760405162461bcd60e51b81526004016103d590614313565b610ef2848484612ab4565b50505050565b600d5462010000900460ff16610f635760405162461bcd60e51b815260206004820152602a60248201527f466572616c66696c6545786869626974696f6e56343a2073616c65206973206e6044820152691bdd081cdd185c9d195960b21b60648201526084016103d5565b610f6b612ae5565b610f7481612b60565b610f8460e0820160c08301614370565b610ff35780353414610fee5760405162461bcd60e51b815260206004820152602d60248201527f466572616c66696c6545786869626974696f6e56343a20696e76616c6964207060448201526c185e5b595b9d08185b5bdd5b9d609a1b60648201526084016103d5565b61105c565b600e54604051632eeee16360e01b81526001600160a01b0390911690632eeee16390611029908790879087908790600401614572565b600060405180830381600087803b15801561104357600080fd5b505af1158015611057573d6000803e3d6000fd5b505050505b6000463083604051602001611073939291906145a4565b60405160208183030381529060405280519060200120905061109781868686612cb9565b6110b457604051638baa579f60e01b815260040160405180910390fd5b60006020830135833511156110ee576110d060808401846145d7565b90506110e160208501358535614620565b6110eb9190614633565b90505b60008060005b61110160808701876145d7565b9050811015611455576111573061111e6080890160608a01613b57565b61112b60808a018a6145d7565b8581811061113b5761113b614281565b9050602002013560405180602001604052806000815250612d11565b600061116660a08801886145d7565b8381811061117657611176614281565b90506020028101906111889190614655565b808060200260200160405190810160405280939291908181526020016000905b828210156111d4576111c56040830286013681900381019061469e565b815260200190600101906111a8565b50505050509050600085905060005b8251811080156111f35750600082115b156112d85760006014600085848151811061121057611210614281565b6020026020010151600001516001600160a01b03166001600160a01b0316815260200190815260200160002054905060008382101561124f5781611251565b835b905061125d81886146f4565b9650806014600087868151811061127657611276614281565b6020026020010151600001516001600160a01b03166001600160a01b0316815260200190815260200160002060008282546112b19190614620565b909155506112c190508185614620565b9350505080806112d0906142fa565b9150506111e3565b5080156113d45760005b82518110156113d25760008382815181106112ff576112ff614281565b6020026020010151600001519050600061271085848151811061132457611324614281565b6020026020010151602001518561133b9190614707565b6113459190614633565b600d549091506001600160a01b036401000000009091048116908316036113795761137081886146f4565b965050506113c0565b61138381896146f4565b6040519098506001600160a01b0383169082156108fc029083906000818181858888f193505050501580156113bc573d6000803e3d6000fd5b5050505b806113ca816142fa565b9150506112e2565b505b6113e160808901896145d7565b848181106113f1576113f1614281565b9050602002013588606001602081019061140b9190613b57565b6001600160a01b03167f0475389cd69b8d3163620b43283bf74e8fc71020c3c6cef2a529b5c405e9687f60405160405180910390a35050808061144d906142fa565b9150506110f4565b5061146081836146f4565b61146f60208701358735614620565b10156114d25760405162461bcd60e51b815260206004820152602c60248201527f466572616c66696c6545786869626974696f6e56343a20746f74616c2062707360448201526b0206f7665722031302c3030360a41b60648201526084016103d5565b60006114df838735614620565b9050801561152a57600d546040516401000000009091046001600160a01b0316906108fc8315029083906000818181858888f19350505050158015611528573d6000803e3d6000fd5b505b505050505050505050565b600061154083612079565b82106115a25760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016103d5565b6001600160a01b03831660009081526012602052604090208054839081106115cc576115cc614281565b9060005260206000200154905092915050565b3360009081526007602052604090205460ff168061160757506006546001600160a01b031633145b61161057600080fd5b61161983612942565b6116365760405163e36fc81560e01b815260040160405180910390fd5b6000838152601560205260409020610ef282848361476c565b6116576126e1565b600d546301000000900460ff16156116815760405162461bcd60e51b81526004016103d59061482b565b600d5462010000900460ff16156116f75760405162461bcd60e51b815260206004820152603460248201527f466572616c66696c6545786869626974696f6e56343a205f73656c6c696e6720604482015273726571756972656420746f2062652066616c736560601b60648201526084016103d5565b6116ff612ae5565b600d805462ff0000191662010000179055565b61171a6126e1565b82811461173a576040516313086eff60e21b815260040160405180910390fd5b60005b838110156118ab57600085858381811061175957611759614281565b905060200201602081019061176e9190613b57565b6001600160a01b03160361179557604051630107349760e51b815260040160405180910390fd5b8282828181106117a7576117a7614281565b905060200201356000036117ce57604051636745f8fb60e01b815260040160405180910390fd5b6000601460008787858181106117e6576117e6614281565b90506020020160208101906117fb9190613b57565b6001600160a01b03166001600160a01b0316815260200190815260200160002054111561183b576040516328547bdf60e01b815260040160405180910390fd5b82828281811061184d5761184d614281565b905060200201356014600087878581811061186a5761186a614281565b905060200201602081019061187f9190613b57565b6001600160a01b03168152602081019190915260400160002055806118a3816142fa565b91505061173d565b5050505050565b6118ba6126e1565b8281146118da576040516313086eff60e21b815260040160405180910390fd5b60005b838110156118ab5760008383838181106118f9576118f9614281565b905060200201602081019061190e9190613b57565b6001600160a01b03160361193557604051630107349760e51b815260040160405180910390fd5b60006014600085858581811061194d5761194d614281565b90506020020160208101906119629190613b57565b6001600160a01b03166001600160a01b031681526020019081526020016000205411156119a2576040516328547bdf60e01b815260040160405180910390fd5b601460008686848181106119b8576119b8614281565b90506020020160208101906119cd9190613b57565b6001600160a01b03166001600160a01b031681526020019081526020016000205460146000858585818110611a0457611a04614281565b9050602002016020810190611a199190613b57565b6001600160a01b03166001600160a01b031681526020019081526020016000208190555060146000868684818110611a5357611a53614281565b9050602002016020810190611a689190613b57565b6001600160a01b03168152602081019190915260400160009081205580611a8e816142fa565b9150506118dd565b826001600160a01b0381163314611ab057611ab033612760565b306001600160a01b03841603611ad85760405162461bcd60e51b81526004016103d590614313565b610ef2848484612d44565b600a8054611af090614210565b80601f0160208091040260200160405190810160405280929190818152602001828054611b1c90614210565b8015611b695780601f10611b3e57610100808354040283529160200191611b69565b820191906000526020600020905b815481529060010190602001808311611b4c57829003601f168201915b505050505081565b611b796126e1565b600d546301000000900460ff1615611ba35760405162461bcd60e51b81526004016103d59061482b565b600d5462010000900460ff16611c175760405162461bcd60e51b815260206004820152603360248201527f466572616c66696c6545786869626974696f6e56343a205f73656c6c696e6720604482015272726571756972656420746f206265207472756560681b60648201526084016103d5565b600d805462ff000019169055565b6000818152600260205260408120546001600160a01b031680610b845760405162461bcd60e51b81526004016103d59061424a565b611c626126e1565b60008251118015611c74575060008151115b611cf45760405162461bcd60e51b815260206004820152604560248201527f466572616c66696c6545786869626974696f6e56343a2073657269657349647360448201527f206f7220726563697069656e74416464726573736573206c656e677468206973606482015264207a65726f60d81b608482015260a4016103d5565b8051825114611d805760405162461bcd60e51b815260206004820152604c60248201527f466572616c66696c6545786869626974696f6e56343a2073657269657349647360448201527f206c656e67746820697320646966666572656e742066726f6d2072656369706960648201526b656e7441646472657373657360a01b608482015260a4016103d5565b611d88611b71565b30600081815260126020908152604080832080548251818502810185019093528083529192909190830182828015611ddf57602002820191906000526020600020905b815481526020019060010190808311611dcb575b5050505050905060005b8151811015611edb576000828281518110611e0657611e06614281565b602090810291909101810151600081815260118352604080822081518083019092528054825260010154938101939093529092505b87518161ffff161015611ec557878161ffff1681518110611e5e57611e5e614281565b6020026020010151826000015103611eb3576000878261ffff1681518110611e8857611e88614281565b60200260200101519050611ead87828660405180602001604052806000815250612d11565b50611ec5565b80611ebd8161487f565b915050611e3b565b5050508080611ed3906142fa565b915050611de9565b50611ee582612079565b15610ef25760405162461bcd60e51b815260206004820152603c60248201527f466572616c66696c6545786869626974696f6e56343a20546f6b656e20666f7260448201527f2073616c652062616c616e63652068617320746f206265207a65726f0000000060648201526084016103d5565b611f606126e1565b6001600160a01b038116611fcc5760405162461bcd60e51b815260206004820152602d60248201527f466572616c66696c6545786869626974696f6e56343a207661756c745f20697360448201526c207a65726f206164647265737360981b60648201526084016103d5565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b611ff66126e1565b6001600160a01b0381166120575760405162461bcd60e51b815260206004820152602260248201527f45434453415369676e3a207369676e65725f206973207a65726f206164647265604482015261737360f01b60648201526084016103d5565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166120e35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016103d5565b506001600160a01b031660009081526003602052604090205490565b6121076126e1565b6121116000612d5f565b565b60156020526000908152604090208054611af090614210565b6001600160a01b03811660009081526012602090815260409182902080548351818402810184019094528084526060939283018282801561218c57602002820191906000526020600020905b815481526020019060010190808311612178575b50505050509050919050565b60606121a382612942565b6121c05760405163e36fc81560e01b815260040160405180910390fd5b600082815260156020526040902080546121d990614210565b80601f016020809104026020016040519081016040528092919081815260200182805461220590614210565b801561218c5780601f106122275761010080835404028352916020019161218c565b820191906000526020600020905b8154815290600101906020018083116122355750939695505050505050565b3360009081526007602052604090205460ff168061227c57506006546001600160a01b031633145b61228557600080fd5b600d546301000000900460ff166122fc5760405162461bcd60e51b815260206004820152603560248201527f466572616c66696c6545786869626974696f6e56343a20636f6e747261637420604482015274191bd95cdb89dd08185b1b1bddc81d1bc81b5a5b9d605a1b60648201526084016103d5565b60005b81811015610c805761237183838381811061231c5761231c614281565b9050606002016000013584848481811061233857612338614281565b9050606002016020013585858581811061235457612354614281565b905060600201604001602081019061236c9190613b57565b612db1565b8061237b816142fa565b9150506122ff565b61238b6126e1565b60008151116123e65760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a20626173655552495f20697320656d70746044820152607960f81b60648201526084016103d5565b600a610ea182826148a0565b606060018054610bc290614210565b8161240b81612760565b610c808383612f33565b61241d6126e1565b600d805463ff0000001916905561211161164f565b836001600160a01b038116331461244c5761244c33612760565b306001600160a01b038516036124745760405162461bcd60e51b81526004016103d590614313565b6118ab85858585612f3e565b6124886126e1565b612490611b71565b306000908152601260209081526040808320805482518185028101850190935280835291929091908301828280156124e757602002820191906000526020600020905b8154815260200190600101908083116124d3575b5050505050905060005b8151811015610ea15761250f828281518110610e8257610e82614281565b80612519816142fa565b9150506124f1565b60606000600a805461253290614210565b9050116125905760405162461bcd60e51b815260206004820152602660248201527f4552433732314d657461646174613a205f746f6b656e4261736555524920697360448201526520656d70747960d01b60648201526084016103d5565b61259982612942565b6125fd5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016103d5565b600a61260883612f70565b60405160200161261992919061495f565b6040516020818303038152906040529050919050565b6126376126e1565b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b600b8054611af090614210565b6126706126e1565b6001600160a01b0381166126d55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103d5565b6126de81612d5f565b50565b6006546001600160a01b031633146121115760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103d5565b61274481612942565b6126de5760405162461bcd60e51b81526004016103d59061424a565b6008546001600160a01b03163b156126de57600854604051633185c44d60e21b81523060048201526001600160a01b0383811660248301529091169063c617113490604401602060405180830381865afa1580156127c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127e691906149f3565b6126de5760405162461bcd60e51b815260206004820152601760248201527f6f70657261746f72206973206e6f7420616c6c6f77656400000000000000000060448201526064016103d5565b600061283d82611c25565b9050806001600160a01b0316836001600160a01b0316036128aa5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016103d5565b336001600160a01b03821614806128c657506128c68133610a25565b6129385760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016103d5565b610c808383613003565b6000908152600260205260409020546001600160a01b0316151590565b60008061296b83611c25565b9050806001600160a01b0316846001600160a01b031614806129b257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806129d65750836001600160a01b03166129cb84610c45565b6001600160a01b0316145b949350505050565b6129e781612942565b612a035760405162461bcd60e51b81526004016103d59061424a565b60008181526011602090815260408083208151808301835281548082526001928301548286015285526010909352908320805492939192909190612a48908490614620565b925050819055506001600c6000828254612a629190614620565b9091555050600082815260116020526040812081815560010155612a8582613071565b60405182907fbde7938970372996ff103863625e348ef2bf8f38a5b02181be75aafef17c23d590600090a25050565b612abe338261295f565b612ada5760405162461bcd60e51b81526004016103d590614297565b610c80838383613114565b6000612af030612079565b9050600081116126de5760405162461bcd60e51b815260206004820152603560248201527f466572616c66696c6545786869626974696f6e56343a204e6f20746f6b656e206044820152741bdddb995908189e481d1a194818dbdb9d1c9858dd605a1b60648201526084016103d5565b6000612b6f60808301836145d7565b905011612bca5760405162461bcd60e51b8152602060048201526024808201527f466572616c66696c6553616c65446174613a20746f6b656e49647320697320656044820152636d70747960e01b60648201526084016103d5565b612bd760a08201826145d7565b9050612be660808301836145d7565b905014612c5b5760405162461bcd60e51b815260206004820152603d60248201527f466572616c66696c6553616c65446174613a20746f6b656e49647320616e642060448201527f726576656e7565536861726573206c656e677468206d69736d6174636800000060648201526084016103d5565b428160400135116126de5760405162461bcd60e51b815260206004820152602260248201527f466572616c66696c6553616c65446174613a2073616c65206973206578706972604482015261195960f21b60648201526084016103d5565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c859052603c81208190612cf690848787613285565b6009546001600160a01b039081169116149695505050505050565b612d1c848484613114565b612d28848484846132ad565b610ef25760405162461bcd60e51b81526004016103d590614a10565b610c8083838360405180602001604052806000815250612432565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000838152600f60205260409020541515612dcb84612f70565b604051602001612ddb9190614a62565b60405160208183030381529060405290612e085760405162461bcd60e51b81526004016103d59190613bc2565b506000838152600f602090815260408083205460109092529091205410612e835760405162461bcd60e51b815260206004820152602960248201527f466572616c66696c6545786869626974696f6e56343a206e6f20736c6f747320604482015268617661696c61626c6560b81b60648201526084016103d5565b6001600c6000828254612e9691906146f4565b90915550506000838152601060205260408120805460019290612eba9084906146f4565b9091555050604080518082018252848152602080820185815260008681526011909252929020905181559051600190910155612ef681836133ab565b8183826001600160a01b03167f407d7da1d3b2b1871fbfa2b5b1c4657a3cc5711d3023c552798551c7ee301eea60405160405180910390a4505050565b610ea1338383613526565b612f48338361295f565b612f645760405162461bcd60e51b81526004016103d590614297565b610ef284848484612d11565b60606000612f7d836135f4565b60010190506000816001600160401b03811115612f9c57612f9c613c18565b6040519080825280601f01601f191660200182016040528015612fc6576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612fd0575b509392505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061303882611c25565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061307c82611c25565b905061308c8160008460016136cc565b61309582611c25565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b826001600160a01b031661312782611c25565b6001600160a01b03161461314d5760405162461bcd60e51b81526004016103d590614abf565b6001600160a01b0382166131af5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016103d5565b6131bc83838360016136cc565b826001600160a01b03166131cf82611c25565b6001600160a01b0316146131f55760405162461bcd60e51b81526004016103d590614abf565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000806000613296878787876137e3565b915091506132a3816138a7565b5095945050505050565b60006001600160a01b0384163b156133a357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906132f1903390899088908890600401614b04565b6020604051808303816000875af192505050801561332c575060408051601f3d908101601f1916820190925261332991810190614b37565b60015b613389573d80801561335a576040519150601f19603f3d011682016040523d82523d6000602084013e61335f565b606091505b5080516000036133815760405162461bcd60e51b81526004016103d590614a10565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506129d6565b5060016129d6565b6001600160a01b0382166134015760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016103d5565b61340a81612942565b156134575760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016103d5565b6134656000838360016136cc565b61346e81612942565b156134bb5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016103d5565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b0316036135875760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016103d5565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106136335772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061365f576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061367d57662386f26fc10000830492506010015b6305f5e1008310613695576305f5e100830492506008015b61271083106136a957612710830492506004015b606483106136bb576064830492506002015b600a8310610b845760010192915050565b600181111561373b5760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b60648201526084016103d5565b816001600160a01b038516158015906137665750836001600160a01b0316856001600160a01b031614155b156137755761377585826139f1565b6001600160a01b0384161580159061379f5750846001600160a01b0316846001600160a01b031614155b156118ab576001600160a01b0384166000908152601260209081526040808320805460018101825590845282842081018590558484526013909252909120556118ab565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561381a575060009050600361389e565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561386e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166138975760006001925092505061389e565b9150600090505b94509492505050565b60008160048111156138bb576138bb614b54565b036138c35750565b60018160048111156138d7576138d7614b54565b036139245760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016103d5565b600281600481111561393857613938614b54565b036139855760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016103d5565b600381600481111561399957613999614b54565b036126de5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016103d5565b600060016139fe84612079565b613a089190614620565b600083815260136020526040902054909150808214613aaf576001600160a01b0384166000908152601260205260408120805484908110613a4b57613a4b614281565b906000526020600020015490508060126000876001600160a01b03166001600160a01b031681526020019081526020016000208381548110613a8f57613a8f614281565b600091825260208083209091019290925591825260139052604090208190555b60008381526013602090815260408083208390556001600160a01b038716835260129091529020805480613ae557613ae5614b6a565b6001900381819060005260206000200160009055905550505050565b6001600160e01b0319811681146126de57600080fd5b600060208284031215613b2957600080fd5b8135613b3481613b01565b9392505050565b80356001600160a01b0381168114613b5257600080fd5b919050565b600060208284031215613b6957600080fd5b613b3482613b3b565b60005b83811015613b8d578181015183820152602001613b75565b50506000910152565b60008151808452613bae816020860160208601613b72565b601f01601f19169290920160200192915050565b602081526000613b346020830184613b96565b600060208284031215613be757600080fd5b5035919050565b60008060408385031215613c0157600080fd5b613c0a83613b3b565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613c5657613c56613c18565b604052919050565b60006001600160401b03821115613c7757613c77613c18565b5060051b60200190565b600082601f830112613c9257600080fd5b81356020613ca7613ca283613c5e565b613c2e565b82815260059290921b84018101918181019086841115613cc657600080fd5b8286015b84811015613ce15780358352918301918301613cca565b509695505050505050565b600060208284031215613cfe57600080fd5b81356001600160401b03811115613d1457600080fd5b6129d684828501613c81565b600080600060608486031215613d3557600080fd5b613d3e84613b3b565b9250613d4c60208501613b3b565b9150604084013590509250925092565b60008060008060808587031215613d7257600080fd5b8435935060208501359250604085013560ff81168114613d9157600080fd5b915060608501356001600160401b03811115613dac57600080fd5b850160e08188031215613dbe57600080fd5b939692955090935050565b600080600060408486031215613dde57600080fd5b8335925060208401356001600160401b0380821115613dfc57600080fd5b818601915086601f830112613e1057600080fd5b813581811115613e1f57600080fd5b876020828501011115613e3157600080fd5b6020830194508093505050509250925092565b60008083601f840112613e5657600080fd5b5081356001600160401b03811115613e6d57600080fd5b6020830191508360208260051b8501011115613e8857600080fd5b9250929050565b60008060008060408587031215613ea557600080fd5b84356001600160401b0380821115613ebc57600080fd5b613ec888838901613e44565b90965094506020870135915080821115613ee157600080fd5b50613eee87828801613e44565b95989497509550505050565b60008060408385031215613f0d57600080fd5b82356001600160401b0380821115613f2457600080fd5b613f3086838701613c81565b9350602091508185013581811115613f4757600080fd5b85019050601f81018613613f5a57600080fd5b8035613f68613ca282613c5e565b81815260059190911b82018301908381019088831115613f8757600080fd5b928401925b82841015613fac57613f9d84613b3b565b82529284019290840190613f8c565b80955050505050509250929050565b6020808252825182820181905260009190848201906040850190845b81811015613ff357835183529284019291840191600101613fd7565b50909695505050505050565b6000806020838503121561401257600080fd5b82356001600160401b038082111561402957600080fd5b818501915085601f83011261403d57600080fd5b81358181111561404c57600080fd5b86602060608302850101111561406157600080fd5b60209290920196919550909350505050565b60006001600160401b0383111561408c5761408c613c18565b61409f601f8401601f1916602001613c2e565b90508281528383830111156140b357600080fd5b828260208301376000602084830101529392505050565b6000602082840312156140dc57600080fd5b81356001600160401b038111156140f257600080fd5b8201601f8101841361410357600080fd5b6129d684823560208401614073565b80151581146126de57600080fd5b8035613b5281614112565b6000806040838503121561413e57600080fd5b61414783613b3b565b9150602083013561415781614112565b809150509250929050565b6000806000806080858703121561417857600080fd5b61418185613b3b565b935061418f60208601613b3b565b92506040850135915060608501356001600160401b038111156141b157600080fd5b8501601f810187136141c257600080fd5b6141d187823560208401614073565b91505092959194509250565b600080604083850312156141f057600080fd5b6141f983613b3b565b915061420760208401613b3b565b90509250929050565b600181811c9082168061422457607f821691505b60208210810361424457634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526018908201527f4552433732313a20696e76616c696420746f6b656e2049440000000000000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60006001820161430c5761430c6142e4565b5060010190565b6020808252603e908201527f466572616c66696c6545786869626974696f6e56343a20436f6e74726163742060408201527f69736e277420616c6c6f77656420746f207265636569766520746f6b656e0000606082015260800190565b60006020828403121561438257600080fd5b8135613b3481614112565b6000808335601e198436030181126143a457600080fd5b83016020810192503590506001600160401b038111156143c357600080fd5b8060051b3603821315613e8857600080fd5b8183526000602080850194508260005b8581101561441b576001600160a01b036143fe83613b3b565b1687528183013583880152604096870196909101906001016143e5565b509495945050505050565b818352600060208085019450848460051b86018460005b878110156144aa5783830389528135601e1988360301811261445e57600080fd5b870185810190356001600160401b0381111561447957600080fd5b8060061b360382131561448b57600080fd5b6144968582846143d5565b9a87019a945050509084019060010161443d565b5090979650505050505050565b8035825260208082013590830152604080820135908301526001600160a01b036144e360608301613b3b565b16606083015260006144f8608083018361438d565b60e06080860181905285018190526101006001600160fb1b0382111561451d57600080fd5b8160051b9150818382880137818601925061453b60a086018661438d565b9250818785030160a08801526145548285018483614426565b935050505061456560c08401614120565b80151560c0860152612ffb565b84815283602082015260ff8316604082015260806060820152600061459a60808301846144b7565b9695505050505050565b8381526001600160a01b03831660208201526060604082018190526000906145ce908301846144b7565b95945050505050565b6000808335601e198436030181126145ee57600080fd5b8301803591506001600160401b0382111561460857600080fd5b6020019150600581901b3603821315613e8857600080fd5b81810381811115610b8457610b846142e4565b60008261465057634e487b7160e01b600052601260045260246000fd5b500490565b6000808335601e1984360301811261466c57600080fd5b8301803591506001600160401b0382111561468657600080fd5b6020019150600681901b3603821315613e8857600080fd5b6000604082840312156146b057600080fd5b604051604081018181106001600160401b03821117156146d2576146d2613c18565b6040526146de83613b3b565b8152602083013560208201528091505092915050565b80820180821115610b8457610b846142e4565b8082028115828204841417610b8457610b846142e4565b601f821115610c8057600081815260208120601f850160051c810160208610156147455750805b601f850160051c820191505b8181101561476457828155600101614751565b505050505050565b6001600160401b0383111561478357614783613c18565b614797836147918354614210565b8361471e565b6000601f8411600181146147cb57600085156147b35750838201355b600019600387901b1c1916600186901b1783556118ab565b600083815260209020601f19861690835b828110156147fc57868501358255602094850194600190920191016147dc565b50868210156148195760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208082526034908201527f466572616c66696c6545786869626974696f6e56343a206d696e7461626c6520604082015273726571756972656420746f2062652066616c736560601b606082015260800190565b600061ffff808316818103614896576148966142e4565b6001019392505050565b81516001600160401b038111156148b9576148b9613c18565b6148cd816148c78454614210565b8461471e565b602080601f83116001811461490257600084156148ea5750858301515b600019600386901b1c1916600185901b178555614764565b600085815260208120601f198616915b8281101561493157888601518255948401946001909101908401614912565b508582101561494f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600080845461496d81614210565b60018281168015614985576001811461499a576149c9565b60ff19841687528215158302870194506149c9565b8860005260208060002060005b858110156149c05781548a8201529084019082016149a7565b50505082870194505b50602f60f81b8452865192506149e58382860160208a01613b72565b919092010195945050505050565b600060208284031215614a0557600080fd5b8151613b3481614112565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b7f466572616c66696c6545786869626974696f6e56343a2073657269657349642081526e03237b2b9b713ba1032bc34b9ba1d1608d1b602082015260008251614ab281602f850160208701613b72565b91909101602f0192915050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061459a90830184613b96565b600060208284031215614b4957600080fd5b8151613b3481613b01565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fdfea2646970667358221220df0be93afc5cf12fb39a9a2b5147daed04440dd78228fff96b63663b66d32f0264736f6c63430008110033", + ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol_\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"burnable_\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"bridgeable_\",\"type\":\"bool\"},{\"internalType\":\"address\",\"name\":\"signer_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"vault_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"costReceiver_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"contractURI_\",\"type\":\"string\"},{\"internalType\":\"uint256[]\",\"name\":\"seriesIds_\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"seriesMaxSupplies_\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AdvanceAddressAlreadyUsed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAdvanceAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAdvanceAddressesAndAmounts\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAdvanceAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"OperatorNotAllowed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"BurnArtwork\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"BuyArtwork\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"NewArtwork\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"OperatorFilterRegistry\",\"outputs\":[{\"internalType\":\"contractIOperatorFilterRegistry\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_trustee\",\"type\":\"address\"}],\"name\":\"addTrustee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"advances\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"bridgeable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"}],\"name\":\"burnArtworks\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"burnable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"codeVersion\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"contractURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"costReceiver\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getArtwork\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"internalType\":\"structFeralfileExhibitionV4.Artwork\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"internalType\":\"structFeralfileExhibitionV4.MintData[]\",\"name\":\"data\",\"type\":\"tuple[]\"}],\"name\":\"mintArtworks\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"mintable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pauseSale\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_trustee\",\"type\":\"address\"}],\"name\":\"removeTrustee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"resumeSale\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"selling\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"}],\"name\":\"seriesMaxSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"}],\"name\":\"seriesTotalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"costReceiver_\",\"type\":\"address\"}],\"name\":\"setCostReceiver\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signer_\",\"type\":\"address\"}],\"name\":\"setSigner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"baseURI_\",\"type\":\"string\"}],\"name\":\"setTokenBaseURI\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"vault_\",\"type\":\"address\"}],\"name\":\"setVault\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"signer\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"startSale\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stopSaleAndBurn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"seriesIds\",\"type\":\"uint256[]\"},{\"internalType\":\"address[]\",\"name\":\"recipientAddresses\",\"type\":\"address[]\"}],\"name\":\"stopSaleAndTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenBaseURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenOfOwnerByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"tokensOfOwner\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"trustees\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operatorFilterRegisterAddress\",\"type\":\"address\"}],\"name\":\"updateOperatorFilterRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vault\",\"outputs\":[{\"internalType\":\"contractIFeralfileVault\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"addresses_\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts_\",\"type\":\"uint256[]\"}],\"name\":\"setAdvanceSetting\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"oldAddresses_\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"newAddresses_\",\"type\":\"address[]\"}],\"name\":\"replaceAdvanceAddresses\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"r_\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s_\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"v_\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"cost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiryTime\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"destination\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"bps\",\"type\":\"uint256\"}],\"internalType\":\"structIFeralfileSaleData.RevenueShare[][]\",\"name\":\"revenueShares\",\"type\":\"tuple[][]\"},{\"internalType\":\"bool\",\"name\":\"payByVaultContract\",\"type\":\"bool\"}],\"internalType\":\"structIFeralfileSaleData.SaleData\",\"name\":\"saleData_\",\"type\":\"tuple\"}],\"name\":\"buyArtworks\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}]", + Bin: "0x6080604052600880546001600160a01b0319166daaeb6d7670e522a718067333cd4e179055600d805463ff000000191663010000001790553480156200004457600080fd5b506040516200550938038062005509833981016040819052620000679162000971565b89898989898989898989858a8a600062000082838262000b40565b50600162000091828262000b40565b505050620000ae620000a86200078f60201b60201c565b62000793565b6008546001600160a01b03163b156200013b57600854604051633e9f1edf60e11b8152306004820152733cc6cdda760b79bafa08df41ecfa224f810dceb660248201526001600160a01b0390911690637d3e3dbe90604401600060405180830381600087803b1580156200012157600080fd5b505af115801562000136573d6000803e3d6000fd5b505050505b6001600160a01b038116620001a25760405162461bcd60e51b815260206004820152602260248201527f45434453415369676e3a207369676e65725f206973207a65726f206164647265604482015261737360f01b60648201526084015b60405180910390fd5b600980546001600160a01b0319166001600160a01b03929092169190911790558951620002205760405162461bcd60e51b815260206004820152602560248201527f466572616c66696c6545786869626974696f6e56343a206e616d655f20697320604482015264656d70747960d81b606482015260840162000199565b6000895111620002835760405162461bcd60e51b815260206004820152602760248201527f466572616c66696c6545786869626974696f6e56343a2073796d626f6c5f20696044820152667320656d70747960c81b606482015260840162000199565b6001600160a01b038516620003015760405162461bcd60e51b815260206004820152603460248201527f466572616c66696c6545786869626974696f6e56343a207661756c744164647260448201527f6573735f206973207a65726f2061646472657373000000000000000000000000606482015260840162000199565b6001600160a01b0384166200037f5760405162461bcd60e51b815260206004820152603460248201527f466572616c66696c6545786869626974696f6e56343a20636f7374526563656960448201527f7665725f206973207a65726f2061646472657373000000000000000000000000606482015260840162000199565b6000835111620003e75760405162461bcd60e51b815260206004820152602c60248201527f466572616c66696c6545786869626974696f6e56343a20636f6e74726163745560448201526b52495f20697320656d70747960a01b606482015260840162000199565b60008251116200044d5760405162461bcd60e51b815260206004820152602a60248201527f466572616c66696c6545786869626974696f6e56343a207365726965734964736044820152695f20697320656d70747960b01b606482015260840162000199565b6000815111620004bb5760405162461bcd60e51b815260206004820152603260248201527f466572616c66696c6545786869626974696f6e56343a205f7365726965734d6160448201527178537570706c69657320697320656d70747960701b606482015260840162000199565b80518251146200054e5760405162461bcd60e51b815260206004820152605160248201527f466572616c66696c6545786869626974696f6e56343a207365726965734d617860448201527f537570706c6965735f20616e64207365726965734964735f206c656e6774687360648201527020617265206e6f74207468652073616d6560781b608482015260a40162000199565b600d805461ffff191689151561ff001916176101008915150217600160201b600160c01b0319166401000000006001600160a01b038781169190910291909117909155600e80546001600160a01b031916918716919091179055600b620005b6848262000b40565b5060005b825181101562000774576000620005d382600162000c22565b90505b83518110156200069057838181518110620005f557620005f562000c3e565b602002602001015184838151811062000612576200061262000c3e565b6020026020010151036200067b5760405162461bcd60e51b815260206004820152602960248201527f466572616c66696c6545786869626974696f6e56343a206475706c6963617465604482015268081cd95c9a595cd25960ba1b606482015260840162000199565b80620006878162000c54565b915050620005d6565b506000828281518110620006a857620006a862000c3e565b6020026020010151116200070e5760405162461bcd60e51b815260206004820152602660248201527f466572616c66696c6545786869626974696f6e56343a207a65726f206d617820604482015265737570706c7960d01b606482015260840162000199565b81818151811062000723576200072362000c3e565b6020026020010151600f600085848151811062000744576200074462000c3e565b602002602001015181526020019081526020016000208190555080806200076b9062000c54565b915050620005ba565b50505050505050505050505050505050505050505062000c70565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620008265762000826620007e5565b604052919050565b600082601f8301126200084057600080fd5b81516001600160401b038111156200085c576200085c620007e5565b602062000872601f8301601f19168201620007fb565b82815285828487010111156200088757600080fd5b60005b83811015620008a75785810183015182820184015282016200088a565b506000928101909101919091529392505050565b80518015158114620008cc57600080fd5b919050565b80516001600160a01b0381168114620008cc57600080fd5b600082601f830112620008fb57600080fd5b815160206001600160401b03821115620009195762000919620007e5565b8160051b6200092a828201620007fb565b92835284810182019282810190878511156200094557600080fd5b83870192505b8483101562000966578251825291830191908301906200094b565b979650505050505050565b6000806000806000806000806000806101408b8d0312156200099257600080fd5b8a516001600160401b0380821115620009aa57600080fd5b620009b88e838f016200082e565b9b5060208d0151915080821115620009cf57600080fd5b620009dd8e838f016200082e565b9a50620009ed60408e01620008bb565b9950620009fd60608e01620008bb565b985062000a0d60808e01620008d1565b975062000a1d60a08e01620008d1565b965062000a2d60c08e01620008d1565b955060e08d015191508082111562000a4457600080fd5b62000a528e838f016200082e565b94506101008d015191508082111562000a6a57600080fd5b62000a788e838f01620008e9565b93506101208d015191508082111562000a9057600080fd5b5062000a9f8d828e01620008e9565b9150509295989b9194979a5092959850565b600181811c9082168062000ac657607f821691505b60208210810362000ae757634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000b3b57600081815260208120601f850160051c8101602086101562000b165750805b601f850160051c820191505b8181101562000b375782815560010162000b22565b5050505b505050565b81516001600160401b0381111562000b5c5762000b5c620007e5565b62000b748162000b6d845462000ab1565b8462000aed565b602080601f83116001811462000bac576000841562000b935750858301515b600019600386901b1c1916600185901b17855562000b37565b600085815260208120601f198616915b8281101562000bdd5788860151825594840194600190910190840162000bbc565b508582101562000bfc5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082018082111562000c385762000c3862000c0c565b92915050565b634e487b7160e01b600052603260045260246000fd5b60006001820162000c695762000c6962000c0c565b5060010190565b6148898062000c806000396000f3fe6080604052600436106103035760003560e01c80636817031b11610190578063b66a0e5d116100dc578063e985e9c511610095578063f07e7fd01161006f578063f07e7fd0146109ff578063f2fde38b14610a1f578063f4e638be14610a3f578063fbfa77cf14610a6757600080fd5b8063e985e9c514610959578063eb5c60f2146109a2578063eee608a4146109cf57600080fd5b8063b66a0e5d146108ba578063b88d4fde146108cf578063b9b8311a146108ef578063c87b56dd14610904578063dc78ac1c14610924578063e8a3d4851461094457600080fd5b80638cba1c6711610149578063926ce44e11610123578063926ce44e1461083e57806395d89b411461086b578063a07c7ce414610880578063a22cb4651461089a57600080fd5b80638cba1c67146107e05780638da5cb5b146108005780638ef79e911461081e57600080fd5b80636817031b146107115780636c19e7831461073157806370a0823114610751578063715018a6146107715780637f06ee06146107865780638462151c146107b357600080fd5b80632977e4b31161024f5780634bf365df1161020857806355367ba9116101e257806355367ba91461067b5780636352211e1461069057806363e60230146106b057806365a46e08146106f157600080fd5b80634bf365df146106265780634e99b80014610647578063530da8ef1461065c57600080fd5b80632977e4b31461057e5780632f745c591461059157806333e364cb146105b15780633c352b0d146105c657806341a5626a146105e657806342842e0e1461060657600080fd5b80631623528f116102bc57806321fe0c641161029657806321fe0c6414610502578063238ac9331461052257806323aed2281461054057806323b872dd1461055e57600080fd5b80631623528f14610483578063167ddf6e146104a357806318160ddd146104de57600080fd5b806301ffc9a71461039457806303120506146103c957806306fdde03146103e9578063081812fc1461040b578063095ea7b314610443578063114ba8ee1461046357600080fd5b3661038f57600e546001600160a01b0316331461038d5760405162461bcd60e51b815260206004820152603c60248201527f466572616c66696c6545786869626974696f6e56343a206f6e6c79206163636560448201527f70742066756e642066726f6d207661756c7420636f6e74726163742e0000000060648201526084015b60405180910390fd5b005b600080fd5b3480156103a057600080fd5b506103b46103af366004613921565b610a87565b60405190151581526020015b60405180910390f35b3480156103d557600080fd5b5061038d6103e4366004613961565b610ad9565b3480156103f557600080fd5b506103fe610b02565b6040516103c091906139cc565b34801561041757600080fd5b5061042b6104263660046139df565b610b94565b6040516001600160a01b0390911681526020016103c0565b34801561044f57600080fd5b5061038d61045e3660046139f8565b610bbb565b34801561046f57600080fd5b5061038d61047e366004613961565b610bd4565b34801561048f57600080fd5b5061038d61049e366004613961565b610bfe565b3480156104af57600080fd5b506104c36104be3660046139df565b610ca7565b604080518251815260209283015192810192909252016103c0565b3480156104ea57600080fd5b506104f4600c5481565b6040519081526020016103c0565b34801561050e57600080fd5b5061038d61051d366004613af6565b610d0a565b34801561052e57600080fd5b506009546001600160a01b031661042b565b34801561054c57600080fd5b50600d5462010000900460ff166103b4565b34801561056a57600080fd5b5061038d610579366004613b2a565b610df4565b61038d61058c366004613b66565b610e47565b34801561059d57600080fd5b506104f46105ac3660046139f8565b611484565b3480156105bd57600080fd5b5061038d61152e565b3480156105d257600080fd5b5061038d6105e1366004613c1e565b6115f1565b3480156105f257600080fd5b5061038d610601366004613c1e565b611791565b34801561061257600080fd5b5061038d610621366004613b2a565b611975565b34801561063257600080fd5b50600d546103b4906301000000900460ff1681565b34801561065357600080fd5b506103fe6119c2565b34801561066857600080fd5b50600d546103b490610100900460ff1681565b34801561068757600080fd5b5061038d611a50565b34801561069c57600080fd5b5061042b6106ab3660046139df565b611b04565b3480156106bc57600080fd5b506103fe6040518060400160405280601581526020017411995c985b199a5b19515e1a1a589a5d1a5bdb958d605a1b81525081565b3480156106fd57600080fd5b5061038d61070c366004613c89565b611b39565b34801561071d57600080fd5b5061038d61072c366004613961565b611e37565b34801561073d57600080fd5b5061038d61074c366004613961565b611ecd565b34801561075d57600080fd5b506104f461076c366004613961565b611f58565b34801561077d57600080fd5b5061038d611fde565b34801561079257600080fd5b506104f46107a13660046139df565b60009081526010602052604090205490565b3480156107bf57600080fd5b506107d36107ce366004613961565b611ff2565b6040516103c09190613d4a565b3480156107ec57600080fd5b5061038d6107fb366004613d8e565b61205e565b34801561080c57600080fd5b506006546001600160a01b031661042b565b34801561082a57600080fd5b5061038d610839366004613e59565b61218d565b34801561084a57600080fd5b506104f4610859366004613961565b60146020526000908152604090205481565b34801561087757600080fd5b506103fe6121fc565b34801561088c57600080fd5b50600d546103b49060ff1681565b3480156108a657600080fd5b5061038d6108b5366004613eba565b61220b565b3480156108c657600080fd5b5061038d61221f565b3480156108db57600080fd5b5061038d6108ea366004613ef1565b61223c565b3480156108fb57600080fd5b5061038d61228a565b34801561091057600080fd5b506103fe61091f3660046139df565b61232b565b34801561093057600080fd5b5061038d61093f366004613961565b612439565b34801561095057600080fd5b506103fe612465565b34801561096557600080fd5b506103b4610974366004613f6c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109ae57600080fd5b506104f46109bd3660046139df565b6000908152600f602052604090205490565b3480156109db57600080fd5b506103b46109ea366004613961565b60076020526000908152604090205460ff1681565b348015610a0b57600080fd5b5060085461042b906001600160a01b031681565b348015610a2b57600080fd5b5061038d610a3a366004613961565b612472565b348015610a4b57600080fd5b50600d5461042b9064010000000090046001600160a01b031681565b348015610a7357600080fd5b50600e5461042b906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b1480610ab857506001600160e01b03198216635b5e139f60e01b145b80610ad357506301ffc9a760e01b6001600160e01b03198316145b92915050565b610ae16124eb565b6001600160a01b03166000908152600760205260409020805460ff19169055565b606060008054610b1190613f9f565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3d90613f9f565b8015610b8a5780601f10610b5f57610100808354040283529160200191610b8a565b820191906000526020600020905b815481529060010190602001808311610b6d57829003601f168201915b5050505050905090565b6000610b9f82612545565b506000908152600460205260409020546001600160a01b031690565b81610bc58161256a565b610bcf838361263c565b505050565b610bdc6124eb565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b610c066124eb565b6001600160a01b038116610c795760405162461bcd60e51b815260206004820152603460248201527f466572616c66696c6545786869626974696f6e56343a20636f737452656365696044820152737665725f206973207a65726f206164647265737360601b6064820152608401610384565b600d80546001600160a01b0390921664010000000002640100000000600160c01b0319909216919091179055565b6040805180820190915260008082526020820152610cc48261274c565b610ce05760405162461bcd60e51b815260040161038490613fd9565b50600090815260116020908152604091829020825180840190935280548352600101549082015290565b600d5460ff16610d715760405162461bcd60e51b815260206004820152602c60248201527f466572616c66696c6545786869626974696f6e56343a20746f6b656e2069732060448201526b6e6f74206275726e61626c6560a01b6064820152608401610384565b60005b8151811015610df057610da033838381518110610d9357610d93614010565b6020026020010151612769565b610dbc5760405162461bcd60e51b815260040161038490614026565b610dde828281518110610dd157610dd1614010565b60200260200101516127e8565b80610de881614089565b915050610d74565b5050565b826001600160a01b0381163314610e0e57610e0e3361256a565b306001600160a01b03841603610e365760405162461bcd60e51b8152600401610384906140a2565b610e418484846128be565b50505050565b600d5462010000900460ff16610eb25760405162461bcd60e51b815260206004820152602a60248201527f466572616c66696c6545786869626974696f6e56343a2073616c65206973206e6044820152691bdd081cdd185c9d195960b21b6064820152608401610384565b610eba6128ef565b610ec38161296a565b610ed360e0820160c083016140ff565b610f425780353414610f3d5760405162461bcd60e51b815260206004820152602d60248201527f466572616c66696c6545786869626974696f6e56343a20696e76616c6964207060448201526c185e5b595b9d08185b5bdd5b9d609a1b6064820152608401610384565b610fab565b600e54604051632eeee16360e01b81526001600160a01b0390911690632eeee16390610f78908790879087908790600401614304565b600060405180830381600087803b158015610f9257600080fd5b505af1158015610fa6573d6000803e3d6000fd5b505050505b6000463083604051602001610fc293929190614336565b604051602081830303815290604052805190602001209050610fe681868686612ac3565b61100357604051638baa579f60e01b815260040160405180910390fd5b600060208301358335111561103d5761101f6080840184614369565b9050611030602085013585356143b2565b61103a91906143c5565b90505b60008060005b6110506080870187614369565b90508110156113a4576110a63061106d6080890160608a01613961565b61107a60808a018a614369565b8581811061108a5761108a614010565b9050602002013560405180602001604052806000815250612b1b565b60006110b560a0880188614369565b838181106110c5576110c5614010565b90506020028101906110d791906143e7565b808060200260200160405190810160405280939291908181526020016000905b828210156111235761111460408302860136819003810190614430565b815260200190600101906110f7565b50505050509050600085905060005b8251811080156111425750600082115b156112275760006014600085848151811061115f5761115f614010565b6020026020010151600001516001600160a01b03166001600160a01b0316815260200190815260200160002054905060008382101561119e57816111a0565b835b90506111ac8188614486565b965080601460008786815181106111c5576111c5614010565b6020026020010151600001516001600160a01b03166001600160a01b03168152602001908152602001600020600082825461120091906143b2565b90915550611210905081856143b2565b93505050808061121f90614089565b915050611132565b5080156113235760005b825181101561132157600083828151811061124e5761124e614010565b6020026020010151600001519050600061271085848151811061127357611273614010565b6020026020010151602001518561128a9190614499565b61129491906143c5565b600d549091506001600160a01b036401000000009091048116908316036112c8576112bf8188614486565b9650505061130f565b6112d28189614486565b6040519098506001600160a01b0383169082156108fc029083906000818181858888f1935050505015801561130b573d6000803e3d6000fd5b5050505b8061131981614089565b915050611231565b505b6113306080890189614369565b8481811061134057611340614010565b9050602002013588606001602081019061135a9190613961565b6001600160a01b03167f0475389cd69b8d3163620b43283bf74e8fc71020c3c6cef2a529b5c405e9687f60405160405180910390a35050808061139c90614089565b915050611043565b506113af8183614486565b6113be602087013587356143b2565b10156114215760405162461bcd60e51b815260206004820152602c60248201527f466572616c66696c6545786869626974696f6e56343a20746f74616c2062707360448201526b0206f7665722031302c3030360a41b6064820152608401610384565b600061142e8387356143b2565b9050801561147957600d546040516401000000009091046001600160a01b0316906108fc8315029083906000818181858888f19350505050158015611477573d6000803e3d6000fd5b505b505050505050505050565b600061148f83611f58565b82106114f15760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610384565b6001600160a01b038316600090815260126020526040902080548390811061151b5761151b614010565b9060005260206000200154905092915050565b6115366124eb565b600d546301000000900460ff16156115605760405162461bcd60e51b8152600401610384906144b0565b600d5462010000900460ff16156115d65760405162461bcd60e51b815260206004820152603460248201527f466572616c66696c6545786869626974696f6e56343a205f73656c6c696e6720604482015273726571756972656420746f2062652066616c736560601b6064820152608401610384565b6115de6128ef565b600d805462ff0000191662010000179055565b6115f96124eb565b828114611619576040516313086eff60e21b815260040160405180910390fd5b60005b8381101561178a57600085858381811061163857611638614010565b905060200201602081019061164d9190613961565b6001600160a01b03160361167457604051630107349760e51b815260040160405180910390fd5b82828281811061168657611686614010565b905060200201356000036116ad57604051636745f8fb60e01b815260040160405180910390fd5b6000601460008787858181106116c5576116c5614010565b90506020020160208101906116da9190613961565b6001600160a01b03166001600160a01b0316815260200190815260200160002054111561171a576040516328547bdf60e01b815260040160405180910390fd5b82828281811061172c5761172c614010565b905060200201356014600087878581811061174957611749614010565b905060200201602081019061175e9190613961565b6001600160a01b031681526020810191909152604001600020558061178281614089565b91505061161c565b5050505050565b6117996124eb565b8281146117b9576040516313086eff60e21b815260040160405180910390fd5b60005b8381101561178a5760008383838181106117d8576117d8614010565b90506020020160208101906117ed9190613961565b6001600160a01b03160361181457604051630107349760e51b815260040160405180910390fd5b60006014600085858581811061182c5761182c614010565b90506020020160208101906118419190613961565b6001600160a01b03166001600160a01b03168152602001908152602001600020541115611881576040516328547bdf60e01b815260040160405180910390fd5b6014600086868481811061189757611897614010565b90506020020160208101906118ac9190613961565b6001600160a01b03166001600160a01b0316815260200190815260200160002054601460008585858181106118e3576118e3614010565b90506020020160208101906118f89190613961565b6001600160a01b03166001600160a01b03168152602001908152602001600020819055506014600086868481811061193257611932614010565b90506020020160208101906119479190613961565b6001600160a01b0316815260208101919091526040016000908120558061196d81614089565b9150506117bc565b826001600160a01b038116331461198f5761198f3361256a565b306001600160a01b038416036119b75760405162461bcd60e51b8152600401610384906140a2565b610e41848484612b4e565b600a80546119cf90613f9f565b80601f01602080910402602001604051908101604052809291908181526020018280546119fb90613f9f565b8015611a485780601f10611a1d57610100808354040283529160200191611a48565b820191906000526020600020905b815481529060010190602001808311611a2b57829003601f168201915b505050505081565b611a586124eb565b600d546301000000900460ff1615611a825760405162461bcd60e51b8152600401610384906144b0565b600d5462010000900460ff16611af65760405162461bcd60e51b815260206004820152603360248201527f466572616c66696c6545786869626974696f6e56343a205f73656c6c696e6720604482015272726571756972656420746f206265207472756560681b6064820152608401610384565b600d805462ff000019169055565b6000818152600260205260408120546001600160a01b031680610ad35760405162461bcd60e51b815260040161038490613fd9565b611b416124eb565b60008251118015611b53575060008151115b611bd35760405162461bcd60e51b815260206004820152604560248201527f466572616c66696c6545786869626974696f6e56343a2073657269657349647360448201527f206f7220726563697069656e74416464726573736573206c656e677468206973606482015264207a65726f60d81b608482015260a401610384565b8051825114611c5f5760405162461bcd60e51b815260206004820152604c60248201527f466572616c66696c6545786869626974696f6e56343a2073657269657349647360448201527f206c656e67746820697320646966666572656e742066726f6d2072656369706960648201526b656e7441646472657373657360a01b608482015260a401610384565b611c67611a50565b30600081815260126020908152604080832080548251818502810185019093528083529192909190830182828015611cbe57602002820191906000526020600020905b815481526020019060010190808311611caa575b5050505050905060005b8151811015611dba576000828281518110611ce557611ce5614010565b602090810291909101810151600081815260118352604080822081518083019092528054825260010154938101939093529092505b87518161ffff161015611da457878161ffff1681518110611d3d57611d3d614010565b6020026020010151826000015103611d92576000878261ffff1681518110611d6757611d67614010565b60200260200101519050611d8c87828660405180602001604052806000815250612b1b565b50611da4565b80611d9c81614504565b915050611d1a565b5050508080611db290614089565b915050611cc8565b50611dc482611f58565b15610e415760405162461bcd60e51b815260206004820152603c60248201527f466572616c66696c6545786869626974696f6e56343a20546f6b656e20666f7260448201527f2073616c652062616c616e63652068617320746f206265207a65726f000000006064820152608401610384565b611e3f6124eb565b6001600160a01b038116611eab5760405162461bcd60e51b815260206004820152602d60248201527f466572616c66696c6545786869626974696f6e56343a207661756c745f20697360448201526c207a65726f206164647265737360981b6064820152608401610384565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b611ed56124eb565b6001600160a01b038116611f365760405162461bcd60e51b815260206004820152602260248201527f45434453415369676e3a207369676e65725f206973207a65726f206164647265604482015261737360f01b6064820152608401610384565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216611fc25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610384565b506001600160a01b031660009081526003602052604090205490565b611fe66124eb565b611ff06000612b69565b565b6001600160a01b03811660009081526012602090815260409182902080548351818402810184019094528084526060939283018282801561205257602002820191906000526020600020905b81548152602001906001019080831161203e575b50505050509050919050565b3360009081526007602052604090205460ff168061208657506006546001600160a01b031633145b61208f57600080fd5b600d546301000000900460ff166121065760405162461bcd60e51b815260206004820152603560248201527f466572616c66696c6545786869626974696f6e56343a20636f6e747261637420604482015274191bd95cdb89dd08185b1b1bddc81d1bc81b5a5b9d605a1b6064820152608401610384565b60005b81811015610bcf5761217b83838381811061212657612126614010565b9050606002016000013584848481811061214257612142614010565b9050606002016020013585858581811061215e5761215e614010565b90506060020160400160208101906121769190613961565b612bbb565b8061218581614089565b915050612109565b6121956124eb565b60008151116121f05760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a20626173655552495f20697320656d70746044820152607960f81b6064820152608401610384565b600a610df08282614573565b606060018054610b1190613f9f565b816122158161256a565b610bcf8383612d3d565b6122276124eb565b600d805463ff00000019169055611ff061152e565b836001600160a01b0381163314612256576122563361256a565b306001600160a01b0385160361227e5760405162461bcd60e51b8152600401610384906140a2565b61178a85858585612d48565b6122926124eb565b61229a611a50565b306000908152601260209081526040808320805482518185028101850190935280835291929091908301828280156122f157602002820191906000526020600020905b8154815260200190600101908083116122dd575b5050505050905060005b8151811015610df057612319828281518110610dd157610dd1614010565b8061232381614089565b9150506122fb565b60606000600a805461233c90613f9f565b90501161239a5760405162461bcd60e51b815260206004820152602660248201527f4552433732314d657461646174613a205f746f6b656e4261736555524920697360448201526520656d70747960d01b6064820152608401610384565b6123a38261274c565b6124075760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610384565b600a61241283612d7a565b604051602001612423929190614632565b6040516020818303038152906040529050919050565b6124416124eb565b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b600b80546119cf90613f9f565b61247a6124eb565b6001600160a01b0381166124df5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610384565b6124e881612b69565b50565b6006546001600160a01b03163314611ff05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610384565b61254e8161274c565b6124e85760405162461bcd60e51b815260040161038490613fd9565b6008546001600160a01b03163b156124e857600854604051633185c44d60e21b81523060048201526001600160a01b0383811660248301529091169063c617113490604401602060405180830381865afa1580156125cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125f091906146c6565b6124e85760405162461bcd60e51b815260206004820152601760248201527f6f70657261746f72206973206e6f7420616c6c6f7765640000000000000000006044820152606401610384565b600061264782611b04565b9050806001600160a01b0316836001600160a01b0316036126b45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610384565b336001600160a01b03821614806126d057506126d08133610974565b6127425760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610384565b610bcf8383612e0d565b6000908152600260205260409020546001600160a01b0316151590565b60008061277583611b04565b9050806001600160a01b0316846001600160a01b031614806127bc57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806127e05750836001600160a01b03166127d584610b94565b6001600160a01b0316145b949350505050565b6127f18161274c565b61280d5760405162461bcd60e51b815260040161038490613fd9565b600081815260116020908152604080832081518083018352815480825260019283015482860152855260109093529083208054929391929091906128529084906143b2565b925050819055506001600c600082825461286c91906143b2565b909155505060008281526011602052604081208181556001015561288f82612e7b565b60405182907fbde7938970372996ff103863625e348ef2bf8f38a5b02181be75aafef17c23d590600090a25050565b6128c83382612769565b6128e45760405162461bcd60e51b815260040161038490614026565b610bcf838383612f1e565b60006128fa30611f58565b9050600081116124e85760405162461bcd60e51b815260206004820152603560248201527f466572616c66696c6545786869626974696f6e56343a204e6f20746f6b656e206044820152741bdddb995908189e481d1a194818dbdb9d1c9858dd605a1b6064820152608401610384565b60006129796080830183614369565b9050116129d45760405162461bcd60e51b8152602060048201526024808201527f466572616c66696c6553616c65446174613a20746f6b656e49647320697320656044820152636d70747960e01b6064820152608401610384565b6129e160a0820182614369565b90506129f06080830183614369565b905014612a655760405162461bcd60e51b815260206004820152603d60248201527f466572616c66696c6553616c65446174613a20746f6b656e49647320616e642060448201527f726576656e7565536861726573206c656e677468206d69736d617463680000006064820152608401610384565b428160400135116124e85760405162461bcd60e51b815260206004820152602260248201527f466572616c66696c6553616c65446174613a2073616c65206973206578706972604482015261195960f21b6064820152608401610384565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c859052603c81208190612b009084878761308f565b6009546001600160a01b039081169116149695505050505050565b612b26848484612f1e565b612b32848484846130b7565b610e415760405162461bcd60e51b8152600401610384906146e3565b610bcf8383836040518060200160405280600081525061223c565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000838152600f60205260409020541515612bd584612d7a565b604051602001612be59190614735565b60405160208183030381529060405290612c125760405162461bcd60e51b815260040161038491906139cc565b506000838152600f602090815260408083205460109092529091205410612c8d5760405162461bcd60e51b815260206004820152602960248201527f466572616c66696c6545786869626974696f6e56343a206e6f20736c6f747320604482015268617661696c61626c6560b81b6064820152608401610384565b6001600c6000828254612ca09190614486565b90915550506000838152601060205260408120805460019290612cc4908490614486565b9091555050604080518082018252848152602080820185815260008681526011909252929020905181559051600190910155612d0081836131b5565b8183826001600160a01b03167f407d7da1d3b2b1871fbfa2b5b1c4657a3cc5711d3023c552798551c7ee301eea60405160405180910390a4505050565b610df0338383613330565b612d523383612769565b612d6e5760405162461bcd60e51b815260040161038490614026565b610e4184848484612b1b565b60606000612d87836133fe565b60010190506000816001600160401b03811115612da657612da6613a22565b6040519080825280601f01601f191660200182016040528015612dd0576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612dda575b509392505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612e4282611b04565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612e8682611b04565b9050612e968160008460016134d6565b612e9f82611b04565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b826001600160a01b0316612f3182611b04565b6001600160a01b031614612f575760405162461bcd60e51b815260040161038490614792565b6001600160a01b038216612fb95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610384565b612fc683838360016134d6565b826001600160a01b0316612fd982611b04565b6001600160a01b031614612fff5760405162461bcd60e51b815260040161038490614792565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008060006130a0878787876135ed565b915091506130ad816136b1565b5095945050505050565b60006001600160a01b0384163b156131ad57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906130fb9033908990889088906004016147d7565b6020604051808303816000875af1925050508015613136575060408051601f3d908101601f191682019092526131339181019061480a565b60015b613193573d808015613164576040519150601f19603f3d011682016040523d82523d6000602084013e613169565b606091505b50805160000361318b5760405162461bcd60e51b8152600401610384906146e3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506127e0565b5060016127e0565b6001600160a01b03821661320b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610384565b6132148161274c565b156132615760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610384565b61326f6000838360016134d6565b6132788161274c565b156132c55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610384565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b0316036133915760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610384565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061343d5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310613469576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061348757662386f26fc10000830492506010015b6305f5e100831061349f576305f5e100830492506008015b61271083106134b357612710830492506004015b606483106134c5576064830492506002015b600a8310610ad35760010192915050565b60018111156135455760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b6064820152608401610384565b816001600160a01b038516158015906135705750836001600160a01b0316856001600160a01b031614155b1561357f5761357f85826137fb565b6001600160a01b038416158015906135a95750846001600160a01b0316846001600160a01b031614155b1561178a576001600160a01b03841660009081526012602090815260408083208054600181018255908452828420810185905584845260139092529091205561178a565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561362457506000905060036136a8565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613678573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166136a1576000600192509250506136a8565b9150600090505b94509492505050565b60008160048111156136c5576136c5614827565b036136cd5750565b60018160048111156136e1576136e1614827565b0361372e5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610384565b600281600481111561374257613742614827565b0361378f5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610384565b60038160048111156137a3576137a3614827565b036124e85760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610384565b6000600161380884611f58565b61381291906143b2565b6000838152601360205260409020549091508082146138b9576001600160a01b038416600090815260126020526040812080548490811061385557613855614010565b906000526020600020015490508060126000876001600160a01b03166001600160a01b03168152602001908152602001600020838154811061389957613899614010565b600091825260208083209091019290925591825260139052604090208190555b60008381526013602090815260408083208390556001600160a01b0387168352601290915290208054806138ef576138ef61483d565b6001900381819060005260206000200160009055905550505050565b6001600160e01b0319811681146124e857600080fd5b60006020828403121561393357600080fd5b813561393e8161390b565b9392505050565b80356001600160a01b038116811461395c57600080fd5b919050565b60006020828403121561397357600080fd5b61393e82613945565b60005b8381101561399757818101518382015260200161397f565b50506000910152565b600081518084526139b881602086016020860161397c565b601f01601f19169290920160200192915050565b60208152600061393e60208301846139a0565b6000602082840312156139f157600080fd5b5035919050565b60008060408385031215613a0b57600080fd5b613a1483613945565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613a6057613a60613a22565b604052919050565b60006001600160401b03821115613a8157613a81613a22565b5060051b60200190565b600082601f830112613a9c57600080fd5b81356020613ab1613aac83613a68565b613a38565b82815260059290921b84018101918181019086841115613ad057600080fd5b8286015b84811015613aeb5780358352918301918301613ad4565b509695505050505050565b600060208284031215613b0857600080fd5b81356001600160401b03811115613b1e57600080fd5b6127e084828501613a8b565b600080600060608486031215613b3f57600080fd5b613b4884613945565b9250613b5660208501613945565b9150604084013590509250925092565b60008060008060808587031215613b7c57600080fd5b8435935060208501359250604085013560ff81168114613b9b57600080fd5b915060608501356001600160401b03811115613bb657600080fd5b850160e08188031215613bc857600080fd5b939692955090935050565b60008083601f840112613be557600080fd5b5081356001600160401b03811115613bfc57600080fd5b6020830191508360208260051b8501011115613c1757600080fd5b9250929050565b60008060008060408587031215613c3457600080fd5b84356001600160401b0380821115613c4b57600080fd5b613c5788838901613bd3565b90965094506020870135915080821115613c7057600080fd5b50613c7d87828801613bd3565b95989497509550505050565b60008060408385031215613c9c57600080fd5b82356001600160401b0380821115613cb357600080fd5b613cbf86838701613a8b565b9350602091508185013581811115613cd657600080fd5b85019050601f81018613613ce957600080fd5b8035613cf7613aac82613a68565b81815260059190911b82018301908381019088831115613d1657600080fd5b928401925b82841015613d3b57613d2c84613945565b82529284019290840190613d1b565b80955050505050509250929050565b6020808252825182820181905260009190848201906040850190845b81811015613d8257835183529284019291840191600101613d66565b50909695505050505050565b60008060208385031215613da157600080fd5b82356001600160401b0380821115613db857600080fd5b818501915085601f830112613dcc57600080fd5b813581811115613ddb57600080fd5b866020606083028501011115613df057600080fd5b60209290920196919550909350505050565b60006001600160401b03831115613e1b57613e1b613a22565b613e2e601f8401601f1916602001613a38565b9050828152838383011115613e4257600080fd5b828260208301376000602084830101529392505050565b600060208284031215613e6b57600080fd5b81356001600160401b03811115613e8157600080fd5b8201601f81018413613e9257600080fd5b6127e084823560208401613e02565b80151581146124e857600080fd5b803561395c81613ea1565b60008060408385031215613ecd57600080fd5b613ed683613945565b91506020830135613ee681613ea1565b809150509250929050565b60008060008060808587031215613f0757600080fd5b613f1085613945565b9350613f1e60208601613945565b92506040850135915060608501356001600160401b03811115613f4057600080fd5b8501601f81018713613f5157600080fd5b613f6087823560208401613e02565b91505092959194509250565b60008060408385031215613f7f57600080fd5b613f8883613945565b9150613f9660208401613945565b90509250929050565b600181811c90821680613fb357607f821691505b602082108103613fd357634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526018908201527f4552433732313a20696e76616c696420746f6b656e2049440000000000000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60006001820161409b5761409b614073565b5060010190565b6020808252603e908201527f466572616c66696c6545786869626974696f6e56343a20436f6e74726163742060408201527f69736e277420616c6c6f77656420746f207265636569766520746f6b656e0000606082015260800190565b60006020828403121561411157600080fd5b813561393e81613ea1565b6000808335601e1984360301811261413357600080fd5b83016020810192503590506001600160401b0381111561415257600080fd5b8060051b3603821315613c1757600080fd5b8183526000602080850194508260005b858110156141aa576001600160a01b0361418d83613945565b168752818301358388015260409687019690910190600101614174565b509495945050505050565b81835260006020808501808196508560051b810191508460005b8781101561423c5782840389528135601e198836030181126141f057600080fd5b870185810190356001600160401b0381111561420b57600080fd5b8060061b360382131561421d57600080fd5b614228868284614164565b9a87019a95505050908401906001016141cf565b5091979650505050505050565b8035825260208082013590830152604080820135908301526001600160a01b0361427560608301613945565b166060830152600061428a608083018361411c565b60e06080860181905285018190526101006001600160fb1b038211156142af57600080fd5b8160051b915081838288013781860192506142cd60a086018661411c565b9250818785030160a08801526142e682850184836141b5565b93505050506142f760c08401613eaf565b80151560c0860152612e05565b84815283602082015260ff8316604082015260806060820152600061432c6080830184614249565b9695505050505050565b8381526001600160a01b038316602082015260606040820181905260009061436090830184614249565b95945050505050565b6000808335601e1984360301811261438057600080fd5b8301803591506001600160401b0382111561439a57600080fd5b6020019150600581901b3603821315613c1757600080fd5b81810381811115610ad357610ad3614073565b6000826143e257634e487b7160e01b600052601260045260246000fd5b500490565b6000808335601e198436030181126143fe57600080fd5b8301803591506001600160401b0382111561441857600080fd5b6020019150600681901b3603821315613c1757600080fd5b60006040828403121561444257600080fd5b604051604081018181106001600160401b038211171561446457614464613a22565b60405261447083613945565b8152602083013560208201528091505092915050565b80820180821115610ad357610ad3614073565b8082028115828204841417610ad357610ad3614073565b60208082526034908201527f466572616c66696c6545786869626974696f6e56343a206d696e7461626c6520604082015273726571756972656420746f2062652066616c736560601b606082015260800190565b600061ffff80831681810361451b5761451b614073565b6001019392505050565b601f821115610bcf57600081815260208120601f850160051c8101602086101561454c5750805b601f850160051c820191505b8181101561456b57828155600101614558565b505050505050565b81516001600160401b0381111561458c5761458c613a22565b6145a08161459a8454613f9f565b84614525565b602080601f8311600181146145d557600084156145bd5750858301515b600019600386901b1c1916600185901b17855561456b565b600085815260208120601f198616915b82811015614604578886015182559484019460019091019084016145e5565b50858210156146225787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600080845461464081613f9f565b60018281168015614658576001811461466d5761469c565b60ff198416875282151583028701945061469c565b8860005260208060002060005b858110156146935781548a82015290840190820161467a565b50505082870194505b50602f60f81b8452865192506146b88382860160208a0161397c565b919092010195945050505050565b6000602082840312156146d857600080fd5b815161393e81613ea1565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b7f466572616c66696c6545786869626974696f6e56343a2073657269657349642081526e03237b2b9b713ba1032bc34b9ba1d1608d1b60208201526000825161478581602f85016020870161397c565b91909101602f0192915050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061432c908301846139a0565b60006020828403121561481c57600080fd5b815161393e8161390b565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fdfea2646970667358221220ed1f66c49ad118093466f1603acb917269b39b39f0eb10de0047baaf913089d064736f6c63430008110033", } // FeralfileExhibitionV4ABI is the input ABI used to generate the binding from. @@ -294,37 +294,6 @@ func (_FeralfileExhibitionV4 *FeralfileExhibitionV4CallerSession) Advances(arg0 return _FeralfileExhibitionV4.Contract.Advances(&_FeralfileExhibitionV4.CallOpts, arg0) } -// ArtworkParameters is a free data retrieval call binding the contract method 0x81516fc7. -// -// Solidity: function artworkParameters(uint256 ) view returns(string) -func (_FeralfileExhibitionV4 *FeralfileExhibitionV4Caller) ArtworkParameters(opts *bind.CallOpts, arg0 *big.Int) (string, error) { - var out []interface{} - err := _FeralfileExhibitionV4.contract.Call(opts, &out, "artworkParameters", arg0) - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// ArtworkParameters is a free data retrieval call binding the contract method 0x81516fc7. -// -// Solidity: function artworkParameters(uint256 ) view returns(string) -func (_FeralfileExhibitionV4 *FeralfileExhibitionV4Session) ArtworkParameters(arg0 *big.Int) (string, error) { - return _FeralfileExhibitionV4.Contract.ArtworkParameters(&_FeralfileExhibitionV4.CallOpts, arg0) -} - -// ArtworkParameters is a free data retrieval call binding the contract method 0x81516fc7. -// -// Solidity: function artworkParameters(uint256 ) view returns(string) -func (_FeralfileExhibitionV4 *FeralfileExhibitionV4CallerSession) ArtworkParameters(arg0 *big.Int) (string, error) { - return _FeralfileExhibitionV4.Contract.ArtworkParameters(&_FeralfileExhibitionV4.CallOpts, arg0) -} - // BalanceOf is a free data retrieval call binding the contract method 0x70a08231. // // Solidity: function balanceOf(address owner) view returns(uint256) @@ -573,37 +542,6 @@ func (_FeralfileExhibitionV4 *FeralfileExhibitionV4CallerSession) GetArtwork(tok return _FeralfileExhibitionV4.Contract.GetArtwork(&_FeralfileExhibitionV4.CallOpts, tokenId) } -// GetArtworkParameters is a free data retrieval call binding the contract method 0x8a25f461. -// -// Solidity: function getArtworkParameters(uint256 tokenId) view returns(string) -func (_FeralfileExhibitionV4 *FeralfileExhibitionV4Caller) GetArtworkParameters(opts *bind.CallOpts, tokenId *big.Int) (string, error) { - var out []interface{} - err := _FeralfileExhibitionV4.contract.Call(opts, &out, "getArtworkParameters", tokenId) - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// GetArtworkParameters is a free data retrieval call binding the contract method 0x8a25f461. -// -// Solidity: function getArtworkParameters(uint256 tokenId) view returns(string) -func (_FeralfileExhibitionV4 *FeralfileExhibitionV4Session) GetArtworkParameters(tokenId *big.Int) (string, error) { - return _FeralfileExhibitionV4.Contract.GetArtworkParameters(&_FeralfileExhibitionV4.CallOpts, tokenId) -} - -// GetArtworkParameters is a free data retrieval call binding the contract method 0x8a25f461. -// -// Solidity: function getArtworkParameters(uint256 tokenId) view returns(string) -func (_FeralfileExhibitionV4 *FeralfileExhibitionV4CallerSession) GetArtworkParameters(tokenId *big.Int) (string, error) { - return _FeralfileExhibitionV4.Contract.GetArtworkParameters(&_FeralfileExhibitionV4.CallOpts, tokenId) -} - // IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5. // // Solidity: function isApprovedForAll(address owner, address operator) view returns(bool) @@ -1645,27 +1583,6 @@ func (_FeralfileExhibitionV4 *FeralfileExhibitionV4TransactorSession) TransferOw return _FeralfileExhibitionV4.Contract.TransferOwnership(&_FeralfileExhibitionV4.TransactOpts, newOwner) } -// UpdateArtworkParameters is a paid mutator transaction binding the contract method 0x31804738. -// -// Solidity: function updateArtworkParameters(uint256 tokenId, string parameters) returns() -func (_FeralfileExhibitionV4 *FeralfileExhibitionV4Transactor) UpdateArtworkParameters(opts *bind.TransactOpts, tokenId *big.Int, parameters string) (*types.Transaction, error) { - return _FeralfileExhibitionV4.contract.Transact(opts, "updateArtworkParameters", tokenId, parameters) -} - -// UpdateArtworkParameters is a paid mutator transaction binding the contract method 0x31804738. -// -// Solidity: function updateArtworkParameters(uint256 tokenId, string parameters) returns() -func (_FeralfileExhibitionV4 *FeralfileExhibitionV4Session) UpdateArtworkParameters(tokenId *big.Int, parameters string) (*types.Transaction, error) { - return _FeralfileExhibitionV4.Contract.UpdateArtworkParameters(&_FeralfileExhibitionV4.TransactOpts, tokenId, parameters) -} - -// UpdateArtworkParameters is a paid mutator transaction binding the contract method 0x31804738. -// -// Solidity: function updateArtworkParameters(uint256 tokenId, string parameters) returns() -func (_FeralfileExhibitionV4 *FeralfileExhibitionV4TransactorSession) UpdateArtworkParameters(tokenId *big.Int, parameters string) (*types.Transaction, error) { - return _FeralfileExhibitionV4.Contract.UpdateArtworkParameters(&_FeralfileExhibitionV4.TransactOpts, tokenId, parameters) -} - // UpdateOperatorFilterRegistry is a paid mutator transaction binding the contract method 0x114ba8ee. // // Solidity: function updateOperatorFilterRegistry(address operatorFilterRegisterAddress) returns() diff --git a/go-binding/feralfile-exhibition-v4_2/abi.go b/go-binding/feralfile-exhibition-v4_2/abi.go new file mode 100644 index 0000000..948bbbe --- /dev/null +++ b/go-binding/feralfile-exhibition-v4_2/abi.go @@ -0,0 +1,2930 @@ +// Code generated - DO NOT EDIT. +// This file is a generated binding and any manual changes will be lost. + +package feralfilev4_2 + +import ( + "errors" + "math/big" + "strings" + + ethereum "github.com/ethereum/go-ethereum" + "github.com/ethereum/go-ethereum/accounts/abi" + "github.com/ethereum/go-ethereum/accounts/abi/bind" + "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/core/types" + "github.com/ethereum/go-ethereum/event" +) + +// Reference imports to suppress errors if they are not otherwise used. +var ( + _ = errors.New + _ = big.NewInt + _ = strings.NewReader + _ = ethereum.NotFound + _ = bind.Bind + _ = common.Big1 + _ = types.BloomLookup + _ = event.NewSubscription + _ = abi.ConvertType +) + +// FeralfileExhibitionV4Artwork is an auto generated low-level Go binding around an user-defined struct. +type FeralfileExhibitionV4Artwork struct { + SeriesId *big.Int + TokenId *big.Int +} + +// FeralfileExhibitionV4MintData is an auto generated low-level Go binding around an user-defined struct. +type FeralfileExhibitionV4MintData struct { + SeriesId *big.Int + TokenId *big.Int + Owner common.Address +} + +// FeralfileExhibitionV42MintDataWithIndex is an auto generated low-level Go binding around an user-defined struct. +type FeralfileExhibitionV42MintDataWithIndex struct { + SeriesId *big.Int + TokenId *big.Int + Owner common.Address + TokenIndex *big.Int +} + +// IFeralfileSaleDataRevenueShare is an auto generated low-level Go binding around an user-defined struct. +type IFeralfileSaleDataRevenueShare struct { + Recipient common.Address + Bps *big.Int +} + +// IFeralfileSaleDataSaleData is an auto generated low-level Go binding around an user-defined struct. +type IFeralfileSaleDataSaleData struct { + Price *big.Int + Cost *big.Int + ExpiryTime *big.Int + Destination common.Address + TokenIds []*big.Int + RevenueShares [][]IFeralfileSaleDataRevenueShare + PayByVaultContract bool +} + +// FeralfileExhibitionV42MetaData contains all meta data concerning the FeralfileExhibitionV42 contract. +var FeralfileExhibitionV42MetaData = &bind.MetaData{ + ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol_\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"burnable_\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"bridgeable_\",\"type\":\"bool\"},{\"internalType\":\"address\",\"name\":\"signer_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"vault_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"costReceiver_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"contractURI_\",\"type\":\"string\"},{\"internalType\":\"uint256[]\",\"name\":\"seriesIds_\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"seriesMaxSupplies_\",\"type\":\"uint256[]\"},{\"internalType\":\"address\",\"name\":\"erc20ContractAddress_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AdvanceAddressAlreadyUsed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EmptyURI\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FunctionNotSupported\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAdvanceAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAdvanceAddressesAndAmounts\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAdvanceAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSignature\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MintNotEnabled\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"OperatorNotAllowed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TokenIDNotFound\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"BurnArtwork\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"BuyArtwork\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"NewArtwork\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"OperatorFilterRegistry\",\"outputs\":[{\"internalType\":\"contractIOperatorFilterRegistry\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_trustee\",\"type\":\"address\"}],\"name\":\"addTrustee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"advances\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"artworkFileURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"bridgeable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"}],\"name\":\"burnArtworks\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"burnable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"codeVersion\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"contractURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"costReceiver\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getArtwork\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"internalType\":\"structFeralfileExhibitionV4.Artwork\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"mintable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pauseSale\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_trustee\",\"type\":\"address\"}],\"name\":\"removeTrustee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"oldAddresses_\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"newAddresses_\",\"type\":\"address[]\"}],\"name\":\"replaceAdvanceAddresses\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"resumeSale\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"selling\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"}],\"name\":\"seriesMaxSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"}],\"name\":\"seriesTotalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"addresses_\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts_\",\"type\":\"uint256[]\"}],\"name\":\"setAdvanceSetting\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"costReceiver_\",\"type\":\"address\"}],\"name\":\"setCostReceiver\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signer_\",\"type\":\"address\"}],\"name\":\"setSigner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"baseURI_\",\"type\":\"string\"}],\"name\":\"setTokenBaseURI\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"vault_\",\"type\":\"address\"}],\"name\":\"setVault\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"signer\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"startSale\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stopSaleAndBurn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"seriesIds\",\"type\":\"uint256[]\"},{\"internalType\":\"address[]\",\"name\":\"recipientAddresses\",\"type\":\"address[]\"}],\"name\":\"stopSaleAndTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenBaseURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenOfOwnerByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenPlaceholderAnimationURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenPlaceholderImageURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"tokensOfOwner\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"trustees\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operatorFilterRegisterAddress\",\"type\":\"address\"}],\"name\":\"updateOperatorFilterRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vault\",\"outputs\":[{\"internalType\":\"contractIFeralfileVault\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenIndex\",\"type\":\"uint256\"}],\"internalType\":\"structFeralfileExhibitionV4_2.MintDataWithIndex[]\",\"name\":\"data\",\"type\":\"tuple[]\"}],\"name\":\"mintArtworksWithIndex\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"seriesId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"internalType\":\"structFeralfileExhibitionV4.MintData[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"name\":\"mintArtworks\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"imageURI\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"parameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"coinAmount\",\"type\":\"uint256\"}],\"name\":\"updateTokenInformation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"r_\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s_\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"v_\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"cost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiryTime\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"destination\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"bps\",\"type\":\"uint256\"}],\"internalType\":\"structIFeralfileSaleData.RevenueShare[][]\",\"name\":\"revenueShares\",\"type\":\"tuple[][]\"},{\"internalType\":\"bool\",\"name\":\"payByVaultContract\",\"type\":\"bool\"}],\"internalType\":\"structIFeralfileSaleData.SaleData\",\"name\":\"saleData_\",\"type\":\"tuple\"}],\"name\":\"buyArtworks\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"name\":\"setArtworkFileURI\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"name\":\"setTokenPlaceholderImageURI\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"name\":\"setTokenPlaceholderAnimationURI\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", + Bin: "0x6080604052600880546001600160a01b0319166daaeb6d7670e522a718067333cd4e179055600d805463ff000000191663010000001790553480156200004457600080fd5b5060405162006a0638038062006a068339810160408190526200006791620009ad565b8a8a8a8a8a8a8a8a8a8a89898989898989898989858a8a60006200008c838262000bad565b5060016200009b828262000bad565b505050620000b8620000b2620007cb60201b60201c565b620007cf565b6008546001600160a01b03163b156200014557600854604051633e9f1edf60e11b8152306004820152733cc6cdda760b79bafa08df41ecfa224f810dceb660248201526001600160a01b0390911690637d3e3dbe90604401600060405180830381600087803b1580156200012b57600080fd5b505af115801562000140573d6000803e3d6000fd5b505050505b6001600160a01b038116620001ac5760405162461bcd60e51b815260206004820152602260248201527f45434453415369676e3a207369676e65725f206973207a65726f206164647265604482015261737360f01b60648201526084015b60405180910390fd5b600980546001600160a01b0319166001600160a01b039290921691909117905589516200022a5760405162461bcd60e51b815260206004820152602560248201527f466572616c66696c6545786869626974696f6e56343a206e616d655f20697320604482015264656d70747960d81b6064820152608401620001a3565b60008951116200028d5760405162461bcd60e51b815260206004820152602760248201527f466572616c66696c6545786869626974696f6e56343a2073796d626f6c5f20696044820152667320656d70747960c81b6064820152608401620001a3565b6001600160a01b0385166200030b5760405162461bcd60e51b815260206004820152603460248201527f466572616c66696c6545786869626974696f6e56343a207661756c744164647260448201527f6573735f206973207a65726f20616464726573730000000000000000000000006064820152608401620001a3565b6001600160a01b038416620003895760405162461bcd60e51b815260206004820152603460248201527f466572616c66696c6545786869626974696f6e56343a20636f7374526563656960448201527f7665725f206973207a65726f20616464726573730000000000000000000000006064820152608401620001a3565b6000835111620003f15760405162461bcd60e51b815260206004820152602c60248201527f466572616c66696c6545786869626974696f6e56343a20636f6e74726163745560448201526b52495f20697320656d70747960a01b6064820152608401620001a3565b6000825111620004575760405162461bcd60e51b815260206004820152602a60248201527f466572616c66696c6545786869626974696f6e56343a207365726965734964736044820152695f20697320656d70747960b01b6064820152608401620001a3565b6000815111620004c55760405162461bcd60e51b815260206004820152603260248201527f466572616c66696c6545786869626974696f6e56343a205f7365726965734d6160448201527178537570706c69657320697320656d70747960701b6064820152608401620001a3565b8051825114620005585760405162461bcd60e51b815260206004820152605160248201527f466572616c66696c6545786869626974696f6e56343a207365726965734d617860448201527f537570706c6965735f20616e64207365726965734964735f206c656e6774687360648201527020617265206e6f74207468652073616d6560781b608482015260a401620001a3565b600d805461ffff191689151561ff001916176101008915150217600160201b600160c01b0319166401000000006001600160a01b038781169190910291909117909155600e80546001600160a01b031916918716919091179055600b620005c0848262000bad565b5060005b82518110156200077e576000620005dd82600162000c8f565b90505b83518110156200069a57838181518110620005ff57620005ff62000cab565b60200260200101518483815181106200061c576200061c62000cab565b602002602001015103620006855760405162461bcd60e51b815260206004820152602960248201527f466572616c66696c6545786869626974696f6e56343a206475706c6963617465604482015268081cd95c9a595cd25960ba1b6064820152608401620001a3565b80620006918162000cc1565b915050620005e0565b506000828281518110620006b257620006b262000cab565b602002602001015111620007185760405162461bcd60e51b815260206004820152602660248201527f466572616c66696c6545786869626974696f6e56343a207a65726f206d617820604482015265737570706c7960d01b6064820152608401620001a3565b8181815181106200072d576200072d62000cab565b6020026020010151600f60008584815181106200074e576200074e62000cab565b60200260200101518152602001908152602001600020819055508080620007759062000cc1565b915050620005c4565b50505050505050505050505050505050505050505080601560006101000a8154816001600160a01b0302191690836001600160a01b03160217905550505050505050505050505062000cdd565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171562000862576200086262000821565b604052919050565b600082601f8301126200087c57600080fd5b81516001600160401b0381111562000898576200089862000821565b6020620008ae601f8301601f1916820162000837565b8281528582848701011115620008c357600080fd5b60005b83811015620008e3578581018301518282018401528201620008c6565b506000928101909101919091529392505050565b805180151581146200090857600080fd5b919050565b80516001600160a01b03811681146200090857600080fd5b600082601f8301126200093757600080fd5b815160206001600160401b0382111562000955576200095562000821565b8160051b6200096682820162000837565b92835284810182019282810190878511156200098157600080fd5b83870192505b84831015620009a25782518252918301919083019062000987565b979650505050505050565b60008060008060008060008060008060006101608c8e031215620009d057600080fd5b8b516001600160401b03811115620009e757600080fd5b620009f58e828f016200086a565b60208e0151909c5090506001600160401b0381111562000a1457600080fd5b62000a228e828f016200086a565b9a505062000a3360408d01620008f7565b985062000a4360608d01620008f7565b975062000a5360808d016200090d565b965062000a6360a08d016200090d565b955062000a7360c08d016200090d565b60e08d01519095506001600160401b0381111562000a9057600080fd5b62000a9e8e828f016200086a565b6101008e015190955090506001600160401b0381111562000abe57600080fd5b62000acc8e828f0162000925565b6101208e015190945090506001600160401b0381111562000aec57600080fd5b62000afa8e828f0162000925565b92505062000b0c6101408d016200090d565b90509295989b509295989b9093969950565b600181811c9082168062000b3357607f821691505b60208210810362000b5457634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000ba857600081815260208120601f850160051c8101602086101562000b835750805b601f850160051c820191505b8181101562000ba45782815560010162000b8f565b5050505b505050565b81516001600160401b0381111562000bc95762000bc962000821565b62000be18162000bda845462000b1e565b8462000b5a565b602080601f83116001811462000c19576000841562000c005750858301515b600019600386901b1c1916600185901b17855562000ba4565b600085815260208120601f198616915b8281101562000c4a5788860151825594840194600190910190840162000c29565b508582101562000c695787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082018082111562000ca55762000ca562000c79565b92915050565b634e487b7160e01b600052603260045260246000fd5b60006001820162000cd65762000cd662000c79565b5060010190565b615d198062000ced6000396000f3fe60806040526004361061039b5760003560e01c806370a08231116101dc578063b88d4fde11610102578063e985e9c5116100a0578063f07e7fd01161006f578063f07e7fd014610b76578063f2fde38b14610b96578063f4e638be14610bb6578063fbfa77cf14610bde57600080fd5b8063e985e9c514610abb578063e9f585e014610b04578063eb5c60f214610b19578063eee608a414610b4657600080fd5b8063c9200e4f116100dc578063c9200e4f14610a51578063ccdae73a14610a71578063dc78ac1c14610a86578063e8a3d48514610aa657600080fd5b8063b88d4fde146109fc578063b9b8311a14610a1c578063c87b56dd14610a3157600080fd5b80638ef79e911161017a578063a07c7ce411610149578063a07c7ce41461098d578063a22cb465146109a7578063ae474c3c146109c7578063b66a0e5d146109e757600080fd5b80638ef79e911461090b5780639095e8761461092b578063926ce44e1461094b57806395d89b411461097857600080fd5b80638462151c116101b65780638462151c1461088057806384f78930146108ad5780638cba1c67146108cd5780638da5cb5b146108ed57600080fd5b806370a082311461081e578063715018a61461083e5780637f06ee061461085357600080fd5b806333e364cb116102c15780634e99b8001161025f57806363e602301161022e57806363e602301461077d57806365a46e08146107be5780636817031b146107de5780636c19e783146107fe57600080fd5b80634e99b80014610714578063530da8ef1461072957806355367ba9146107485780636352211e1461075d57600080fd5b80633e41dd201161029b5780633e41dd201461069e57806341a5626a146106b357806342842e0e146106d35780634bf365df146106f357600080fd5b806333e364cb146106495780633c352b0d1461065e5780633c38598e1461067e57600080fd5b8063167ddf6e1161033957806323aed2281161030857806323aed228146105d857806323b872dd146105f65780632977e4b3146106165780632f745c591461062957600080fd5b8063167ddf6e1461053b57806318160ddd1461057657806321fe0c641461059a578063238ac933146105ba57600080fd5b8063081812fc11610375578063081812fc146104a3578063095ea7b3146104db578063114ba8ee146104fb5780631623528f1461051b57600080fd5b806301ffc9a71461042c578063031205061461046157806306fdde031461048157600080fd5b3661042757600e546001600160a01b031633146104255760405162461bcd60e51b815260206004820152603c60248201527f466572616c66696c6545786869626974696f6e56343a206f6e6c79206163636560448201527f70742066756e642066726f6d207661756c7420636f6e74726163742e0000000060648201526084015b60405180910390fd5b005b600080fd5b34801561043857600080fd5b5061044c61044736600461467f565b610bfe565b60405190151581526020015b60405180910390f35b34801561046d57600080fd5b5061042561047c3660046146b8565b610c50565b34801561048d57600080fd5b50610496610c79565b6040516104589190614723565b3480156104af57600080fd5b506104c36104be366004614736565b610d0b565b6040516001600160a01b039091168152602001610458565b3480156104e757600080fd5b506104256104f636600461474f565b610d32565b34801561050757600080fd5b506104256105163660046146b8565b610d4b565b34801561052757600080fd5b506104256105363660046146b8565b610d75565b34801561054757600080fd5b5061055b610556366004614736565b610e1e565b60408051825181526020928301519281019290925201610458565b34801561058257600080fd5b5061058c600c5481565b604051908152602001610458565b3480156105a657600080fd5b506104256105b536600461484d565b610e81565b3480156105c657600080fd5b506009546001600160a01b03166104c3565b3480156105e457600080fd5b50600d5462010000900460ff1661044c565b34801561060257600080fd5b50610425610611366004614881565b610f6b565b6104256106243660046148cc565b610fbe565b34801561063557600080fd5b5061058c61064436600461474f565b611910565b34801561065557600080fd5b506104256119ba565b34801561066a57600080fd5b5061042561067936600461497e565b611a7d565b34801561068a57600080fd5b50610425610699366004614a2a565b611c1d565b3480156106aa57600080fd5b50610496611c54565b3480156106bf57600080fd5b506104256106ce36600461497e565b611ce2565b3480156106df57600080fd5b506104256106ee366004614881565b611ec6565b3480156106ff57600080fd5b50600d5461044c906301000000900460ff1681565b34801561072057600080fd5b50610496611f13565b34801561073557600080fd5b50600d5461044c90610100900460ff1681565b34801561075457600080fd5b50610425611f20565b34801561076957600080fd5b506104c3610778366004614736565b611fd4565b34801561078957600080fd5b506104966040518060400160405280601581526020017411995c985b199a5b19515e1a1a589a5d1a5bdb958d605a1b81525081565b3480156107ca57600080fd5b506104256107d9366004614a6b565b612009565b3480156107ea57600080fd5b506104256107f93660046146b8565b612307565b34801561080a57600080fd5b506104256108193660046146b8565b61239d565b34801561082a57600080fd5b5061058c6108393660046146b8565b612428565b34801561084a57600080fd5b506104256124ae565b34801561085f57600080fd5b5061058c61086e366004614736565b60009081526010602052604090205490565b34801561088c57600080fd5b506108a061089b3660046146b8565b6124c2565b6040516104589190614b2c565b3480156108b957600080fd5b506104256108c8366004614b70565b61252e565b3480156108d957600080fd5b506104256108e8366004614be4565b61265e565b3480156108f957600080fd5b506006546001600160a01b03166104c3565b34801561091757600080fd5b50610425610926366004614c9d565b6126a8565b34801561093757600080fd5b50610425610946366004614a2a565b612717565b34801561095757600080fd5b5061058c6109663660046146b8565b60146020526000908152604090205481565b34801561098457600080fd5b5061049661274e565b34801561099957600080fd5b50600d5461044c9060ff1681565b3480156109b357600080fd5b506104256109c2366004614cfe565b61275d565b3480156109d357600080fd5b506104256109e2366004614d35565b612771565b3480156109f357600080fd5b50610425612a7c565b348015610a0857600080fd5b50610425610a17366004614db6565b612a99565b348015610a2857600080fd5b50610425612ae7565b348015610a3d57600080fd5b50610496610a4c366004614736565b612b88565b348015610a5d57600080fd5b50610425610a6c366004614a2a565b612bb9565b348015610a7d57600080fd5b50610496612bf0565b348015610a9257600080fd5b50610425610aa13660046146b8565b612bfd565b348015610ab257600080fd5b50610496612c29565b348015610ac757600080fd5b5061044c610ad6366004614e31565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b1057600080fd5b50610496612c36565b348015610b2557600080fd5b5061058c610b34366004614736565b6000908152600f602052604090205490565b348015610b5257600080fd5b5061044c610b613660046146b8565b60076020526000908152604090205460ff1681565b348015610b8257600080fd5b506008546104c3906001600160a01b031681565b348015610ba257600080fd5b50610425610bb13660046146b8565b612c43565b348015610bc257600080fd5b50600d546104c39064010000000090046001600160a01b031681565b348015610bea57600080fd5b50600e546104c3906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b1480610c2f57506001600160e01b03198216635b5e139f60e01b145b80610c4a57506301ffc9a760e01b6001600160e01b03198316145b92915050565b610c58612cbc565b6001600160a01b03166000908152600760205260409020805460ff19169055565b606060008054610c8890614e64565b80601f0160208091040260200160405190810160405280929190818152602001828054610cb490614e64565b8015610d015780601f10610cd657610100808354040283529160200191610d01565b820191906000526020600020905b815481529060010190602001808311610ce457829003601f168201915b5050505050905090565b6000610d1682612d16565b506000908152600460205260409020546001600160a01b031690565b81610d3c81612d3b565b610d468383612e0d565b505050565b610d53612cbc565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b610d7d612cbc565b6001600160a01b038116610df05760405162461bcd60e51b815260206004820152603460248201527f466572616c66696c6545786869626974696f6e56343a20636f737452656365696044820152737665725f206973207a65726f206164647265737360601b606482015260840161041c565b600d80546001600160a01b0390921664010000000002640100000000600160c01b0319909216919091179055565b6040805180820190915260008082526020820152610e3b82612f1d565b610e575760405162461bcd60e51b815260040161041c90614e9e565b50600090815260116020908152604091829020825180840190935280548352600101549082015290565b600d5460ff16610ee85760405162461bcd60e51b815260206004820152602c60248201527f466572616c66696c6545786869626974696f6e56343a20746f6b656e2069732060448201526b6e6f74206275726e61626c6560a01b606482015260840161041c565b60005b8151811015610f6757610f1733838381518110610f0a57610f0a614ed5565b6020026020010151612f3a565b610f335760405162461bcd60e51b815260040161041c90614eeb565b610f55828281518110610f4857610f48614ed5565b6020026020010151612fb9565b80610f5f81614f4e565b915050610eeb565b5050565b826001600160a01b0381163314610f8557610f8533612d3b565b306001600160a01b03841603610fad5760405162461bcd60e51b815260040161041c90614f67565b610fb884848461308f565b50505050565b600d5462010000900460ff166110295760405162461bcd60e51b815260206004820152602a60248201527f466572616c66696c6545786869626974696f6e56343a2073616c65206973206e6044820152691bdd081cdd185c9d195960b21b606482015260840161041c565b6110316130c0565b61103a8161313b565b61104a60e0820160c08301614fc4565b6110b957803534146110b45760405162461bcd60e51b815260206004820152602d60248201527f466572616c66696c6545786869626974696f6e56343a20696e76616c6964207060448201526c185e5b595b9d08185b5bdd5b9d609a1b606482015260840161041c565b611122565b600e54604051632eeee16360e01b81526001600160a01b0390911690632eeee163906110ef9087908790879087906004016151c9565b600060405180830381600087803b15801561110957600080fd5b505af115801561111d573d6000803e3d6000fd5b505050505b6000463083604051602001611139939291906151fb565b60405160208183030381529060405280519060200120905061115d81868686613294565b61117a57604051638baa579f60e01b815260040160405180910390fd5b60006020830135833511156111b457611196608084018461522e565b90506111a760208501358535615277565b6111b1919061528a565b90505b6000806000805b6111c8608088018861522e565b90508110156116a15761121e306111e560808a0160608b016146b8565b6111f260808b018b61522e565b8581811061120257611202614ed5565b90506020020135604051806020016040528060008152506132ec565b600061122d60a089018961522e565b8381811061123d5761123d614ed5565b905060200281019061124f91906152ac565b808060200260200160405190810160405280939291908181526020016000905b8282101561129b5761128c604083028601368190038101906152f5565b8152602001906001019061126f565b50505050509050600086905060005b8251811080156112ba5750600082115b1561139f576000601460008584815181106112d7576112d7614ed5565b6020026020010151600001516001600160a01b03166001600160a01b031681526020019081526020016000205490506000838210156113165781611318565b835b9050611324818961534b565b9750806014600087868151811061133d5761133d614ed5565b6020026020010151600001516001600160a01b03166001600160a01b0316815260200190815260200160002060008282546113789190615277565b9091555061138890508185615277565b93505050808061139790614f4e565b9150506112aa565b50801561149b5760005b82518110156114995760008382815181106113c6576113c6614ed5565b602002602001015160000151905060006127108584815181106113eb576113eb614ed5565b60200260200101516020015185611402919061535e565b61140c919061528a565b600d549091506001600160a01b0364010000000090910481169083160361144057611437818961534b565b97505050611487565b61144a818a61534b565b6040519099506001600160a01b0383169082156108fc029083906000818181858888f19350505050158015611483573d6000803e3d6000fd5b5050505b8061149181614f4e565b9150506113a9565b505b60006016816114ad60808d018d61522e565b878181106114bd576114bd614ed5565b9050602002013581526020019081526020016000206040518060600160405290816000820180546114ed90614e64565b80601f016020809104026020016040519081016040528092919081815260200182805461151990614e64565b80156115665780601f1061153b57610100808354040283529160200191611566565b820191906000526020600020905b81548152906001019060200180831161154957829003601f168201915b5050505050815260200160018201805461157f90614e64565b80601f01602080910402602001604051908101604052809291908181526020018280546115ab90614e64565b80156115f85780601f106115cd576101008083540402835291602001916115f8565b820191906000526020600020905b8154815290600101906020018083116115db57829003601f168201915b50505050508152602001600282015481525050905080604001518561161d919061534b565b945061162c60808b018b61522e565b8581811061163c5761163c614ed5565b905060200201358a606001602081019061165691906146b8565b6001600160a01b03167f0475389cd69b8d3163620b43283bf74e8fc71020c3c6cef2a529b5c405e9687f60405160405180910390a3505050808061169990614f4e565b9150506111bb565b5080156118305760006116b38261331f565b6015546040516370a0823160e01b815230600482015291925082916001600160a01b03909116906370a0823190602401602060405180830381865afa158015611700573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117249190615375565b111561182e576015546000906001600160a01b031663a9059cbb61174e60808b0160608c016146b8565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018590526044016020604051808303816000875af115801561179b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117bf919061538e565b90508061182c5760405162461bcd60e51b815260206004820152603560248201527f466572616c66696c6545786869626974696f6e56343a20466572616c66696c65604482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b606482015260840161041c565b505b505b61183a828461534b565b61184960208801358835615277565b10156118ac5760405162461bcd60e51b815260206004820152602c60248201527f466572616c66696c6545786869626974696f6e56343a20746f74616c2062707360448201526b0206f7665722031302c3030360a41b606482015260840161041c565b60006118b9848835615277565b9050801561190457600d546040516401000000009091046001600160a01b0316906108fc8315029083906000818181858888f19350505050158015611902573d6000803e3d6000fd5b505b50505050505050505050565b600061191b83612428565b821061197d5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161041c565b6001600160a01b03831660009081526012602052604090208054839081106119a7576119a7614ed5565b9060005260206000200154905092915050565b6119c2612cbc565b600d546301000000900460ff16156119ec5760405162461bcd60e51b815260040161041c906153ab565b600d5462010000900460ff1615611a625760405162461bcd60e51b815260206004820152603460248201527f466572616c66696c6545786869626974696f6e56343a205f73656c6c696e6720604482015273726571756972656420746f2062652066616c736560601b606482015260840161041c565b611a6a6130c0565b600d805462ff0000191662010000179055565b611a85612cbc565b828114611aa5576040516313086eff60e21b815260040160405180910390fd5b60005b83811015611c16576000858583818110611ac457611ac4614ed5565b9050602002016020810190611ad991906146b8565b6001600160a01b031603611b0057604051630107349760e51b815260040160405180910390fd5b828282818110611b1257611b12614ed5565b90506020020135600003611b3957604051636745f8fb60e01b815260040160405180910390fd5b600060146000878785818110611b5157611b51614ed5565b9050602002016020810190611b6691906146b8565b6001600160a01b03166001600160a01b03168152602001908152602001600020541115611ba6576040516328547bdf60e01b815260040160405180910390fd5b828282818110611bb857611bb8614ed5565b9050602002013560146000878785818110611bd557611bd5614ed5565b9050602002016020810190611bea91906146b8565b6001600160a01b0316815260208101919091526040016000205580611c0e81614f4e565b915050611aa8565b5050505050565b611c25612cbc565b6000819003611c475760405163683d806b60e11b815260040160405180910390fd5b601a610d4682848361544d565b60198054611c6190614e64565b80601f0160208091040260200160405190810160405280929190818152602001828054611c8d90614e64565b8015611cda5780601f10611caf57610100808354040283529160200191611cda565b820191906000526020600020905b815481529060010190602001808311611cbd57829003601f168201915b505050505081565b611cea612cbc565b828114611d0a576040516313086eff60e21b815260040160405180910390fd5b60005b83811015611c16576000838383818110611d2957611d29614ed5565b9050602002016020810190611d3e91906146b8565b6001600160a01b031603611d6557604051630107349760e51b815260040160405180910390fd5b600060146000858585818110611d7d57611d7d614ed5565b9050602002016020810190611d9291906146b8565b6001600160a01b03166001600160a01b03168152602001908152602001600020541115611dd2576040516328547bdf60e01b815260040160405180910390fd5b60146000868684818110611de857611de8614ed5565b9050602002016020810190611dfd91906146b8565b6001600160a01b03166001600160a01b031681526020019081526020016000205460146000858585818110611e3457611e34614ed5565b9050602002016020810190611e4991906146b8565b6001600160a01b03166001600160a01b031681526020019081526020016000208190555060146000868684818110611e8357611e83614ed5565b9050602002016020810190611e9891906146b8565b6001600160a01b03168152602081019190915260400160009081205580611ebe81614f4e565b915050611d0d565b826001600160a01b0381163314611ee057611ee033612d3b565b306001600160a01b03841603611f085760405162461bcd60e51b815260040161041c90614f67565b610fb88484846133a2565b600a8054611c6190614e64565b611f28612cbc565b600d546301000000900460ff1615611f525760405162461bcd60e51b815260040161041c906153ab565b600d5462010000900460ff16611fc65760405162461bcd60e51b815260206004820152603360248201527f466572616c66696c6545786869626974696f6e56343a205f73656c6c696e6720604482015272726571756972656420746f206265207472756560681b606482015260840161041c565b600d805462ff000019169055565b6000818152600260205260408120546001600160a01b031680610c4a5760405162461bcd60e51b815260040161041c90614e9e565b612011612cbc565b60008251118015612023575060008151115b6120a35760405162461bcd60e51b815260206004820152604560248201527f466572616c66696c6545786869626974696f6e56343a2073657269657349647360448201527f206f7220726563697069656e74416464726573736573206c656e677468206973606482015264207a65726f60d81b608482015260a40161041c565b805182511461212f5760405162461bcd60e51b815260206004820152604c60248201527f466572616c66696c6545786869626974696f6e56343a2073657269657349647360448201527f206c656e67746820697320646966666572656e742066726f6d2072656369706960648201526b656e7441646472657373657360a01b608482015260a40161041c565b612137611f20565b3060008181526012602090815260408083208054825181850281018501909352808352919290919083018282801561218e57602002820191906000526020600020905b81548152602001906001019080831161217a575b5050505050905060005b815181101561228a5760008282815181106121b5576121b5614ed5565b602090810291909101810151600081815260118352604080822081518083019092528054825260010154938101939093529092505b87518161ffff16101561227457878161ffff168151811061220d5761220d614ed5565b6020026020010151826000015103612262576000878261ffff168151811061223757612237614ed5565b6020026020010151905061225c878286604051806020016040528060008152506132ec565b50612274565b8061226c8161550c565b9150506121ea565b505050808061228290614f4e565b915050612198565b5061229482612428565b15610fb85760405162461bcd60e51b815260206004820152603c60248201527f466572616c66696c6545786869626974696f6e56343a20546f6b656e20666f7260448201527f2073616c652062616c616e63652068617320746f206265207a65726f00000000606482015260840161041c565b61230f612cbc565b6001600160a01b03811661237b5760405162461bcd60e51b815260206004820152602d60248201527f466572616c66696c6545786869626974696f6e56343a207661756c745f20697360448201526c207a65726f206164647265737360981b606482015260840161041c565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6123a5612cbc565b6001600160a01b0381166124065760405162461bcd60e51b815260206004820152602260248201527f45434453415369676e3a207369676e65725f206973207a65726f206164647265604482015261737360f01b606482015260840161041c565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166124925760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161041c565b506001600160a01b031660009081526003602052604090205490565b6124b6612cbc565b6124c060006133bd565b565b6001600160a01b03811660009081526012602090815260409182902080548351818402810184019094528084526060939283018282801561252257602002820191906000526020600020905b81548152602001906001019080831161250e575b50505050509050919050565b3360009081526007602052604090205460ff168061255657506006546001600160a01b031633145b61255f57600080fd5b600d546301000000900460ff166125895760405163447691f760e01b815260040160405180910390fd5b60005b81811015610d46578282828181106125a6576125a6614ed5565b90506080020160600135601760008585858181106125c6576125c6614ed5565b9050608002016020013581526020019081526020016000208190555061264c8383838181106125f7576125f7614ed5565b9050608002016000013584848481811061261357612613614ed5565b9050608002016020013585858581811061262f5761262f614ed5565b905060800201604001602081019061264791906146b8565b61340f565b8061265681614f4e565b91505061258c565b3360009081526007602052604090205460ff168061268657506006546001600160a01b031633145b61268f57600080fd5b6040516369bd111d60e11b815260040160405180910390fd5b6126b0612cbc565b600081511161270b5760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a20626173655552495f20697320656d70746044820152607960f81b606482015260840161041c565b600a610f67828261552d565b61271f612cbc565b60008190036127415760405163683d806b60e11b815260040160405180910390fd5b6018610d4682848361544d565b606060018054610c8890614e64565b8161276781612d3b565b610d468383613591565b3360009081526007602052604090205460ff168061279957506006546001600160a01b031633145b6127a257600080fd5b6127ab86612f1d565b6127c8576040516352a7a53160e11b815260040160405180910390fd5b6000868152601660205260408082208151606081019092528054829082906127ef90614e64565b80601f016020809104026020016040519081016040528092919081815260200182805461281b90614e64565b80156128685780601f1061283d57610100808354040283529160200191612868565b820191906000526020600020905b81548152906001019060200180831161284b57829003601f168201915b5050505050815260200160018201805461288190614e64565b80601f01602080910402602001604051908101604052809291908181526020018280546128ad90614e64565b80156128fa5780601f106128cf576101008083540402835291602001916128fa565b820191906000526020600020905b8154815290600101906020018083116128dd57829003601f168201915b505050505081526020016002820154815250509050604051806060016040528087878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250505090825250604080516020601f88018190048102820181019092528681529181019190879087908190840183828082843760009201829052509385525050506020918201859052898152601690915260409020815181906129af908261552d565b50602082015160018201906129c4908261552d565b506040918201516002909101558101516000906129e19084615277565b90508015612a725760006129f489611fd4565b6015549091506001600160a01b03166340c10f1982612a128561331f565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015612a5857600080fd5b505af1158015612a6c573d6000803e3d6000fd5b50505050505b5050505050505050565b612a84612cbc565b600d805463ff000000191690556124c06119ba565b836001600160a01b0381163314612ab357612ab333612d3b565b306001600160a01b03851603612adb5760405162461bcd60e51b815260040161041c90614f67565b611c168585858561359c565b612aef612cbc565b612af7611f20565b30600090815260126020908152604080832080548251818502810185019093528083529192909190830182828015612b4e57602002820191906000526020600020905b815481526020019060010190808311612b3a575b5050505050905060005b8151811015610f6757612b76828281518110610f4857610f48614ed5565b80612b8081614f4e565b915050612b58565b6060612b9382612f1d565b612bb0576040516352a7a53160e11b815260040160405180910390fd5b610c4a826135ce565b612bc1612cbc565b6000819003612be35760405163683d806b60e11b815260040160405180910390fd5b6019610d4682848361544d565b60188054611c6190614e64565b612c05612cbc565b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b600b8054611c6190614e64565b601a8054611c6190614e64565b612c4b612cbc565b6001600160a01b038116612cb05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161041c565b612cb9816133bd565b50565b6006546001600160a01b031633146124c05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161041c565b612d1f81612f1d565b612cb95760405162461bcd60e51b815260040161041c90614e9e565b6008546001600160a01b03163b15612cb957600854604051633185c44d60e21b81523060048201526001600160a01b0383811660248301529091169063c617113490604401602060405180830381865afa158015612d9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dc1919061538e565b612cb95760405162461bcd60e51b815260206004820152601760248201527f6f70657261746f72206973206e6f7420616c6c6f776564000000000000000000604482015260640161041c565b6000612e1882611fd4565b9050806001600160a01b0316836001600160a01b031603612e855760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161041c565b336001600160a01b0382161480612ea15750612ea18133610ad6565b612f135760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000606482015260840161041c565b610d4683836137e2565b6000908152600260205260409020546001600160a01b0316151590565b600080612f4683611fd4565b9050806001600160a01b0316846001600160a01b03161480612f8d57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80612fb15750836001600160a01b0316612fa684610d0b565b6001600160a01b0316145b949350505050565b612fc281612f1d565b612fde5760405162461bcd60e51b815260040161041c90614e9e565b60008181526011602090815260408083208151808301835281548082526001928301548286015285526010909352908320805492939192909190613023908490615277565b925050819055506001600c600082825461303d9190615277565b909155505060008281526011602052604081208181556001015561306082613850565b60405182907fbde7938970372996ff103863625e348ef2bf8f38a5b02181be75aafef17c23d590600090a25050565b6130993382612f3a565b6130b55760405162461bcd60e51b815260040161041c90614eeb565b610d468383836138f3565b60006130cb30612428565b905060008111612cb95760405162461bcd60e51b815260206004820152603560248201527f466572616c66696c6545786869626974696f6e56343a204e6f20746f6b656e206044820152741bdddb995908189e481d1a194818dbdb9d1c9858dd605a1b606482015260840161041c565b600061314a608083018361522e565b9050116131a55760405162461bcd60e51b8152602060048201526024808201527f466572616c66696c6553616c65446174613a20746f6b656e49647320697320656044820152636d70747960e01b606482015260840161041c565b6131b260a082018261522e565b90506131c1608083018361522e565b9050146132365760405162461bcd60e51b815260206004820152603d60248201527f466572616c66696c6553616c65446174613a20746f6b656e49647320616e642060448201527f726576656e7565536861726573206c656e677468206d69736d61746368000000606482015260840161041c565b42816040013511612cb95760405162461bcd60e51b815260206004820152602260248201527f466572616c66696c6553616c65446174613a2073616c65206973206578706972604482015261195960f21b606482015260840161041c565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c859052603c812081906132d190848787613a64565b6009546001600160a01b039081169116149695505050505050565b6132f78484846138f3565b61330384848484613a8c565b610fb85760405162461bcd60e51b815260040161041c906155ec565b6015546040805163313ce56760e01b815290516000926001600160a01b03169163313ce5679160048083019260209291908290030181865afa158015613369573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061338d919061563e565b61339890600a61573f565b610c4a908361535e565b610d4683838360405180602001604052806000815250612a99565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000838152600f6020526040902054151561342984613b8a565b604051602001613439919061576a565b604051602081830303815290604052906134665760405162461bcd60e51b815260040161041c9190614723565b506000838152600f6020908152604080832054601090925290912054106134e15760405162461bcd60e51b815260206004820152602960248201527f466572616c66696c6545786869626974696f6e56343a206e6f20736c6f747320604482015268617661696c61626c6560b81b606482015260840161041c565b6001600c60008282546134f4919061534b565b9091555050600083815260106020526040812080546001929061351890849061534b565b90915550506040805180820182528481526020808201858152600086815260119092529290209051815590516001909101556135548183613c1d565b8183826001600160a01b03167f407d7da1d3b2b1871fbfa2b5b1c4657a3cc5711d3023c552798551c7ee301eea60405160405180910390a4505050565b610f67338383613d98565b6135a63383612f3a565b6135c25760405162461bcd60e51b815260040161041c90614eeb565b610fb8848484846132ec565b606060006016600084815260200190815260200160002060405180606001604052908160008201805461360090614e64565b80601f016020809104026020016040519081016040528092919081815260200182805461362c90614e64565b80156136795780601f1061364e57610100808354040283529160200191613679565b820191906000526020600020905b81548152906001019060200180831161365c57829003601f168201915b5050505050815260200160018201805461369290614e64565b80601f01602080910402602001604051908101604052809291908181526020018280546136be90614e64565b801561370b5780601f106136e05761010080835404028352916020019161370b565b820191906000526020600020905b8154815290600101906020018083116136ee57829003601f168201915b50505091835250506002919091015460209182015260008581526017909152604081205491925061373a610c79565b61374d61374884600161534b565b613b8a565b60405160200161375e9291906157c7565b604051602081830303815290604052905060008161377f8560000151613e66565b61378c8660200151613efd565b60405160200161379e93929190615804565b60405160208183030381529060405290506137b881613fd7565b6040516020016137c891906158d4565b604051602081830303815290604052945050505050919050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061381782611fd4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061385b82611fd4565b905061386b816000846001614129565b61387482611fd4565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b826001600160a01b031661390682611fd4565b6001600160a01b03161461392c5760405162461bcd60e51b815260040161041c90615919565b6001600160a01b03821661398e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161041c565b61399b8383836001614129565b826001600160a01b03166139ae82611fd4565b6001600160a01b0316146139d45760405162461bcd60e51b815260040161041c90615919565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000806000613a7587878787614240565b91509150613a8281614304565b5095945050505050565b60006001600160a01b0384163b15613b8257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613ad090339089908890889060040161595e565b6020604051808303816000875af1925050508015613b0b575060408051601f3d908101601f19168201909252613b0891810190615991565b60015b613b68573d808015613b39576040519150601f19603f3d011682016040523d82523d6000602084013e613b3e565b606091505b508051600003613b605760405162461bcd60e51b815260040161041c906155ec565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612fb1565b506001612fb1565b60606000613b978361444e565b60010190506000816001600160401b03811115613bb657613bb6614779565b6040519080825280601f01601f191660200182016040528015613be0576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084613bea575b509392505050565b6001600160a01b038216613c735760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161041c565b613c7c81612f1d565b15613cc95760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161041c565b613cd7600083836001614129565b613ce081612f1d565b15613d2d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161041c565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b031603613df95760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161041c565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60608151600003613ef95760198054613e7e90614e64565b80601f0160208091040260200160405190810160405280929190818152602001828054613eaa90614e64565b80156125225780601f10613ecc57610100808354040283529160200191612522565b820191906000526020600020905b815481529060010190602001808311613eda5750939695505050505050565b5090565b60608151600003613f155760188054613e7e90614e64565b613fb1613f2183613fd7565b601a8054613f2e90614e64565b80601f0160208091040260200160405190810160405280929190818152602001828054613f5a90614e64565b8015613fa75780601f10613f7c57610100808354040283529160200191613fa7565b820191906000526020600020905b815481529060010190602001808311613f8a57829003601f168201915b5050505050614526565b604051602001613fc191906159ae565b6040516020818303038152906040529050919050565b60608151600003613ff657505060408051602081019091526000815290565b6000604051806060016040528060408152602001615ca46040913990506000600384516002614025919061534b565b61402f919061528a565b61403a90600461535e565b6001600160401b0381111561405157614051614779565b6040519080825280601f01601f19166020018201604052801561407b576020820181803683370190505b509050600182016020820185865187015b808210156140e7576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f811685015184535060018301925061408c565b505060038651066001811461410357600281146141165761411e565b603d6001830353603d600283035361411e565b603d60018303535b509195945050505050565b60018111156141985760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b606482015260840161041c565b816001600160a01b038516158015906141c35750836001600160a01b0316856001600160a01b031614155b156141d2576141d28582614559565b6001600160a01b038416158015906141fc5750846001600160a01b0316846001600160a01b031614155b15611c16576001600160a01b038416600090815260126020908152604080832080546001810182559084528284208101859055848452601390925290912055611c16565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561427757506000905060036142fb565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156142cb573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166142f4576000600192509250506142fb565b9150600090505b94509492505050565b6000816004811115614318576143186159ec565b036143205750565b6001816004811115614334576143346159ec565b036143815760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161041c565b6002816004811115614395576143956159ec565b036143e25760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161041c565b60038160048111156143f6576143f66159ec565b03612cb95760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161041c565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061448d5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106144b9576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106144d757662386f26fc10000830492506010015b6305f5e10083106144ef576305f5e100830492506008015b612710831061450357612710830492506004015b60648310614515576064830492506002015b600a8310610c4a5760010192915050565b6060614552838360405160200161453e929190615a02565b604051602081830303815290604052613fd7565b9392505050565b6000600161456684612428565b6145709190615277565b600083815260136020526040902054909150808214614617576001600160a01b03841660009081526012602052604081208054849081106145b3576145b3614ed5565b906000526020600020015490508060126000876001600160a01b03166001600160a01b0316815260200190815260200160002083815481106145f7576145f7614ed5565b600091825260208083209091019290925591825260139052604090208190555b60008381526013602090815260408083208390556001600160a01b03871683526012909152902080548061464d5761464d615c8d565b6001900381819060005260206000200160009055905550505050565b6001600160e01b031981168114612cb957600080fd5b60006020828403121561469157600080fd5b813561455281614669565b80356001600160a01b03811681146146b357600080fd5b919050565b6000602082840312156146ca57600080fd5b6145528261469c565b60005b838110156146ee5781810151838201526020016146d6565b50506000910152565b6000815180845261470f8160208601602086016146d3565b601f01601f19169290920160200192915050565b60208152600061455260208301846146f7565b60006020828403121561474857600080fd5b5035919050565b6000806040838503121561476257600080fd5b61476b8361469c565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156147b7576147b7614779565b604052919050565b60006001600160401b038211156147d8576147d8614779565b5060051b60200190565b600082601f8301126147f357600080fd5b81356020614808614803836147bf565b61478f565b82815260059290921b8401810191818101908684111561482757600080fd5b8286015b84811015614842578035835291830191830161482b565b509695505050505050565b60006020828403121561485f57600080fd5b81356001600160401b0381111561487557600080fd5b612fb1848285016147e2565b60008060006060848603121561489657600080fd5b61489f8461469c565b92506148ad6020850161469c565b9150604084013590509250925092565b60ff81168114612cb957600080fd5b600080600080608085870312156148e257600080fd5b843593506020850135925060408501356148fb816148bd565b915060608501356001600160401b0381111561491657600080fd5b850160e0818803121561492857600080fd5b939692955090935050565b60008083601f84011261494557600080fd5b5081356001600160401b0381111561495c57600080fd5b6020830191508360208260051b850101111561497757600080fd5b9250929050565b6000806000806040858703121561499457600080fd5b84356001600160401b03808211156149ab57600080fd5b6149b788838901614933565b909650945060208701359150808211156149d057600080fd5b506149dd87828801614933565b95989497509550505050565b60008083601f8401126149fb57600080fd5b5081356001600160401b03811115614a1257600080fd5b60208301915083602082850101111561497757600080fd5b60008060208385031215614a3d57600080fd5b82356001600160401b03811115614a5357600080fd5b614a5f858286016149e9565b90969095509350505050565b60008060408385031215614a7e57600080fd5b82356001600160401b0380821115614a9557600080fd5b614aa1868387016147e2565b9350602091508185013581811115614ab857600080fd5b85019050601f81018613614acb57600080fd5b8035614ad9614803826147bf565b81815260059190911b82018301908381019088831115614af857600080fd5b928401925b82841015614b1d57614b0e8461469c565b82529284019290840190614afd565b80955050505050509250929050565b6020808252825182820181905260009190848201906040850190845b81811015614b6457835183529284019291840191600101614b48565b50909695505050505050565b60008060208385031215614b8357600080fd5b82356001600160401b0380821115614b9a57600080fd5b818501915085601f830112614bae57600080fd5b813581811115614bbd57600080fd5b8660208260071b8501011115614bd257600080fd5b60209290920196919550909350505050565b60008060208385031215614bf757600080fd5b82356001600160401b0380821115614c0e57600080fd5b818501915085601f830112614c2257600080fd5b813581811115614c3157600080fd5b866020606083028501011115614bd257600080fd5b60006001600160401b03831115614c5f57614c5f614779565b614c72601f8401601f191660200161478f565b9050828152838383011115614c8657600080fd5b828260208301376000602084830101529392505050565b600060208284031215614caf57600080fd5b81356001600160401b03811115614cc557600080fd5b8201601f81018413614cd657600080fd5b612fb184823560208401614c46565b8015158114612cb957600080fd5b80356146b381614ce5565b60008060408385031215614d1157600080fd5b614d1a8361469c565b91506020830135614d2a81614ce5565b809150509250929050565b60008060008060008060808789031215614d4e57600080fd5b8635955060208701356001600160401b0380821115614d6c57600080fd5b614d788a838b016149e9565b90975095506040890135915080821115614d9157600080fd5b50614d9e89828a016149e9565b979a9699509497949695606090950135949350505050565b60008060008060808587031215614dcc57600080fd5b614dd58561469c565b9350614de36020860161469c565b92506040850135915060608501356001600160401b03811115614e0557600080fd5b8501601f81018713614e1657600080fd5b614e2587823560208401614c46565b91505092959194509250565b60008060408385031215614e4457600080fd5b614e4d8361469c565b9150614e5b6020840161469c565b90509250929050565b600181811c90821680614e7857607f821691505b602082108103614e9857634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526018908201527f4552433732313a20696e76616c696420746f6b656e2049440000000000000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600060018201614f6057614f60614f38565b5060010190565b6020808252603e908201527f466572616c66696c6545786869626974696f6e56343a20436f6e74726163742060408201527f69736e277420616c6c6f77656420746f207265636569766520746f6b656e0000606082015260800190565b600060208284031215614fd657600080fd5b813561455281614ce5565b6000808335601e19843603018112614ff857600080fd5b83016020810192503590506001600160401b0381111561501757600080fd5b8060051b360382131561497757600080fd5b8183526000602080850194508260005b8581101561506f576001600160a01b036150528361469c565b168752818301358388015260409687019690910190600101615039565b509495945050505050565b81835260006020808501808196508560051b810191508460005b878110156151015782840389528135601e198836030181126150b557600080fd5b870185810190356001600160401b038111156150d057600080fd5b8060061b36038213156150e257600080fd5b6150ed868284615029565b9a87019a9550505090840190600101615094565b5091979650505050505050565b8035825260208082013590830152604080820135908301526001600160a01b0361513a6060830161469c565b166060830152600061514f6080830183614fe1565b60e06080860181905285018190526101006001600160fb1b0382111561517457600080fd5b8160051b9150818382880137818601925061519260a0860186614fe1565b9250818785030160a08801526151ab828501848361507a565b93505050506151bc60c08401614cf3565b80151560c0860152613c15565b84815283602082015260ff831660408201526080606082015260006151f1608083018461510e565b9695505050505050565b8381526001600160a01b03831660208201526060604082018190526000906152259083018461510e565b95945050505050565b6000808335601e1984360301811261524557600080fd5b8301803591506001600160401b0382111561525f57600080fd5b6020019150600581901b360382131561497757600080fd5b81810381811115610c4a57610c4a614f38565b6000826152a757634e487b7160e01b600052601260045260246000fd5b500490565b6000808335601e198436030181126152c357600080fd5b8301803591506001600160401b038211156152dd57600080fd5b6020019150600681901b360382131561497757600080fd5b60006040828403121561530757600080fd5b604051604081018181106001600160401b038211171561532957615329614779565b6040526153358361469c565b8152602083013560208201528091505092915050565b80820180821115610c4a57610c4a614f38565b8082028115828204841417610c4a57610c4a614f38565b60006020828403121561538757600080fd5b5051919050565b6000602082840312156153a057600080fd5b815161455281614ce5565b60208082526034908201527f466572616c66696c6545786869626974696f6e56343a206d696e7461626c6520604082015273726571756972656420746f2062652066616c736560601b606082015260800190565b601f821115610d4657600081815260208120601f850160051c810160208610156154265750805b601f850160051c820191505b8181101561544557828155600101615432565b505050505050565b6001600160401b0383111561546457615464614779565b615478836154728354614e64565b836153ff565b6000601f8411600181146154ac57600085156154945750838201355b600019600387901b1c1916600186901b178355611c16565b600083815260209020601f19861690835b828110156154dd57868501358255602094850194600190920191016154bd565b50868210156154fa5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b600061ffff80831681810361552357615523614f38565b6001019392505050565b81516001600160401b0381111561554657615546614779565b61555a816155548454614e64565b846153ff565b602080601f83116001811461558f57600084156155775750858301515b600019600386901b1c1916600185901b178555615445565b600085815260208120601f198616915b828110156155be5788860151825594840194600190910190840161559f565b50858210156155dc5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006020828403121561565057600080fd5b8151614552816148bd565b600181815b8085111561569657816000190482111561567c5761567c614f38565b8085161561568957918102915b93841c9390800290615660565b509250929050565b6000826156ad57506001610c4a565b816156ba57506000610c4a565b81600181146156d057600281146156da576156f6565b6001915050610c4a565b60ff8411156156eb576156eb614f38565b50506001821b610c4a565b5060208310610133831016604e8410600b8410161715615719575081810a610c4a565b615723838361565b565b806000190482111561573757615737614f38565b029392505050565b600061455260ff84168361569e565b600081516157608185602086016146d3565b9290920192915050565b7f466572616c66696c6545786869626974696f6e56343a2073657269657349642081526e03237b2b9b713ba1032bc34b9ba1d1608d1b6020820152600082516157ba81602f8501602087016146d3565b91909101602f0192915050565b600083516157d98184602088016146d3565b61202360f01b90830190815283516157f88160028401602088016146d3565b01600201949350505050565b683d913730b6b2911d1160b91b815283516000906158298160098501602089016146d3565b7f222c202265787465726e616c5f75726c223a2268747470733a2f2f666572616c600991840191820152733334b6329731b7b69116101134b6b0b3b2911d1160611b6029820152845161588381603d8401602089016146d3565b731116101130b734b6b0ba34b7b72fbab936111d1160611b603d929091019182015283516158b88160518401602088016146d3565b61227d60f01b6051929091019182015260530195945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161590c81601d8501602087016146d3565b91909101601d0192915050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906151f1908301846146f7565b6000602082840312156159a357600080fd5b815161455281614669565b7519185d184e9d195e1d0bda1d1b5b0ed8985cd94d8d0b60521b8152600082516159df8160168501602087016146d3565b9190910160160192915050565b634e487b7160e01b600052602160045260246000fd5b7f3c21444f43545950452068746d6c3e3c68746d6c206c616e673d22656e223e3c81527f686561643e3c6d65746120636861727365743d225554462d38223e000000000060208201527f3c7363726970743e7661722064656661756c74417274776f726b446174613d22603b82015260008351615a8681605b8501602088016146d3565b7f223b6c657420616c6c6f774f726967696e73203d207b2268747470733a2f2f66605b918401918201527f6572616c66696c652e636f6d223a2021307d3b66756e6374696f6e20696e6974607b8201527f4461746128297b646f63756d656e742e676574456c656d656e74427949642822609b8201527f6d61696e6672616d6522292e636f6e74656e7457696e646f772e706f73744d6560bb8201527f73736167652864656661756c74417274776f726b446174612c20222a22293b7d60db820152681e17b9b1b934b83a1f60b91b60fb8201527f3c2f686561643e3c626f6479207374796c653d226f766572666c6f772d783a686101048201527f696464656e3b70616464696e673a303b6d617267696e3a303b77696474683a206101248201527f313030253b22206f6e6c6f61643d22696e6974446174612829223e3c696672616101448201527f6d652069643d226d61696e6672616d6522207374796c653d22646973706c61796101648201527f3a626c6f636b3b70616464696e673a303b6d617267696e3a303b626f726465726101848201527f3a6e6f6e653b77696474683a313030253b6865696768743a31303076683b22206101a48201526439b9319e9160d91b6101c4820152615225615c646101c983018661574e565b7f223e3c2f696672616d653e3c2f626f64793e3c2f68746d6c3e00000000000000815260190190565b634e487b7160e01b600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220d29ff0bf949597685d919529cf38a5e92442389a9f4fd9f31230bb706c72d9ac64736f6c63430008110033", +} + +// FeralfileExhibitionV42ABI is the input ABI used to generate the binding from. +// Deprecated: Use FeralfileExhibitionV42MetaData.ABI instead. +var FeralfileExhibitionV42ABI = FeralfileExhibitionV42MetaData.ABI + +// FeralfileExhibitionV42Bin is the compiled bytecode used for deploying new contracts. +// Deprecated: Use FeralfileExhibitionV42MetaData.Bin instead. +var FeralfileExhibitionV42Bin = FeralfileExhibitionV42MetaData.Bin + +// DeployFeralfileExhibitionV42 deploys a new Ethereum contract, binding an instance of FeralfileExhibitionV42 to it. +func DeployFeralfileExhibitionV42(auth *bind.TransactOpts, backend bind.ContractBackend, name_ string, symbol_ string, burnable_ bool, bridgeable_ bool, signer_ common.Address, vault_ common.Address, costReceiver_ common.Address, contractURI_ string, seriesIds_ []*big.Int, seriesMaxSupplies_ []*big.Int, erc20ContractAddress_ common.Address) (common.Address, *types.Transaction, *FeralfileExhibitionV42, error) { + parsed, err := FeralfileExhibitionV42MetaData.GetAbi() + if err != nil { + return common.Address{}, nil, nil, err + } + if parsed == nil { + return common.Address{}, nil, nil, errors.New("GetABI returned nil") + } + + address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(FeralfileExhibitionV42Bin), backend, name_, symbol_, burnable_, bridgeable_, signer_, vault_, costReceiver_, contractURI_, seriesIds_, seriesMaxSupplies_, erc20ContractAddress_) + if err != nil { + return common.Address{}, nil, nil, err + } + return address, tx, &FeralfileExhibitionV42{FeralfileExhibitionV42Caller: FeralfileExhibitionV42Caller{contract: contract}, FeralfileExhibitionV42Transactor: FeralfileExhibitionV42Transactor{contract: contract}, FeralfileExhibitionV42Filterer: FeralfileExhibitionV42Filterer{contract: contract}}, nil +} + +// FeralfileExhibitionV42 is an auto generated Go binding around an Ethereum contract. +type FeralfileExhibitionV42 struct { + FeralfileExhibitionV42Caller // Read-only binding to the contract + FeralfileExhibitionV42Transactor // Write-only binding to the contract + FeralfileExhibitionV42Filterer // Log filterer for contract events +} + +// FeralfileExhibitionV42Caller is an auto generated read-only Go binding around an Ethereum contract. +type FeralfileExhibitionV42Caller struct { + contract *bind.BoundContract // Generic contract wrapper for the low level calls +} + +// FeralfileExhibitionV42Transactor is an auto generated write-only Go binding around an Ethereum contract. +type FeralfileExhibitionV42Transactor struct { + contract *bind.BoundContract // Generic contract wrapper for the low level calls +} + +// FeralfileExhibitionV42Filterer is an auto generated log filtering Go binding around an Ethereum contract events. +type FeralfileExhibitionV42Filterer struct { + contract *bind.BoundContract // Generic contract wrapper for the low level calls +} + +// FeralfileExhibitionV42Session is an auto generated Go binding around an Ethereum contract, +// with pre-set call and transact options. +type FeralfileExhibitionV42Session struct { + Contract *FeralfileExhibitionV42 // Generic contract binding to set the session for + CallOpts bind.CallOpts // Call options to use throughout this session + TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session +} + +// FeralfileExhibitionV42CallerSession is an auto generated read-only Go binding around an Ethereum contract, +// with pre-set call options. +type FeralfileExhibitionV42CallerSession struct { + Contract *FeralfileExhibitionV42Caller // Generic contract caller binding to set the session for + CallOpts bind.CallOpts // Call options to use throughout this session +} + +// FeralfileExhibitionV42TransactorSession is an auto generated write-only Go binding around an Ethereum contract, +// with pre-set transact options. +type FeralfileExhibitionV42TransactorSession struct { + Contract *FeralfileExhibitionV42Transactor // Generic contract transactor binding to set the session for + TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session +} + +// FeralfileExhibitionV42Raw is an auto generated low-level Go binding around an Ethereum contract. +type FeralfileExhibitionV42Raw struct { + Contract *FeralfileExhibitionV42 // Generic contract binding to access the raw methods on +} + +// FeralfileExhibitionV42CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. +type FeralfileExhibitionV42CallerRaw struct { + Contract *FeralfileExhibitionV42Caller // Generic read-only contract binding to access the raw methods on +} + +// FeralfileExhibitionV42TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. +type FeralfileExhibitionV42TransactorRaw struct { + Contract *FeralfileExhibitionV42Transactor // Generic write-only contract binding to access the raw methods on +} + +// NewFeralfileExhibitionV42 creates a new instance of FeralfileExhibitionV42, bound to a specific deployed contract. +func NewFeralfileExhibitionV42(address common.Address, backend bind.ContractBackend) (*FeralfileExhibitionV42, error) { + contract, err := bindFeralfileExhibitionV42(address, backend, backend, backend) + if err != nil { + return nil, err + } + return &FeralfileExhibitionV42{FeralfileExhibitionV42Caller: FeralfileExhibitionV42Caller{contract: contract}, FeralfileExhibitionV42Transactor: FeralfileExhibitionV42Transactor{contract: contract}, FeralfileExhibitionV42Filterer: FeralfileExhibitionV42Filterer{contract: contract}}, nil +} + +// NewFeralfileExhibitionV42Caller creates a new read-only instance of FeralfileExhibitionV42, bound to a specific deployed contract. +func NewFeralfileExhibitionV42Caller(address common.Address, caller bind.ContractCaller) (*FeralfileExhibitionV42Caller, error) { + contract, err := bindFeralfileExhibitionV42(address, caller, nil, nil) + if err != nil { + return nil, err + } + return &FeralfileExhibitionV42Caller{contract: contract}, nil +} + +// NewFeralfileExhibitionV42Transactor creates a new write-only instance of FeralfileExhibitionV42, bound to a specific deployed contract. +func NewFeralfileExhibitionV42Transactor(address common.Address, transactor bind.ContractTransactor) (*FeralfileExhibitionV42Transactor, error) { + contract, err := bindFeralfileExhibitionV42(address, nil, transactor, nil) + if err != nil { + return nil, err + } + return &FeralfileExhibitionV42Transactor{contract: contract}, nil +} + +// NewFeralfileExhibitionV42Filterer creates a new log filterer instance of FeralfileExhibitionV42, bound to a specific deployed contract. +func NewFeralfileExhibitionV42Filterer(address common.Address, filterer bind.ContractFilterer) (*FeralfileExhibitionV42Filterer, error) { + contract, err := bindFeralfileExhibitionV42(address, nil, nil, filterer) + if err != nil { + return nil, err + } + return &FeralfileExhibitionV42Filterer{contract: contract}, nil +} + +// bindFeralfileExhibitionV42 binds a generic wrapper to an already deployed contract. +func bindFeralfileExhibitionV42(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { + parsed, err := FeralfileExhibitionV42MetaData.GetAbi() + if err != nil { + return nil, err + } + return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil +} + +// Call invokes the (constant) contract method with params as input values and +// sets the output to result. The result type might be a single field for simple +// returns, a slice of interfaces for anonymous returns and a struct for named +// returns. +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _FeralfileExhibitionV42.Contract.FeralfileExhibitionV42Caller.contract.Call(opts, result, method, params...) +} + +// Transfer initiates a plain transaction to move funds to the contract, calling +// its default method if one is available. +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.FeralfileExhibitionV42Transactor.contract.Transfer(opts) +} + +// Transact invokes the (paid) contract method with params as input values. +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.FeralfileExhibitionV42Transactor.contract.Transact(opts, method, params...) +} + +// Call invokes the (constant) contract method with params as input values and +// sets the output to result. The result type might be a single field for simple +// returns, a slice of interfaces for anonymous returns and a struct for named +// returns. +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { + return _FeralfileExhibitionV42.Contract.contract.Call(opts, result, method, params...) +} + +// Transfer initiates a plain transaction to move funds to the contract, calling +// its default method if one is available. +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.contract.Transfer(opts) +} + +// Transact invokes the (paid) contract method with params as input values. +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.contract.Transact(opts, method, params...) +} + +// OperatorFilterRegistry is a free data retrieval call binding the contract method 0xf07e7fd0. +// +// Solidity: function OperatorFilterRegistry() view returns(address) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) OperatorFilterRegistry(opts *bind.CallOpts) (common.Address, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "OperatorFilterRegistry") + + if err != nil { + return *new(common.Address), err + } + + out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) + + return out0, err + +} + +// OperatorFilterRegistry is a free data retrieval call binding the contract method 0xf07e7fd0. +// +// Solidity: function OperatorFilterRegistry() view returns(address) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) OperatorFilterRegistry() (common.Address, error) { + return _FeralfileExhibitionV42.Contract.OperatorFilterRegistry(&_FeralfileExhibitionV42.CallOpts) +} + +// OperatorFilterRegistry is a free data retrieval call binding the contract method 0xf07e7fd0. +// +// Solidity: function OperatorFilterRegistry() view returns(address) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) OperatorFilterRegistry() (common.Address, error) { + return _FeralfileExhibitionV42.Contract.OperatorFilterRegistry(&_FeralfileExhibitionV42.CallOpts) +} + +// Advances is a free data retrieval call binding the contract method 0x926ce44e. +// +// Solidity: function advances(address ) view returns(uint256) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) Advances(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "advances", arg0) + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// Advances is a free data retrieval call binding the contract method 0x926ce44e. +// +// Solidity: function advances(address ) view returns(uint256) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) Advances(arg0 common.Address) (*big.Int, error) { + return _FeralfileExhibitionV42.Contract.Advances(&_FeralfileExhibitionV42.CallOpts, arg0) +} + +// Advances is a free data retrieval call binding the contract method 0x926ce44e. +// +// Solidity: function advances(address ) view returns(uint256) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) Advances(arg0 common.Address) (*big.Int, error) { + return _FeralfileExhibitionV42.Contract.Advances(&_FeralfileExhibitionV42.CallOpts, arg0) +} + +// ArtworkFileURI is a free data retrieval call binding the contract method 0xe9f585e0. +// +// Solidity: function artworkFileURI() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) ArtworkFileURI(opts *bind.CallOpts) (string, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "artworkFileURI") + + if err != nil { + return *new(string), err + } + + out0 := *abi.ConvertType(out[0], new(string)).(*string) + + return out0, err + +} + +// ArtworkFileURI is a free data retrieval call binding the contract method 0xe9f585e0. +// +// Solidity: function artworkFileURI() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) ArtworkFileURI() (string, error) { + return _FeralfileExhibitionV42.Contract.ArtworkFileURI(&_FeralfileExhibitionV42.CallOpts) +} + +// ArtworkFileURI is a free data retrieval call binding the contract method 0xe9f585e0. +// +// Solidity: function artworkFileURI() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) ArtworkFileURI() (string, error) { + return _FeralfileExhibitionV42.Contract.ArtworkFileURI(&_FeralfileExhibitionV42.CallOpts) +} + +// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. +// +// Solidity: function balanceOf(address owner) view returns(uint256) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "balanceOf", owner) + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. +// +// Solidity: function balanceOf(address owner) view returns(uint256) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) BalanceOf(owner common.Address) (*big.Int, error) { + return _FeralfileExhibitionV42.Contract.BalanceOf(&_FeralfileExhibitionV42.CallOpts, owner) +} + +// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. +// +// Solidity: function balanceOf(address owner) view returns(uint256) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) BalanceOf(owner common.Address) (*big.Int, error) { + return _FeralfileExhibitionV42.Contract.BalanceOf(&_FeralfileExhibitionV42.CallOpts, owner) +} + +// Bridgeable is a free data retrieval call binding the contract method 0x530da8ef. +// +// Solidity: function bridgeable() view returns(bool) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) Bridgeable(opts *bind.CallOpts) (bool, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "bridgeable") + + if err != nil { + return *new(bool), err + } + + out0 := *abi.ConvertType(out[0], new(bool)).(*bool) + + return out0, err + +} + +// Bridgeable is a free data retrieval call binding the contract method 0x530da8ef. +// +// Solidity: function bridgeable() view returns(bool) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) Bridgeable() (bool, error) { + return _FeralfileExhibitionV42.Contract.Bridgeable(&_FeralfileExhibitionV42.CallOpts) +} + +// Bridgeable is a free data retrieval call binding the contract method 0x530da8ef. +// +// Solidity: function bridgeable() view returns(bool) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) Bridgeable() (bool, error) { + return _FeralfileExhibitionV42.Contract.Bridgeable(&_FeralfileExhibitionV42.CallOpts) +} + +// Burnable is a free data retrieval call binding the contract method 0xa07c7ce4. +// +// Solidity: function burnable() view returns(bool) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) Burnable(opts *bind.CallOpts) (bool, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "burnable") + + if err != nil { + return *new(bool), err + } + + out0 := *abi.ConvertType(out[0], new(bool)).(*bool) + + return out0, err + +} + +// Burnable is a free data retrieval call binding the contract method 0xa07c7ce4. +// +// Solidity: function burnable() view returns(bool) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) Burnable() (bool, error) { + return _FeralfileExhibitionV42.Contract.Burnable(&_FeralfileExhibitionV42.CallOpts) +} + +// Burnable is a free data retrieval call binding the contract method 0xa07c7ce4. +// +// Solidity: function burnable() view returns(bool) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) Burnable() (bool, error) { + return _FeralfileExhibitionV42.Contract.Burnable(&_FeralfileExhibitionV42.CallOpts) +} + +// CodeVersion is a free data retrieval call binding the contract method 0x63e60230. +// +// Solidity: function codeVersion() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) CodeVersion(opts *bind.CallOpts) (string, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "codeVersion") + + if err != nil { + return *new(string), err + } + + out0 := *abi.ConvertType(out[0], new(string)).(*string) + + return out0, err + +} + +// CodeVersion is a free data retrieval call binding the contract method 0x63e60230. +// +// Solidity: function codeVersion() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) CodeVersion() (string, error) { + return _FeralfileExhibitionV42.Contract.CodeVersion(&_FeralfileExhibitionV42.CallOpts) +} + +// CodeVersion is a free data retrieval call binding the contract method 0x63e60230. +// +// Solidity: function codeVersion() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) CodeVersion() (string, error) { + return _FeralfileExhibitionV42.Contract.CodeVersion(&_FeralfileExhibitionV42.CallOpts) +} + +// ContractURI is a free data retrieval call binding the contract method 0xe8a3d485. +// +// Solidity: function contractURI() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) ContractURI(opts *bind.CallOpts) (string, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "contractURI") + + if err != nil { + return *new(string), err + } + + out0 := *abi.ConvertType(out[0], new(string)).(*string) + + return out0, err + +} + +// ContractURI is a free data retrieval call binding the contract method 0xe8a3d485. +// +// Solidity: function contractURI() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) ContractURI() (string, error) { + return _FeralfileExhibitionV42.Contract.ContractURI(&_FeralfileExhibitionV42.CallOpts) +} + +// ContractURI is a free data retrieval call binding the contract method 0xe8a3d485. +// +// Solidity: function contractURI() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) ContractURI() (string, error) { + return _FeralfileExhibitionV42.Contract.ContractURI(&_FeralfileExhibitionV42.CallOpts) +} + +// CostReceiver is a free data retrieval call binding the contract method 0xf4e638be. +// +// Solidity: function costReceiver() view returns(address) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) CostReceiver(opts *bind.CallOpts) (common.Address, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "costReceiver") + + if err != nil { + return *new(common.Address), err + } + + out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) + + return out0, err + +} + +// CostReceiver is a free data retrieval call binding the contract method 0xf4e638be. +// +// Solidity: function costReceiver() view returns(address) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) CostReceiver() (common.Address, error) { + return _FeralfileExhibitionV42.Contract.CostReceiver(&_FeralfileExhibitionV42.CallOpts) +} + +// CostReceiver is a free data retrieval call binding the contract method 0xf4e638be. +// +// Solidity: function costReceiver() view returns(address) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) CostReceiver() (common.Address, error) { + return _FeralfileExhibitionV42.Contract.CostReceiver(&_FeralfileExhibitionV42.CallOpts) +} + +// GetApproved is a free data retrieval call binding the contract method 0x081812fc. +// +// Solidity: function getApproved(uint256 tokenId) view returns(address) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) GetApproved(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "getApproved", tokenId) + + if err != nil { + return *new(common.Address), err + } + + out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) + + return out0, err + +} + +// GetApproved is a free data retrieval call binding the contract method 0x081812fc. +// +// Solidity: function getApproved(uint256 tokenId) view returns(address) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) GetApproved(tokenId *big.Int) (common.Address, error) { + return _FeralfileExhibitionV42.Contract.GetApproved(&_FeralfileExhibitionV42.CallOpts, tokenId) +} + +// GetApproved is a free data retrieval call binding the contract method 0x081812fc. +// +// Solidity: function getApproved(uint256 tokenId) view returns(address) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) GetApproved(tokenId *big.Int) (common.Address, error) { + return _FeralfileExhibitionV42.Contract.GetApproved(&_FeralfileExhibitionV42.CallOpts, tokenId) +} + +// GetArtwork is a free data retrieval call binding the contract method 0x167ddf6e. +// +// Solidity: function getArtwork(uint256 tokenId) view returns((uint256,uint256)) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) GetArtwork(opts *bind.CallOpts, tokenId *big.Int) (FeralfileExhibitionV4Artwork, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "getArtwork", tokenId) + + if err != nil { + return *new(FeralfileExhibitionV4Artwork), err + } + + out0 := *abi.ConvertType(out[0], new(FeralfileExhibitionV4Artwork)).(*FeralfileExhibitionV4Artwork) + + return out0, err + +} + +// GetArtwork is a free data retrieval call binding the contract method 0x167ddf6e. +// +// Solidity: function getArtwork(uint256 tokenId) view returns((uint256,uint256)) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) GetArtwork(tokenId *big.Int) (FeralfileExhibitionV4Artwork, error) { + return _FeralfileExhibitionV42.Contract.GetArtwork(&_FeralfileExhibitionV42.CallOpts, tokenId) +} + +// GetArtwork is a free data retrieval call binding the contract method 0x167ddf6e. +// +// Solidity: function getArtwork(uint256 tokenId) view returns((uint256,uint256)) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) GetArtwork(tokenId *big.Int) (FeralfileExhibitionV4Artwork, error) { + return _FeralfileExhibitionV42.Contract.GetArtwork(&_FeralfileExhibitionV42.CallOpts, tokenId) +} + +// IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5. +// +// Solidity: function isApprovedForAll(address owner, address operator) view returns(bool) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) IsApprovedForAll(opts *bind.CallOpts, owner common.Address, operator common.Address) (bool, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "isApprovedForAll", owner, operator) + + if err != nil { + return *new(bool), err + } + + out0 := *abi.ConvertType(out[0], new(bool)).(*bool) + + return out0, err + +} + +// IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5. +// +// Solidity: function isApprovedForAll(address owner, address operator) view returns(bool) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error) { + return _FeralfileExhibitionV42.Contract.IsApprovedForAll(&_FeralfileExhibitionV42.CallOpts, owner, operator) +} + +// IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5. +// +// Solidity: function isApprovedForAll(address owner, address operator) view returns(bool) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error) { + return _FeralfileExhibitionV42.Contract.IsApprovedForAll(&_FeralfileExhibitionV42.CallOpts, owner, operator) +} + +// MintArtworks is a free data retrieval call binding the contract method 0x8cba1c67. +// +// Solidity: function mintArtworks((uint256,uint256,address)[] ) view returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) MintArtworks(opts *bind.CallOpts, arg0 []FeralfileExhibitionV4MintData) error { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "mintArtworks", arg0) + + if err != nil { + return err + } + + return err + +} + +// MintArtworks is a free data retrieval call binding the contract method 0x8cba1c67. +// +// Solidity: function mintArtworks((uint256,uint256,address)[] ) view returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) MintArtworks(arg0 []FeralfileExhibitionV4MintData) error { + return _FeralfileExhibitionV42.Contract.MintArtworks(&_FeralfileExhibitionV42.CallOpts, arg0) +} + +// MintArtworks is a free data retrieval call binding the contract method 0x8cba1c67. +// +// Solidity: function mintArtworks((uint256,uint256,address)[] ) view returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) MintArtworks(arg0 []FeralfileExhibitionV4MintData) error { + return _FeralfileExhibitionV42.Contract.MintArtworks(&_FeralfileExhibitionV42.CallOpts, arg0) +} + +// Mintable is a free data retrieval call binding the contract method 0x4bf365df. +// +// Solidity: function mintable() view returns(bool) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) Mintable(opts *bind.CallOpts) (bool, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "mintable") + + if err != nil { + return *new(bool), err + } + + out0 := *abi.ConvertType(out[0], new(bool)).(*bool) + + return out0, err + +} + +// Mintable is a free data retrieval call binding the contract method 0x4bf365df. +// +// Solidity: function mintable() view returns(bool) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) Mintable() (bool, error) { + return _FeralfileExhibitionV42.Contract.Mintable(&_FeralfileExhibitionV42.CallOpts) +} + +// Mintable is a free data retrieval call binding the contract method 0x4bf365df. +// +// Solidity: function mintable() view returns(bool) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) Mintable() (bool, error) { + return _FeralfileExhibitionV42.Contract.Mintable(&_FeralfileExhibitionV42.CallOpts) +} + +// Name is a free data retrieval call binding the contract method 0x06fdde03. +// +// Solidity: function name() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) Name(opts *bind.CallOpts) (string, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "name") + + if err != nil { + return *new(string), err + } + + out0 := *abi.ConvertType(out[0], new(string)).(*string) + + return out0, err + +} + +// Name is a free data retrieval call binding the contract method 0x06fdde03. +// +// Solidity: function name() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) Name() (string, error) { + return _FeralfileExhibitionV42.Contract.Name(&_FeralfileExhibitionV42.CallOpts) +} + +// Name is a free data retrieval call binding the contract method 0x06fdde03. +// +// Solidity: function name() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) Name() (string, error) { + return _FeralfileExhibitionV42.Contract.Name(&_FeralfileExhibitionV42.CallOpts) +} + +// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. +// +// Solidity: function owner() view returns(address) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) Owner(opts *bind.CallOpts) (common.Address, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "owner") + + if err != nil { + return *new(common.Address), err + } + + out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) + + return out0, err + +} + +// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. +// +// Solidity: function owner() view returns(address) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) Owner() (common.Address, error) { + return _FeralfileExhibitionV42.Contract.Owner(&_FeralfileExhibitionV42.CallOpts) +} + +// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. +// +// Solidity: function owner() view returns(address) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) Owner() (common.Address, error) { + return _FeralfileExhibitionV42.Contract.Owner(&_FeralfileExhibitionV42.CallOpts) +} + +// OwnerOf is a free data retrieval call binding the contract method 0x6352211e. +// +// Solidity: function ownerOf(uint256 tokenId) view returns(address) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) OwnerOf(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "ownerOf", tokenId) + + if err != nil { + return *new(common.Address), err + } + + out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) + + return out0, err + +} + +// OwnerOf is a free data retrieval call binding the contract method 0x6352211e. +// +// Solidity: function ownerOf(uint256 tokenId) view returns(address) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) OwnerOf(tokenId *big.Int) (common.Address, error) { + return _FeralfileExhibitionV42.Contract.OwnerOf(&_FeralfileExhibitionV42.CallOpts, tokenId) +} + +// OwnerOf is a free data retrieval call binding the contract method 0x6352211e. +// +// Solidity: function ownerOf(uint256 tokenId) view returns(address) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) OwnerOf(tokenId *big.Int) (common.Address, error) { + return _FeralfileExhibitionV42.Contract.OwnerOf(&_FeralfileExhibitionV42.CallOpts, tokenId) +} + +// Selling is a free data retrieval call binding the contract method 0x23aed228. +// +// Solidity: function selling() view returns(bool) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) Selling(opts *bind.CallOpts) (bool, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "selling") + + if err != nil { + return *new(bool), err + } + + out0 := *abi.ConvertType(out[0], new(bool)).(*bool) + + return out0, err + +} + +// Selling is a free data retrieval call binding the contract method 0x23aed228. +// +// Solidity: function selling() view returns(bool) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) Selling() (bool, error) { + return _FeralfileExhibitionV42.Contract.Selling(&_FeralfileExhibitionV42.CallOpts) +} + +// Selling is a free data retrieval call binding the contract method 0x23aed228. +// +// Solidity: function selling() view returns(bool) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) Selling() (bool, error) { + return _FeralfileExhibitionV42.Contract.Selling(&_FeralfileExhibitionV42.CallOpts) +} + +// SeriesMaxSupply is a free data retrieval call binding the contract method 0xeb5c60f2. +// +// Solidity: function seriesMaxSupply(uint256 seriesId) view returns(uint256) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) SeriesMaxSupply(opts *bind.CallOpts, seriesId *big.Int) (*big.Int, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "seriesMaxSupply", seriesId) + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// SeriesMaxSupply is a free data retrieval call binding the contract method 0xeb5c60f2. +// +// Solidity: function seriesMaxSupply(uint256 seriesId) view returns(uint256) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) SeriesMaxSupply(seriesId *big.Int) (*big.Int, error) { + return _FeralfileExhibitionV42.Contract.SeriesMaxSupply(&_FeralfileExhibitionV42.CallOpts, seriesId) +} + +// SeriesMaxSupply is a free data retrieval call binding the contract method 0xeb5c60f2. +// +// Solidity: function seriesMaxSupply(uint256 seriesId) view returns(uint256) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) SeriesMaxSupply(seriesId *big.Int) (*big.Int, error) { + return _FeralfileExhibitionV42.Contract.SeriesMaxSupply(&_FeralfileExhibitionV42.CallOpts, seriesId) +} + +// SeriesTotalSupply is a free data retrieval call binding the contract method 0x7f06ee06. +// +// Solidity: function seriesTotalSupply(uint256 seriesId) view returns(uint256) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) SeriesTotalSupply(opts *bind.CallOpts, seriesId *big.Int) (*big.Int, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "seriesTotalSupply", seriesId) + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// SeriesTotalSupply is a free data retrieval call binding the contract method 0x7f06ee06. +// +// Solidity: function seriesTotalSupply(uint256 seriesId) view returns(uint256) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) SeriesTotalSupply(seriesId *big.Int) (*big.Int, error) { + return _FeralfileExhibitionV42.Contract.SeriesTotalSupply(&_FeralfileExhibitionV42.CallOpts, seriesId) +} + +// SeriesTotalSupply is a free data retrieval call binding the contract method 0x7f06ee06. +// +// Solidity: function seriesTotalSupply(uint256 seriesId) view returns(uint256) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) SeriesTotalSupply(seriesId *big.Int) (*big.Int, error) { + return _FeralfileExhibitionV42.Contract.SeriesTotalSupply(&_FeralfileExhibitionV42.CallOpts, seriesId) +} + +// Signer is a free data retrieval call binding the contract method 0x238ac933. +// +// Solidity: function signer() view returns(address) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) Signer(opts *bind.CallOpts) (common.Address, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "signer") + + if err != nil { + return *new(common.Address), err + } + + out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) + + return out0, err + +} + +// Signer is a free data retrieval call binding the contract method 0x238ac933. +// +// Solidity: function signer() view returns(address) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) Signer() (common.Address, error) { + return _FeralfileExhibitionV42.Contract.Signer(&_FeralfileExhibitionV42.CallOpts) +} + +// Signer is a free data retrieval call binding the contract method 0x238ac933. +// +// Solidity: function signer() view returns(address) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) Signer() (common.Address, error) { + return _FeralfileExhibitionV42.Contract.Signer(&_FeralfileExhibitionV42.CallOpts) +} + +// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. +// +// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "supportsInterface", interfaceId) + + if err != nil { + return *new(bool), err + } + + out0 := *abi.ConvertType(out[0], new(bool)).(*bool) + + return out0, err + +} + +// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. +// +// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) SupportsInterface(interfaceId [4]byte) (bool, error) { + return _FeralfileExhibitionV42.Contract.SupportsInterface(&_FeralfileExhibitionV42.CallOpts, interfaceId) +} + +// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. +// +// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) SupportsInterface(interfaceId [4]byte) (bool, error) { + return _FeralfileExhibitionV42.Contract.SupportsInterface(&_FeralfileExhibitionV42.CallOpts, interfaceId) +} + +// Symbol is a free data retrieval call binding the contract method 0x95d89b41. +// +// Solidity: function symbol() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) Symbol(opts *bind.CallOpts) (string, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "symbol") + + if err != nil { + return *new(string), err + } + + out0 := *abi.ConvertType(out[0], new(string)).(*string) + + return out0, err + +} + +// Symbol is a free data retrieval call binding the contract method 0x95d89b41. +// +// Solidity: function symbol() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) Symbol() (string, error) { + return _FeralfileExhibitionV42.Contract.Symbol(&_FeralfileExhibitionV42.CallOpts) +} + +// Symbol is a free data retrieval call binding the contract method 0x95d89b41. +// +// Solidity: function symbol() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) Symbol() (string, error) { + return _FeralfileExhibitionV42.Contract.Symbol(&_FeralfileExhibitionV42.CallOpts) +} + +// TokenBaseURI is a free data retrieval call binding the contract method 0x4e99b800. +// +// Solidity: function tokenBaseURI() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) TokenBaseURI(opts *bind.CallOpts) (string, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "tokenBaseURI") + + if err != nil { + return *new(string), err + } + + out0 := *abi.ConvertType(out[0], new(string)).(*string) + + return out0, err + +} + +// TokenBaseURI is a free data retrieval call binding the contract method 0x4e99b800. +// +// Solidity: function tokenBaseURI() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) TokenBaseURI() (string, error) { + return _FeralfileExhibitionV42.Contract.TokenBaseURI(&_FeralfileExhibitionV42.CallOpts) +} + +// TokenBaseURI is a free data retrieval call binding the contract method 0x4e99b800. +// +// Solidity: function tokenBaseURI() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) TokenBaseURI() (string, error) { + return _FeralfileExhibitionV42.Contract.TokenBaseURI(&_FeralfileExhibitionV42.CallOpts) +} + +// TokenOfOwnerByIndex is a free data retrieval call binding the contract method 0x2f745c59. +// +// Solidity: function tokenOfOwnerByIndex(address owner, uint256 index) view returns(uint256) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) TokenOfOwnerByIndex(opts *bind.CallOpts, owner common.Address, index *big.Int) (*big.Int, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "tokenOfOwnerByIndex", owner, index) + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// TokenOfOwnerByIndex is a free data retrieval call binding the contract method 0x2f745c59. +// +// Solidity: function tokenOfOwnerByIndex(address owner, uint256 index) view returns(uint256) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) TokenOfOwnerByIndex(owner common.Address, index *big.Int) (*big.Int, error) { + return _FeralfileExhibitionV42.Contract.TokenOfOwnerByIndex(&_FeralfileExhibitionV42.CallOpts, owner, index) +} + +// TokenOfOwnerByIndex is a free data retrieval call binding the contract method 0x2f745c59. +// +// Solidity: function tokenOfOwnerByIndex(address owner, uint256 index) view returns(uint256) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) TokenOfOwnerByIndex(owner common.Address, index *big.Int) (*big.Int, error) { + return _FeralfileExhibitionV42.Contract.TokenOfOwnerByIndex(&_FeralfileExhibitionV42.CallOpts, owner, index) +} + +// TokenPlaceholderAnimationURI is a free data retrieval call binding the contract method 0xccdae73a. +// +// Solidity: function tokenPlaceholderAnimationURI() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) TokenPlaceholderAnimationURI(opts *bind.CallOpts) (string, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "tokenPlaceholderAnimationURI") + + if err != nil { + return *new(string), err + } + + out0 := *abi.ConvertType(out[0], new(string)).(*string) + + return out0, err + +} + +// TokenPlaceholderAnimationURI is a free data retrieval call binding the contract method 0xccdae73a. +// +// Solidity: function tokenPlaceholderAnimationURI() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) TokenPlaceholderAnimationURI() (string, error) { + return _FeralfileExhibitionV42.Contract.TokenPlaceholderAnimationURI(&_FeralfileExhibitionV42.CallOpts) +} + +// TokenPlaceholderAnimationURI is a free data retrieval call binding the contract method 0xccdae73a. +// +// Solidity: function tokenPlaceholderAnimationURI() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) TokenPlaceholderAnimationURI() (string, error) { + return _FeralfileExhibitionV42.Contract.TokenPlaceholderAnimationURI(&_FeralfileExhibitionV42.CallOpts) +} + +// TokenPlaceholderImageURI is a free data retrieval call binding the contract method 0x3e41dd20. +// +// Solidity: function tokenPlaceholderImageURI() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) TokenPlaceholderImageURI(opts *bind.CallOpts) (string, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "tokenPlaceholderImageURI") + + if err != nil { + return *new(string), err + } + + out0 := *abi.ConvertType(out[0], new(string)).(*string) + + return out0, err + +} + +// TokenPlaceholderImageURI is a free data retrieval call binding the contract method 0x3e41dd20. +// +// Solidity: function tokenPlaceholderImageURI() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) TokenPlaceholderImageURI() (string, error) { + return _FeralfileExhibitionV42.Contract.TokenPlaceholderImageURI(&_FeralfileExhibitionV42.CallOpts) +} + +// TokenPlaceholderImageURI is a free data retrieval call binding the contract method 0x3e41dd20. +// +// Solidity: function tokenPlaceholderImageURI() view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) TokenPlaceholderImageURI() (string, error) { + return _FeralfileExhibitionV42.Contract.TokenPlaceholderImageURI(&_FeralfileExhibitionV42.CallOpts) +} + +// TokenURI is a free data retrieval call binding the contract method 0xc87b56dd. +// +// Solidity: function tokenURI(uint256 tokenId) view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) TokenURI(opts *bind.CallOpts, tokenId *big.Int) (string, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "tokenURI", tokenId) + + if err != nil { + return *new(string), err + } + + out0 := *abi.ConvertType(out[0], new(string)).(*string) + + return out0, err + +} + +// TokenURI is a free data retrieval call binding the contract method 0xc87b56dd. +// +// Solidity: function tokenURI(uint256 tokenId) view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) TokenURI(tokenId *big.Int) (string, error) { + return _FeralfileExhibitionV42.Contract.TokenURI(&_FeralfileExhibitionV42.CallOpts, tokenId) +} + +// TokenURI is a free data retrieval call binding the contract method 0xc87b56dd. +// +// Solidity: function tokenURI(uint256 tokenId) view returns(string) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) TokenURI(tokenId *big.Int) (string, error) { + return _FeralfileExhibitionV42.Contract.TokenURI(&_FeralfileExhibitionV42.CallOpts, tokenId) +} + +// TokensOfOwner is a free data retrieval call binding the contract method 0x8462151c. +// +// Solidity: function tokensOfOwner(address owner) view returns(uint256[]) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) TokensOfOwner(opts *bind.CallOpts, owner common.Address) ([]*big.Int, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "tokensOfOwner", owner) + + if err != nil { + return *new([]*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int) + + return out0, err + +} + +// TokensOfOwner is a free data retrieval call binding the contract method 0x8462151c. +// +// Solidity: function tokensOfOwner(address owner) view returns(uint256[]) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) TokensOfOwner(owner common.Address) ([]*big.Int, error) { + return _FeralfileExhibitionV42.Contract.TokensOfOwner(&_FeralfileExhibitionV42.CallOpts, owner) +} + +// TokensOfOwner is a free data retrieval call binding the contract method 0x8462151c. +// +// Solidity: function tokensOfOwner(address owner) view returns(uint256[]) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) TokensOfOwner(owner common.Address) ([]*big.Int, error) { + return _FeralfileExhibitionV42.Contract.TokensOfOwner(&_FeralfileExhibitionV42.CallOpts, owner) +} + +// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. +// +// Solidity: function totalSupply() view returns(uint256) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "totalSupply") + + if err != nil { + return *new(*big.Int), err + } + + out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) + + return out0, err + +} + +// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. +// +// Solidity: function totalSupply() view returns(uint256) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) TotalSupply() (*big.Int, error) { + return _FeralfileExhibitionV42.Contract.TotalSupply(&_FeralfileExhibitionV42.CallOpts) +} + +// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. +// +// Solidity: function totalSupply() view returns(uint256) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) TotalSupply() (*big.Int, error) { + return _FeralfileExhibitionV42.Contract.TotalSupply(&_FeralfileExhibitionV42.CallOpts) +} + +// Trustees is a free data retrieval call binding the contract method 0xeee608a4. +// +// Solidity: function trustees(address ) view returns(bool) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) Trustees(opts *bind.CallOpts, arg0 common.Address) (bool, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "trustees", arg0) + + if err != nil { + return *new(bool), err + } + + out0 := *abi.ConvertType(out[0], new(bool)).(*bool) + + return out0, err + +} + +// Trustees is a free data retrieval call binding the contract method 0xeee608a4. +// +// Solidity: function trustees(address ) view returns(bool) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) Trustees(arg0 common.Address) (bool, error) { + return _FeralfileExhibitionV42.Contract.Trustees(&_FeralfileExhibitionV42.CallOpts, arg0) +} + +// Trustees is a free data retrieval call binding the contract method 0xeee608a4. +// +// Solidity: function trustees(address ) view returns(bool) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) Trustees(arg0 common.Address) (bool, error) { + return _FeralfileExhibitionV42.Contract.Trustees(&_FeralfileExhibitionV42.CallOpts, arg0) +} + +// Vault is a free data retrieval call binding the contract method 0xfbfa77cf. +// +// Solidity: function vault() view returns(address) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Caller) Vault(opts *bind.CallOpts) (common.Address, error) { + var out []interface{} + err := _FeralfileExhibitionV42.contract.Call(opts, &out, "vault") + + if err != nil { + return *new(common.Address), err + } + + out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) + + return out0, err + +} + +// Vault is a free data retrieval call binding the contract method 0xfbfa77cf. +// +// Solidity: function vault() view returns(address) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) Vault() (common.Address, error) { + return _FeralfileExhibitionV42.Contract.Vault(&_FeralfileExhibitionV42.CallOpts) +} + +// Vault is a free data retrieval call binding the contract method 0xfbfa77cf. +// +// Solidity: function vault() view returns(address) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42CallerSession) Vault() (common.Address, error) { + return _FeralfileExhibitionV42.Contract.Vault(&_FeralfileExhibitionV42.CallOpts) +} + +// AddTrustee is a paid mutator transaction binding the contract method 0xdc78ac1c. +// +// Solidity: function addTrustee(address _trustee) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) AddTrustee(opts *bind.TransactOpts, _trustee common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "addTrustee", _trustee) +} + +// AddTrustee is a paid mutator transaction binding the contract method 0xdc78ac1c. +// +// Solidity: function addTrustee(address _trustee) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) AddTrustee(_trustee common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.AddTrustee(&_FeralfileExhibitionV42.TransactOpts, _trustee) +} + +// AddTrustee is a paid mutator transaction binding the contract method 0xdc78ac1c. +// +// Solidity: function addTrustee(address _trustee) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) AddTrustee(_trustee common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.AddTrustee(&_FeralfileExhibitionV42.TransactOpts, _trustee) +} + +// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. +// +// Solidity: function approve(address operator, uint256 tokenId) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) Approve(opts *bind.TransactOpts, operator common.Address, tokenId *big.Int) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "approve", operator, tokenId) +} + +// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. +// +// Solidity: function approve(address operator, uint256 tokenId) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) Approve(operator common.Address, tokenId *big.Int) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.Approve(&_FeralfileExhibitionV42.TransactOpts, operator, tokenId) +} + +// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. +// +// Solidity: function approve(address operator, uint256 tokenId) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) Approve(operator common.Address, tokenId *big.Int) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.Approve(&_FeralfileExhibitionV42.TransactOpts, operator, tokenId) +} + +// BurnArtworks is a paid mutator transaction binding the contract method 0x21fe0c64. +// +// Solidity: function burnArtworks(uint256[] tokenIds) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) BurnArtworks(opts *bind.TransactOpts, tokenIds []*big.Int) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "burnArtworks", tokenIds) +} + +// BurnArtworks is a paid mutator transaction binding the contract method 0x21fe0c64. +// +// Solidity: function burnArtworks(uint256[] tokenIds) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) BurnArtworks(tokenIds []*big.Int) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.BurnArtworks(&_FeralfileExhibitionV42.TransactOpts, tokenIds) +} + +// BurnArtworks is a paid mutator transaction binding the contract method 0x21fe0c64. +// +// Solidity: function burnArtworks(uint256[] tokenIds) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) BurnArtworks(tokenIds []*big.Int) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.BurnArtworks(&_FeralfileExhibitionV42.TransactOpts, tokenIds) +} + +// BuyArtworks is a paid mutator transaction binding the contract method 0x2977e4b3. +// +// Solidity: function buyArtworks(bytes32 r_, bytes32 s_, uint8 v_, (uint256,uint256,uint256,address,uint256[],(address,uint256)[][],bool) saleData_) payable returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) BuyArtworks(opts *bind.TransactOpts, r_ [32]byte, s_ [32]byte, v_ uint8, saleData_ IFeralfileSaleDataSaleData) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "buyArtworks", r_, s_, v_, saleData_) +} + +// BuyArtworks is a paid mutator transaction binding the contract method 0x2977e4b3. +// +// Solidity: function buyArtworks(bytes32 r_, bytes32 s_, uint8 v_, (uint256,uint256,uint256,address,uint256[],(address,uint256)[][],bool) saleData_) payable returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) BuyArtworks(r_ [32]byte, s_ [32]byte, v_ uint8, saleData_ IFeralfileSaleDataSaleData) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.BuyArtworks(&_FeralfileExhibitionV42.TransactOpts, r_, s_, v_, saleData_) +} + +// BuyArtworks is a paid mutator transaction binding the contract method 0x2977e4b3. +// +// Solidity: function buyArtworks(bytes32 r_, bytes32 s_, uint8 v_, (uint256,uint256,uint256,address,uint256[],(address,uint256)[][],bool) saleData_) payable returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) BuyArtworks(r_ [32]byte, s_ [32]byte, v_ uint8, saleData_ IFeralfileSaleDataSaleData) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.BuyArtworks(&_FeralfileExhibitionV42.TransactOpts, r_, s_, v_, saleData_) +} + +// MintArtworksWithIndex is a paid mutator transaction binding the contract method 0x84f78930. +// +// Solidity: function mintArtworksWithIndex((uint256,uint256,address,uint256)[] data) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) MintArtworksWithIndex(opts *bind.TransactOpts, data []FeralfileExhibitionV42MintDataWithIndex) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "mintArtworksWithIndex", data) +} + +// MintArtworksWithIndex is a paid mutator transaction binding the contract method 0x84f78930. +// +// Solidity: function mintArtworksWithIndex((uint256,uint256,address,uint256)[] data) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) MintArtworksWithIndex(data []FeralfileExhibitionV42MintDataWithIndex) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.MintArtworksWithIndex(&_FeralfileExhibitionV42.TransactOpts, data) +} + +// MintArtworksWithIndex is a paid mutator transaction binding the contract method 0x84f78930. +// +// Solidity: function mintArtworksWithIndex((uint256,uint256,address,uint256)[] data) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) MintArtworksWithIndex(data []FeralfileExhibitionV42MintDataWithIndex) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.MintArtworksWithIndex(&_FeralfileExhibitionV42.TransactOpts, data) +} + +// PauseSale is a paid mutator transaction binding the contract method 0x55367ba9. +// +// Solidity: function pauseSale() returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) PauseSale(opts *bind.TransactOpts) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "pauseSale") +} + +// PauseSale is a paid mutator transaction binding the contract method 0x55367ba9. +// +// Solidity: function pauseSale() returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) PauseSale() (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.PauseSale(&_FeralfileExhibitionV42.TransactOpts) +} + +// PauseSale is a paid mutator transaction binding the contract method 0x55367ba9. +// +// Solidity: function pauseSale() returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) PauseSale() (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.PauseSale(&_FeralfileExhibitionV42.TransactOpts) +} + +// RemoveTrustee is a paid mutator transaction binding the contract method 0x03120506. +// +// Solidity: function removeTrustee(address _trustee) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) RemoveTrustee(opts *bind.TransactOpts, _trustee common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "removeTrustee", _trustee) +} + +// RemoveTrustee is a paid mutator transaction binding the contract method 0x03120506. +// +// Solidity: function removeTrustee(address _trustee) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) RemoveTrustee(_trustee common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.RemoveTrustee(&_FeralfileExhibitionV42.TransactOpts, _trustee) +} + +// RemoveTrustee is a paid mutator transaction binding the contract method 0x03120506. +// +// Solidity: function removeTrustee(address _trustee) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) RemoveTrustee(_trustee common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.RemoveTrustee(&_FeralfileExhibitionV42.TransactOpts, _trustee) +} + +// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. +// +// Solidity: function renounceOwnership() returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "renounceOwnership") +} + +// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. +// +// Solidity: function renounceOwnership() returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) RenounceOwnership() (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.RenounceOwnership(&_FeralfileExhibitionV42.TransactOpts) +} + +// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. +// +// Solidity: function renounceOwnership() returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) RenounceOwnership() (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.RenounceOwnership(&_FeralfileExhibitionV42.TransactOpts) +} + +// ReplaceAdvanceAddresses is a paid mutator transaction binding the contract method 0x41a5626a. +// +// Solidity: function replaceAdvanceAddresses(address[] oldAddresses_, address[] newAddresses_) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) ReplaceAdvanceAddresses(opts *bind.TransactOpts, oldAddresses_ []common.Address, newAddresses_ []common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "replaceAdvanceAddresses", oldAddresses_, newAddresses_) +} + +// ReplaceAdvanceAddresses is a paid mutator transaction binding the contract method 0x41a5626a. +// +// Solidity: function replaceAdvanceAddresses(address[] oldAddresses_, address[] newAddresses_) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) ReplaceAdvanceAddresses(oldAddresses_ []common.Address, newAddresses_ []common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.ReplaceAdvanceAddresses(&_FeralfileExhibitionV42.TransactOpts, oldAddresses_, newAddresses_) +} + +// ReplaceAdvanceAddresses is a paid mutator transaction binding the contract method 0x41a5626a. +// +// Solidity: function replaceAdvanceAddresses(address[] oldAddresses_, address[] newAddresses_) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) ReplaceAdvanceAddresses(oldAddresses_ []common.Address, newAddresses_ []common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.ReplaceAdvanceAddresses(&_FeralfileExhibitionV42.TransactOpts, oldAddresses_, newAddresses_) +} + +// ResumeSale is a paid mutator transaction binding the contract method 0x33e364cb. +// +// Solidity: function resumeSale() returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) ResumeSale(opts *bind.TransactOpts) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "resumeSale") +} + +// ResumeSale is a paid mutator transaction binding the contract method 0x33e364cb. +// +// Solidity: function resumeSale() returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) ResumeSale() (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.ResumeSale(&_FeralfileExhibitionV42.TransactOpts) +} + +// ResumeSale is a paid mutator transaction binding the contract method 0x33e364cb. +// +// Solidity: function resumeSale() returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) ResumeSale() (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.ResumeSale(&_FeralfileExhibitionV42.TransactOpts) +} + +// SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e. +// +// Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "safeTransferFrom", from, to, tokenId) +} + +// SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e. +// +// Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.SafeTransferFrom(&_FeralfileExhibitionV42.TransactOpts, from, to, tokenId) +} + +// SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e. +// +// Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.SafeTransferFrom(&_FeralfileExhibitionV42.TransactOpts, from, to, tokenId) +} + +// SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde. +// +// Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) SafeTransferFrom0(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "safeTransferFrom0", from, to, tokenId, data) +} + +// SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde. +// +// Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.SafeTransferFrom0(&_FeralfileExhibitionV42.TransactOpts, from, to, tokenId, data) +} + +// SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde. +// +// Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.SafeTransferFrom0(&_FeralfileExhibitionV42.TransactOpts, from, to, tokenId, data) +} + +// SetAdvanceSetting is a paid mutator transaction binding the contract method 0x3c352b0d. +// +// Solidity: function setAdvanceSetting(address[] addresses_, uint256[] amounts_) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) SetAdvanceSetting(opts *bind.TransactOpts, addresses_ []common.Address, amounts_ []*big.Int) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "setAdvanceSetting", addresses_, amounts_) +} + +// SetAdvanceSetting is a paid mutator transaction binding the contract method 0x3c352b0d. +// +// Solidity: function setAdvanceSetting(address[] addresses_, uint256[] amounts_) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) SetAdvanceSetting(addresses_ []common.Address, amounts_ []*big.Int) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.SetAdvanceSetting(&_FeralfileExhibitionV42.TransactOpts, addresses_, amounts_) +} + +// SetAdvanceSetting is a paid mutator transaction binding the contract method 0x3c352b0d. +// +// Solidity: function setAdvanceSetting(address[] addresses_, uint256[] amounts_) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) SetAdvanceSetting(addresses_ []common.Address, amounts_ []*big.Int) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.SetAdvanceSetting(&_FeralfileExhibitionV42.TransactOpts, addresses_, amounts_) +} + +// SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465. +// +// Solidity: function setApprovalForAll(address operator, bool approved) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, approved bool) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "setApprovalForAll", operator, approved) +} + +// SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465. +// +// Solidity: function setApprovalForAll(address operator, bool approved) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.SetApprovalForAll(&_FeralfileExhibitionV42.TransactOpts, operator, approved) +} + +// SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465. +// +// Solidity: function setApprovalForAll(address operator, bool approved) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.SetApprovalForAll(&_FeralfileExhibitionV42.TransactOpts, operator, approved) +} + +// SetArtworkFileURI is a paid mutator transaction binding the contract method 0x3c38598e. +// +// Solidity: function setArtworkFileURI(string uri) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) SetArtworkFileURI(opts *bind.TransactOpts, uri string) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "setArtworkFileURI", uri) +} + +// SetArtworkFileURI is a paid mutator transaction binding the contract method 0x3c38598e. +// +// Solidity: function setArtworkFileURI(string uri) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) SetArtworkFileURI(uri string) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.SetArtworkFileURI(&_FeralfileExhibitionV42.TransactOpts, uri) +} + +// SetArtworkFileURI is a paid mutator transaction binding the contract method 0x3c38598e. +// +// Solidity: function setArtworkFileURI(string uri) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) SetArtworkFileURI(uri string) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.SetArtworkFileURI(&_FeralfileExhibitionV42.TransactOpts, uri) +} + +// SetCostReceiver is a paid mutator transaction binding the contract method 0x1623528f. +// +// Solidity: function setCostReceiver(address costReceiver_) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) SetCostReceiver(opts *bind.TransactOpts, costReceiver_ common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "setCostReceiver", costReceiver_) +} + +// SetCostReceiver is a paid mutator transaction binding the contract method 0x1623528f. +// +// Solidity: function setCostReceiver(address costReceiver_) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) SetCostReceiver(costReceiver_ common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.SetCostReceiver(&_FeralfileExhibitionV42.TransactOpts, costReceiver_) +} + +// SetCostReceiver is a paid mutator transaction binding the contract method 0x1623528f. +// +// Solidity: function setCostReceiver(address costReceiver_) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) SetCostReceiver(costReceiver_ common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.SetCostReceiver(&_FeralfileExhibitionV42.TransactOpts, costReceiver_) +} + +// SetSigner is a paid mutator transaction binding the contract method 0x6c19e783. +// +// Solidity: function setSigner(address signer_) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) SetSigner(opts *bind.TransactOpts, signer_ common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "setSigner", signer_) +} + +// SetSigner is a paid mutator transaction binding the contract method 0x6c19e783. +// +// Solidity: function setSigner(address signer_) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) SetSigner(signer_ common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.SetSigner(&_FeralfileExhibitionV42.TransactOpts, signer_) +} + +// SetSigner is a paid mutator transaction binding the contract method 0x6c19e783. +// +// Solidity: function setSigner(address signer_) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) SetSigner(signer_ common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.SetSigner(&_FeralfileExhibitionV42.TransactOpts, signer_) +} + +// SetTokenBaseURI is a paid mutator transaction binding the contract method 0x8ef79e91. +// +// Solidity: function setTokenBaseURI(string baseURI_) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) SetTokenBaseURI(opts *bind.TransactOpts, baseURI_ string) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "setTokenBaseURI", baseURI_) +} + +// SetTokenBaseURI is a paid mutator transaction binding the contract method 0x8ef79e91. +// +// Solidity: function setTokenBaseURI(string baseURI_) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) SetTokenBaseURI(baseURI_ string) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.SetTokenBaseURI(&_FeralfileExhibitionV42.TransactOpts, baseURI_) +} + +// SetTokenBaseURI is a paid mutator transaction binding the contract method 0x8ef79e91. +// +// Solidity: function setTokenBaseURI(string baseURI_) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) SetTokenBaseURI(baseURI_ string) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.SetTokenBaseURI(&_FeralfileExhibitionV42.TransactOpts, baseURI_) +} + +// SetTokenPlaceholderAnimationURI is a paid mutator transaction binding the contract method 0x9095e876. +// +// Solidity: function setTokenPlaceholderAnimationURI(string uri) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) SetTokenPlaceholderAnimationURI(opts *bind.TransactOpts, uri string) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "setTokenPlaceholderAnimationURI", uri) +} + +// SetTokenPlaceholderAnimationURI is a paid mutator transaction binding the contract method 0x9095e876. +// +// Solidity: function setTokenPlaceholderAnimationURI(string uri) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) SetTokenPlaceholderAnimationURI(uri string) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.SetTokenPlaceholderAnimationURI(&_FeralfileExhibitionV42.TransactOpts, uri) +} + +// SetTokenPlaceholderAnimationURI is a paid mutator transaction binding the contract method 0x9095e876. +// +// Solidity: function setTokenPlaceholderAnimationURI(string uri) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) SetTokenPlaceholderAnimationURI(uri string) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.SetTokenPlaceholderAnimationURI(&_FeralfileExhibitionV42.TransactOpts, uri) +} + +// SetTokenPlaceholderImageURI is a paid mutator transaction binding the contract method 0xc9200e4f. +// +// Solidity: function setTokenPlaceholderImageURI(string uri) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) SetTokenPlaceholderImageURI(opts *bind.TransactOpts, uri string) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "setTokenPlaceholderImageURI", uri) +} + +// SetTokenPlaceholderImageURI is a paid mutator transaction binding the contract method 0xc9200e4f. +// +// Solidity: function setTokenPlaceholderImageURI(string uri) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) SetTokenPlaceholderImageURI(uri string) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.SetTokenPlaceholderImageURI(&_FeralfileExhibitionV42.TransactOpts, uri) +} + +// SetTokenPlaceholderImageURI is a paid mutator transaction binding the contract method 0xc9200e4f. +// +// Solidity: function setTokenPlaceholderImageURI(string uri) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) SetTokenPlaceholderImageURI(uri string) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.SetTokenPlaceholderImageURI(&_FeralfileExhibitionV42.TransactOpts, uri) +} + +// SetVault is a paid mutator transaction binding the contract method 0x6817031b. +// +// Solidity: function setVault(address vault_) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) SetVault(opts *bind.TransactOpts, vault_ common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "setVault", vault_) +} + +// SetVault is a paid mutator transaction binding the contract method 0x6817031b. +// +// Solidity: function setVault(address vault_) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) SetVault(vault_ common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.SetVault(&_FeralfileExhibitionV42.TransactOpts, vault_) +} + +// SetVault is a paid mutator transaction binding the contract method 0x6817031b. +// +// Solidity: function setVault(address vault_) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) SetVault(vault_ common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.SetVault(&_FeralfileExhibitionV42.TransactOpts, vault_) +} + +// StartSale is a paid mutator transaction binding the contract method 0xb66a0e5d. +// +// Solidity: function startSale() returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) StartSale(opts *bind.TransactOpts) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "startSale") +} + +// StartSale is a paid mutator transaction binding the contract method 0xb66a0e5d. +// +// Solidity: function startSale() returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) StartSale() (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.StartSale(&_FeralfileExhibitionV42.TransactOpts) +} + +// StartSale is a paid mutator transaction binding the contract method 0xb66a0e5d. +// +// Solidity: function startSale() returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) StartSale() (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.StartSale(&_FeralfileExhibitionV42.TransactOpts) +} + +// StopSaleAndBurn is a paid mutator transaction binding the contract method 0xb9b8311a. +// +// Solidity: function stopSaleAndBurn() returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) StopSaleAndBurn(opts *bind.TransactOpts) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "stopSaleAndBurn") +} + +// StopSaleAndBurn is a paid mutator transaction binding the contract method 0xb9b8311a. +// +// Solidity: function stopSaleAndBurn() returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) StopSaleAndBurn() (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.StopSaleAndBurn(&_FeralfileExhibitionV42.TransactOpts) +} + +// StopSaleAndBurn is a paid mutator transaction binding the contract method 0xb9b8311a. +// +// Solidity: function stopSaleAndBurn() returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) StopSaleAndBurn() (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.StopSaleAndBurn(&_FeralfileExhibitionV42.TransactOpts) +} + +// StopSaleAndTransfer is a paid mutator transaction binding the contract method 0x65a46e08. +// +// Solidity: function stopSaleAndTransfer(uint256[] seriesIds, address[] recipientAddresses) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) StopSaleAndTransfer(opts *bind.TransactOpts, seriesIds []*big.Int, recipientAddresses []common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "stopSaleAndTransfer", seriesIds, recipientAddresses) +} + +// StopSaleAndTransfer is a paid mutator transaction binding the contract method 0x65a46e08. +// +// Solidity: function stopSaleAndTransfer(uint256[] seriesIds, address[] recipientAddresses) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) StopSaleAndTransfer(seriesIds []*big.Int, recipientAddresses []common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.StopSaleAndTransfer(&_FeralfileExhibitionV42.TransactOpts, seriesIds, recipientAddresses) +} + +// StopSaleAndTransfer is a paid mutator transaction binding the contract method 0x65a46e08. +// +// Solidity: function stopSaleAndTransfer(uint256[] seriesIds, address[] recipientAddresses) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) StopSaleAndTransfer(seriesIds []*big.Int, recipientAddresses []common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.StopSaleAndTransfer(&_FeralfileExhibitionV42.TransactOpts, seriesIds, recipientAddresses) +} + +// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. +// +// Solidity: function transferFrom(address from, address to, uint256 tokenId) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "transferFrom", from, to, tokenId) +} + +// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. +// +// Solidity: function transferFrom(address from, address to, uint256 tokenId) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.TransferFrom(&_FeralfileExhibitionV42.TransactOpts, from, to, tokenId) +} + +// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. +// +// Solidity: function transferFrom(address from, address to, uint256 tokenId) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.TransferFrom(&_FeralfileExhibitionV42.TransactOpts, from, to, tokenId) +} + +// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. +// +// Solidity: function transferOwnership(address newOwner) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "transferOwnership", newOwner) +} + +// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. +// +// Solidity: function transferOwnership(address newOwner) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.TransferOwnership(&_FeralfileExhibitionV42.TransactOpts, newOwner) +} + +// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. +// +// Solidity: function transferOwnership(address newOwner) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.TransferOwnership(&_FeralfileExhibitionV42.TransactOpts, newOwner) +} + +// UpdateOperatorFilterRegistry is a paid mutator transaction binding the contract method 0x114ba8ee. +// +// Solidity: function updateOperatorFilterRegistry(address operatorFilterRegisterAddress) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) UpdateOperatorFilterRegistry(opts *bind.TransactOpts, operatorFilterRegisterAddress common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "updateOperatorFilterRegistry", operatorFilterRegisterAddress) +} + +// UpdateOperatorFilterRegistry is a paid mutator transaction binding the contract method 0x114ba8ee. +// +// Solidity: function updateOperatorFilterRegistry(address operatorFilterRegisterAddress) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) UpdateOperatorFilterRegistry(operatorFilterRegisterAddress common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.UpdateOperatorFilterRegistry(&_FeralfileExhibitionV42.TransactOpts, operatorFilterRegisterAddress) +} + +// UpdateOperatorFilterRegistry is a paid mutator transaction binding the contract method 0x114ba8ee. +// +// Solidity: function updateOperatorFilterRegistry(address operatorFilterRegisterAddress) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) UpdateOperatorFilterRegistry(operatorFilterRegisterAddress common.Address) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.UpdateOperatorFilterRegistry(&_FeralfileExhibitionV42.TransactOpts, operatorFilterRegisterAddress) +} + +// UpdateTokenInformation is a paid mutator transaction binding the contract method 0xae474c3c. +// +// Solidity: function updateTokenInformation(uint256 tokenId, string imageURI, bytes parameters, uint256 coinAmount) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) UpdateTokenInformation(opts *bind.TransactOpts, tokenId *big.Int, imageURI string, parameters []byte, coinAmount *big.Int) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.Transact(opts, "updateTokenInformation", tokenId, imageURI, parameters, coinAmount) +} + +// UpdateTokenInformation is a paid mutator transaction binding the contract method 0xae474c3c. +// +// Solidity: function updateTokenInformation(uint256 tokenId, string imageURI, bytes parameters, uint256 coinAmount) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) UpdateTokenInformation(tokenId *big.Int, imageURI string, parameters []byte, coinAmount *big.Int) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.UpdateTokenInformation(&_FeralfileExhibitionV42.TransactOpts, tokenId, imageURI, parameters, coinAmount) +} + +// UpdateTokenInformation is a paid mutator transaction binding the contract method 0xae474c3c. +// +// Solidity: function updateTokenInformation(uint256 tokenId, string imageURI, bytes parameters, uint256 coinAmount) returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) UpdateTokenInformation(tokenId *big.Int, imageURI string, parameters []byte, coinAmount *big.Int) (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.UpdateTokenInformation(&_FeralfileExhibitionV42.TransactOpts, tokenId, imageURI, parameters, coinAmount) +} + +// Receive is a paid mutator transaction binding the contract receive function. +// +// Solidity: receive() payable returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Transactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) { + return _FeralfileExhibitionV42.contract.RawTransact(opts, nil) // calldata is disallowed for receive function +} + +// Receive is a paid mutator transaction binding the contract receive function. +// +// Solidity: receive() payable returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Session) Receive() (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.Receive(&_FeralfileExhibitionV42.TransactOpts) +} + +// Receive is a paid mutator transaction binding the contract receive function. +// +// Solidity: receive() payable returns() +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42TransactorSession) Receive() (*types.Transaction, error) { + return _FeralfileExhibitionV42.Contract.Receive(&_FeralfileExhibitionV42.TransactOpts) +} + +// FeralfileExhibitionV42ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the FeralfileExhibitionV42 contract. +type FeralfileExhibitionV42ApprovalIterator struct { + Event *FeralfileExhibitionV42Approval // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *FeralfileExhibitionV42ApprovalIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(FeralfileExhibitionV42Approval) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(FeralfileExhibitionV42Approval) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *FeralfileExhibitionV42ApprovalIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *FeralfileExhibitionV42ApprovalIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// FeralfileExhibitionV42Approval represents a Approval event raised by the FeralfileExhibitionV42 contract. +type FeralfileExhibitionV42Approval struct { + Owner common.Address + Approved common.Address + TokenId *big.Int + Raw types.Log // Blockchain specific contextual infos +} + +// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. +// +// Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*FeralfileExhibitionV42ApprovalIterator, error) { + + var ownerRule []interface{} + for _, ownerItem := range owner { + ownerRule = append(ownerRule, ownerItem) + } + var approvedRule []interface{} + for _, approvedItem := range approved { + approvedRule = append(approvedRule, approvedItem) + } + var tokenIdRule []interface{} + for _, tokenIdItem := range tokenId { + tokenIdRule = append(tokenIdRule, tokenIdItem) + } + + logs, sub, err := _FeralfileExhibitionV42.contract.FilterLogs(opts, "Approval", ownerRule, approvedRule, tokenIdRule) + if err != nil { + return nil, err + } + return &FeralfileExhibitionV42ApprovalIterator{contract: _FeralfileExhibitionV42.contract, event: "Approval", logs: logs, sub: sub}, nil +} + +// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. +// +// Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *FeralfileExhibitionV42Approval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) { + + var ownerRule []interface{} + for _, ownerItem := range owner { + ownerRule = append(ownerRule, ownerItem) + } + var approvedRule []interface{} + for _, approvedItem := range approved { + approvedRule = append(approvedRule, approvedItem) + } + var tokenIdRule []interface{} + for _, tokenIdItem := range tokenId { + tokenIdRule = append(tokenIdRule, tokenIdItem) + } + + logs, sub, err := _FeralfileExhibitionV42.contract.WatchLogs(opts, "Approval", ownerRule, approvedRule, tokenIdRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(FeralfileExhibitionV42Approval) + if err := _FeralfileExhibitionV42.contract.UnpackLog(event, "Approval", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. +// +// Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Filterer) ParseApproval(log types.Log) (*FeralfileExhibitionV42Approval, error) { + event := new(FeralfileExhibitionV42Approval) + if err := _FeralfileExhibitionV42.contract.UnpackLog(event, "Approval", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// FeralfileExhibitionV42ApprovalForAllIterator is returned from FilterApprovalForAll and is used to iterate over the raw logs and unpacked data for ApprovalForAll events raised by the FeralfileExhibitionV42 contract. +type FeralfileExhibitionV42ApprovalForAllIterator struct { + Event *FeralfileExhibitionV42ApprovalForAll // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *FeralfileExhibitionV42ApprovalForAllIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(FeralfileExhibitionV42ApprovalForAll) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(FeralfileExhibitionV42ApprovalForAll) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *FeralfileExhibitionV42ApprovalForAllIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *FeralfileExhibitionV42ApprovalForAllIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// FeralfileExhibitionV42ApprovalForAll represents a ApprovalForAll event raised by the FeralfileExhibitionV42 contract. +type FeralfileExhibitionV42ApprovalForAll struct { + Owner common.Address + Operator common.Address + Approved bool + Raw types.Log // Blockchain specific contextual infos +} + +// FilterApprovalForAll is a free log retrieval operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31. +// +// Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Filterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*FeralfileExhibitionV42ApprovalForAllIterator, error) { + + var ownerRule []interface{} + for _, ownerItem := range owner { + ownerRule = append(ownerRule, ownerItem) + } + var operatorRule []interface{} + for _, operatorItem := range operator { + operatorRule = append(operatorRule, operatorItem) + } + + logs, sub, err := _FeralfileExhibitionV42.contract.FilterLogs(opts, "ApprovalForAll", ownerRule, operatorRule) + if err != nil { + return nil, err + } + return &FeralfileExhibitionV42ApprovalForAllIterator{contract: _FeralfileExhibitionV42.contract, event: "ApprovalForAll", logs: logs, sub: sub}, nil +} + +// WatchApprovalForAll is a free log subscription operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31. +// +// Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Filterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *FeralfileExhibitionV42ApprovalForAll, owner []common.Address, operator []common.Address) (event.Subscription, error) { + + var ownerRule []interface{} + for _, ownerItem := range owner { + ownerRule = append(ownerRule, ownerItem) + } + var operatorRule []interface{} + for _, operatorItem := range operator { + operatorRule = append(operatorRule, operatorItem) + } + + logs, sub, err := _FeralfileExhibitionV42.contract.WatchLogs(opts, "ApprovalForAll", ownerRule, operatorRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(FeralfileExhibitionV42ApprovalForAll) + if err := _FeralfileExhibitionV42.contract.UnpackLog(event, "ApprovalForAll", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseApprovalForAll is a log parse operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31. +// +// Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Filterer) ParseApprovalForAll(log types.Log) (*FeralfileExhibitionV42ApprovalForAll, error) { + event := new(FeralfileExhibitionV42ApprovalForAll) + if err := _FeralfileExhibitionV42.contract.UnpackLog(event, "ApprovalForAll", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// FeralfileExhibitionV42BurnArtworkIterator is returned from FilterBurnArtwork and is used to iterate over the raw logs and unpacked data for BurnArtwork events raised by the FeralfileExhibitionV42 contract. +type FeralfileExhibitionV42BurnArtworkIterator struct { + Event *FeralfileExhibitionV42BurnArtwork // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *FeralfileExhibitionV42BurnArtworkIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(FeralfileExhibitionV42BurnArtwork) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(FeralfileExhibitionV42BurnArtwork) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *FeralfileExhibitionV42BurnArtworkIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *FeralfileExhibitionV42BurnArtworkIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// FeralfileExhibitionV42BurnArtwork represents a BurnArtwork event raised by the FeralfileExhibitionV42 contract. +type FeralfileExhibitionV42BurnArtwork struct { + TokenId *big.Int + Raw types.Log // Blockchain specific contextual infos +} + +// FilterBurnArtwork is a free log retrieval operation binding the contract event 0xbde7938970372996ff103863625e348ef2bf8f38a5b02181be75aafef17c23d5. +// +// Solidity: event BurnArtwork(uint256 indexed tokenId) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Filterer) FilterBurnArtwork(opts *bind.FilterOpts, tokenId []*big.Int) (*FeralfileExhibitionV42BurnArtworkIterator, error) { + + var tokenIdRule []interface{} + for _, tokenIdItem := range tokenId { + tokenIdRule = append(tokenIdRule, tokenIdItem) + } + + logs, sub, err := _FeralfileExhibitionV42.contract.FilterLogs(opts, "BurnArtwork", tokenIdRule) + if err != nil { + return nil, err + } + return &FeralfileExhibitionV42BurnArtworkIterator{contract: _FeralfileExhibitionV42.contract, event: "BurnArtwork", logs: logs, sub: sub}, nil +} + +// WatchBurnArtwork is a free log subscription operation binding the contract event 0xbde7938970372996ff103863625e348ef2bf8f38a5b02181be75aafef17c23d5. +// +// Solidity: event BurnArtwork(uint256 indexed tokenId) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Filterer) WatchBurnArtwork(opts *bind.WatchOpts, sink chan<- *FeralfileExhibitionV42BurnArtwork, tokenId []*big.Int) (event.Subscription, error) { + + var tokenIdRule []interface{} + for _, tokenIdItem := range tokenId { + tokenIdRule = append(tokenIdRule, tokenIdItem) + } + + logs, sub, err := _FeralfileExhibitionV42.contract.WatchLogs(opts, "BurnArtwork", tokenIdRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(FeralfileExhibitionV42BurnArtwork) + if err := _FeralfileExhibitionV42.contract.UnpackLog(event, "BurnArtwork", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseBurnArtwork is a log parse operation binding the contract event 0xbde7938970372996ff103863625e348ef2bf8f38a5b02181be75aafef17c23d5. +// +// Solidity: event BurnArtwork(uint256 indexed tokenId) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Filterer) ParseBurnArtwork(log types.Log) (*FeralfileExhibitionV42BurnArtwork, error) { + event := new(FeralfileExhibitionV42BurnArtwork) + if err := _FeralfileExhibitionV42.contract.UnpackLog(event, "BurnArtwork", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// FeralfileExhibitionV42BuyArtworkIterator is returned from FilterBuyArtwork and is used to iterate over the raw logs and unpacked data for BuyArtwork events raised by the FeralfileExhibitionV42 contract. +type FeralfileExhibitionV42BuyArtworkIterator struct { + Event *FeralfileExhibitionV42BuyArtwork // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *FeralfileExhibitionV42BuyArtworkIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(FeralfileExhibitionV42BuyArtwork) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(FeralfileExhibitionV42BuyArtwork) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *FeralfileExhibitionV42BuyArtworkIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *FeralfileExhibitionV42BuyArtworkIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// FeralfileExhibitionV42BuyArtwork represents a BuyArtwork event raised by the FeralfileExhibitionV42 contract. +type FeralfileExhibitionV42BuyArtwork struct { + Buyer common.Address + TokenId *big.Int + Raw types.Log // Blockchain specific contextual infos +} + +// FilterBuyArtwork is a free log retrieval operation binding the contract event 0x0475389cd69b8d3163620b43283bf74e8fc71020c3c6cef2a529b5c405e9687f. +// +// Solidity: event BuyArtwork(address indexed buyer, uint256 indexed tokenId) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Filterer) FilterBuyArtwork(opts *bind.FilterOpts, buyer []common.Address, tokenId []*big.Int) (*FeralfileExhibitionV42BuyArtworkIterator, error) { + + var buyerRule []interface{} + for _, buyerItem := range buyer { + buyerRule = append(buyerRule, buyerItem) + } + var tokenIdRule []interface{} + for _, tokenIdItem := range tokenId { + tokenIdRule = append(tokenIdRule, tokenIdItem) + } + + logs, sub, err := _FeralfileExhibitionV42.contract.FilterLogs(opts, "BuyArtwork", buyerRule, tokenIdRule) + if err != nil { + return nil, err + } + return &FeralfileExhibitionV42BuyArtworkIterator{contract: _FeralfileExhibitionV42.contract, event: "BuyArtwork", logs: logs, sub: sub}, nil +} + +// WatchBuyArtwork is a free log subscription operation binding the contract event 0x0475389cd69b8d3163620b43283bf74e8fc71020c3c6cef2a529b5c405e9687f. +// +// Solidity: event BuyArtwork(address indexed buyer, uint256 indexed tokenId) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Filterer) WatchBuyArtwork(opts *bind.WatchOpts, sink chan<- *FeralfileExhibitionV42BuyArtwork, buyer []common.Address, tokenId []*big.Int) (event.Subscription, error) { + + var buyerRule []interface{} + for _, buyerItem := range buyer { + buyerRule = append(buyerRule, buyerItem) + } + var tokenIdRule []interface{} + for _, tokenIdItem := range tokenId { + tokenIdRule = append(tokenIdRule, tokenIdItem) + } + + logs, sub, err := _FeralfileExhibitionV42.contract.WatchLogs(opts, "BuyArtwork", buyerRule, tokenIdRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(FeralfileExhibitionV42BuyArtwork) + if err := _FeralfileExhibitionV42.contract.UnpackLog(event, "BuyArtwork", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseBuyArtwork is a log parse operation binding the contract event 0x0475389cd69b8d3163620b43283bf74e8fc71020c3c6cef2a529b5c405e9687f. +// +// Solidity: event BuyArtwork(address indexed buyer, uint256 indexed tokenId) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Filterer) ParseBuyArtwork(log types.Log) (*FeralfileExhibitionV42BuyArtwork, error) { + event := new(FeralfileExhibitionV42BuyArtwork) + if err := _FeralfileExhibitionV42.contract.UnpackLog(event, "BuyArtwork", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// FeralfileExhibitionV42NewArtworkIterator is returned from FilterNewArtwork and is used to iterate over the raw logs and unpacked data for NewArtwork events raised by the FeralfileExhibitionV42 contract. +type FeralfileExhibitionV42NewArtworkIterator struct { + Event *FeralfileExhibitionV42NewArtwork // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *FeralfileExhibitionV42NewArtworkIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(FeralfileExhibitionV42NewArtwork) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(FeralfileExhibitionV42NewArtwork) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *FeralfileExhibitionV42NewArtworkIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *FeralfileExhibitionV42NewArtworkIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// FeralfileExhibitionV42NewArtwork represents a NewArtwork event raised by the FeralfileExhibitionV42 contract. +type FeralfileExhibitionV42NewArtwork struct { + Owner common.Address + SeriesId *big.Int + TokenId *big.Int + Raw types.Log // Blockchain specific contextual infos +} + +// FilterNewArtwork is a free log retrieval operation binding the contract event 0x407d7da1d3b2b1871fbfa2b5b1c4657a3cc5711d3023c552798551c7ee301eea. +// +// Solidity: event NewArtwork(address indexed owner, uint256 indexed seriesId, uint256 indexed tokenId) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Filterer) FilterNewArtwork(opts *bind.FilterOpts, owner []common.Address, seriesId []*big.Int, tokenId []*big.Int) (*FeralfileExhibitionV42NewArtworkIterator, error) { + + var ownerRule []interface{} + for _, ownerItem := range owner { + ownerRule = append(ownerRule, ownerItem) + } + var seriesIdRule []interface{} + for _, seriesIdItem := range seriesId { + seriesIdRule = append(seriesIdRule, seriesIdItem) + } + var tokenIdRule []interface{} + for _, tokenIdItem := range tokenId { + tokenIdRule = append(tokenIdRule, tokenIdItem) + } + + logs, sub, err := _FeralfileExhibitionV42.contract.FilterLogs(opts, "NewArtwork", ownerRule, seriesIdRule, tokenIdRule) + if err != nil { + return nil, err + } + return &FeralfileExhibitionV42NewArtworkIterator{contract: _FeralfileExhibitionV42.contract, event: "NewArtwork", logs: logs, sub: sub}, nil +} + +// WatchNewArtwork is a free log subscription operation binding the contract event 0x407d7da1d3b2b1871fbfa2b5b1c4657a3cc5711d3023c552798551c7ee301eea. +// +// Solidity: event NewArtwork(address indexed owner, uint256 indexed seriesId, uint256 indexed tokenId) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Filterer) WatchNewArtwork(opts *bind.WatchOpts, sink chan<- *FeralfileExhibitionV42NewArtwork, owner []common.Address, seriesId []*big.Int, tokenId []*big.Int) (event.Subscription, error) { + + var ownerRule []interface{} + for _, ownerItem := range owner { + ownerRule = append(ownerRule, ownerItem) + } + var seriesIdRule []interface{} + for _, seriesIdItem := range seriesId { + seriesIdRule = append(seriesIdRule, seriesIdItem) + } + var tokenIdRule []interface{} + for _, tokenIdItem := range tokenId { + tokenIdRule = append(tokenIdRule, tokenIdItem) + } + + logs, sub, err := _FeralfileExhibitionV42.contract.WatchLogs(opts, "NewArtwork", ownerRule, seriesIdRule, tokenIdRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(FeralfileExhibitionV42NewArtwork) + if err := _FeralfileExhibitionV42.contract.UnpackLog(event, "NewArtwork", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseNewArtwork is a log parse operation binding the contract event 0x407d7da1d3b2b1871fbfa2b5b1c4657a3cc5711d3023c552798551c7ee301eea. +// +// Solidity: event NewArtwork(address indexed owner, uint256 indexed seriesId, uint256 indexed tokenId) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Filterer) ParseNewArtwork(log types.Log) (*FeralfileExhibitionV42NewArtwork, error) { + event := new(FeralfileExhibitionV42NewArtwork) + if err := _FeralfileExhibitionV42.contract.UnpackLog(event, "NewArtwork", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// FeralfileExhibitionV42OwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the FeralfileExhibitionV42 contract. +type FeralfileExhibitionV42OwnershipTransferredIterator struct { + Event *FeralfileExhibitionV42OwnershipTransferred // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *FeralfileExhibitionV42OwnershipTransferredIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(FeralfileExhibitionV42OwnershipTransferred) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(FeralfileExhibitionV42OwnershipTransferred) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *FeralfileExhibitionV42OwnershipTransferredIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *FeralfileExhibitionV42OwnershipTransferredIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// FeralfileExhibitionV42OwnershipTransferred represents a OwnershipTransferred event raised by the FeralfileExhibitionV42 contract. +type FeralfileExhibitionV42OwnershipTransferred struct { + PreviousOwner common.Address + NewOwner common.Address + Raw types.Log // Blockchain specific contextual infos +} + +// FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. +// +// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Filterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*FeralfileExhibitionV42OwnershipTransferredIterator, error) { + + var previousOwnerRule []interface{} + for _, previousOwnerItem := range previousOwner { + previousOwnerRule = append(previousOwnerRule, previousOwnerItem) + } + var newOwnerRule []interface{} + for _, newOwnerItem := range newOwner { + newOwnerRule = append(newOwnerRule, newOwnerItem) + } + + logs, sub, err := _FeralfileExhibitionV42.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) + if err != nil { + return nil, err + } + return &FeralfileExhibitionV42OwnershipTransferredIterator{contract: _FeralfileExhibitionV42.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil +} + +// WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. +// +// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Filterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *FeralfileExhibitionV42OwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { + + var previousOwnerRule []interface{} + for _, previousOwnerItem := range previousOwner { + previousOwnerRule = append(previousOwnerRule, previousOwnerItem) + } + var newOwnerRule []interface{} + for _, newOwnerItem := range newOwner { + newOwnerRule = append(newOwnerRule, newOwnerItem) + } + + logs, sub, err := _FeralfileExhibitionV42.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(FeralfileExhibitionV42OwnershipTransferred) + if err := _FeralfileExhibitionV42.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. +// +// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Filterer) ParseOwnershipTransferred(log types.Log) (*FeralfileExhibitionV42OwnershipTransferred, error) { + event := new(FeralfileExhibitionV42OwnershipTransferred) + if err := _FeralfileExhibitionV42.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +} + +// FeralfileExhibitionV42TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the FeralfileExhibitionV42 contract. +type FeralfileExhibitionV42TransferIterator struct { + Event *FeralfileExhibitionV42Transfer // Event containing the contract specifics and raw log + + contract *bind.BoundContract // Generic contract to use for unpacking event data + event string // Event name to use for unpacking event data + + logs chan types.Log // Log channel receiving the found contract events + sub ethereum.Subscription // Subscription for errors, completion and termination + done bool // Whether the subscription completed delivering logs + fail error // Occurred error to stop iteration +} + +// Next advances the iterator to the subsequent event, returning whether there +// are any more events found. In case of a retrieval or parsing error, false is +// returned and Error() can be queried for the exact failure. +func (it *FeralfileExhibitionV42TransferIterator) Next() bool { + // If the iterator failed, stop iterating + if it.fail != nil { + return false + } + // If the iterator completed, deliver directly whatever's available + if it.done { + select { + case log := <-it.logs: + it.Event = new(FeralfileExhibitionV42Transfer) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + default: + return false + } + } + // Iterator still in progress, wait for either a data or an error event + select { + case log := <-it.logs: + it.Event = new(FeralfileExhibitionV42Transfer) + if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { + it.fail = err + return false + } + it.Event.Raw = log + return true + + case err := <-it.sub.Err(): + it.done = true + it.fail = err + return it.Next() + } +} + +// Error returns any retrieval or parsing error occurred during filtering. +func (it *FeralfileExhibitionV42TransferIterator) Error() error { + return it.fail +} + +// Close terminates the iteration process, releasing any pending underlying +// resources. +func (it *FeralfileExhibitionV42TransferIterator) Close() error { + it.sub.Unsubscribe() + return nil +} + +// FeralfileExhibitionV42Transfer represents a Transfer event raised by the FeralfileExhibitionV42 contract. +type FeralfileExhibitionV42Transfer struct { + From common.Address + To common.Address + TokenId *big.Int + Raw types.Log // Blockchain specific contextual infos +} + +// FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. +// +// Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address, tokenId []*big.Int) (*FeralfileExhibitionV42TransferIterator, error) { + + var fromRule []interface{} + for _, fromItem := range from { + fromRule = append(fromRule, fromItem) + } + var toRule []interface{} + for _, toItem := range to { + toRule = append(toRule, toItem) + } + var tokenIdRule []interface{} + for _, tokenIdItem := range tokenId { + tokenIdRule = append(tokenIdRule, tokenIdItem) + } + + logs, sub, err := _FeralfileExhibitionV42.contract.FilterLogs(opts, "Transfer", fromRule, toRule, tokenIdRule) + if err != nil { + return nil, err + } + return &FeralfileExhibitionV42TransferIterator{contract: _FeralfileExhibitionV42.contract, event: "Transfer", logs: logs, sub: sub}, nil +} + +// WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. +// +// Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *FeralfileExhibitionV42Transfer, from []common.Address, to []common.Address, tokenId []*big.Int) (event.Subscription, error) { + + var fromRule []interface{} + for _, fromItem := range from { + fromRule = append(fromRule, fromItem) + } + var toRule []interface{} + for _, toItem := range to { + toRule = append(toRule, toItem) + } + var tokenIdRule []interface{} + for _, tokenIdItem := range tokenId { + tokenIdRule = append(tokenIdRule, tokenIdItem) + } + + logs, sub, err := _FeralfileExhibitionV42.contract.WatchLogs(opts, "Transfer", fromRule, toRule, tokenIdRule) + if err != nil { + return nil, err + } + return event.NewSubscription(func(quit <-chan struct{}) error { + defer sub.Unsubscribe() + for { + select { + case log := <-logs: + // New log arrived, parse the event and forward to the user + event := new(FeralfileExhibitionV42Transfer) + if err := _FeralfileExhibitionV42.contract.UnpackLog(event, "Transfer", log); err != nil { + return err + } + event.Raw = log + + select { + case sink <- event: + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + case err := <-sub.Err(): + return err + case <-quit: + return nil + } + } + }), nil +} + +// ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. +// +// Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId) +func (_FeralfileExhibitionV42 *FeralfileExhibitionV42Filterer) ParseTransfer(log types.Log) (*FeralfileExhibitionV42Transfer, error) { + event := new(FeralfileExhibitionV42Transfer) + if err := _FeralfileExhibitionV42.contract.UnpackLog(event, "Transfer", log); err != nil { + return nil, err + } + event.Raw = log + return event, nil +}