defi-state-querier 0.4.4__py3-none-any.whl → 0.4.7__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
defi_services/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.4.4"
1
+ __version__ = "0.4.7"
File without changes
@@ -0,0 +1 @@
1
+ QUICKSWAP_V3_FACTORY_ABI= [{"inputs":[{"internalType":"address","name":"_poolDeployer","type":"address"},{"internalType":"address","name":"_vaultAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"newFarmingAddress","type":"address"}],"name":"FarmingAddress","type":"event"},{"anonymous":False,"inputs":[{"indexed":False,"internalType":"uint16","name":"alpha1","type":"uint16"},{"indexed":False,"internalType":"uint16","name":"alpha2","type":"uint16"},{"indexed":False,"internalType":"uint32","name":"beta1","type":"uint32"},{"indexed":False,"internalType":"uint32","name":"beta2","type":"uint32"},{"indexed":False,"internalType":"uint16","name":"gamma1","type":"uint16"},{"indexed":False,"internalType":"uint16","name":"gamma2","type":"uint16"},{"indexed":False,"internalType":"uint32","name":"volumeBeta","type":"uint32"},{"indexed":False,"internalType":"uint16","name":"volumeGamma","type":"uint16"},{"indexed":False,"internalType":"uint16","name":"baseFee","type":"uint16"}],"name":"FeeConfiguration","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"newOwner","type":"address"}],"name":"Owner","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"token0","type":"address"},{"indexed":True,"internalType":"address","name":"token1","type":"address"},{"indexed":False,"internalType":"address","name":"pool","type":"address"}],"name":"Pool","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"newVaultAddress","type":"address"}],"name":"VaultAddress","type":"event"},{"inputs":[],"name":"baseFeeConfiguration","outputs":[{"internalType":"uint16","name":"alpha1","type":"uint16"},{"internalType":"uint16","name":"alpha2","type":"uint16"},{"internalType":"uint32","name":"beta1","type":"uint32"},{"internalType":"uint32","name":"beta2","type":"uint32"},{"internalType":"uint16","name":"gamma1","type":"uint16"},{"internalType":"uint16","name":"gamma2","type":"uint16"},{"internalType":"uint32","name":"volumeBeta","type":"uint32"},{"internalType":"uint16","name":"volumeGamma","type":"uint16"},{"internalType":"uint16","name":"baseFee","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"}],"name":"createPool","outputs":[{"internalType":"address","name":"pool","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"farmingAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"poolByPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolDeployer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"alpha1","type":"uint16"},{"internalType":"uint16","name":"alpha2","type":"uint16"},{"internalType":"uint32","name":"beta1","type":"uint32"},{"internalType":"uint32","name":"beta2","type":"uint32"},{"internalType":"uint16","name":"gamma1","type":"uint16"},{"internalType":"uint16","name":"gamma2","type":"uint16"},{"internalType":"uint32","name":"volumeBeta","type":"uint32"},{"internalType":"uint16","name":"volumeGamma","type":"uint16"},{"internalType":"uint16","name":"baseFee","type":"uint16"}],"name":"setBaseFeeConfiguration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_farmingAddress","type":"address"}],"name":"setFarmingAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vaultAddress","type":"address"}],"name":"setVaultAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
@@ -0,0 +1 @@
1
+ QUICKSWAP_V3_NON_FUNGIBLE_POSITION_TOKEN_ABI= [{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_WNativeToken","type":"address"},{"internalType":"address","name":"_tokenDescriptor_","type":"address"},{"internalType":"address","name":"_poolDeployer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"owner","type":"address"},{"indexed":True,"internalType":"address","name":"approved","type":"address"},{"indexed":True,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"owner","type":"address"},{"indexed":True,"internalType":"address","name":"operator","type":"address"},{"indexed":False,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":False,"internalType":"address","name":"recipient","type":"address"},{"indexed":False,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Collect","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":False,"internalType":"uint128","name":"liquidity","type":"uint128"},{"indexed":False,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"DecreaseLiquidity","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":False,"internalType":"uint128","name":"liquidity","type":"uint128"},{"indexed":False,"internalType":"uint128","name":"actualLiquidity","type":"uint128"},{"indexed":False,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":False,"internalType":"address","name":"pool","type":"address"}],"name":"IncreaseLiquidity","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"from","type":"address"},{"indexed":True,"internalType":"address","name":"to","type":"address"},{"indexed":True,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WNativeToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount0Owed","type":"uint256"},{"internalType":"uint256","name":"amount1Owed","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"algebraMintCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint128","name":"amount0Max","type":"uint128"},{"internalType":"uint128","name":"amount1Max","type":"uint128"}],"internalType":"struct INonfungiblePositionManager.CollectParams","name":"params","type":"tuple"}],"name":"collect","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"}],"name":"createAndInitializePoolIfNecessary","outputs":[{"internalType":"address","name":"pool","type":"address"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct INonfungiblePositionManager.DecreaseLiquidityParams","name":"params","type":"tuple"}],"name":"decreaseLiquidity","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount0Desired","type":"uint256"},{"internalType":"uint256","name":"amount1Desired","type":"uint256"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct INonfungiblePositionManager.IncreaseLiquidityParams","name":"params","type":"tuple"}],"name":"increaseLiquidity","outputs":[{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"uint256","name":"amount0Desired","type":"uint256"},{"internalType":"uint256","name":"amount1Desired","type":"uint256"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct INonfungiblePositionManager.MintParams","name":"params","type":"tuple"}],"name":"mint","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"poolDeployer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"positions","outputs":[{"internalType":"uint96","name":"nonce","type":"uint96"},{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"feeGrowthInside0LastX128","type":"uint256"},{"internalType":"uint256","name":"feeGrowthInside1LastX128","type":"uint256"},{"internalType":"uint128","name":"tokensOwed0","type":"uint128"},{"internalType":"uint128","name":"tokensOwed1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refundNativeToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitAllowed","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitAllowedIfNecessary","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitIfNecessary","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"sweepToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"unwrapWNativeToken","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]
File without changes
@@ -0,0 +1,292 @@
1
+ SPOOKYSWAP_MASTERCHEF_V2_ABI = [{
2
+ "inputs": [{
3
+ "internalType": "contract IMasterChef", "name": "_MASTER_CHEF",
4
+ "type": "address"},
5
+ {"internalType": "contract IERC20", "name": "_boo", "type": "address"},
6
+ {"internalType": "uint256", "name": "_MASTER_PID", "type": "uint256"}],
7
+ "stateMutability": "nonpayable", "type": "constructor"}, {
8
+ "anonymous": False, "inputs": [
9
+ {"indexed": True, "internalType": "address", "name": "by", "type": "address"},
10
+ {"indexed": True, "internalType": "address", "name": "to", "type": "address"}], "name": "AddAuth",
11
+ "type": "event"}, {
12
+ "anonymous": False, "inputs": [
13
+ {"indexed": True, "internalType": "address", "name": "user", "type": "address"},
14
+ {"indexed": True, "internalType": "uint256", "name": "pid", "type": "uint256"},
15
+ {"indexed": False, "internalType": "uint256", "name": "amount", "type": "uint256"},
16
+ {"indexed": True, "internalType": "address", "name": "to", "type": "address"}], "name": "Deposit",
17
+ "type": "event"}, {
18
+ "anonymous": False, "inputs": [
19
+ {"indexed": True, "internalType": "address", "name": "user", "type": "address"},
20
+ {"indexed": True, "internalType": "uint256", "name": "pid", "type": "uint256"},
21
+ {"indexed": False, "internalType": "uint256", "name": "amount", "type": "uint256"},
22
+ {"indexed": True, "internalType": "address", "name": "to", "type": "address"}], "name": "EmergencyWithdraw",
23
+ "type": "event"}, {
24
+ "anonymous": False, "inputs": [
25
+ {"indexed": True, "internalType": "address", "name": "user", "type": "address"},
26
+ {"indexed": True, "internalType": "uint256", "name": "pid", "type": "uint256"},
27
+ {"indexed": False, "internalType": "uint256", "name": "amount", "type": "uint256"}], "name": "Harvest",
28
+ "type": "event"},
29
+ {"anonymous": False, "inputs": [], "name": "LogInit", "type": "event"}, {
30
+ "anonymous": False, "inputs": [
31
+ {"indexed": True, "internalType": "uint256", "name": "pid", "type": "uint256"},
32
+ {"indexed": False, "internalType": "uint256", "name": "allocPoint", "type": "uint256"},
33
+ {"indexed": True, "internalType": "contract IERC20", "name": "lpToken", "type": "address"},
34
+ {"indexed": False, "internalType": "contract IRewarder", "name": "rewarder", "type": "address"},
35
+ {"indexed": False, "internalType": "bool", "name": "update", "type": "bool"}], "name": "LogPoolAddition",
36
+ "type": "event"}, {
37
+ "anonymous": False, "inputs": [
38
+ {"indexed": True, "internalType": "uint256", "name": "pid", "type": "uint256"},
39
+ {"indexed": False, "internalType": "uint256", "name": "allocPoint", "type": "uint256"},
40
+ {"indexed": False, "internalType": "contract IRewarder", "name": "rewarder", "type": "address"},
41
+ {"indexed": False, "internalType": "bool", "name": "overwrite", "type": "bool"},
42
+ {"indexed": False, "internalType": "bool", "name": "update", "type": "bool"}], "name": "LogSetPool",
43
+ "type": "event"}, {
44
+ "anonymous": False, "inputs": [
45
+ {"indexed": True, "internalType": "uint256", "name": "pid", "type": "uint256"},
46
+ {"indexed": False, "internalType": "uint256", "name": "lastRewardTime", "type": "uint256"},
47
+ {"indexed": False, "internalType": "uint256", "name": "lpSupply", "type": "uint256"},
48
+ {"indexed": False, "internalType": "uint256", "name": "accBooPerShare", "type": "uint256"}],
49
+ "name": "LogUpdatePool", "type": "event"}, {
50
+ "anonymous": False, "inputs": [
51
+ {"indexed": True, "internalType": "address", "name": "by", "type": "address"},
52
+ {"indexed": True, "internalType": "address", "name": "to", "type": "address"}], "name": "RevokeAuth",
53
+ "type": "event"}, {
54
+ "anonymous": False, "inputs": [
55
+ {"indexed": True, "internalType": "address", "name": "by", "type": "address"},
56
+ {"indexed": True, "internalType": "address", "name": "to", "type": "address"}], "name": "SetAdmin",
57
+ "type": "event"}, {
58
+ "anonymous": False, "inputs": [
59
+ {"indexed": True, "internalType": "address", "name": "user", "type": "address"},
60
+ {"indexed": True, "internalType": "uint256", "name": "pid", "type": "uint256"},
61
+ {"indexed": False, "internalType": "uint256", "name": "amount", "type": "uint256"},
62
+ {"indexed": True, "internalType": "address", "name": "to", "type": "address"}], "name": "Withdraw",
63
+ "type": "event"}, {
64
+ "inputs": [], "name": "BOO",
65
+ "outputs": [{"internalType": "contract IERC20", "name": "", "type": "address"}],
66
+ "stateMutability": "view", "type": "function"}, {
67
+ "inputs": [], "name": "MASTER_CHEF", "outputs": [
68
+ {"internalType": "contract IMasterChef", "name": "", "type": "address"}], "stateMutability": "view",
69
+ "type": "function"}, {
70
+ "inputs": [], "name": "MASTER_PID",
71
+ "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
72
+ "stateMutability": "view", "type": "function"}, {
73
+ "inputs": [], "name": "V1_HARVEST_QUERY_TIME",
74
+ "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
75
+ "stateMutability": "view", "type": "function"}, {
76
+ "inputs": [{"internalType": "uint64", "name": "allocPoint", "type": "uint64"}, {
77
+ "internalType": "contract IERC20", "name": "_lpToken", "type": "address"}, {
78
+ "internalType": "contract IRewarder", "name": "_rewarder",
79
+ "type": "address"},
80
+ {"internalType": "bool", "name": "update", "type": "bool"}],
81
+ "name": "add", "outputs": [], "stateMutability": "nonpayable", "type": "function"},
82
+ {
83
+ "inputs": [{"internalType": "address", "name": "_auth", "type": "address"}],
84
+ "name": "addAuth", "outputs": [], "stateMutability": "nonpayable",
85
+ "type": "function"}, {
86
+ "inputs": [], "name": "admin",
87
+ "outputs": [{"internalType": "address", "name": "", "type": "address"}],
88
+ "stateMutability": "view", "type": "function"}, {
89
+ "inputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
90
+ "name": "authorized",
91
+ "outputs": [{"internalType": "address", "name": "", "type": "address"}],
92
+ "stateMutability": "view", "type": "function"}, {
93
+ "inputs": [], "name": "booPerSecond",
94
+ "outputs": [{"internalType": "uint256", "name": "amount", "type": "uint256"}],
95
+ "stateMutability": "view", "type": "function"}, {
96
+ "inputs": [{"internalType": "uint256", "name": "pid", "type": "uint256"},
97
+ {"internalType": "uint256", "name": "amount", "type": "uint256"},
98
+ {"internalType": "address", "name": "to", "type": "address"}],
99
+ "name": "deposit", "outputs": [], "stateMutability": "nonpayable",
100
+ "type": "function"}, {
101
+ "inputs": [{"internalType": "uint256", "name": "pid", "type": "uint256"},
102
+ {"internalType": "uint256", "name": "amount", "type": "uint256"}],
103
+ "name": "deposit", "outputs": [], "stateMutability": "nonpayable",
104
+ "type": "function"}, {
105
+ "inputs": [{"internalType": "uint256", "name": "pid", "type": "uint256"},
106
+ {"internalType": "address", "name": "to", "type": "address"}],
107
+ "name": "emergencyWithdraw", "outputs": [], "stateMutability": "nonpayable",
108
+ "type": "function"}, {
109
+ "inputs": [{"internalType": "uint256", "name": "pid", "type": "uint256"}],
110
+ "name": "emergencyWithdraw", "outputs": [], "stateMutability": "nonpayable",
111
+ "type": "function"}, {
112
+ "inputs": [{"internalType": "uint256", "name": "pid", "type": "uint256"}],
113
+ "name": "getFarmData", "outputs": [{
114
+ "components": [{
115
+ "internalType": "uint128",
116
+ "name": "accBooPerShare",
117
+ "type": "uint128"}, {
118
+ "internalType": "uint64",
119
+ "name": "lastRewardTime",
120
+ "type": "uint64"}, {
121
+ "internalType": "uint64",
122
+ "name": "allocPoint",
123
+ "type": "uint64"}],
124
+ "internalType": "struct MasterChefV2.PoolInfo",
125
+ "name": "", "type": "tuple"}, {
126
+ "internalType": "uint256", "name": "",
127
+ "type": "uint256"}, {
128
+ "internalType": "contract IRewarder",
129
+ "name": "", "type": "address"}],
130
+ "stateMutability": "view", "type": "function"}, {
131
+ "inputs": [], "name": "harvestAll", "outputs": [], "stateMutability": "nonpayable",
132
+ "type": "function"}, {
133
+ "inputs": [], "name": "harvestFromMasterChef", "outputs": [],
134
+ "stateMutability": "nonpayable", "type": "function"}, {
135
+ "inputs": [{"internalType": "uint256[]", "name": "pids", "type": "uint256[]"}],
136
+ "name": "harvestMultiple", "outputs": [], "stateMutability": "nonpayable",
137
+ "type": "function"}, {
138
+ "inputs": [
139
+ {"internalType": "contract IERC20", "name": "dummyToken", "type": "address"}],
140
+ "name": "init", "outputs": [], "stateMutability": "nonpayable", "type": "function"},
141
+ {
142
+ "inputs": [{"internalType": "address", "name": "", "type": "address"}],
143
+ "name": "isAuth", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}],
144
+ "stateMutability": "view", "type": "function"}, {
145
+ "inputs": [{"internalType": "contract IERC20", "name": "", "type": "address"}],
146
+ "name": "isLpToken",
147
+ "outputs": [{"internalType": "bool", "name": "", "type": "bool"}],
148
+ "stateMutability": "view", "type": "function"}, {
149
+ "inputs": [], "name": "lastV1HarvestTimestamp",
150
+ "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
151
+ "stateMutability": "view", "type": "function"}, {
152
+ "inputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
153
+ "name": "lpSupplies",
154
+ "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
155
+ "stateMutability": "view", "type": "function"}, {
156
+ "inputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
157
+ "name": "lpToken",
158
+ "outputs": [{"internalType": "contract IERC20", "name": "", "type": "address"}],
159
+ "stateMutability": "view", "type": "function"}, {
160
+ "inputs": [], "name": "massUpdateAllPools", "outputs": [],
161
+ "stateMutability": "nonpayable", "type": "function"}, {
162
+ "inputs": [{"internalType": "uint256[]", "name": "pids", "type": "uint256[]"}],
163
+ "name": "massUpdatePools", "outputs": [], "stateMutability": "nonpayable",
164
+ "type": "function"}, {
165
+ "inputs": [{"internalType": "bytes[]", "name": "data", "type": "bytes[]"}],
166
+ "name": "multicall",
167
+ "outputs": [{"internalType": "bytes[]", "name": "results", "type": "bytes[]"}],
168
+ "stateMutability": "payable", "type": "function"}, {
169
+ "inputs": [{"internalType": "uint256", "name": "_pid", "type": "uint256"},
170
+ {"internalType": "address", "name": "_user", "type": "address"}],
171
+ "name": "pendingBOO",
172
+ "outputs": [{"internalType": "uint256", "name": "pending", "type": "uint256"}],
173
+ "stateMutability": "view", "type": "function"}, {
174
+ "inputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
175
+ "name": "poolInfo", "outputs": [
176
+ {"internalType": "uint128", "name": "accBooPerShare", "type": "uint128"},
177
+ {"internalType": "uint64", "name": "lastRewardTime", "type": "uint64"},
178
+ {"internalType": "uint64", "name": "allocPoint", "type": "uint64"}], "stateMutability": "view",
179
+ "type": "function"}, {
180
+ "inputs": [], "name": "poolInfoAmount",
181
+ "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
182
+ "stateMutability": "view", "type": "function"}, {
183
+ "inputs": [], "name": "poolLength",
184
+ "outputs": [{"internalType": "uint256", "name": "pools", "type": "uint256"}],
185
+ "stateMutability": "view", "type": "function"}, {
186
+ "inputs": [], "name": "queryHarvestFromMasterChef", "outputs": [],
187
+ "stateMutability": "nonpayable", "type": "function"}, {
188
+ "inputs": [{"internalType": "address", "name": "_auth", "type": "address"}],
189
+ "name": "revokeAuth", "outputs": [], "stateMutability": "nonpayable",
190
+ "type": "function"}, {
191
+ "inputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
192
+ "name": "rewarder",
193
+ "outputs": [{"internalType": "contract IRewarder", "name": "", "type": "address"}],
194
+ "stateMutability": "view", "type": "function"}, {
195
+ "inputs": [{"internalType": "address", "name": "token", "type": "address"},
196
+ {"internalType": "uint256", "name": "value", "type": "uint256"},
197
+ {"internalType": "uint256", "name": "deadline", "type": "uint256"},
198
+ {"internalType": "uint8", "name": "v", "type": "uint8"},
199
+ {"internalType": "bytes32", "name": "r", "type": "bytes32"},
200
+ {"internalType": "bytes32", "name": "s", "type": "bytes32"}],
201
+ "name": "selfPermit", "outputs": [], "stateMutability": "payable",
202
+ "type": "function"}, {
203
+ "inputs": [{"internalType": "address", "name": "token", "type": "address"},
204
+ {"internalType": "uint256", "name": "nonce", "type": "uint256"},
205
+ {"internalType": "uint256", "name": "expiry", "type": "uint256"},
206
+ {"internalType": "uint8", "name": "v", "type": "uint8"},
207
+ {"internalType": "bytes32", "name": "r", "type": "bytes32"},
208
+ {"internalType": "bytes32", "name": "s", "type": "bytes32"}],
209
+ "name": "selfPermitAllowed", "outputs": [], "stateMutability": "payable",
210
+ "type": "function"}, {
211
+ "inputs": [{"internalType": "address", "name": "token", "type": "address"},
212
+ {"internalType": "uint256", "name": "nonce", "type": "uint256"},
213
+ {"internalType": "uint256", "name": "expiry", "type": "uint256"},
214
+ {"internalType": "uint8", "name": "v", "type": "uint8"},
215
+ {"internalType": "bytes32", "name": "r", "type": "bytes32"},
216
+ {"internalType": "bytes32", "name": "s", "type": "bytes32"}],
217
+ "name": "selfPermitAllowedIfNecessary", "outputs": [], "stateMutability": "payable",
218
+ "type": "function"}, {
219
+ "inputs": [{"internalType": "address", "name": "token", "type": "address"},
220
+ {"internalType": "uint256", "name": "value", "type": "uint256"},
221
+ {"internalType": "uint256", "name": "deadline", "type": "uint256"},
222
+ {"internalType": "uint8", "name": "v", "type": "uint8"},
223
+ {"internalType": "bytes32", "name": "r", "type": "bytes32"},
224
+ {"internalType": "bytes32", "name": "s", "type": "bytes32"}],
225
+ "name": "selfPermitIfNecessary", "outputs": [], "stateMutability": "payable",
226
+ "type": "function"}, {
227
+ "inputs": [{"internalType": "uint256", "name": "_pid", "type": "uint256"},
228
+ {"internalType": "uint64", "name": "_allocPoint", "type": "uint64"}, {
229
+ "internalType": "contract IRewarder", "name": "_rewarder",
230
+ "type": "address"},
231
+ {"internalType": "bool", "name": "overwrite", "type": "bool"},
232
+ {"internalType": "bool", "name": "update", "type": "bool"}],
233
+ "name": "set", "outputs": [], "stateMutability": "nonpayable", "type": "function"},
234
+ {
235
+ "inputs": [{"internalType": "address", "name": "newAdmin", "type": "address"}],
236
+ "name": "setAdmin", "outputs": [], "stateMutability": "nonpayable",
237
+ "type": "function"}, {
238
+ "inputs": [{"internalType": "uint256[]", "name": "_pid", "type": "uint256[]"},
239
+ {"internalType": "uint64[]", "name": "_allocPoint", "type": "uint64[]"},
240
+ {
241
+ "internalType": "contract IRewarder[]", "name": "_rewarders",
242
+ "type": "address[]"},
243
+ {"internalType": "bool[]", "name": "overwrite", "type": "bool[]"},
244
+ {"internalType": "bool", "name": "update", "type": "bool"}],
245
+ "name": "setBatch", "outputs": [], "stateMutability": "nonpayable",
246
+ "type": "function"}, {
247
+ "inputs": [{"internalType": "uint256[]", "name": "_pid", "type": "uint256[]"},
248
+ {"internalType": "uint64[]", "name": "_allocPoint", "type": "uint64[]"},
249
+ {"internalType": "bool", "name": "update", "type": "bool"}],
250
+ "name": "setBatchSlim", "outputs": [], "stateMutability": "nonpayable",
251
+ "type": "function"}, {
252
+ "inputs": [{"internalType": "uint256", "name": "newTime", "type": "uint256"},
253
+ {"internalType": "bool", "name": "inDays", "type": "bool"}],
254
+ "name": "setV1HarvestQueryTime", "outputs": [], "stateMutability": "nonpayable",
255
+ "type": "function"}, {
256
+ "inputs": [{"internalType": "address", "name": "token", "type": "address"}],
257
+ "name": "supportsPermits", "outputs": [
258
+ {"internalType": "bytes32", "name": "domainSeparator", "type": "bytes32"}], "stateMutability": "view",
259
+ "type": "function"}, {
260
+ "inputs": [], "name": "totalAllocPoint",
261
+ "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
262
+ "stateMutability": "view", "type": "function"}, {
263
+ "inputs": [{"internalType": "uint256", "name": "pid", "type": "uint256"}],
264
+ "name": "updatePool", "outputs": [{
265
+ "components": [{
266
+ "internalType": "uint128",
267
+ "name": "accBooPerShare",
268
+ "type": "uint128"}, {
269
+ "internalType": "uint64",
270
+ "name": "lastRewardTime",
271
+ "type": "uint64"}, {
272
+ "internalType": "uint64",
273
+ "name": "allocPoint",
274
+ "type": "uint64"}],
275
+ "internalType": "struct MasterChefV2.PoolInfo",
276
+ "name": "pool", "type": "tuple"}],
277
+ "stateMutability": "nonpayable", "type": "function"}, {
278
+ "inputs": [{"internalType": "uint256", "name": "", "type": "uint256"},
279
+ {"internalType": "address", "name": "", "type": "address"}],
280
+ "name": "userInfo",
281
+ "outputs": [{"internalType": "uint256", "name": "amount", "type": "uint256"},
282
+ {"internalType": "uint256", "name": "rewardDebt", "type": "uint256"}],
283
+ "stateMutability": "view", "type": "function"}, {
284
+ "inputs": [{"internalType": "uint256", "name": "pid", "type": "uint256"},
285
+ {"internalType": "uint256", "name": "amount", "type": "uint256"},
286
+ {"internalType": "address", "name": "to", "type": "address"}],
287
+ "name": "withdraw", "outputs": [], "stateMutability": "nonpayable",
288
+ "type": "function"}, {
289
+ "inputs": [{"internalType": "uint256", "name": "pid", "type": "uint256"},
290
+ {"internalType": "uint256", "name": "amount", "type": "uint256"}],
291
+ "name": "withdraw", "outputs": [], "stateMutability": "nonpayable",
292
+ "type": "function"}]
@@ -0,0 +1,311 @@
1
+ SPOOKYSWAP_MASTERCHEF_V3_ABI = [{"inputs": [
2
+ {"internalType": "contract IMasterChef", "name": "_MASTER_CHEF", "type": "address"},
3
+ {"internalType": "contract IERC20", "name": "_boo", "type": "address"},
4
+ {"internalType": "uint256", "name": "_MASTER_PID", "type": "uint256"}], "stateMutability": "nonpayable",
5
+ "type": "constructor"}, {"anonymous": False, "inputs": [
6
+ {"indexed": True, "internalType": "address", "name": "by", "type": "address"},
7
+ {"indexed": True, "internalType": "address", "name": "to", "type": "address"}], "name": "AddAuth", "type": "event"},
8
+ {"anonymous": False, "inputs": [
9
+ {"indexed": True, "internalType": "address", "name": "user", "type": "address"},
10
+ {"indexed": True, "internalType": "uint256", "name": "pid", "type": "uint256"},
11
+ {"indexed": False, "internalType": "uint256", "name": "amount", "type": "uint256"},
12
+ {"indexed": True, "internalType": "address", "name": "to", "type": "address"}],
13
+ "name": "Deposit", "type": "event"}, {"anonymous": False, "inputs": [
14
+ {"indexed": True, "internalType": "address", "name": "user", "type": "address"},
15
+ {"indexed": True, "internalType": "uint256", "name": "pid", "type": "uint256"},
16
+ {"indexed": False, "internalType": "uint256", "name": "amount", "type": "uint256"},
17
+ {"indexed": True, "internalType": "address", "name": "to", "type": "address"}], "name": "EmergencyWithdraw",
18
+ "type": "event"}, {"anonymous": False,
19
+ "inputs": [{"indexed": True,
20
+ "internalType": "address",
21
+ "name": "user",
22
+ "type": "address"},
23
+ {"indexed": True,
24
+ "internalType": "uint256",
25
+ "name": "pid",
26
+ "type": "uint256"},
27
+ {"indexed": False,
28
+ "internalType": "uint256",
29
+ "name": "amount",
30
+ "type": "uint256"}],
31
+ "name": "Harvest",
32
+ "type": "event"},
33
+ {"anonymous": False, "inputs": [], "name": "LogInit", "type": "event"},
34
+ {"anonymous": False, "inputs": [
35
+ {"indexed": True, "internalType": "uint256", "name": "pid", "type": "uint256"},
36
+ {"indexed": False, "internalType": "uint256", "name": "allocPoint",
37
+ "type": "uint256"},
38
+ {"indexed": True, "internalType": "contract IERC20", "name": "lpToken",
39
+ "type": "address"},
40
+ {"indexed": False, "internalType": "contract IRewarder", "name": "rewarder",
41
+ "type": "address"},
42
+ {"indexed": False, "internalType": "bool", "name": "update", "type": "bool"}],
43
+ "name": "LogPoolAddition", "type": "event"}, {"anonymous": False, "inputs": [
44
+ {"indexed": True, "internalType": "uint256", "name": "pid", "type": "uint256"},
45
+ {"indexed": False, "internalType": "uint256", "name": "allocPoint", "type": "uint256"},
46
+ {"indexed": False, "internalType": "contract IRewarder", "name": "rewarder", "type": "address"},
47
+ {"indexed": False, "internalType": "bool", "name": "overwrite", "type": "bool"},
48
+ {"indexed": False, "internalType": "bool", "name": "update", "type": "bool"}], "name": "LogSetPool",
49
+ "type": "event"}, {"anonymous": False,
50
+ "inputs": [
51
+ {"indexed": True,
52
+ "internalType": "uint256",
53
+ "name": "pid",
54
+ "type": "uint256"},
55
+ {"indexed": False,
56
+ "internalType": "uint256",
57
+ "name": "lastRewardTime",
58
+ "type": "uint256"},
59
+ {"indexed": False,
60
+ "internalType": "uint256",
61
+ "name": "lpSupply",
62
+ "type": "uint256"},
63
+ {"indexed": False,
64
+ "internalType": "uint256",
65
+ "name": "accBooPerShare",
66
+ "type": "uint256"}],
67
+ "name": "LogUpdatePool",
68
+ "type": "event"},
69
+ {"anonymous": False, "inputs": [
70
+ {"indexed": True, "internalType": "address", "name": "by", "type": "address"},
71
+ {"indexed": True, "internalType": "address", "name": "to", "type": "address"}],
72
+ "name": "RevokeAuth", "type": "event"}, {"anonymous": False, "inputs": [
73
+ {"indexed": True, "internalType": "address", "name": "by", "type": "address"},
74
+ {"indexed": True, "internalType": "address", "name": "to", "type": "address"}], "name": "SetAdmin",
75
+ "type": "event"}, {"anonymous": False,
76
+ "inputs": [
77
+ {"indexed": True,
78
+ "internalType": "address",
79
+ "name": "user",
80
+ "type": "address"},
81
+ {"indexed": True,
82
+ "internalType": "uint256",
83
+ "name": "pid",
84
+ "type": "uint256"},
85
+ {"indexed": False,
86
+ "internalType": "uint256",
87
+ "name": "amount",
88
+ "type": "uint256"},
89
+ {"indexed": True,
90
+ "internalType": "address",
91
+ "name": "to",
92
+ "type": "address"}],
93
+ "name": "Withdraw",
94
+ "type": "event"},
95
+ {"inputs": [], "name": "BOO",
96
+ "outputs": [{"internalType": "contract IERC20", "name": "", "type": "address"}],
97
+ "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "MASTER_CHEF",
98
+ "outputs": [{
99
+ "internalType": "contract IMasterChef",
100
+ "name": "",
101
+ "type": "address"}],
102
+ "stateMutability": "view",
103
+ "type": "function"},
104
+ {"inputs": [], "name": "MASTER_PID",
105
+ "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
106
+ "stateMutability": "view", "type": "function"},
107
+ {"inputs": [], "name": "V1_HARVEST_QUERY_TIME",
108
+ "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
109
+ "stateMutability": "view", "type": "function"}, {
110
+ "inputs": [{"internalType": "uint64", "name": "allocPoint", "type": "uint64"},
111
+ {"internalType": "contract IERC20", "name": "_lpToken",
112
+ "type": "address"},
113
+ {"internalType": "contract IRewarder", "name": "_rewarder",
114
+ "type": "address"},
115
+ {"internalType": "bool", "name": "update", "type": "bool"}],
116
+ "name": "add", "outputs": [], "stateMutability": "nonpayable", "type": "function"},
117
+ {"inputs": [{"internalType": "address", "name": "_auth", "type": "address"}],
118
+ "name": "addAuth", "outputs": [], "stateMutability": "nonpayable", "type": "function"},
119
+ {"inputs": [], "name": "admin",
120
+ "outputs": [{"internalType": "address", "name": "", "type": "address"}],
121
+ "stateMutability": "view", "type": "function"},
122
+ {"inputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
123
+ "name": "authorized",
124
+ "outputs": [{"internalType": "address", "name": "", "type": "address"}],
125
+ "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "booPerSecond",
126
+ "outputs": [
127
+ {"internalType": "uint256",
128
+ "name": "amount",
129
+ "type": "uint256"}],
130
+ "stateMutability": "view",
131
+ "type": "function"}, {
132
+ "inputs": [{"internalType": "uint256", "name": "pid", "type": "uint256"},
133
+ {"internalType": "uint256", "name": "amount", "type": "uint256"},
134
+ {"internalType": "address", "name": "to", "type": "address"}],
135
+ "name": "deposit", "outputs": [], "stateMutability": "nonpayable",
136
+ "type": "function"}, {
137
+ "inputs": [{"internalType": "uint256", "name": "pid", "type": "uint256"},
138
+ {"internalType": "uint256", "name": "amount", "type": "uint256"}],
139
+ "name": "deposit", "outputs": [], "stateMutability": "nonpayable",
140
+ "type": "function"}, {
141
+ "inputs": [{"internalType": "uint256", "name": "pid", "type": "uint256"},
142
+ {"internalType": "address", "name": "to", "type": "address"}],
143
+ "name": "emergencyWithdraw", "outputs": [], "stateMutability": "nonpayable",
144
+ "type": "function"},
145
+ {"inputs": [{"internalType": "uint256", "name": "pid", "type": "uint256"}],
146
+ "name": "emergencyWithdraw", "outputs": [], "stateMutability": "nonpayable",
147
+ "type": "function"},
148
+ {"inputs": [{"internalType": "uint256", "name": "pid", "type": "uint256"}],
149
+ "name": "getFarmData", "outputs": [{"components": [
150
+ {"internalType": "uint128", "name": "accBooPerShare", "type": "uint128"},
151
+ {"internalType": "uint64", "name": "lastRewardTime", "type": "uint64"},
152
+ {"internalType": "uint64", "name": "allocPoint", "type": "uint64"}],
153
+ "internalType": "struct MasterChefV2.PoolInfo",
154
+ "name": "", "type": "tuple"},
155
+ {"internalType": "uint256", "name": "",
156
+ "type": "uint256"},
157
+ {"internalType": "contract IRewarder", "name": "",
158
+ "type": "address"}], "stateMutability": "view",
159
+ "type": "function"},
160
+ {"inputs": [], "name": "harvestAll", "outputs": [], "stateMutability": "nonpayable",
161
+ "type": "function"}, {"inputs": [], "name": "harvestFromMasterChef", "outputs": [],
162
+ "stateMutability": "nonpayable", "type": "function"},
163
+ {"inputs": [{"internalType": "uint256[]", "name": "pids", "type": "uint256[]"}],
164
+ "name": "harvestMultiple", "outputs": [], "stateMutability": "nonpayable",
165
+ "type": "function"}, {"inputs": [
166
+ {"internalType": "contract IERC20", "name": "dummyToken", "type": "address"}], "name": "init", "outputs": [],
167
+ "stateMutability": "nonpayable", "type": "function"},
168
+ {"inputs": [{"internalType": "address", "name": "", "type": "address"}],
169
+ "name": "isAuth", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}],
170
+ "stateMutability": "view", "type": "function"},
171
+ {"inputs": [{"internalType": "contract IERC20", "name": "", "type": "address"}],
172
+ "name": "isLpToken", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}],
173
+ "stateMutability": "view", "type": "function"},
174
+ {"inputs": [], "name": "lastV1HarvestTimestamp",
175
+ "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
176
+ "stateMutability": "view", "type": "function"},
177
+ {"inputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
178
+ "name": "lpSupplies",
179
+ "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
180
+ "stateMutability": "view", "type": "function"},
181
+ {"inputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
182
+ "name": "lpToken",
183
+ "outputs": [{"internalType": "contract IERC20", "name": "", "type": "address"}],
184
+ "stateMutability": "view", "type": "function"},
185
+ {"inputs": [], "name": "massUpdateAllPools", "outputs": [],
186
+ "stateMutability": "nonpayable", "type": "function"},
187
+ {"inputs": [{"internalType": "uint256[]", "name": "pids", "type": "uint256[]"}],
188
+ "name": "massUpdatePools", "outputs": [], "stateMutability": "nonpayable",
189
+ "type": "function"},
190
+ {"inputs": [{"internalType": "bytes[]", "name": "data", "type": "bytes[]"}],
191
+ "name": "multicall",
192
+ "outputs": [{"internalType": "bytes[]", "name": "results", "type": "bytes[]"}],
193
+ "stateMutability": "payable", "type": "function"}, {
194
+ "inputs": [{"internalType": "uint256", "name": "_pid", "type": "uint256"},
195
+ {"internalType": "address", "name": "_user", "type": "address"}],
196
+ "name": "pendingBOO",
197
+ "outputs": [{"internalType": "uint256", "name": "pending", "type": "uint256"}],
198
+ "stateMutability": "view", "type": "function"},
199
+ {"inputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
200
+ "name": "poolInfo",
201
+ "outputs": [{"internalType": "uint128", "name": "accBooPerShare", "type": "uint128"},
202
+ {"internalType": "uint64", "name": "lastRewardTime", "type": "uint64"},
203
+ {"internalType": "uint64", "name": "allocPoint", "type": "uint64"}],
204
+ "stateMutability": "view", "type": "function"},
205
+ {"inputs": [], "name": "poolInfoAmount",
206
+ "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
207
+ "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "poolLength",
208
+ "outputs": [
209
+ {"internalType": "uint256",
210
+ "name": "pools",
211
+ "type": "uint256"}],
212
+ "stateMutability": "view",
213
+ "type": "function"},
214
+ {"inputs": [], "name": "queryHarvestFromMasterChef", "outputs": [],
215
+ "stateMutability": "nonpayable", "type": "function"},
216
+ {"inputs": [{"internalType": "address", "name": "_auth", "type": "address"}],
217
+ "name": "revokeAuth", "outputs": [], "stateMutability": "nonpayable",
218
+ "type": "function"},
219
+ {"inputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
220
+ "name": "rewarder",
221
+ "outputs": [{"internalType": "contract IRewarder", "name": "", "type": "address"}],
222
+ "stateMutability": "view", "type": "function"}, {
223
+ "inputs": [{"internalType": "address", "name": "token", "type": "address"},
224
+ {"internalType": "uint256", "name": "value", "type": "uint256"},
225
+ {"internalType": "uint256", "name": "deadline", "type": "uint256"},
226
+ {"internalType": "uint8", "name": "v", "type": "uint8"},
227
+ {"internalType": "bytes32", "name": "r", "type": "bytes32"},
228
+ {"internalType": "bytes32", "name": "s", "type": "bytes32"}],
229
+ "name": "selfPermit", "outputs": [], "stateMutability": "payable",
230
+ "type": "function"}, {
231
+ "inputs": [{"internalType": "address", "name": "token", "type": "address"},
232
+ {"internalType": "uint256", "name": "nonce", "type": "uint256"},
233
+ {"internalType": "uint256", "name": "expiry", "type": "uint256"},
234
+ {"internalType": "uint8", "name": "v", "type": "uint8"},
235
+ {"internalType": "bytes32", "name": "r", "type": "bytes32"},
236
+ {"internalType": "bytes32", "name": "s", "type": "bytes32"}],
237
+ "name": "selfPermitAllowed", "outputs": [], "stateMutability": "payable",
238
+ "type": "function"}, {
239
+ "inputs": [{"internalType": "address", "name": "token", "type": "address"},
240
+ {"internalType": "uint256", "name": "nonce", "type": "uint256"},
241
+ {"internalType": "uint256", "name": "expiry", "type": "uint256"},
242
+ {"internalType": "uint8", "name": "v", "type": "uint8"},
243
+ {"internalType": "bytes32", "name": "r", "type": "bytes32"},
244
+ {"internalType": "bytes32", "name": "s", "type": "bytes32"}],
245
+ "name": "selfPermitAllowedIfNecessary", "outputs": [], "stateMutability": "payable",
246
+ "type": "function"}, {
247
+ "inputs": [{"internalType": "address", "name": "token", "type": "address"},
248
+ {"internalType": "uint256", "name": "value", "type": "uint256"},
249
+ {"internalType": "uint256", "name": "deadline", "type": "uint256"},
250
+ {"internalType": "uint8", "name": "v", "type": "uint8"},
251
+ {"internalType": "bytes32", "name": "r", "type": "bytes32"},
252
+ {"internalType": "bytes32", "name": "s", "type": "bytes32"}],
253
+ "name": "selfPermitIfNecessary", "outputs": [], "stateMutability": "payable",
254
+ "type": "function"}, {
255
+ "inputs": [{"internalType": "uint256", "name": "_pid", "type": "uint256"},
256
+ {"internalType": "uint64", "name": "_allocPoint", "type": "uint64"},
257
+ {"internalType": "contract IRewarder", "name": "_rewarder",
258
+ "type": "address"},
259
+ {"internalType": "bool", "name": "overwrite", "type": "bool"},
260
+ {"internalType": "bool", "name": "update", "type": "bool"}],
261
+ "name": "set", "outputs": [], "stateMutability": "nonpayable", "type": "function"},
262
+ {"inputs": [{"internalType": "address", "name": "newAdmin", "type": "address"}],
263
+ "name": "setAdmin", "outputs": [], "stateMutability": "nonpayable",
264
+ "type": "function"}, {
265
+ "inputs": [{"internalType": "uint256[]", "name": "_pid", "type": "uint256[]"},
266
+ {"internalType": "uint64[]", "name": "_allocPoint", "type": "uint64[]"},
267
+ {"internalType": "contract IRewarder[]", "name": "_rewarders",
268
+ "type": "address[]"},
269
+ {"internalType": "bool[]", "name": "overwrite", "type": "bool[]"},
270
+ {"internalType": "bool", "name": "update", "type": "bool"}],
271
+ "name": "setBatch", "outputs": [], "stateMutability": "nonpayable",
272
+ "type": "function"}, {
273
+ "inputs": [{"internalType": "uint256[]", "name": "_pid", "type": "uint256[]"},
274
+ {"internalType": "uint64[]", "name": "_allocPoint", "type": "uint64[]"},
275
+ {"internalType": "bool", "name": "update", "type": "bool"}],
276
+ "name": "setBatchSlim", "outputs": [], "stateMutability": "nonpayable",
277
+ "type": "function"}, {
278
+ "inputs": [{"internalType": "uint256", "name": "newTime", "type": "uint256"},
279
+ {"internalType": "bool", "name": "inDays", "type": "bool"}],
280
+ "name": "setV1HarvestQueryTime", "outputs": [], "stateMutability": "nonpayable",
281
+ "type": "function"},
282
+ {"inputs": [{"internalType": "address", "name": "token", "type": "address"}],
283
+ "name": "supportsPermits",
284
+ "outputs": [{"internalType": "bytes32", "name": "domainSeparator", "type": "bytes32"}],
285
+ "stateMutability": "view", "type": "function"},
286
+ {"inputs": [], "name": "totalAllocPoint",
287
+ "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
288
+ "stateMutability": "view", "type": "function"},
289
+ {"inputs": [{"internalType": "uint256", "name": "pid", "type": "uint256"}],
290
+ "name": "updatePool", "outputs": [{"components": [
291
+ {"internalType": "uint128", "name": "accBooPerShare", "type": "uint128"},
292
+ {"internalType": "uint64", "name": "lastRewardTime", "type": "uint64"},
293
+ {"internalType": "uint64", "name": "allocPoint", "type": "uint64"}],
294
+ "internalType": "struct MasterChefV2.PoolInfo",
295
+ "name": "pool", "type": "tuple"}],
296
+ "stateMutability": "nonpayable", "type": "function"}, {
297
+ "inputs": [{"internalType": "uint256", "name": "", "type": "uint256"},
298
+ {"internalType": "address", "name": "", "type": "address"}],
299
+ "name": "userInfo",
300
+ "outputs": [{"internalType": "uint256", "name": "amount", "type": "uint256"},
301
+ {"internalType": "uint256", "name": "rewardDebt", "type": "uint256"}],
302
+ "stateMutability": "view", "type": "function"}, {
303
+ "inputs": [{"internalType": "uint256", "name": "pid", "type": "uint256"},
304
+ {"internalType": "uint256", "name": "amount", "type": "uint256"},
305
+ {"internalType": "address", "name": "to", "type": "address"}],
306
+ "name": "withdraw", "outputs": [], "stateMutability": "nonpayable",
307
+ "type": "function"}, {
308
+ "inputs": [{"internalType": "uint256", "name": "pid", "type": "uint256"},
309
+ {"internalType": "uint256", "name": "amount", "type": "uint256"}],
310
+ "name": "withdraw", "outputs": [], "stateMutability": "nonpayable",
311
+ "type": "function"}]
File without changes
@@ -0,0 +1,46 @@
1
+ import json
2
+
3
+ UNISWAP_FACTORY_ABI =[{
4
+ "inputs": [
5
+ {"internalType": "address", "name": "_feeToSetter", "type": "address"}],
6
+ "payable": False, "stateMutability": "nonpayable", "type": "constructor"}, {
7
+ "anonymous": False, "inputs": [
8
+ {"indexed": True, "internalType": "address", "name": "token0", "type": "address"},
9
+ {"indexed": True, "internalType": "address", "name": "token1", "type": "address"},
10
+ {"indexed": False, "internalType": "address", "name": "pair", "type": "address"},
11
+ {"indexed": False, "internalType": "uint256", "name": "", "type": "uint256"}], "name": "PairCreated",
12
+ "type": "event"}, {
13
+ "constant": True,
14
+ "inputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
15
+ "name": "allPairs",
16
+ "outputs": [{"internalType": "address", "name": "", "type": "address"}],
17
+ "payable": False, "stateMutability": "view", "type": "function"}, {
18
+ "constant": True, "inputs": [], "name": "allPairsLength",
19
+ "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
20
+ "payable": False, "stateMutability": "view", "type": "function"}, {
21
+ "constant": False,
22
+ "inputs": [{"internalType": "address", "name": "tokenA", "type": "address"},
23
+ {"internalType": "address", "name": "tokenB", "type": "address"}],
24
+ "name": "createPair",
25
+ "outputs": [{"internalType": "address", "name": "pair", "type": "address"}],
26
+ "payable": False, "stateMutability": "nonpayable", "type": "function"}, {
27
+ "constant": True, "inputs": [], "name": "feeTo",
28
+ "outputs": [{"internalType": "address", "name": "", "type": "address"}],
29
+ "payable": False, "stateMutability": "view", "type": "function"}, {
30
+ "constant": True, "inputs": [], "name": "feeToSetter",
31
+ "outputs": [{"internalType": "address", "name": "", "type": "address"}],
32
+ "payable": False, "stateMutability": "view", "type": "function"}, {
33
+ "constant": True,
34
+ "inputs": [{"internalType": "address", "name": "", "type": "address"},
35
+ {"internalType": "address", "name": "", "type": "address"}],
36
+ "name": "getPair",
37
+ "outputs": [{"internalType": "address", "name": "", "type": "address"}],
38
+ "payable": False, "stateMutability": "view", "type": "function"}, {
39
+ "constant": False,
40
+ "inputs": [{"internalType": "address", "name": "_feeTo", "type": "address"}],
41
+ "name": "setFeeTo", "outputs": [], "payable": False,
42
+ "stateMutability": "nonpayable", "type": "function"}, {
43
+ "constant": False, "inputs": [
44
+ {"internalType": "address", "name": "_feeToSetter", "type": "address"}], "name": "setFeeToSetter",
45
+ "outputs": [], "payable": False, "stateMutability": "nonpayable",
46
+ "type": "function"}]
@@ -4,10 +4,10 @@ from defi_services.services.dex.quickswap_v2_service import QuickSwapV2Services
4
4
  from defi_services.services.dex.spookyswap_v2_service import SpookySwapV2Services
5
5
  from defi_services.services.dex.sushiswap_v2_service import SushiSwapV2Services
6
6
  from defi_services.services.dex.uniswap_v2_service import UniswapV2Services
7
- from src.defi_services.constants.chain_constant import Chain
8
- from src.defi_services.constants.entities.dex_constant import Dex
9
- from src.defi_services.services.dex.pancakeswap_service import PancakeSwapServices
10
- from src.defi_services.services.dex.sushiswap_service import SushiSwapServices
7
+ from defi_services.constants.chain_constant import Chain
8
+ from defi_services.constants.entities.dex_constant import Dex
9
+ from defi_services.services.dex.pancakeswap_service import PancakeSwapServices
10
+ from defi_services.services.dex.sushiswap_service import SushiSwapServices
11
11
 
12
12
 
13
13
  class DexServices:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: defi-state-querier
3
- Version: 0.4.4
3
+ Version: 0.4.7
4
4
  Summary: Calculate apy, apr, and wallet information,... in decentralized applications.
5
5
  Home-page: https://github.com/Centic-io/defi-state-querier
6
6
  Author: Viet-Bang Pham
@@ -1,4 +1,4 @@
1
- defi_services/__init__.py,sha256=6G_giX6Ucuweo7w5OiftoXmbNLoqiU_soXJoU8aiLmY,22
1
+ defi_services/__init__.py,sha256=MHGyAIWXVeovtteWUUSzLq9UGWJLLooUZCXB9KGpNK8,22
2
2
  defi_services/abis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  defi_services/abis/dex/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  defi_services/abis/dex/biswap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -12,11 +12,19 @@ defi_services/abis/dex/pancakeswap/pancakeswap_lp_token_abi.py,sha256=jZlwwWtZSr
12
12
  defi_services/abis/dex/pancakeswap/pancakeswap_masterchef_v2_abi.py,sha256=r2ya3Ipq5etMc_nGIUwRJoeJEavsEUqAG6hnJUHrpVo,18796
13
13
  defi_services/abis/dex/pancakeswap/pancakeswap_router_v2_abi.py,sha256=bLPs_jT3skducRxbhLbULTQn58wu4vWcbqYWOkoWIuQ,25811
14
14
  defi_services/abis/dex/pancakeswap/v3_pool_abi.py,sha256=eqaoV077jvRIzq01UMA3XtkfzrR8AuVgfCx5aeUY4bA,18710
15
+ defi_services/abis/dex/quickswap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
+ defi_services/abis/dex/quickswap/factory_v3_abi.py,sha256=1_7G0kIgawKKqKIZTgpk9R3qpc7QaiETD-DbLe70yAU,4557
17
+ defi_services/abis/dex/quickswap/nft_token_manager.py,sha256=rRRN9wJdYC69NHQP5GTbhGX6G5XZTTlxRMUSs7nIogc,14684
18
+ defi_services/abis/dex/spookyswap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
+ defi_services/abis/dex/spookyswap/masterchef_v2_abi.py,sha256=95qd6KwgrHMIZnoPLoAQlCYmlkXydikJcYsTE2FQpL4,19442
20
+ defi_services/abis/dex/spookyswap/masterchef_v3_abi.py,sha256=KVHgS2HAwLrLQe6qS2FcSFMLL9smBv3uLGY0yjr-_TE,31800
15
21
  defi_services/abis/dex/sushiswap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
22
  defi_services/abis/dex/sushiswap/factory_v3_abi.py,sha256=G-ena0L_xR4gRM4ouxHQeUuG74gcJJFjqNoX0FNaF84,13
17
23
  defi_services/abis/dex/sushiswap/masterchef_abi.py,sha256=FcM_93egtfwIrFVc_ryF_gKUGjuivpkknSxeUatEpQ8,10875
18
24
  defi_services/abis/dex/sushiswap/masterchef_v2_abi.py,sha256=cTc3bjo3L_kX6T2DfDoQxai3y6g4_5eJfHhiiM_0-9g,10112
19
25
  defi_services/abis/dex/sushiswap/minichef_abi.py,sha256=tdKtgnp4q39zT7ZPuVdhQf8p9iUDC6fsQgow-5ZEJvY,9841
26
+ defi_services/abis/dex/uniswap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
+ defi_services/abis/dex/uniswap/uniswap_v2_factory.py,sha256=4mPMKdRJDJeHX63WG8hVgeBiPTVKEQLQjRCvlbdyEt0,4016
20
28
  defi_services/abis/lending/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
29
  defi_services/abis/lending/aave/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
30
  defi_services/abis/lending/aave/all_aave_abi.py,sha256=HNMiwmB2ggygXGBeHY7ipJrHFCgwY42x5ULHESm3Hqs,4823
@@ -228,7 +236,7 @@ defi_services/constants/time_constant.py,sha256=bC-0pYnfIFFR_0iVvkxhfyHfOclWNw9O
228
236
  defi_services/constants/token_constant.py,sha256=5GV7s2GVyWNmx6y3K72yjgi4BuX7g32xua5yCCg0rCo,3607
229
237
  defi_services/constants/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
230
238
  defi_services/constants/entities/dex_constant.py,sha256=oCt8RS-0KjFW5zR5IU1Ys49nYCCAraY8pTivOpXoyvs,343
231
- defi_services/constants/entities/dex_services.py,sha256=aF2zG1v-LL8r8FJ410gOnWCC4F2wwDSPGcBlQsO86wY,1804
239
+ defi_services/constants/entities/dex_services.py,sha256=zP1JIuiwVuDF74RrEwejwfwvjDf67ia63ZKe1hb5RuA,1788
232
240
  defi_services/constants/entities/lending_constant.py,sha256=uUb3CnIlZP0lqdVPUt4IdlUXZwNpsMVDTmqMw0NK47g,1009
233
241
  defi_services/constants/entities/lending_services.py,sha256=XP-Ck9bKmvNvKGOXBx_Xrg8wbD-CkCQHDFpWNjPbyHM,4909
234
242
  defi_services/constants/entities/vault_constant.py,sha256=IGGd4--T-BQcm8mlU8XAJ_hkZglrdAeZff5h-oMcMqg,84
@@ -373,8 +381,8 @@ defi_services/utils/logger_utils.py,sha256=KxDlmaK9aoMOI1gdroRYjMm383myvFiWqW0iK
373
381
  defi_services/utils/market_service.py,sha256=imPtPHBkpEx5JnhqeIWYqbCjsIEm8IKBYHNEy6rKjdU,723
374
382
  defi_services/utils/memory_storage.py,sha256=BOT8laB0iVSCGE-oDlpWJQLbSC6X2blKX4zuQbs4inc,851
375
383
  defi_services/utils/thread_proxy.py,sha256=5Z8biAyEReUkh3vfJSvEv7GwMe3CsE5M8CbghkQtePw,2951
376
- defi_state_querier-0.4.4.dist-info/LICENSE,sha256=6jmfxa8nUIwfKnzZUxAHJSJ_IS7h7mpbJq26cWjoo-o,1063
377
- defi_state_querier-0.4.4.dist-info/METADATA,sha256=kQ608dOEexOI03ts0xh_MpHzE8tKZO2Gti5YbReYEpo,4375
378
- defi_state_querier-0.4.4.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
379
- defi_state_querier-0.4.4.dist-info/top_level.txt,sha256=C-OTxHK6MknKK-nAbEzCPDUl1M6pktRhgJrmsozdf6g,14
380
- defi_state_querier-0.4.4.dist-info/RECORD,,
384
+ defi_state_querier-0.4.7.dist-info/LICENSE,sha256=6jmfxa8nUIwfKnzZUxAHJSJ_IS7h7mpbJq26cWjoo-o,1063
385
+ defi_state_querier-0.4.7.dist-info/METADATA,sha256=sXX0nnzK2a64YGDtybCuRK_WNweMKkvXB_mg2J5JAUs,4375
386
+ defi_state_querier-0.4.7.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
387
+ defi_state_querier-0.4.7.dist-info/top_level.txt,sha256=C-OTxHK6MknKK-nAbEzCPDUl1M6pktRhgJrmsozdf6g,14
388
+ defi_state_querier-0.4.7.dist-info/RECORD,,