Contract 0xbdca906c6facfecfff4a20819c381c3badae6d05 1

Contract Overview

Balance:
0 AVAX

AVAX Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x9599a774afec3399d1caf01ec042d727361927f967d2f7d1d73c73990d57f554Staking167017762022-06-30 5:34:415 hrs 7 mins ago0x29a9e58c8309dd6020d171cbecd0e409db43f5e8 IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.00226105 27.5
0xeb1cce7fde5cc8c86f0d957f81e8084320083d2299e7da56f188659e485c614eEquip Miner167015812022-06-30 5:28:125 hrs 14 mins ago0x29a9e58c8309dd6020d171cbecd0e409db43f5e8 IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.00160248 27.5
0xab7c23a12e09563d336525cab66c55c839c21ce74b5288a5b7e52e1c3f966d10Claim Credits167015612022-06-30 5:27:325 hrs 14 mins ago0x29a9e58c8309dd6020d171cbecd0e409db43f5e8 IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.0015009225 27.5
0x0d23909a1fcc575e79697fb6d8fd204dd56ca822fa4bd6500e4bc517126de75aStaking167013862022-06-30 5:21:435 hrs 20 mins ago0xb7f3976521efb72c5f065c79dc619a557f2e24b8 IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.0022607227.5
0x15db251007678e61ada67451a9d4a7cf8f4eb88fbdeb3b1325845ff9921319dfClaim Credits167005852022-06-30 4:55:025 hrs 47 mins ago0xf6469bde66f170f828f67f49099bd84cb7576083 IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.0015009225 27.5
0xd4ffa5bc7809555361e8081af25451b34f73b4e13405ba328e0ee7dc3ad2685cClaim Credits167002832022-06-30 4:44:465 hrs 57 mins ago0x29e574941643bdbd95c1e485a34c06cb1e0b5adb IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.0015009225 27.5
0xbae4b242d143ec850ab9b8d77c775fd543a498098cab6354f567886ea6364e2dEquip Miner166998112022-06-30 4:28:556 hrs 13 mins ago0x8cdec13d5d7ddf664a3063f6d7be5d16d99e33dd IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.00160215 27.5
0xa7546b2e302acacb076cd01fca32f741d0f04f3cd2fc5144ea881fd4a5e1f13aEquip Miner166997852022-06-30 4:28:036 hrs 14 mins ago0x8cdec13d5d7ddf664a3063f6d7be5d16d99e33dd IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.00160215 27.5
0x7dac4439c59abe1c89d18fdabff9e3f25a0bfc3dc86b58b196d69685efb0137dEquip Miner166997632022-06-30 4:27:176 hrs 14 mins ago0x8cdec13d5d7ddf664a3063f6d7be5d16d99e33dd IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.00160215 27.5
0x105ce0d967f7133ee9e28ed75d7de24e5a347f0d2511701ae62fa4040a81ef65Equip Miner166997482022-06-30 4:26:496 hrs 15 mins ago0x8cdec13d5d7ddf664a3063f6d7be5d16d99e33dd IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.00160215 27.5
0x610a71bef6fa525a147be5736f9b79d5aa49509dc5b763046aef26e086241d03Equip Miner166996992022-06-30 4:25:086 hrs 17 mins ago0x8cdec13d5d7ddf664a3063f6d7be5d16d99e33dd IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.00160215 27.5
0x114c9cfa25aeae4f5cbd93ad7e8c1718919386dc610b3afc032ea88ec1660ca4Equip Miner166996772022-06-30 4:24:216 hrs 17 mins ago0x8cdec13d5d7ddf664a3063f6d7be5d16d99e33dd IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.00160248 27.5
0x44c93c36d9d9041f18fd5c5fbbd9f313e44297a2a853587faf06495c7a27a029Equip Miner166996032022-06-30 4:21:526 hrs 20 mins ago0x8cdec13d5d7ddf664a3063f6d7be5d16d99e33dd IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.00160248 27.5
0x1ee545355ae9797351b68015971fc069b756176dd1fda42433de6ea93828c43bEquip Miner166995942022-06-30 4:21:346 hrs 20 mins ago0x8cdec13d5d7ddf664a3063f6d7be5d16d99e33dd IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.00160215 27.5
0xe65fd541da1da6728339f753c92886c8a856562335b1f53486f2cb9ede7b01b3Equip Miner166995832022-06-30 4:21:126 hrs 21 mins ago0x8cdec13d5d7ddf664a3063f6d7be5d16d99e33dd IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.00160215 27.5
0x8f67dd8d18b5f474879e321167e4644e759359de8a64ee14f8f6207878e8ccbcEquip Miner166995812022-06-30 4:21:086 hrs 21 mins ago0x8cdec13d5d7ddf664a3063f6d7be5d16d99e33dd IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.00160215 27.5
0x51ad68717a48279c4e503656fdbcf2ad3b65aec80866b3ef0ad9b5db3d04e9a9Equip Miner166995782022-06-30 4:21:016 hrs 21 mins ago0x8cdec13d5d7ddf664a3063f6d7be5d16d99e33dd IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.00160215 27.5
0x14c944e54af29048d77ee5f8127f6f468ec1b17da6cec595836a9a7900cf7c9cStaking166995612022-06-30 4:20:256 hrs 21 mins ago0xde1374b1364fc3aea62830ef53c270c51cf5f9b6 IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.00226105 27.5
0xfddfc39ec3923acd71c043df3fec79c064029401ac11a0e4a632dc1279c6b84fEquip Miner166992442022-06-30 4:09:476 hrs 32 mins ago0x8cdec13d5d7ddf664a3063f6d7be5d16d99e33dd IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.00160215 27.5
0xf9cda8f39a5c29180bc63df26efa7e3319717b697bce884e8eef726af5b9a07bEquip Miner166992152022-06-30 4:08:496 hrs 33 mins ago0x8cdec13d5d7ddf664a3063f6d7be5d16d99e33dd IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.00160248 27.5
0x1f2a5ab1fef044de474de67523763ccffa154487cf3585cecda1d7fbf87e4061Equip Miner166991962022-06-30 4:08:116 hrs 34 mins ago0x8cdec13d5d7ddf664a3063f6d7be5d16d99e33dd IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.00160248 27.5
0x7a1d90451a2fb28156741bdc8ba855c950d622fbe45dc292d49e2987ef928cbfClaim Credits166991212022-06-30 4:05:406 hrs 36 mins ago0x8cdec13d5d7ddf664a3063f6d7be5d16d99e33dd IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.0015009225 27.5
0xb10de150669ff32c41e81441db54c850d4bc802007d0a534c7f39137494bd05aStaking166971332022-06-30 2:59:227 hrs 42 mins ago0xb5abc4553e683a9f240aff147d473ec83caabb17 IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.00226072 27.5
0x611df089bdc9c2c9cc7e7ae417ec7cf9ec742fb7d53316ef7af8b55c8ee827e6Claim Credits166967962022-06-30 2:48:057 hrs 54 mins ago0x0e74d49b0483e866b756f12cad2db21e2045cba2 IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.0015009225 27.5
0xf83016afea6a41d0c94193256d8c59e8619e0c4822a3755aaae166aea151fe9aEquip Miner166863712022-06-29 21:00:0913 hrs 42 mins ago0xeaa56f566f96414df950a1804da17258404c24c6 IN  0xbdca906c6facfecfff4a20819c381c3badae6d050 AVAX0.00160215 27.5
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CreditsV2

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at snowtrace.io on 2022-01-21
*/

// File: hardhat/console.sol


pragma solidity >= 0.4.22 <0.9.0;

library console {
	address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);

	function _sendLogPayload(bytes memory payload) private view {
		uint256 payloadLength = payload.length;
		address consoleAddress = CONSOLE_ADDRESS;
		assembly {
			let payloadStart := add(payload, 32)
			let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0)
		}
	}

	function log() internal view {
		_sendLogPayload(abi.encodeWithSignature("log()"));
	}

	function logInt(int p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(int)", p0));
	}

	function logUint(uint p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
	}

	function logString(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function logBool(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function logAddress(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function logBytes(bytes memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes)", p0));
	}

	function logBytes1(bytes1 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0));
	}

	function logBytes2(bytes2 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0));
	}

	function logBytes3(bytes3 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0));
	}

	function logBytes4(bytes4 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0));
	}

	function logBytes5(bytes5 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0));
	}

	function logBytes6(bytes6 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0));
	}

	function logBytes7(bytes7 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0));
	}

	function logBytes8(bytes8 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0));
	}

	function logBytes9(bytes9 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0));
	}

	function logBytes10(bytes10 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0));
	}

	function logBytes11(bytes11 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0));
	}

	function logBytes12(bytes12 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0));
	}

	function logBytes13(bytes13 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0));
	}

	function logBytes14(bytes14 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0));
	}

	function logBytes15(bytes15 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0));
	}

	function logBytes16(bytes16 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0));
	}

	function logBytes17(bytes17 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0));
	}

	function logBytes18(bytes18 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0));
	}

	function logBytes19(bytes19 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0));
	}

	function logBytes20(bytes20 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0));
	}

	function logBytes21(bytes21 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0));
	}

	function logBytes22(bytes22 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0));
	}

	function logBytes23(bytes23 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0));
	}

	function logBytes24(bytes24 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0));
	}

	function logBytes25(bytes25 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0));
	}

	function logBytes26(bytes26 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0));
	}

	function logBytes27(bytes27 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0));
	}

	function logBytes28(bytes28 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0));
	}

	function logBytes29(bytes29 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0));
	}

	function logBytes30(bytes30 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0));
	}

	function logBytes31(bytes31 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0));
	}

	function logBytes32(bytes32 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0));
	}

	function log(uint p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
	}

	function log(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function log(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function log(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function log(uint p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1));
	}

	function log(uint p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1));
	}

	function log(uint p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1));
	}

	function log(uint p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1));
	}

	function log(string memory p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1));
	}

	function log(string memory p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1));
	}

	function log(string memory p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1));
	}

	function log(string memory p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1));
	}

	function log(bool p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1));
	}

	function log(bool p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1));
	}

	function log(bool p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1));
	}

	function log(bool p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1));
	}

	function log(address p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1));
	}

	function log(address p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1));
	}

	function log(address p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1));
	}

	function log(address p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1));
	}

	function log(uint p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2));
	}

	function log(uint p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2));
	}

	function log(uint p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2));
	}

	function log(uint p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2));
	}

	function log(uint p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2));
	}

	function log(uint p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2));
	}

	function log(uint p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2));
	}

	function log(uint p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2));
	}

	function log(uint p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2));
	}

	function log(uint p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2));
	}

	function log(uint p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2));
	}

	function log(uint p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2));
	}

	function log(string memory p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2));
	}

	function log(string memory p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2));
	}

	function log(string memory p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2));
	}

	function log(string memory p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2));
	}

	function log(bool p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2));
	}

	function log(bool p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2));
	}

	function log(bool p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2));
	}

	function log(bool p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2));
	}

	function log(bool p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2));
	}

	function log(bool p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2));
	}

	function log(bool p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2));
	}

	function log(bool p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2));
	}

	function log(bool p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2));
	}

	function log(bool p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2));
	}

	function log(bool p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2));
	}

	function log(bool p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2));
	}

	function log(address p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2));
	}

	function log(address p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2));
	}

	function log(address p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2));
	}

	function log(address p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2));
	}

	function log(address p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2));
	}

	function log(address p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2));
	}

	function log(address p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2));
	}

	function log(address p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2));
	}

	function log(address p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2));
	}

	function log(address p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2));
	}

	function log(address p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2));
	}

	function log(address p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2));
	}

	function log(address p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2));
	}

	function log(address p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2));
	}

	function log(address p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2));
	}

	function log(address p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2));
	}

	function log(uint p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3));
	}

}

// File: @openzeppelin/contracts/utils/Counters.sol


// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

// File: @openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol


// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library StringsUpgradeable {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

// File: @openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol


// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol


// OpenZeppelin Contracts v4.4.1 (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;


/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} modifier, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

// File: @openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;


/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
    uint256[50] private __gap;
}

// File: @openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721ReceiverUpgradeable {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

// File: @openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165Upgradeable {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// File: @openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;



/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable {
    function __ERC165_init() internal onlyInitializing {
        __ERC165_init_unchained();
    }

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }
    uint256[50] private __gap;
}

// File: @openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;


/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721Upgradeable is IERC165Upgradeable {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

// File: @openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721MetadataUpgradeable is IERC721Upgradeable {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

// File: @openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;









/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable {
    using AddressUpgradeable for address;
    using StringsUpgradeable for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing {
        __Context_init_unchained();
        __ERC165_init_unchained();
        __ERC721_init_unchained(name_, symbol_);
    }

    function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) {
        return
            interfaceId == type(IERC721Upgradeable).interfaceId ||
            interfaceId == type(IERC721MetadataUpgradeable).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721Upgradeable.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721Upgradeable.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721Upgradeable.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721Upgradeable.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721ReceiverUpgradeable.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
    uint256[44] private __gap;
}

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// File: @openzeppelin/contracts/token/ERC721/IERC721.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;


/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

// File: @openzeppelin/contracts/interfaces/IERC721.sol


// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol)

pragma solidity ^0.8.0;


// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: Authorizable.sol

pragma solidity >=0.8.0;


contract Authorizable is Ownable {

    mapping(address => bool) public authorized;

    modifier onlyAuthorized() {
        require(authorized[msg.sender] ||  owner() == msg.sender, "Not authorized");
        _;
    }

    function addAuthorized(address _toAdd) onlyOwner public {
        require(_toAdd != address(0));
        authorized[_toAdd] = true;
    }

    function removeAuthorized(address _toRemove) onlyOwner public {
        require(_toRemove != address(0));
        require(_toRemove != msg.sender);
        authorized[_toRemove] = false;
    }

}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;




/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// File: MinerJoe.sol

// contracts/ERC721.sol
// upgradeable contract

pragma solidity >=0.8.0;




interface splitter {
    function split(uint256 value) external payable;
}
contract MinerJoe is ERC721Upgradeable {
    // Royalty
    address private _owner;
    address private _royaltiesAddr; // royality receiver
    uint256 public royaltyPercentage; // royalty based on sales price
    mapping(address => bool) public excludedList; // list of people who dont have to pay fee

    //GB HOLDERS EARLY ACCESS TOKENS
    uint256 public constant gbHoldersMaxMint = 900;
    mapping(address => bool) public gbholders;

    address public GB_erc20_contract;

    uint256[] private _gbTokenSupply;

    // cost to mint
    uint256 public mintFeeAmount;

    // // NFT Meta data
    string public baseURL;

    uint256 public constant maxSupply = 10000;

    // enable flag for public and GB
    bool public openForGB;
    bool public openForPublic;

    // define Miner struct
    struct Miner {
        uint256 tokenId;
        // string tokenURI;
        address mintedBy;
        address currentOwner;
        uint256 previousPrice;
        uint256 price;
        uint256 numberOfTransfers;
        bool forSale;
        uint256 level;
    }

    using Counters for Counters.Counter;
    Counters.Counter private _tokenIds;

    // map id to Miner obj
    mapping(uint256 => Miner) public allMiners;

    //  implement the IERC721Enumerable which no longer come by default in openzeppelin 4.x
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

    //================================= Events ================================= //
    event GBERC20Checked(address indexed _holder, uint256 _bal, bool _result);

    event SaleToggle(uint256 minerNumber, bool isForSale, uint256 price);
    event PurchaseEvent(uint256 minerNumber, address from, address to, uint256 price);

    function initialize(
        address _contractOwner,
        address _royaltyReceiver,
        uint256 _royaltyPercentage,
        uint256 _mintFeeAmount,
        string memory _baseURL,
        bool _openForPublic
    ) public initializer {
        // __ERC721_init("swng", "swng");
        __ERC721_init("MinerJoe", "MinerJoe");
        royaltyPercentage = _royaltyPercentage;
        _owner = _contractOwner;
        _royaltiesAddr = _royaltyReceiver;
        mintFeeAmount = _mintFeeAmount;
        excludedList[_contractOwner] = true; // add owner to exclude list
        excludedList[_royaltyReceiver] = true; // add artist to exclude list
        baseURL = _baseURL;
        openForPublic = _openForPublic;
    }

    function mint(uint256 numberOfToken) public payable {
        // check if thic fucntion caller is not an zero address account
        require(openForPublic == true, "not open");
        require(msg.sender != address(0));
        require(
            _allTokens.length + numberOfToken <= maxSupply,
            "max supply"
        );
        require(numberOfToken > 0, "Min 1");
        require(numberOfToken <= 12, "Max 12");
        uint256 price = 0;
        // pay for minting cost
        if (excludedList[msg.sender] == false) {
            // send token's worth of ethers to the owner
            price = mintFeeAmount * numberOfToken;
            require(msg.value == price, "Not enough fee");
            payable(_royaltiesAddr).transfer(msg.value);
            splitter(_royaltiesAddr).split(msg.value);
        } else {
            // return money to sender // since its free
            payable(msg.sender).transfer(msg.value);
        }

        for (uint256 i = 1; i <= numberOfToken; i++) {
            _tokenIds.increment();
            uint256 newItemId = _tokenIds.current();
            _safeMint(msg.sender, newItemId);
            Miner memory newMiner = Miner(
                newItemId,
                msg.sender,
                msg.sender,
                0,
                price,
                0,
                false,
                100
            );
            // add the token id to the allMiners
            allMiners[newItemId] = newMiner;
        }
    }


    function changeUrl(string memory url) external {
        require(msg.sender == _owner, "Only owner");
        baseURL = url;
    }

    function totalSupply() public view returns (uint256) {
        return _allTokens.length;
    }

    // GB holder related functions
    function gbTotalSupply() public view returns (uint256) {
        return _gbTokenSupply.length;
    }


    function setPriceForSale(
        uint256 _tokenId,
        uint256 _newPrice,
        bool isForSale
    ) external {
        require(_exists(_tokenId), "token not found");
        address tokenOwner = ownerOf(_tokenId);
        require(tokenOwner == msg.sender, "not owner");
        Miner memory miner = allMiners[_tokenId];
        miner.price = _newPrice;
        miner.forSale = isForSale;
        allMiners[_tokenId] = miner;
        emit SaleToggle(_tokenId, isForSale, _newPrice);
    }

    function getAllSaleTokens() public view returns (uint256[] memory) {
        uint256 _totalSupply = totalSupply();
        uint256[] memory _tokenForSales = new uint256[](_totalSupply);
        uint256 counter = 0;
        for (uint256 i = 1; i <= _totalSupply; i++) {
            if (allMiners[i].forSale == true) {
                _tokenForSales[counter] = allMiners[i].tokenId;
                counter++;
            }
        }
        return _tokenForSales;
    }
/*

    struct Miner {
        uint256 tokenId;
        // string tokenURI;
        address mintedBy;
        address currentOwner;
        uint256 previousPrice;
        uint256 price;
        uint256 numberOfTransfers;
        bool forSale;
        uint256 level;
    }

*/
    function getAllTokensInfo(uint256[] calldata IDList) public view returns (uint256[] memory, 
    address[] memory, 
    uint256[] memory, 
    uint256[] memory, 
    bool[] memory,
    uint256[] memory) {
        uint256[] memory tokenId = new uint256[](IDList.length);
        address[] memory currentOwner = new address[](IDList.length);
        uint256[] memory previousPrice = new uint256[](IDList.length);
        uint256[] memory price = new uint256[](IDList.length);
        bool[] memory forSale = new bool[](IDList.length);
        uint256[] memory level = new uint256[](IDList.length);

        uint256 index = 0;
        for (; index < IDList.length; ++index) {
            uint256 currentIndex = IDList[index];
            tokenId[index] = allMiners[currentIndex].tokenId;
            currentOwner[index] = allMiners[currentIndex].currentOwner;
            previousPrice[index] = allMiners[currentIndex].previousPrice;
            price[index] = allMiners[currentIndex].price;
            forSale[index] = allMiners[currentIndex].forSale;
            level[index] = allMiners[currentIndex].level;
        }
        
        return (tokenId, currentOwner, previousPrice, price, forSale, level);
    }

    // by a token by passing in the token's id
    function buyToken(uint256 _tokenId) public payable {
        // check if the token id of the token being bought exists or not
        require(_exists(_tokenId));
        // get the token's owner
        address tokenOwner = ownerOf(_tokenId);
        // token's owner should not be an zero address account
        require(tokenOwner != address(0));
        // the one who wants to buy the token should not be the token's owner
        require(tokenOwner != msg.sender);
        // get that token from all Miners mapping and create a memory of it defined as (struct => Miner)
        Miner memory miner = allMiners[_tokenId];
        // price sent in to buy should be equal to or more than the token's price
        require(msg.value >= miner.price);
        // token should be for sale
        require(miner.forSale);
        uint256 amount = msg.value;
        uint256 _royaltiesAmount = (amount * royaltyPercentage) / 100;
        uint256 payOwnerAmount = amount - _royaltiesAmount;
        payable(_royaltiesAddr).transfer(_royaltiesAmount);
        splitter(_royaltiesAddr).split(_royaltiesAmount);
        payable(miner.currentOwner).transfer(payOwnerAmount);
        miner.previousPrice = miner.price;
        allMiners[_tokenId] = miner;
        _transfer(tokenOwner, msg.sender, _tokenId);
        emit PurchaseEvent(_tokenId, miner.currentOwner, msg.sender, miner.price);
    }

    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        returns (uint256)
    {
        require(index < balanceOf(owner), "out of bounds");
        return _ownedTokens[owner][index];
    }

    //  URI Storage override functions
    /** Overrides ERC-721's _baseURI function */
    function _baseURI()
        internal
        view
        virtual
        override(ERC721Upgradeable)
        returns (string memory)
    {
        return baseURL;
    }

    function _burn(uint256 tokenId) internal override(ERC721Upgradeable) {
        super._burn(tokenId);
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721Upgradeable)
        returns (string memory)
    {
        return super.tokenURI(tokenId);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override(ERC721Upgradeable) {
        super._beforeTokenTransfer(from, to, tokenId);
        Miner memory miner = allMiners[tokenId];
        miner.currentOwner = to;
        miner.numberOfTransfers += 1;
        miner.forSale = false;
        allMiners[tokenId] = miner;
        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId)
        private
    {
        uint256 lastTokenIndex = balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }

    // upgrade contract to support authorized

    mapping(address => bool) public authorized;

    modifier onlyAuthorized() {
        require(authorized[msg.sender] ||  msg.sender == _owner , "Not authorized");
        _;
    }

    function addAuthorized(address _toAdd) public {
        require(msg.sender == _owner, 'Not owner');
        require(_toAdd != address(0));
        authorized[_toAdd] = true;
    }

    function removeAuthorized(address _toRemove) public {
        require(msg.sender == _owner, 'Not owner');
        require(_toRemove != address(0));
        require(_toRemove != msg.sender);
        authorized[_toRemove] = false;
    }

    // upgrade the contract
    function setLevel(uint256 _tokenId, uint256 _newLevel) external onlyAuthorized {
        Miner memory miner = allMiners[_tokenId];
        miner.level = _newLevel;
        // set and update that token in the mapping
        allMiners[_tokenId] = miner;
    }
}
// File: @openzeppelin/contracts/utils/math/SafeMath.sol


// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// File: GoldV2.sol

pragma solidity >=0.8.0;







contract GoldV2 is ERC20, Authorizable {
    using SafeMath for uint256;
    string private TOKEN_NAME = "$GOLD";
    string private TOKEN_SYMBOL = "GOLD";

    address public MINER_CONTRACT;

    // the base number of $GOLD per miner (i.e. 0.75 $gold)
    uint256 public BASE_HOLDER_GOLD = 750000000000000000;

    // the number of $GOLD per miner per day per level (i.e. 0.25 $gold /miner /day /level)
    uint256 public GOLD_PER_DAY_PER_LEVEL = 250000000000000000;

    // how much gold it costs to skip the cooldown
    uint256 public COOLDOWN_BASE = 100000000000000000000; // base 100
    // how much additional gold it costs to skip the cooldown per level
    uint256 public COOLDOWN_BASE_FACTOR = 100000000000000000000; // additional 100 per level
    // how long to wait before skip cooldown can be re-invoked
    uint256 public COOLDOWN_CD_IN_SECS = 86400; // additional 100 per level

    uint256 public LEVELING_BASE = 25;
    uint256 public LEVELING_RATE = 2;
    uint256 public COOLDOWN_RATE = 3600; // 60 mins

    /**
     * Stores staked miner fields (=> 152 <= stored in order of size for optimal packing!)
     */
    struct StakedMinerObj {
        // the current level level (0 -> 16,777,216)
        uint24 level;
        // when to calculate gold from (max 20/02/36812, 11:36:16)
        uint32 sinceTs;
        // for the skipCooldown's cooldown (max 20/02/36812, 11:36:16)
        uint32 lastSkippedTs;
        // how much this miner has been fed (in whole numbers)
        uint48 creditsAmount;
        // cooldown time until level up is allow (per level)
        uint32 cooldownTs;
    }

    // redundant struct - can't be packed? (max totalLevel = 167,772,160,000)
    uint40 public totalLevel;
    uint16 public totalStakedMiner;

    StakedMinerObj[100001] public stakedMiner;

    // Events

    event Minted(address owner, uint256 goldAmt);
    event Burned(address owner, uint256 goldAmt);
    event Staked(uint256 tid, uint256 ts);
    event UnStaked(uint256 tid, uint256 ts);

    // Constructor

    constructor(address _minerContract) ERC20(TOKEN_NAME, TOKEN_SYMBOL) {
        MINER_CONTRACT = _minerContract;
    }

    // "READ" Functions
    // How much is required to be fed to level up per level

    function creditsLevelingRate(uint256 level) public view returns (uint256) {
        // need to divide the level by 100, and make sure the credits level is at 18 decimals
        return LEVELING_BASE * ((level / 100)**LEVELING_RATE);
    }

    // when using the value, need to add the current block timestamp as well
    function cooldownRate(uint256 level) public view returns (uint256) {
        // need to divide the level by 100

        return (level / 100) * COOLDOWN_RATE;
    }

    // Staking Functions

    // stake miner, check if is already staked, get all detail for miner such as
    function _stake(uint256 tid) internal {
        MinerJoe x = MinerJoe(MINER_CONTRACT);

        // verify user is the owner of the miner...
        require(x.ownerOf(tid) == msg.sender, "NOT OWNER");

        // get calc'd values...
        (, , , , , , , uint256 level) = x.allMiners(tid);
        // if lastSkippedTs is 0 its mean it never have a last skip timestamp
        StakedMinerObj memory c = stakedMiner[tid];
        uint32 ts = uint32(block.timestamp);
        if (stakedMiner[tid].level == 0) {
            // create staked miner...
            stakedMiner[tid] = StakedMinerObj(
                uint24(level),
                ts,
                c.lastSkippedTs > 0 ? c.lastSkippedTs :  uint32(ts - COOLDOWN_CD_IN_SECS),
                uint48(0),
                uint32(ts) + uint32(cooldownRate(level)) 
            );

            // update snapshot values...
            // N.B. could be optimised for multi-stakes - but only saves 0.5c AUD per miner - not worth it, this is a one time operation.
            totalStakedMiner += 1;
            totalLevel += uint24(level);

            // let ppl know!
            emit Staked(tid, block.timestamp);
        }
    }

    // function staking(uint256 tokenId) external {
    //     _stake(tokenId);
    // }

    function stake(uint256[] calldata tids) external {
        for (uint256 i = 0; i < tids.length; i++) {
            _stake(tids[i]);
        }
    }

    /**
     * Calculates the amount of gold that is claimable from a miner.
     */
    function claimableView(uint256 tokenId) public view returns (uint256) {
        StakedMinerObj memory c = stakedMiner[tokenId];
        if (c.level > 0) {
            uint256 goldPerDay = ((GOLD_PER_DAY_PER_LEVEL * (c.level / 100)) +
                BASE_HOLDER_GOLD);
            uint256 deltaSeconds = block.timestamp - c.sinceTs;
            return deltaSeconds * (goldPerDay / 86400);
        } else {
            return 0;
        }
    }

    function myStakedMiner() public view returns (uint256[] memory) {
        MinerJoe x = MinerJoe(MINER_CONTRACT);
        uint256 minerCount = x.balanceOf(msg.sender);
        uint256[] memory tokenIds = new uint256[](minerCount);
        uint256 counter = 0;
        for (uint256 i = 0; i < minerCount; i++) {
            uint256 tokenId = x.tokenOfOwnerByIndex(msg.sender, i);
            StakedMinerObj memory miner = stakedMiner[tokenId];
            if (miner.level > 0) {
                tokenIds[counter] = tokenId;
                counter++;
            }
        }
        return tokenIds;
    }

    /**
     * Calculates the TOTAL amount of gold that is claimable from ALL miners.
     */
    function myClaimableView() public view returns (uint256) {
        MinerJoe x = MinerJoe(MINER_CONTRACT);
        uint256 cnt = x.balanceOf(msg.sender);
        require(cnt > 0, "NO MINER");
        uint256 totalClaimable = 0;
        for (uint256 i = 0; i < cnt; i++) {
            uint256 tokenId = x.tokenOfOwnerByIndex(msg.sender, i);
            StakedMinerObj memory miner = stakedMiner[tokenId];
            // make sure that the token is staked
            if (miner.level > 0) {
                uint256 claimable = claimableView(tokenId);
                if (claimable > 0) {
                    totalClaimable = totalClaimable + claimable;
                }
            }
        }
        return totalClaimable;
    }

    /**
     * Claims gold from the provided miners.
     */
    function _claimGold(uint256[] calldata tokenIds) internal {
        MinerJoe x = MinerJoe(MINER_CONTRACT);
        uint256 totalClaimableGold = 0;
        for (uint256 i = 0; i < tokenIds.length; i++) {
            require(x.ownerOf(tokenIds[i]) == msg.sender, "NOT OWNER");
            StakedMinerObj memory miner = stakedMiner[tokenIds[i]];
            // we only care about miner that have been staked (i.e. level > 0) ...
            if (miner.level > 0) {
                uint256 claimableGold = claimableView(tokenIds[i]);
                if (claimableGold > 0) {
                    totalClaimableGold = totalClaimableGold + claimableGold;
                    // reset since, for the next calc...
                    miner.sinceTs = uint32(block.timestamp);
                    stakedMiner[tokenIds[i]] = miner;
                }
            }
        }
        if (totalClaimableGold > 0) {
            _mint(msg.sender, totalClaimableGold);
            emit Minted(msg.sender, totalClaimableGold);
        }
    }

    /**
     * Claims gold from the provided miners.
     */
    function claimGold(uint256[] calldata tokenIds) external {
        _claimGold(tokenIds);
    }

    /**
     * Unstakes a miner. Why you'd call this, I have no idea.
     */
    function _unstake(uint256 tokenId) internal {
        MinerJoe x = MinerJoe(MINER_CONTRACT);

        // verify user is the owner of the miner...
        require(x.ownerOf(tokenId) == msg.sender, "NOT OWNER");

        // update miner...
        StakedMinerObj memory c = stakedMiner[tokenId];
        if (c.level > 0) {
            // update snapshot values...
            totalLevel -= uint24(c.level);
            totalStakedMiner -= 1;

            c.level = 0;
            stakedMiner[tokenId] = c;

            // let ppl know!
            emit UnStaked(tokenId, block.timestamp);
        }
    }

    function _unstakeMultiple(uint256[] calldata tids) internal {
        for (uint256 i = 0; i < tids.length; i++) {
            _unstake(tids[i]);
        }
    }

    /**
     * Unstakes MULTIPLE miner. Why you'd call this, I have no idea.
     */
    function unstake(uint256[] calldata tids) external {
        _unstakeMultiple(tids);
    }

    /**
     * Unstakes MULTIPLE miner AND claims the gold.
     */
    function withdrawAllMinerAndClaim(uint256[] calldata tids) external {
        _claimGold(tids);
        _unstakeMultiple(tids);
    }

    /**
     * Public : update the miner's level level.
     */
     function levelUpMiner(uint256 tid) external {
        StakedMinerObj memory c = stakedMiner[tid];
        require(c.level > 0, "NOT STAKED");

        MinerJoe x = MinerJoe(MINER_CONTRACT);
        // NOTE Does it matter if sender is not owner?
        // require(x.ownerOf(minerId) == msg.sender, "NOT OWNER");

        // check: miner has eaten enough...
        require(c.creditsAmount >= creditsLevelingRate(c.level), "MORE FOOD REQD");
        // check: cooldown has passed...
        require(block.timestamp >= c.cooldownTs, "COOLDOWN NOT MET");

        // increase level, reset eaten to 0, update next credits level and cooldown time
        c.level = c.level + 100;
        c.creditsAmount = 0;
        c.cooldownTs = uint32(block.timestamp + cooldownRate(c.level));
        stakedMiner[tid] = c;

        // need to increase overall size
        totalLevel += uint24(100);

        // and update the miner contract
        x.setLevel(tid, c.level);
    }

    /**
     * Internal: burns the given amount of gold from the wallet.
     */
    function _burnGold(address sender, uint256 goldAmount) internal {
        // NOTE do we need to check this before burn?
        require(balanceOf(sender) >= goldAmount, "NOT ENOUGH GOLD");
        _burn(sender, goldAmount);
        emit Burned(sender, goldAmount);
    }

    /**
     * Burns the given amount of gold from the sender's wallet.
     */
    function burnGold(address sender, uint256 goldAmount) external onlyAuthorized {
        _burnGold(sender, goldAmount);
    }

    /**
     * Skips the "levelUp" cooling down period, in return for burning gold.
     */
     function skipCoolingOff(uint256 tokenId, uint256 goldAmount) external {
        StakedMinerObj memory miner = stakedMiner[tokenId];
        require(miner.level != 0, "NOT STAKED");

        uint32 ts = uint32(block.timestamp);

        // NOTE Does it matter if sender is not owner?
        // MinerJoe instance = MinerJoe(MINER_CONTRACT);
        // require(instance.ownerOf(minerId) == msg.sender, "NOT OWNER");

        // check: enough gold in wallet to pay
        uint256 walletBalance = balanceOf(msg.sender);
        require(walletBalance >= goldAmount, "NOT ENOUGH gold IN WALLET");

        // check: provided gold amount is enough to skip this level
        require(goldAmount >= checkSkipCoolingOffAmt(miner.level), "NOT ENOUGH gold TO SKIP");

        // check: user hasn't skipped cooldown in last 24 hrs
        require((miner.lastSkippedTs + COOLDOWN_CD_IN_SECS) <= ts, "BLOCKED BY 24HR COOLDOWN");

        // burn gold
        _burnGold(msg.sender, goldAmount);

        // disable cooldown
        miner.cooldownTs = ts;
        // track last time cooldown was skipped (i.e. now)
        miner.lastSkippedTs = ts;
        stakedMiner[tokenId] = miner;
    }

    /**
     * Calculates the cost of skipping cooldown.
     */
    function checkSkipCoolingOffAmt(uint256 level) public view returns (uint256) {
        // NOTE cannot assert level is < 100... we can have large numbers!
        return ((level / 100) * COOLDOWN_BASE_FACTOR);
    }

    /**
     *  Giving credis to miner
     */
    function equipMiner(uint256 tokenId, uint256 creditsAmount)
        external
        onlyAuthorized
    {
        StakedMinerObj memory miner = stakedMiner[tokenId];
        require(miner.level > 0, "NOT STAKED");
        require(creditsAmount > 0, "NOTHING TO EQUIP");
        // update the block time as well as claimable
        miner.creditsAmount = uint48(creditsAmount / 1e18) + miner.creditsAmount;
        stakedMiner[tokenId] = miner;
    }

    // NOTE What happens if we update the multiplier, and people have been staked for a year...?
    // We need to snapshot somehow... but we're physically unable to update 10k records!!!

    // ADMIN: to update the cost of skipping cooldown
    function updateSkipCooldownValues(
        uint256 a, 
        uint256 b, 
        uint256 c,
        uint256 d,
        uint256 e
    ) external onlyOwner {
        COOLDOWN_BASE = a;
        COOLDOWN_BASE_FACTOR = b;
        COOLDOWN_CD_IN_SECS = c;
        BASE_HOLDER_GOLD = d;
        GOLD_PER_DAY_PER_LEVEL = e;
    }

    // INTRA-CONTRACT: use this function to mint gold to users
    // this also get called by the CREDITS contract
    function mintGold(address sender, uint256 amount) external onlyAuthorized {
        _mint(sender, amount);
        emit Minted(sender, amount);
    }

    // ADMIN: drop gold to the given miner wallet owners (within the minerId range from->to).
    function airdropToExistingHolder(
        uint256 from,
        uint256 to,
        uint256 amountOfGold
    ) external onlyOwner {
        // mint 100 gold to every owners
        MinerJoe instance = MinerJoe(MINER_CONTRACT);
        for (uint256 i = from; i <= to; i++) {
            address currentOwner = instance.ownerOf(i);
            if (currentOwner != address(0)) {
                _mint(currentOwner, amountOfGold * 1e18);
            }
        }
    }

    // ADMIN: Rebalance user wallet by minting gold (within the minerId range from->to).
    // NOTE: This is use when we need to update gold production
    function rebalanceGoldClaimableToUserWallet(uint256 from, uint256 to)
        external
        onlyOwner
    {
        MinerJoe instance = MinerJoe(MINER_CONTRACT);
        for (uint256 i = from; i <= to; i++) {
            address currentOwner = instance.ownerOf(i);
            StakedMinerObj memory miner = stakedMiner[i];
            // we only care about miner that have been staked (i.e. level > 0) ...
            if (miner.level > 0) {
                _mint(currentOwner, claimableView(i));
                miner.sinceTs = uint32(block.timestamp);
                stakedMiner[i] = miner;
            }
        }
    }
}

// File: CreditsV2.sol

//SPDX-License-Identifier: MIT

pragma solidity >=0.8.0;








contract CreditsV2 is ERC20, Authorizable {
    using SafeMath for uint256;

    uint256 public MAX_CREDITS_SUPPLY = 32000000000000000000000000000;
    string private TOKEN_NAME = "$credits";
    string private TOKEN_SYMBOL = "CREDITS";

    address public MINER_CONTRACT;
    address public GOLD_CONTRACT;

    uint256 public BOOSTER_MULTIPLIER = 1;
    uint256 public CREDITS_FARMING_FACTOR = 3; // gold to credits ratio
    uint256 public CREDITS_SWAP_FACTOR = 12; // swap gold for credits ratio

    // Moved "SKIP_COOLDOWN_BASE" to GoldV2 contract
    // Moved "SKIP_COOLDOWN_BASE_FACTOR" to GoldV2 contract

    // Credits mint event
    event Minted(address owner, uint256 numberOfCredits);
    event Burned(address owner, uint256 numberOfCredits);
    event GoldSwapped(address owner, uint256 numberOfCredits);
    // Gold event
    event MintedGold(address owner, uint256 numberOfCredits);
    event BurnedGold(address owner, uint256 numberOfGold);
    event StakedGold(address owner, uint256 numberOfGold);
    event UnstakedGold(address owner, uint256 numberOfGold);

    // Gold staking
    struct GoldStake {
        // user wallet - who we have to pay back for the staked gold.
        address user;
        // used to calculate how much credits since.
        uint32 since;
        // amount of gold that have been staked.
        uint256 amount;
    }

    mapping(address => GoldStake) public goldStakedHolders;
    uint256 public totalGoldStaked;
    address[] public _allGoldStakeHolders;
    mapping(address => uint256) private _allGoldStakeHoldersIndex;

    // gold stake and unstake
    event GoldStaked(address user, uint256 amount);
    event GoldUnStaked(address user, uint256 amount);

    constructor(address _minerContract, address _goldContract)
        ERC20(TOKEN_NAME, TOKEN_SYMBOL)
    {
        MINER_CONTRACT = _minerContract;
        GOLD_CONTRACT = _goldContract;
    }

    /**
     * pdates user's amount of staked gold to the given value. Resets the "since" timestamp.
     */
    function _upsertGoldStaking(
        address user,
        uint256 amount
    ) internal {
        // NOTE does this ever happen?
        require(user != address(0), "EMPTY ADDRESS");
        GoldStake memory gold = goldStakedHolders[user];

        // if first time user is staking $gold...
        if (gold.user == address(0)) {
            // add tracker for first time staker
            _allGoldStakeHoldersIndex[user] = _allGoldStakeHolders.length;
            _allGoldStakeHolders.push(user);
        }
        // since its an upsert, we took out old gold and add new amount
        uint256 previousGold = gold.amount;
        // update stake
        gold.user = user;
        gold.amount = amount;
        gold.since = uint32(block.timestamp);

        goldStakedHolders[user] = gold;
        totalGoldStaked = totalGoldStaked - previousGold + amount;
        emit GoldStaked(user, amount);
    }

    function staking(uint256 amount) external {
        require(amount > 0, "NEED GOLD");
        GoldV2 goldContract = GoldV2(GOLD_CONTRACT);
        uint256 available = goldContract.balanceOf(msg.sender);
        require(available >= amount, "NOT ENOUGH GOLD");
        GoldStake memory existingGold = goldStakedHolders[msg.sender];
        if (existingGold.amount > 0) {
            // already have previous gold staked
            // need to calculate claimable
            uint256 projection = claimableView(msg.sender);
            // mint credits to wallet
            _mint(msg.sender, projection);
            emit Minted(msg.sender, amount);
            _upsertGoldStaking(msg.sender, existingGold.amount + amount);
        } else {
            // no gold staked just update staking
            _upsertGoldStaking(msg.sender, amount);
        }
        goldContract.burnGold(msg.sender, amount);
        emit StakedGold(msg.sender, amount);
    }

    /**
     * Calculates how much credits is available to claim.
     */
    function claimableView(address user) public view returns (uint256) {
        GoldStake memory gold = goldStakedHolders[user];
        require(gold.user != address(0), "NOT STAKED");
        // need to add 10000000000 to factor for decimal
        return
            ((gold.amount * CREDITS_FARMING_FACTOR) *
                (((block.timestamp - gold.since) * 10000000000) / 86400) *
                BOOSTER_MULTIPLIER) /
            10000000000;
    }
    
    // NOTE withdrawing gold without claiming credits
    function withdrawGold(uint256 amount) external {
        require(amount > 0, "MUST BE MORE THAN 0");
        GoldStake memory gold = goldStakedHolders[msg.sender];
        require(gold.user != address(0), "NOT STAKED");
        require(amount <= gold.amount, "OVERDRAWN");
        GoldV2 goldContract = GoldV2(GOLD_CONTRACT);
        // uint256 projection = claimableView(msg.sender);
        _upsertGoldStaking(msg.sender, gold.amount - amount);
        // Need to burn 1/12 when withdrawing (breakage fee)
        uint256 afterBurned = (amount * 19) / 20;
        // mint gold to return to user
        goldContract.mintGold(msg.sender, afterBurned);
        emit UnstakedGold(msg.sender, afterBurned);
    }

    /**
     * Claims credits from staked gold
     */
    function claimCredits() external {
        uint256 projection = claimableView(msg.sender);
        require(projection > 0, "NO CREDITS TO CLAIM");

        GoldStake memory gold = goldStakedHolders[msg.sender];

        // Updates user's amount of staked gold to the given value. Resets the "since" timestamp.
        _upsertGoldStaking(msg.sender, gold.amount);

        // check: that the total credits supply hasn't been exceeded.
        _mintCredits(msg.sender, projection);
    }

    /**
     */
    function _removeUserFromGoldEnumeration(address user) private {
        uint256 lastUserIndex = _allGoldStakeHolders.length - 1;
        uint256 currentUserIndex = _allGoldStakeHoldersIndex[user];

        address lastUser = _allGoldStakeHolders[lastUserIndex];

        _allGoldStakeHolders[currentUserIndex] = lastUser; // Move the last token to the slot of the to-delete token
        _allGoldStakeHoldersIndex[lastUser] = currentUserIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allGoldStakeHoldersIndex[user];
        _allGoldStakeHolders.pop();
    }

    /**
     * Unstakes the gold, returns the gold (mints) to the user.
     */
    function withdrawAllGoldAndClaimCredits() external {
        GoldStake memory gold = goldStakedHolders[msg.sender];

        // NOTE does this ever happen?
        require(gold.user != address(0), "NOT STAKED");

        // if there's credits to claim, supply it to the owner...
        uint256 projection = claimableView(msg.sender);
        if (projection > 0) {
            // supply credits to the sender...
            _mintCredits(msg.sender, projection);
        }
        // if there's gold to withdraw, supply it to the owner...
        if (gold.amount > 0) {
            // mint gold to return to user
            // Need to burn 1/12 when withdrawing (breakage fee)
            uint256 afterBurned = (gold.amount * 11) / 12;
            GoldV2 goldContract = GoldV2(GOLD_CONTRACT);
            goldContract.mintGold(msg.sender, afterBurned);
            emit UnstakedGold(msg.sender, afterBurned);
        }
        // Internal: removes gold from storage.
        _unstakingGold(msg.sender);
    }

    /**
     * Internal: removes gold from storage.
     */
    function _unstakingGold(address user) internal {
        GoldStake memory gold = goldStakedHolders[user];
        // NOTE when whould address be zero?
        require(gold.user != address(0), "EMPTY ADDRESS");
        totalGoldStaked = totalGoldStaked - gold.amount;
        _removeUserFromGoldEnumeration(user);
        delete goldStakedHolders[user];
        emit GoldUnStaked(user, gold.amount);
    }

    /**
     * Equip the miner the amount of GOLD.
     */
    function equipMiner(uint256 minerId, uint256 amount) external {
        // check: amount is gt zero...
        require(amount > 0, "MUST BE MORE THAN 0 GOLD");

        IERC721 instance = IERC721(MINER_CONTRACT);

        // check: msg.sender is miner owner...
        require(instance.ownerOf(minerId) == msg.sender, "NOT OWNER");
        
        // check: user has enough gold in wallet...
        require(balanceOf(msg.sender) >= amount, "NOT ENOUGH GOLD");
        
        // TODO should this be moved to gold contract? or does the order here, matter?
        GoldV2 goldContract = GoldV2(GOLD_CONTRACT);
        (uint24 level, , , , ) = goldContract.stakedMiner(minerId);
        require(level > 0, "NOT STAKED");

        // burn gold...
        _burn(msg.sender, amount);
        emit Burned(msg.sender, amount);

        // update equipedAmount in GoldV2 contract...
        goldContract.equipMiner(minerId, amount);
    }

    function swapGoldForCredits(uint256 goldAmt) external {
        require(goldAmt > 0, "MUST BE MORE THAN 0 GOLD");

        // burn gold...
        GoldV2 goldContract = GoldV2(GOLD_CONTRACT);
        goldContract.burnGold(msg.sender, goldAmt);

        // supply credits...
        _mint(msg.sender, goldAmt * CREDITS_SWAP_FACTOR);
        emit GoldSwapped(msg.sender, goldAmt * CREDITS_SWAP_FACTOR);
    }

    /**
     * Internal: mints the credits to the given wallet.
     */
    function _mintCredits(address sender, uint256 creditsAmount) internal {
        // check: that the total credits supply hasn't been exceeded.
        require(totalSupply() + creditsAmount < MAX_CREDITS_SUPPLY, "OVER MAX SUPPLY");
        _mint(sender, creditsAmount);
        emit Minted(sender, creditsAmount);
    }

    // ADMIN FUNCTIONS

    /**
     * Admin : mints the credits to the given wallet.
     */
    function mintCredits(address sender, uint256 amount) external onlyOwner {
        _mintCredits(sender, amount);
    }

    /**
     * Admin : used for temporarily multipling how much credits is distributed per staked gold.
     */
    function updateBoosterMultiplier(uint256 _value) external onlyOwner {
        BOOSTER_MULTIPLIER = _value;
    }

    /**
     * Admin : updates how much credits you get per staked gold (e.g. 3x).
     */
    function updateFarmingFactor(uint256 _value) external onlyOwner {
        CREDITS_FARMING_FACTOR = _value;
    }

    /**
     * Admin : updates the multiplier for swapping (burning) gold for credits (e.g. 12x).
     */
    function updateCreditsSwapFactor(uint256 _value) external onlyOwner {
        CREDITS_SWAP_FACTOR = _value;
    }

    /**
     * Admin : updates the maximum available credits supply.
     */
    function updateMaxCreditsSupply(uint256 _value) external onlyOwner {
        MAX_CREDITS_SUPPLY = _value;
    }

    /**
     * Admin : util for working out how many people are staked.
     */
    function totalGoldHolder() public view returns (uint256) {
        return _allGoldStakeHolders.length;
    }

    /**
     * Admin : gets the wallet for the the given index. Used for rebalancing.
     */
    function getGoldHolderByIndex(uint256 index) internal view returns (address){
        return _allGoldStakeHolders[index];
    }

    /**
     * Admin : Rebalances the pool. Mint to the user's wallet. Only called if changing multiplier.
     */
    function rebalanceStakingPool(uint256 from, uint256 to) external onlyOwner {
        // for each holder of staked gold...
        for (uint256 i = from; i <= to; i++) {
            address holderAddress = getGoldHolderByIndex(i);

            // check how much credits is claimable...
            uint256 pendingClaim = claimableView(holderAddress);
            GoldStake memory gold = goldStakedHolders[holderAddress];

            // supply credits to the owner's wallet...
            _mint(holderAddress, pendingClaim);
            emit Minted(holderAddress, pendingClaim);

            // pdates user's amount of staked gold to the given value. Resets the "since" timestamp.
            _upsertGoldStaking(holderAddress, gold.amount);
        }
    }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_minerContract","type":"address"},{"internalType":"address","name":"_goldContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"numberOfCredits","type":"uint256"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"numberOfGold","type":"uint256"}],"name":"BurnedGold","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"GoldStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"numberOfCredits","type":"uint256"}],"name":"GoldSwapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"GoldUnStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"numberOfCredits","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"numberOfCredits","type":"uint256"}],"name":"MintedGold","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":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"numberOfGold","type":"uint256"}],"name":"StakedGold","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"numberOfGold","type":"uint256"}],"name":"UnstakedGold","type":"event"},{"inputs":[],"name":"BOOSTER_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CREDITS_FARMING_FACTOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CREDITS_SWAP_FACTOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GOLD_CONTRACT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_CREDITS_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINER_CONTRACT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_allGoldStakeHolders","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_toAdd","type":"address"}],"name":"addAuthorized","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":"","type":"address"}],"name":"authorized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimCredits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"claimableView","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":"uint256","name":"minerId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"equipMiner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"goldStakedHolders","outputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint32","name":"since","type":"uint32"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","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":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintCredits","outputs":[],"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":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"to","type":"uint256"}],"name":"rebalanceStakingPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_toRemove","type":"address"}],"name":"removeAuthorized","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"staking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"goldAmt","type":"uint256"}],"name":"swapGoldForCredits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalGoldHolder","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalGoldStaked","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","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":"uint256","name":"_value","type":"uint256"}],"name":"updateBoosterMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"updateCreditsSwapFactor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"updateFarmingFactor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"updateMaxCreditsSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAllGoldAndClaimCredits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawGold","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6b6765c793fa10079d0000000060075560c06040526008608081905267246372656469747360c01b60a090815262000039919081620002a0565b50604080518082019091526007808252664352454449545360c81b60209092019182526200006a91600991620002a0565b506001600c556003600d55600c600e553480156200008757600080fd5b506040516200280138038062002801833981016040819052620000aa9162000363565b60088054620000b9906200039b565b80601f0160208091040260200160405190810160405280929190818152602001828054620000e7906200039b565b8015620001385780601f106200010c5761010080835404028352916020019162000138565b820191906000526020600020905b8154815290600101906020018083116200011a57829003601f168201915b5050505050600980546200014c906200039b565b80601f01602080910402602001604051908101604052809291908181526020018280546200017a906200039b565b8015620001cb5780601f106200019f57610100808354040283529160200191620001cb565b820191906000526020600020905b815481529060010190602001808311620001ad57829003601f168201915b50508451620001e5935060039250602086019150620002a0565b508051620001fb906004906020840190620002a0565b50505062000218620002126200024a60201b60201c565b6200024e565b600a80546001600160a01b039384166001600160a01b031991821617909155600b8054929093169116179055620003d8565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002ae906200039b565b90600052602060002090601f016020900481019282620002d257600085556200031d565b82601f10620002ed57805160ff19168380011785556200031d565b828001600101855582156200031d579182015b828111156200031d57825182559160200191906001019062000300565b506200032b9291506200032f565b5090565b5b808211156200032b576000815560010162000330565b80516001600160a01b03811681146200035e57600080fd5b919050565b600080604083850312156200037757600080fd5b620003828362000346565b9150620003926020840162000346565b90509250929050565b600181811c90821680620003b057607f821691505b60208210811415620003d257634e487b7160e01b600052602260045260246000fd5b50919050565b61241980620003e86000396000f3fe608060405234801561001057600080fd5b50600436106102485760003560e01c806395d89b411161013b578063c352eba7116100b8578063dd62ed3e1161007c578063dd62ed3e14610540578063e05c995614610579578063f2fde38b14610582578063f7c7b28314610595578063f8d824631461059e57600080fd5b8063c352eba714610495578063cda04a11146104a8578063cf1c316a146104bb578063cf57d328146104ce578063d20c7acd1461053857600080fd5b8063a9f758f1116100ff578063a9f758f11461043b578063b918161114610443578063babc173114610466578063bfc568d414610479578063c3355dd81461048257600080fd5b806395d89b41146103e75780639835e092146103ef5780639bae874714610402578063a457c2d714610415578063a9059cbb1461042857600080fd5b8063485d7d94116101c9578063715018a61161018d578063715018a6146103aa57806377c068f6146103b25780637e9eb487146103c55780638a1fbf4d146103cd5780638da5cb5b146103d657600080fd5b8063485d7d941461031d5780634da8417c1461033057806357545a671461035b578063605fba671461036e57806370a082311461038157600080fd5b80631f6dc8ee116102105780631f6dc8ee146102c257806323b872dd146102d5578063313ce567146102e857806339509351146102f75780633e46dd1b1461030a57600080fd5b806306fdde031461024d578063095ea7b31461026b5780630cc6cd281461028e57806318160ddd146102a55780631dbb2a22146102ad575b600080fd5b6102556105b1565b6040516102629190612036565b60405180910390f35b61027e6102793660046120a0565b610643565b6040519015158152602001610262565b61029760075481565b604051908152602001610262565b600254610297565b6102c06102bb3660046120cc565b610659565b005b6102c06102d03660046120cc565b6108b4565b61027e6102e33660046120e5565b6108e3565b60405160128152602001610262565b61027e6103053660046120a0565b61098d565b6102c0610318366004612126565b6109c9565b6102c061032b366004612148565b610acc565b600a54610343906001600160a01b031681565b6040516001600160a01b039091168152602001610262565b6102c06103693660046120cc565b610b40565b61029761037c366004612148565b610b6f565b61029761038f366004612148565b6001600160a01b031660009081526020819052604090205490565b6102c0610c49565b6102c06103c0366004612126565b610c7f565b6102c0610f16565b610297600d5481565b6005546001600160a01b0316610343565b610255610fc8565b6102c06103fd3660046120cc565b610fd7565b6102c06104103660046120a0565b611197565b61027e6104233660046120a0565b6111cb565b61027e6104363660046120a0565b611264565b6102c0611271565b61027e610451366004612148565b60066020526000908152604090205460ff1681565b6102c06104743660046120cc565b6113cb565b61029760105481565b6102c06104903660046120cc565b6113fa565b6102c06104a33660046120cc565b61150c565b6103436104b63660046120cc565b61153b565b6102c06104c9366004612148565b611565565b61050e6104dc366004612148565b600f60205260009081526040902080546001909101546001600160a01b03821691600160a01b900463ffffffff169083565b604080516001600160a01b03909416845263ffffffff909216602084015290820152606001610262565b601154610297565b61029761054e366004612165565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610297600c5481565b6102c0610590366004612148565b6115c6565b610297600e5481565b600b54610343906001600160a01b031681565b6060600380546105c09061219e565b80601f01602080910402602001604051908101604052809291908181526020018280546105ec9061219e565b80156106395780601f1061060e57610100808354040283529160200191610639565b820191906000526020600020905b81548152906001019060200180831161061c57829003601f168201915b5050505050905090565b6000610650338484611661565b50600192915050565b6000811161069a5760405162461bcd60e51b8152602060048201526009602482015268139151510811d3d31160ba1b60448201526064015b60405180910390fd5b600b546040516370a0823160e01b81523360048201526001600160a01b039091169060009082906370a0823190602401602060405180830381865afa1580156106e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070b91906121d9565b90508281101561074f5760405162461bcd60e51b815260206004820152600f60248201526e1393d508115393d551d20811d3d311608a1b6044820152606401610691565b336000908152600f6020908152604091829020825160608101845281546001600160a01b0381168252600160a01b900463ffffffff169281019290925260010154918101829052901561080b5760006107a733610b6f565b90506107b33382611785565b7f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe33866040516107e49291906121f2565b60405180910390a1610805338684604001516108009190612221565b611864565b50610815565b6108153385611864565b604051630b2b60a160e01b81526001600160a01b03841690630b2b60a19061084390339088906004016121f2565b600060405180830381600087803b15801561085d57600080fd5b505af1158015610871573d6000803e3d6000fd5b505050507f04a66cd1041cb2e023256ebf235166db9248e90cbb780aa92ebd19d70c8b5efe33856040516108a69291906121f2565b60405180910390a150505050565b6005546001600160a01b031633146108de5760405162461bcd60e51b815260040161069190612239565b600c55565b60006108f0848484611a0e565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156109755760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610691565b6109828533858403611661565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916106509185906109c4908690612221565b611661565b6005546001600160a01b031633146109f35760405162461bcd60e51b815260040161069190612239565b815b818111610ac7576000610a0782611bdd565b90506000610a1482610b6f565b6001600160a01b038381166000908152600f6020908152604091829020825160608101845281549485168152600160a01b90940463ffffffff16918401919091526001015490820152909150610a6a8383611785565b7f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe8383604051610a9b9291906121f2565b60405180910390a1610ab1838260400151611864565b5050508080610abf9061226e565b9150506109f5565b505050565b6005546001600160a01b03163314610af65760405162461bcd60e51b815260040161069190612239565b6001600160a01b038116610b0957600080fd5b6001600160a01b038116331415610b1f57600080fd5b6001600160a01b03166000908152600660205260409020805460ff19169055565b6005546001600160a01b03163314610b6a5760405162461bcd60e51b815260040161069190612239565b600d55565b6001600160a01b038181166000908152600f6020908152604080832081516060810183528154958616808252600160a01b90960463ffffffff169381019390935260010154908201529091610bd65760405162461bcd60e51b815260040161069190612289565b6402540be400600c5462015180836020015163ffffffff1642610bf991906122ad565b610c08906402540be4006122c4565b610c1291906122e3565b600d548460400151610c2491906122c4565b610c2e91906122c4565b610c3891906122c4565b610c4291906122e3565b9392505050565b6005546001600160a01b03163314610c735760405162461bcd60e51b815260040161069190612239565b610c7d6000611c0d565b565b60008111610cca5760405162461bcd60e51b8152602060048201526018602482015277135554d5081091481353d4914815121053880c0811d3d31160421b6044820152606401610691565b600a546040516331a9108f60e11b8152600481018490526001600160a01b039091169033908290636352211e90602401602060405180830381865afa158015610d17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3b9190612305565b6001600160a01b031614610d7d5760405162461bcd60e51b81526020600482015260096024820152682727aa1027aba722a960b91b6044820152606401610691565b33600090815260208190526040902054821115610dce5760405162461bcd60e51b815260206004820152600f60248201526e1393d508115393d551d20811d3d311608a1b6044820152606401610691565b600b54604051630f873a7760e21b8152600481018590526001600160a01b03909116906000908290633e1ce9dc9060240160a060405180830381865afa158015610e1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e40919061233b565b50505050905060008162ffffff1611610e6b5760405162461bcd60e51b815260040161069190612289565b610e753385611c5f565b7f696de425f79f4a40bc6d2122ca50507f0efbeabbff86a84871b7196ab8ea8df73385604051610ea69291906121f2565b60405180910390a1604051633be0347b60e11b815260048101869052602481018590526001600160a01b038316906377c068f690604401600060405180830381600087803b158015610ef757600080fd5b505af1158015610f0b573d6000803e3d6000fd5b505050505050505050565b6000610f2133610b6f565b905060008111610f695760405162461bcd60e51b81526020600482015260136024820152724e4f204352454449545320544f20434c41494d60681b6044820152606401610691565b336000818152600f6020908152604091829020825160608101845281546001600160a01b0381168252600160a01b900463ffffffff16928101929092526001015491810182905291610fba91611864565b610fc43383611dad565b5050565b6060600480546105c09061219e565b6000811161101d5760405162461bcd60e51b815260206004820152601360248201527204d555354204245204d4f5245205448414e203606c1b6044820152606401610691565b336000908152600f6020908152604091829020825160608101845281546001600160a01b038116808352600160a01b90910463ffffffff1693820193909352600190910154928101929092526110855760405162461bcd60e51b815260040161069190612289565b80604001518211156110c55760405162461bcd60e51b815260206004820152600960248201526827ab22a9222920aba760b91b6044820152606401610691565b600b5460408201516001600160a01b03909116906110ea9033906108009086906122ad565b600060146110f98560136122c4565b61110391906122e3565b60405163edf52d1360e01b81529091506001600160a01b0383169063edf52d139061113490339085906004016121f2565b600060405180830381600087803b15801561114e57600080fd5b505af1158015611162573d6000803e3d6000fd5b505050507fc91da3d84dde3a7fbd595bf3b348097f89c0e2b7413ec9a943fb5453bfad81a633826040516108a69291906121f2565b6005546001600160a01b031633146111c15760405162461bcd60e51b815260040161069190612239565b610fc48282611dad565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561124d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610691565b61125a3385858403611661565b5060019392505050565b6000610650338484611a0e565b336000908152600f6020908152604091829020825160608101845281546001600160a01b038116808352600160a01b90910463ffffffff1693820193909352600190910154928101929092526112d95760405162461bcd60e51b815260040161069190612289565b60006112e433610b6f565b905080156112f6576112f63382611dad565b6040820151156113c2576000600c8360400151600b61131591906122c4565b61131f91906122e3565b600b5460405163edf52d1360e01b81529192506001600160a01b031690819063edf52d139061135490339086906004016121f2565b600060405180830381600087803b15801561136e57600080fd5b505af1158015611382573d6000803e3d6000fd5b505050507fc91da3d84dde3a7fbd595bf3b348097f89c0e2b7413ec9a943fb5453bfad81a633836040516113b79291906121f2565b60405180910390a150505b610fc433611e3e565b6005546001600160a01b031633146113f55760405162461bcd60e51b815260040161069190612239565b600e55565b600081116114455760405162461bcd60e51b8152602060048201526018602482015277135554d5081091481353d4914815121053880c0811d3d31160421b6044820152606401610691565b600b54604051630b2b60a160e01b81526001600160a01b03909116908190630b2b60a19061147990339086906004016121f2565b600060405180830381600087803b15801561149357600080fd5b505af11580156114a7573d6000803e3d6000fd5b505050506114c233600e54846114bd91906122c4565b611785565b7f8fd7aa1de54163591a8914d23fe8da195a63ef89d2fd99774770806a4fc8d7b033600e54846114f291906122c4565b6040516115009291906121f2565b60405180910390a15050565b6005546001600160a01b031633146115365760405162461bcd60e51b815260040161069190612239565b600755565b6011818154811061154b57600080fd5b6000918252602090912001546001600160a01b0316905081565b6005546001600160a01b0316331461158f5760405162461bcd60e51b815260040161069190612239565b6001600160a01b0381166115a257600080fd5b6001600160a01b03166000908152600660205260409020805460ff19166001179055565b6005546001600160a01b031633146115f05760405162461bcd60e51b815260040161069190612239565b6001600160a01b0381166116555760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610691565b61165e81611c0d565b50565b6001600160a01b0383166116c35760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610691565b6001600160a01b0382166117245760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610691565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0382166117db5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610691565b80600260008282546117ed9190612221565b90915550506001600160a01b0382166000908152602081905260408120805483929061181a908490612221565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0382166118aa5760405162461bcd60e51b815260206004820152600d60248201526c454d505459204144445245535360981b6044820152606401610691565b6001600160a01b038281166000908152600f602090815260409182902082516060810184528154948516808252600160a01b90950463ffffffff169281019290925260010154918101919091529061195957601180546001600160a01b0385166000818152601260205260408120839055600183018455929092527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c680180546001600160a01b03191690911790555b604080820180516001600160a01b0380871680865286845263ffffffff42811660208089019182526000938452600f905295909120865181549651909216600160a01b026001600160c01b03199096169190921617939093178355905160019092019190915560105483906119cf9083906122ad565b6119d99190612221565b6010556040517fabe65b8ec1bbf558ac3196d892c55ee1d63365ca58dd5a3898d88fa762f8af76906108a690869086906121f2565b6001600160a01b038316611a725760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610691565b6001600160a01b038216611ad45760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610691565b6001600160a01b03831660009081526020819052604090205481811015611b4c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610691565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611b83908490612221565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611bcf91815260200190565b60405180910390a350505050565b600060118281548110611bf257611bf26123b7565b6000918252602090912001546001600160a01b031692915050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216611cbf5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610691565b6001600160a01b03821660009081526020819052604090205481811015611d335760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610691565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611d629084906122ad565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60075481611dba60025490565b611dc49190612221565b10611e035760405162461bcd60e51b815260206004820152600f60248201526e4f564552204d415820535550504c5960881b6044820152606401610691565b611e0d8282611785565b7f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe82826040516115009291906121f2565b6001600160a01b038181166000908152600f602090815260409182902082516060810184528154948516808252600160a01b90950463ffffffff1692810192909252600101549181019190915290611ec85760405162461bcd60e51b815260206004820152600d60248201526c454d505459204144445245535360981b6044820152606401610691565b8060400151601054611eda91906122ad565b601055611ee682611f48565b6001600160a01b0382166000908152600f602052604080822080546001600160c01b0319168155600101919091558181015190517f48662a51d62fd272b8c30c44ffb814f563f3bb9aa43639cfacffc27458abb78b91611500918591906121f2565b601154600090611f5a906001906122ad565b6001600160a01b03831660009081526012602052604081205460118054939450909284908110611f8c57611f8c6123b7565b600091825260209091200154601180546001600160a01b039092169250829184908110611fbb57611fbb6123b7565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790558383168252601290526040808220859055918616815290812055601180548061200e5761200e6123cd565b600082815260209020810160001990810180546001600160a01b031916905501905550505050565b600060208083528351808285015260005b8181101561206357858101830151858201604001528201612047565b81811115612075576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b038116811461165e57600080fd5b600080604083850312156120b357600080fd5b82356120be8161208b565b946020939093013593505050565b6000602082840312156120de57600080fd5b5035919050565b6000806000606084860312156120fa57600080fd5b83356121058161208b565b925060208401356121158161208b565b929592945050506040919091013590565b6000806040838503121561213957600080fd5b50508035926020909101359150565b60006020828403121561215a57600080fd5b8135610c428161208b565b6000806040838503121561217857600080fd5b82356121838161208b565b915060208301356121938161208b565b809150509250929050565b600181811c908216806121b257607f821691505b602082108114156121d357634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156121eb57600080fd5b5051919050565b6001600160a01b03929092168252602082015260400190565b634e487b7160e01b600052601160045260246000fd5b600082198211156122345761223461220b565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006000198214156122825761228261220b565b5060010190565b6020808252600a90820152691393d50814d51052d15160b21b604082015260600190565b6000828210156122bf576122bf61220b565b500390565b60008160001904831182151516156122de576122de61220b565b500290565b60008261230057634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561231757600080fd5b8151610c428161208b565b805163ffffffff8116811461233657600080fd5b919050565b600080600080600060a0868803121561235357600080fd5b855162ffffff8116811461236657600080fd5b945061237460208701612322565b935061238260408701612322565b9250606086015165ffffffffffff8116811461239d57600080fd5b91506123ab60808701612322565b90509295509295909350565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fdfea2646970667358221220d1c51e91729ef140861e45b5abcaf75d6c6faa8ed9340dbaeb57922cc649d20b64736f6c634300080b0033000000000000000000000000be1e9103161a75ec7fa08d5ee1f97cd0784c26df0000000000000000000000002d052048fe7e4f59277e5e5ed5d21d35419fe747

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000be1e9103161a75ec7fa08d5ee1f97cd0784c26df0000000000000000000000002d052048fe7e4f59277e5e5ed5d21d35419fe747

-----Decoded View---------------
Arg [0] : _minerContract (address): 0xbe1e9103161a75ec7fa08d5ee1f97cd0784c26df
Arg [1] : _goldContract (address): 0x2d052048fe7e4f59277e5e5ed5d21d35419fe747

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000be1e9103161a75ec7fa08d5ee1f97cd0784c26df
Arg [1] : 0000000000000000000000002d052048fe7e4f59277e5e5ed5d21d35419fe747


Deployed ByteCode Sourcemap

163891:12471:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;118031:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;120198:169;;;;;;:::i;:::-;;:::i;:::-;;;1237:14:1;;1230:22;1212:41;;1200:2;1185:18;120198:169:0;1072:187:1;163975:65:0;;;;;;;;;1410:25:1;;;1398:2;1383:18;163975:65:0;1264:177:1;119151:108:0;119239:12;;119151:108;;166905:972;;;;;;:::i;:::-;;:::i;:::-;;174264:114;;;;;;:::i;:::-;;:::i;120849:492::-;;;;;;:::i;:::-;;:::i;118993:93::-;;;119076:2;2234:36:1;;2222:2;2207:18;118993:93:0;2092:184:1;121750:215:0;;;;;;:::i;:::-;;:::i;175588:771::-;;;;;;:::i;:::-;;:::i;112064:196::-;;;;;;:::i;:::-;;:::i;164140:29::-;;;;;-1:-1:-1;;;;;164140:29:0;;;;;;-1:-1:-1;;;;;2950:32:1;;;2932:51;;2920:2;2905:18;164140:29:0;2786:203:1;174480:114:0;;;;;;:::i;:::-;;:::i;167962:460::-;;;;;;:::i;:::-;;:::i;119322:127::-;;;;;;:::i;:::-;-1:-1:-1;;;;;119423:18:0;119396:7;119423:18;;;;;;;;;;;;119322:127;110807:103;;;:::i;172131:955::-;;;;;;:::i;:::-;;:::i;169278:496::-;;;:::i;164257:41::-;;;;;;110156:87;110229:6;;-1:-1:-1;;;;;110229:6:0;110156:87;;118250:104;;;:::i;168489:723::-;;;;;;:::i;:::-;;:::i;174022:119::-;;;;;;:::i;:::-;;:::i;122468:413::-;;;;;;:::i;:::-;;:::i;119662:175::-;;;;;;:::i;:::-;;:::i;170547:1031::-;;;:::i;111725:42::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;174711:115;;;;;;:::i;:::-;;:::i;165362:30::-;;;;;;173094:416;;;;;;:::i;:::-;;:::i;174914:113::-;;;;;;:::i;:::-;;:::i;165399:37::-;;;;;;:::i;:::-;;:::i;111916:140::-;;;;;;:::i;:::-;;:::i;165301:54::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;165301:54:0;;;-1:-1:-1;;;165301:54:0;;;;;;;;;;;-1:-1:-1;;;;;3212:32:1;;;3194:51;;3293:10;3281:23;;;3276:2;3261:18;;3254:51;3321:18;;;3314:34;3182:2;3167:18;165301:54:0;2994:360:1;175118:110:0;175193:20;:27;175118:110;;119900:151;;;;;;:::i;:::-;-1:-1:-1;;;;;120016:18:0;;;119989:7;120016:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;119900:151;164213:37;;;;;;111065:201;;;;;;:::i;:::-;;:::i;164330:39::-;;;;;;164176:28;;;;;-1:-1:-1;;;;;164176:28:0;;;118031:100;118085:13;118118:5;118111:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;118031:100;:::o;120198:169::-;120281:4;120298:39;108960:10;120321:7;120330:6;120298:8;:39::i;:::-;-1:-1:-1;120355:4:0;120198:169;;;;:::o;166905:972::-;166975:1;166966:6;:10;166958:32;;;;-1:-1:-1;;;166958:32:0;;4339:2:1;166958:32:0;;;4321:21:1;4378:1;4358:18;;;4351:29;-1:-1:-1;;;4396:18:1;;;4389:39;4445:18;;166958:32:0;;;;;;;;;167030:13;;167075:34;;-1:-1:-1;;;167075:34:0;;167098:10;167075:34;;;2932:51:1;-1:-1:-1;;;;;167030:13:0;;;;167001:19;;167030:13;;167075:22;;2905:18:1;;167075:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;167055:54;;167141:6;167128:9;:19;;167120:47;;;;-1:-1:-1;;;167120:47:0;;4865:2:1;167120:47:0;;;4847:21:1;4904:2;4884:18;;;4877:30;-1:-1:-1;;;4923:18:1;;;4916:45;4978:18;;167120:47:0;4663:339:1;167120:47:0;167228:10;167178:29;167210;;;:17;:29;;;;;;;;;167178:61;;;;;;;;;-1:-1:-1;;;;;167178:61:0;;;;-1:-1:-1;;;167178:61:0;;;;;;;;;;;;;;;;;;;;;167254:23;167250:522;;167388:18;167409:25;167423:10;167409:13;:25::i;:::-;167388:46;;167488:29;167494:10;167506;167488:5;:29::i;:::-;167537:26;167544:10;167556:6;167537:26;;;;;;;:::i;:::-;;;;;;;;167578:60;167597:10;167631:6;167609:12;:19;;;:28;;;;:::i;:::-;167578:18;:60::i;:::-;167279:371;167250:522;;;167722:38;167741:10;167753:6;167722:18;:38::i;:::-;167782:41;;-1:-1:-1;;;167782:41:0;;-1:-1:-1;;;;;167782:21:0;;;;;:41;;167804:10;;167816:6;;167782:41;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;167839:30;167850:10;167862:6;167839:30;;;;;;;:::i;:::-;;;;;;;;166947:930;;;166905:972;:::o;174264:114::-;110229:6;;-1:-1:-1;;;;;110229:6:0;108960:10;110376:23;110368:68;;;;-1:-1:-1;;;110368:68:0;;;;;;;:::i;:::-;174343:18:::1;:27:::0;174264:114::o;120849:492::-;120989:4;121006:36;121016:6;121024:9;121035:6;121006:9;:36::i;:::-;-1:-1:-1;;;;;121082:19:0;;121055:24;121082:19;;;:11;:19;;;;;;;;108960:10;121082:33;;;;;;;;121134:26;;;;121126:79;;;;-1:-1:-1;;;121126:79:0;;6114:2:1;121126:79:0;;;6096:21:1;6153:2;6133:18;;;6126:30;6192:34;6172:18;;;6165:62;-1:-1:-1;;;6243:18:1;;;6236:38;6291:19;;121126:79:0;5912:404:1;121126:79:0;121241:57;121250:6;108960:10;121291:6;121272:16;:25;121241:8;:57::i;:::-;-1:-1:-1;121329:4:0;;120849:492;-1:-1:-1;;;;120849:492:0:o;121750:215::-;108960:10;121838:4;121887:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;121887:34:0;;;;;;;;;;121838:4;;121855:80;;121878:7;;121887:47;;121924:10;;121887:47;:::i;:::-;121855:8;:80::i;175588:771::-;110229:6;;-1:-1:-1;;;;;110229:6:0;108960:10;110376:23;110368:68;;;;-1:-1:-1;;;110368:68:0;;;;;;;:::i;:::-;175737:4;175720:632:::1;175748:2;175743:1;:7;175720:632;;175772:21;175796:23;175817:1;175796:20;:23::i;:::-;175772:47;;175891:20;175914:28;175928:13;175914;:28::i;:::-;-1:-1:-1::0;;;;;175981:32:0;;::::1;175957:21;175981:32:::0;;;:17:::1;:32;::::0;;;;;;;;175957:56;;::::1;::::0;::::1;::::0;;;;;;::::1;::::0;;-1:-1:-1;;;175957:56:0;;::::1;;;::::0;;::::1;::::0;;;;;::::1;::::0;;;;;175891:51;;-1:-1:-1;176086:34:0::1;175981:32:::0;175891:51;176086:5:::1;:34::i;:::-;176140:35;176147:13;176162:12;176140:35;;;;;;;:::i;:::-;;;;;;;;176294:46;176313:13;176328:4;:11;;;176294:18;:46::i;:::-;175757:595;;;175752:3;;;;;:::i;:::-;;;;175720:632;;;;175588:771:::0;;:::o;112064:196::-;110229:6;;-1:-1:-1;;;;;110229:6:0;108960:10;110376:23;110368:68;;;;-1:-1:-1;;;110368:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;112145:23:0;::::1;112137:32;;;::::0;::::1;;-1:-1:-1::0;;;;;112188:23:0;::::1;112201:10;112188:23;;112180:32;;;::::0;::::1;;-1:-1:-1::0;;;;;112223:21:0::1;112247:5;112223:21:::0;;;:10:::1;:21;::::0;;;;:29;;-1:-1:-1;;112223:29:0::1;::::0;;112064:196::o;174480:114::-;110229:6;;-1:-1:-1;;;;;110229:6:0;108960:10;110376:23;110368:68;;;;-1:-1:-1;;;110368:68:0;;;;;;;:::i;:::-;174555:22:::1;:31:::0;174480:114::o;167962:460::-;-1:-1:-1;;;;;168064:23:0;;;168020:7;168064:23;;;:17;:23;;;;;;;;168040:47;;;;;;;;;;;;;;;-1:-1:-1;;;168040:47:0;;;;;;;;;;;;;;;;;;;168020:7;;168098:46;;;;-1:-1:-1;;;168098:46:0;;;;;;;:::i;:::-;168403:11;168368:18;;168342:5;168313:4;:10;;;168295:28;;:15;:28;;;;:::i;:::-;168294:44;;168327:11;168294:44;:::i;:::-;168293:54;;;;:::i;:::-;168249:22;;168235:4;:11;;;:36;;;;:::i;:::-;168234:114;;;;:::i;:::-;:152;;;;:::i;:::-;168233:181;;;;:::i;:::-;168213:201;167962:460;-1:-1:-1;;;167962:460:0:o;110807:103::-;110229:6;;-1:-1:-1;;;;;110229:6:0;108960:10;110376:23;110368:68;;;;-1:-1:-1;;;110368:68:0;;;;;;;:::i;:::-;110872:30:::1;110899:1;110872:18;:30::i;:::-;110807:103::o:0;172131:955::-;172261:1;172252:6;:10;172244:47;;;;-1:-1:-1;;;172244:47:0;;7527:2:1;172244:47:0;;;7509:21:1;7566:2;7546:18;;;7539:30;-1:-1:-1;;;7585:18:1;;;7578:54;7649:18;;172244:47:0;7325:348:1;172244:47:0;172331:14;;172415:25;;-1:-1:-1;;;172415:25:0;;;;;1410::1;;;-1:-1:-1;;;;;172331:14:0;;;;172444:10;;172331:14;;172415:16;;1383:18:1;;172415:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;172415:39:0;;172407:61;;;;-1:-1:-1;;;172407:61:0;;8136:2:1;172407:61:0;;;8118:21:1;8175:1;8155:18;;;8148:29;-1:-1:-1;;;8193:18:1;;;8186:39;8242:18;;172407:61:0;7934:332:1;172407:61:0;172560:10;119396:7;119423:18;;;;;;;;;;;172575:6;-1:-1:-1;172550:31:0;172542:59;;;;-1:-1:-1;;;172542:59:0;;4865:2:1;172542:59:0;;;4847:21:1;4904:2;4884:18;;;4877:30;-1:-1:-1;;;4923:18:1;;;4916:45;4978:18;;172542:59:0;4663:339:1;172542:59:0;172739:13;;172789:33;;-1:-1:-1;;;172789:33:0;;;;;1410:25:1;;;-1:-1:-1;;;;;172739:13:0;;;;172710:19;;172739:13;;172789:24;;1383:18:1;;172789:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;172764:58;;;;;;172849:1;172841:5;:9;;;172833:32;;;;-1:-1:-1;;;172833:32:0;;;;;;;:::i;:::-;172903:25;172909:10;172921:6;172903:5;:25::i;:::-;172944:26;172951:10;172963:6;172944:26;;;;;;;:::i;:::-;;;;;;;;173038:40;;-1:-1:-1;;;173038:40:0;;;;;9320:25:1;;;9361:18;;;9354:34;;;-1:-1:-1;;;;;173038:23:0;;;;;9293:18:1;;173038:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;172193:893;;;172131:955;;:::o;169278:496::-;169322:18;169343:25;169357:10;169343:13;:25::i;:::-;169322:46;;169400:1;169387:10;:14;169379:46;;;;-1:-1:-1;;;169379:46:0;;9601:2:1;169379:46:0;;;9583:21:1;9640:2;9620:18;;;9613:30;-1:-1:-1;;;9659:18:1;;;9652:49;9718:18;;169379:46:0;9399:343:1;169379:46:0;169480:10;169438:21;169462:29;;;:17;:29;;;;;;;;;169438:53;;;;;;;;;-1:-1:-1;;;;;169438:53:0;;;;-1:-1:-1;;;169438:53:0;;;;;;;;;;;;;;;;;;;;;169603:43;;:18;:43::i;:::-;169730:36;169743:10;169755;169730:12;:36::i;:::-;169311:463;;169278:496::o;118250:104::-;118306:13;118339:7;118332:14;;;;;:::i;168489:723::-;168564:1;168555:6;:10;168547:42;;;;-1:-1:-1;;;168547:42:0;;9949:2:1;168547:42:0;;;9931:21:1;9988:2;9968:18;;;9961:30;-1:-1:-1;;;10007:18:1;;;10000:49;10066:18;;168547:42:0;9747:343:1;168547:42:0;168642:10;168600:21;168624:29;;;:17;:29;;;;;;;;;168600:53;;;;;;;;;-1:-1:-1;;;;;168600:53:0;;;;;-1:-1:-1;;;168600:53:0;;;;;;;;;;;;;;;;;;;;;;;;168664:46;;;;-1:-1:-1;;;168664:46:0;;;;;;;:::i;:::-;168739:4;:11;;;168729:6;:21;;168721:43;;;;-1:-1:-1;;;168721:43:0;;10297:2:1;168721:43:0;;;10279:21:1;10336:1;10316:18;;;10309:29;-1:-1:-1;;;10354:18:1;;;10347:39;10403:18;;168721:43:0;10095:332:1;168721:43:0;168804:13;;168920:11;;;;-1:-1:-1;;;;;168804:13:0;;;;168889:52;;168908:10;;168920:20;;168934:6;;168920:20;:::i;168889:52::-;169014:19;169052:2;169037:11;:6;169046:2;169037:11;:::i;:::-;169036:18;;;;:::i;:::-;169105:46;;-1:-1:-1;;;169105:46:0;;169014:40;;-1:-1:-1;;;;;;169105:21:0;;;;;:46;;169127:10;;169014:40;;169105:46;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;169167:37;169180:10;169192:11;169167:37;;;;;;;:::i;174022:119::-;110229:6;;-1:-1:-1;;;;;110229:6:0;108960:10;110376:23;110368:68;;;;-1:-1:-1;;;110368:68:0;;;;;;;:::i;:::-;174105:28:::1;174118:6;174126;174105:12;:28::i;122468:413::-:0;108960:10;122561:4;122605:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;122605:34:0;;;;;;;;;;122658:35;;;;122650:85;;;;-1:-1:-1;;;122650:85:0;;10634:2:1;122650:85:0;;;10616:21:1;10673:2;10653:18;;;10646:30;10712:34;10692:18;;;10685:62;-1:-1:-1;;;10763:18:1;;;10756:35;10808:19;;122650:85:0;10432:401:1;122650:85:0;122771:67;108960:10;122794:7;122822:15;122803:16;:34;122771:8;:67::i;:::-;-1:-1:-1;122869:4:0;;122468:413;-1:-1:-1;;;122468:413:0:o;119662:175::-;119748:4;119765:42;108960:10;119789:9;119800:6;119765:9;:42::i;170547:1031::-;170651:10;170609:21;170633:29;;;:17;:29;;;;;;;;;170609:53;;;;;;;;;-1:-1:-1;;;;;170609:53:0;;;;;-1:-1:-1;;;170609:53:0;;;;;;;;;;;;;;;;;;;;;;;;170715:46;;;;-1:-1:-1;;;170715:46:0;;;;;;;:::i;:::-;170841:18;170862:25;170876:10;170862:13;:25::i;:::-;170841:46;-1:-1:-1;170902:14:0;;170898:131;;170981:36;170994:10;171006;170981:12;:36::i;:::-;171110:11;;;;:15;171106:379;;171252:19;171295:2;171275:4;:11;;;171289:2;171275:16;;;;:::i;:::-;171274:23;;;;:::i;:::-;171341:13;;171370:46;;-1:-1:-1;;;171370:46:0;;171252:45;;-1:-1:-1;;;;;;171341:13:0;;;;171370:21;;:46;;171392:10;;171252:45;;171370:46;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;171436:37;171449:10;171461:11;171436:37;;;;;;;:::i;:::-;;;;;;;;171127:358;;171106:379;171544:26;171559:10;171544:14;:26::i;174711:115::-;110229:6;;-1:-1:-1;;;;;110229:6:0;108960:10;110376:23;110368:68;;;;-1:-1:-1;;;110368:68:0;;;;;;;:::i;:::-;174790:19:::1;:28:::0;174711:115::o;173094:416::-;173177:1;173167:7;:11;173159:48;;;;-1:-1:-1;;;173159:48:0;;7527:2:1;173159:48:0;;;7509:21:1;7566:2;7546:18;;;7539:30;-1:-1:-1;;;7585:18:1;;;7578:54;7649:18;;173159:48:0;7325:348:1;173159:48:0;173274:13;;173299:42;;-1:-1:-1;;;173299:42:0;;-1:-1:-1;;;;;173274:13:0;;;;;;173299:21;;:42;;173321:10;;173333:7;;173299:42;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;173384:48;173390:10;173412:19;;173402:7;:29;;;;:::i;:::-;173384:5;:48::i;:::-;173448:54;173460:10;173482:19;;173472:7;:29;;;;:::i;:::-;173448:54;;;;;;;:::i;:::-;;;;;;;;173148:362;173094:416;:::o;174914:113::-;110229:6;;-1:-1:-1;;;;;110229:6:0;108960:10;110376:23;110368:68;;;;-1:-1:-1;;;110368:68:0;;;;;;;:::i;:::-;174992:18:::1;:27:::0;174914:113::o;165399:37::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;165399:37:0;;-1:-1:-1;165399:37:0;:::o;111916:140::-;110229:6;;-1:-1:-1;;;;;110229:6:0;108960:10;110376:23;110368:68;;;;-1:-1:-1;;;110368:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;111991:20:0;::::1;111983:29;;;::::0;::::1;;-1:-1:-1::0;;;;;112023:18:0::1;;::::0;;;:10:::1;:18;::::0;;;;:25;;-1:-1:-1;;112023:25:0::1;112044:4;112023:25;::::0;;111916:140::o;111065:201::-;110229:6;;-1:-1:-1;;;;;110229:6:0;108960:10;110376:23;110368:68;;;;-1:-1:-1;;;110368:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;111154:22:0;::::1;111146:73;;;::::0;-1:-1:-1;;;111146:73:0;;11040:2:1;111146:73:0::1;::::0;::::1;11022:21:1::0;11079:2;11059:18;;;11052:30;11118:34;11098:18;;;11091:62;-1:-1:-1;;;11169:18:1;;;11162:36;11215:19;;111146:73:0::1;10838:402:1::0;111146:73:0::1;111230:28;111249:8;111230:18;:28::i;:::-;111065:201:::0;:::o;126152:380::-;-1:-1:-1;;;;;126288:19:0;;126280:68;;;;-1:-1:-1;;;126280:68:0;;11447:2:1;126280:68:0;;;11429:21:1;11486:2;11466:18;;;11459:30;11525:34;11505:18;;;11498:62;-1:-1:-1;;;11576:18:1;;;11569:34;11620:19;;126280:68:0;11245:400:1;126280:68:0;-1:-1:-1;;;;;126367:21:0;;126359:68;;;;-1:-1:-1;;;126359:68:0;;11852:2:1;126359:68:0;;;11834:21:1;11891:2;11871:18;;;11864:30;11930:34;11910:18;;;11903:62;-1:-1:-1;;;11981:18:1;;;11974:32;12023:19;;126359:68:0;11650:398:1;126359:68:0;-1:-1:-1;;;;;126440:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;126492:32;;1410:25:1;;;126492:32:0;;1383:18:1;126492:32:0;;;;;;;126152:380;;;:::o;124391:399::-;-1:-1:-1;;;;;124475:21:0;;124467:65;;;;-1:-1:-1;;;124467:65:0;;12255:2:1;124467:65:0;;;12237:21:1;12294:2;12274:18;;;12267:30;12333:33;12313:18;;;12306:61;12384:18;;124467:65:0;12053:355:1;124467:65:0;124623:6;124607:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;124640:18:0;;:9;:18;;;;;;;;;;:28;;124662:6;;124640:9;:28;;124662:6;;124640:28;:::i;:::-;;;;-1:-1:-1;;124684:37:0;;1410:25:1;;;-1:-1:-1;;;;;124684:37:0;;;124701:1;;124684:37;;1398:2:1;1383:18;124684:37:0;;;;;;;169311:463;;169278:496::o;165969:928::-;-1:-1:-1;;;;;166120:18:0;;166112:44;;;;-1:-1:-1;;;166112:44:0;;12615:2:1;166112:44:0;;;12597:21:1;12654:2;12634:18;;;12627:30;-1:-1:-1;;;12673:18:1;;;12666:43;12726:18;;166112:44:0;12413:337:1;166112:44:0;-1:-1:-1;;;;;166191:23:0;;;166167:21;166191:23;;;:17;:23;;;;;;;;;166167:47;;;;;;;;;;;;;;;-1:-1:-1;;;166167:47:0;;;;;;;;;;;;;;;;;;;;;;;166278:213;;166406:20;:27;;-1:-1:-1;;;;;166372:31:0;;;;;;:25;:31;;;;;:61;;;166448:31;;;;;;;;;;;;;-1:-1:-1;;;;;;166448:31:0;;;;;;166278:213;166597:11;;;;;;-1:-1:-1;;;;;166644:16:0;;;;;;166671:20;;;166702:36;166722:15;166702:36;;:10;;;;:36;;;166574:20;166751:23;;;:17;:23;;;;;;:30;;;;;;;;;-1:-1:-1;;;166751:30:0;-1:-1:-1;;;;;;166751:30:0;;;;;;;;;;;;;;;;;;;;;;;;166810:15;;166685:6;;166810:30;;166597:11;;166810:30;:::i;:::-;:39;;;;:::i;:::-;166792:15;:57;166865:24;;;;;;166876:4;;166882:6;;166865:24;:::i;123371:733::-;-1:-1:-1;;;;;123511:20:0;;123503:70;;;;-1:-1:-1;;;123503:70:0;;12957:2:1;123503:70:0;;;12939:21:1;12996:2;12976:18;;;12969:30;13035:34;13015:18;;;13008:62;-1:-1:-1;;;13086:18:1;;;13079:35;13131:19;;123503:70:0;12755:401:1;123503:70:0;-1:-1:-1;;;;;123592:23:0;;123584:71;;;;-1:-1:-1;;;123584:71:0;;13363:2:1;123584:71:0;;;13345:21:1;13402:2;13382:18;;;13375:30;13441:34;13421:18;;;13414:62;-1:-1:-1;;;13492:18:1;;;13485:33;13535:19;;123584:71:0;13161:399:1;123584:71:0;-1:-1:-1;;;;;123752:17:0;;123728:21;123752:17;;;;;;;;;;;123788:23;;;;123780:74;;;;-1:-1:-1;;;123780:74:0;;13767:2:1;123780:74:0;;;13749:21:1;13806:2;13786:18;;;13779:30;13845:34;13825:18;;;13818:62;-1:-1:-1;;;13896:18:1;;;13889:36;13942:19;;123780:74:0;13565:402:1;123780:74:0;-1:-1:-1;;;;;123890:17:0;;;:9;:17;;;;;;;;;;;123910:22;;;123890:42;;123954:20;;;;;;;;:30;;123926:6;;123890:9;123954:30;;123926:6;;123954:30;:::i;:::-;;;;;;;;124019:9;-1:-1:-1;;;;;124002:35:0;124011:6;-1:-1:-1;;;;;124002:35:0;;124030:6;124002:35;;;;1410:25:1;;1398:2;1383:18;;1264:177;124002:35:0;;;;;;;;123492:612;123371:733;;;:::o;175333:129::-;175401:7;175427:20;175448:5;175427:27;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;175427:27:0;;175333:129;-1:-1:-1;;175333:129:0:o;111426:191::-;111519:6;;;-1:-1:-1;;;;;111536:17:0;;;-1:-1:-1;;;;;;111536:17:0;;;;;;;111569:40;;111519:6;;;111536:17;111519:6;;111569:40;;111500:16;;111569:40;111489:128;111426:191;:::o;125123:591::-;-1:-1:-1;;;;;125207:21:0;;125199:67;;;;-1:-1:-1;;;125199:67:0;;14306:2:1;125199:67:0;;;14288:21:1;14345:2;14325:18;;;14318:30;14384:34;14364:18;;;14357:62;-1:-1:-1;;;14435:18:1;;;14428:31;14476:19;;125199:67:0;14104:397:1;125199:67:0;-1:-1:-1;;;;;125366:18:0;;125341:22;125366:18;;;;;;;;;;;125403:24;;;;125395:71;;;;-1:-1:-1;;;125395:71:0;;14708:2:1;125395:71:0;;;14690:21:1;14747:2;14727:18;;;14720:30;14786:34;14766:18;;;14759:62;-1:-1:-1;;;14837:18:1;;;14830:32;14879:19;;125395:71:0;14506:398:1;125395:71:0;-1:-1:-1;;;;;125502:18:0;;:9;:18;;;;;;;;;;125523:23;;;125502:44;;125568:12;:22;;125540:6;;125502:9;125568:22;;125540:6;;125568:22;:::i;:::-;;;;-1:-1:-1;;125608:37:0;;1410:25:1;;;125634:1:0;;-1:-1:-1;;;;;125608:37:0;;;;;1398:2:1;1383:18;125608:37:0;;;;;;;175720:632:::1;175588:771:::0;;:::o;173593:322::-;173785:18;;173769:13;173753;119239:12;;;119151:108;173753:13;:29;;;;:::i;:::-;:50;173745:78;;;;-1:-1:-1;;;173745:78:0;;15111:2:1;173745:78:0;;;15093:21:1;15150:2;15130:18;;;15123:30;-1:-1:-1;;;15169:18:1;;;15162:45;15224:18;;173745:78:0;14909:339:1;173745:78:0;173834:28;173840:6;173848:13;173834:5;:28::i;:::-;173878:29;173885:6;173893:13;173878:29;;;;;;;:::i;171649:412::-;-1:-1:-1;;;;;171731:23:0;;;171707:21;171731:23;;;:17;:23;;;;;;;;;171707:47;;;;;;;;;;;;;;;-1:-1:-1;;;171707:47:0;;;;;;;;;;;;;;;;;;;;;;;171811:49;;;;-1:-1:-1;;;171811:49:0;;12615:2:1;171811:49:0;;;12597:21:1;12654:2;12634:18;;;12627:30;-1:-1:-1;;;12673:18:1;;;12666:43;12726:18;;171811:49:0;12413:337:1;171811:49:0;171907:4;:11;;;171889:15;;:29;;;;:::i;:::-;171871:15;:47;171929:36;171960:4;171929:30;:36::i;:::-;-1:-1:-1;;;;;171983:23:0;;;;;;:17;:23;;;;;;171976:30;;-1:-1:-1;;;;;;171976:30:0;;;;;;;;;172041:11;;;;172022:31;;;;;;172001:4;;172041:11;172022:31;:::i;169800:656::-;169897:20;:27;169873:21;;169897:31;;169927:1;;169897:31;:::i;:::-;-1:-1:-1;;;;;169966:31:0;;169939:24;169966:31;;;:25;:31;;;;;;170029:20;:35;;169873:55;;-1:-1:-1;169966:31:0;;169873:55;;170029:35;;;;;;:::i;:::-;;;;;;;;;;;170077:20;:38;;-1:-1:-1;;;;;170029:35:0;;;;-1:-1:-1;170029:35:0;;170098:16;;170077:38;;;;;;:::i;:::-;;;;;;;;;;;;;:49;;-1:-1:-1;;;;;;170077:49:0;-1:-1:-1;;;;;170077:49:0;;;;;;170195:35;;;;;:25;:35;;;;;;:54;;;170380:31;;;;;;;;170373:38;170422:20;:26;;;;;;;:::i;:::-;;;;;;;;;;-1:-1:-1;;170422:26:0;;;;;-1:-1:-1;;;;;;170422:26:0;;;;;;-1:-1:-1;;;;169800:656:0:o;14:597:1:-;126:4;155:2;184;173:9;166:21;216:6;210:13;259:6;254:2;243:9;239:18;232:34;284:1;294:140;308:6;305:1;302:13;294:140;;;403:14;;;399:23;;393:30;369:17;;;388:2;365:26;358:66;323:10;;294:140;;;452:6;449:1;446:13;443:91;;;522:1;517:2;508:6;497:9;493:22;489:31;482:42;443:91;-1:-1:-1;595:2:1;574:15;-1:-1:-1;;570:29:1;555:45;;;;602:2;551:54;;14:597;-1:-1:-1;;;14:597:1:o;616:131::-;-1:-1:-1;;;;;691:31:1;;681:42;;671:70;;737:1;734;727:12;752:315;820:6;828;881:2;869:9;860:7;856:23;852:32;849:52;;;897:1;894;887:12;849:52;936:9;923:23;955:31;980:5;955:31;:::i;:::-;1005:5;1057:2;1042:18;;;;1029:32;;-1:-1:-1;;;752:315:1:o;1446:180::-;1505:6;1558:2;1546:9;1537:7;1533:23;1529:32;1526:52;;;1574:1;1571;1564:12;1526:52;-1:-1:-1;1597:23:1;;1446:180;-1:-1:-1;1446:180:1:o;1631:456::-;1708:6;1716;1724;1777:2;1765:9;1756:7;1752:23;1748:32;1745:52;;;1793:1;1790;1783:12;1745:52;1832:9;1819:23;1851:31;1876:5;1851:31;:::i;:::-;1901:5;-1:-1:-1;1958:2:1;1943:18;;1930:32;1971:33;1930:32;1971:33;:::i;:::-;1631:456;;2023:7;;-1:-1:-1;;;2077:2:1;2062:18;;;;2049:32;;1631:456::o;2281:248::-;2349:6;2357;2410:2;2398:9;2389:7;2385:23;2381:32;2378:52;;;2426:1;2423;2416:12;2378:52;-1:-1:-1;;2449:23:1;;;2519:2;2504:18;;;2491:32;;-1:-1:-1;2281:248:1:o;2534:247::-;2593:6;2646:2;2634:9;2625:7;2621:23;2617:32;2614:52;;;2662:1;2659;2652:12;2614:52;2701:9;2688:23;2720:31;2745:5;2720:31;:::i;3359:388::-;3427:6;3435;3488:2;3476:9;3467:7;3463:23;3459:32;3456:52;;;3504:1;3501;3494:12;3456:52;3543:9;3530:23;3562:31;3587:5;3562:31;:::i;:::-;3612:5;-1:-1:-1;3669:2:1;3654:18;;3641:32;3682:33;3641:32;3682:33;:::i;:::-;3734:7;3724:17;;;3359:388;;;;;:::o;3752:380::-;3831:1;3827:12;;;;3874;;;3895:61;;3949:4;3941:6;3937:17;3927:27;;3895:61;4002:2;3994:6;3991:14;3971:18;3968:38;3965:161;;;4048:10;4043:3;4039:20;4036:1;4029:31;4083:4;4080:1;4073:15;4111:4;4108:1;4101:15;3965:161;;3752:380;;;:::o;4474:184::-;4544:6;4597:2;4585:9;4576:7;4572:23;4568:32;4565:52;;;4613:1;4610;4603:12;4565:52;-1:-1:-1;4636:16:1;;4474:184;-1:-1:-1;4474:184:1:o;5007:274::-;-1:-1:-1;;;;;5199:32:1;;;;5181:51;;5263:2;5248:18;;5241:34;5169:2;5154:18;;5007:274::o;5286:127::-;5347:10;5342:3;5338:20;5335:1;5328:31;5378:4;5375:1;5368:15;5402:4;5399:1;5392:15;5418:128;5458:3;5489:1;5485:6;5482:1;5479:13;5476:39;;;5495:18;;:::i;:::-;-1:-1:-1;5531:9:1;;5418:128::o;5551:356::-;5753:2;5735:21;;;5772:18;;;5765:30;5831:34;5826:2;5811:18;;5804:62;5898:2;5883:18;;5551:356::o;6321:135::-;6360:3;-1:-1:-1;;6381:17:1;;6378:43;;;6401:18;;:::i;:::-;-1:-1:-1;6448:1:1;6437:13;;6321:135::o;6461:334::-;6663:2;6645:21;;;6702:2;6682:18;;;6675:30;-1:-1:-1;;;6736:2:1;6721:18;;6714:40;6786:2;6771:18;;6461:334::o;6800:125::-;6840:4;6868:1;6865;6862:8;6859:34;;;6873:18;;:::i;:::-;-1:-1:-1;6910:9:1;;6800:125::o;6930:168::-;6970:7;7036:1;7032;7028:6;7024:14;7021:1;7018:21;7013:1;7006:9;6999:17;6995:45;6992:71;;;7043:18;;:::i;:::-;-1:-1:-1;7083:9:1;;6930:168::o;7103:217::-;7143:1;7169;7159:132;;7213:10;7208:3;7204:20;7201:1;7194:31;7248:4;7245:1;7238:15;7276:4;7273:1;7266:15;7159:132;-1:-1:-1;7305:9:1;;7103:217::o;7678:251::-;7748:6;7801:2;7789:9;7780:7;7776:23;7772:32;7769:52;;;7817:1;7814;7807:12;7769:52;7849:9;7843:16;7868:31;7893:5;7868:31;:::i;8271:167::-;8349:13;;8402:10;8391:22;;8381:33;;8371:61;;8428:1;8425;8418:12;8371:61;8271:167;;;:::o;8443:698::-;8544:6;8552;8560;8568;8576;8629:3;8617:9;8608:7;8604:23;8600:33;8597:53;;;8646:1;8643;8636:12;8597:53;8678:9;8672:16;8728:8;8721:5;8717:20;8710:5;8707:31;8697:59;;8752:1;8749;8742:12;8697:59;8775:5;-1:-1:-1;8799:48:1;8843:2;8828:18;;8799:48;:::i;:::-;8789:58;;8866:48;8910:2;8899:9;8895:18;8866:48;:::i;:::-;8856:58;;8959:2;8948:9;8944:18;8938:25;9007:14;8998:7;8994:28;8985:7;8982:41;8972:69;;9037:1;9034;9027:12;8972:69;9060:7;-1:-1:-1;9086:49:1;9130:3;9115:19;;9086:49;:::i;:::-;9076:59;;8443:698;;;;;;;;:::o;13972:127::-;14033:10;14028:3;14024:20;14021:1;14014:31;14064:4;14061:1;14054:15;14088:4;14085:1;14078:15;15253:127;15314:10;15309:3;15305:20;15302:1;15295:31;15345:4;15342:1;15335:15;15369:4;15366:1;15359:15

Swarm Source

ipfs://d1c51e91729ef140861e45b5abcaf75d6c6faa8ed9340dbaeb57922cc649d20b
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.