Last active
September 6, 2024 12:00
-
-
Save ShiningRay/1de0489e494692d4e9a91272d1261149 to your computer and use it in GitHub Desktop.
whale
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# a = %w(0x514C93eD87939B57Fd25685dDAA356CD2Fa366d4 598750 | |
# 0x541044A1dC881D2652b02e70E3d0286084619937 411875 | |
# 0x8E8F86b0d8C147647C784F15a0f013Af63EB5846 230000 | |
# 0x9431B1E83aCA41228C475012fD805E89B3F5F91D 95625 | |
# 0xfe0d4A265C91F0c382275a50920D4f601EB4C7dD 93750 | |
# 0x62C136D1fef51F41368068a8BAf2334A8c2f8D14 93750 | |
# 0xa7aeCF771Fca086983cfBC481533D949089Bd0Ec 29375 | |
# 0xd332f37Aced58AbdD9a1431dA3f4e090D2A1331B 29375 | |
# 0x89F6187e4B4C7805fba2Cbe55046758B7911e8aD 28437.5 | |
# 0x781D1BD9C0620882a718fC5f6fb28974304FA27E 22187.5 | |
# 0x6C87DfF9fE459D9ed378b5734F17795D53B2C56c 7500 | |
# 0x36C2c22663cB66977A613150831Ba4CEb7970b8C 5000 | |
# 0x44C1368c5432748D5Dd276A8FEDCe478eC40B421 4687.5 | |
# 0x627Dd6A5195Bc13D48e434E2995168784e8AB33B 3750 | |
# 0xa4FabbC8E21E5Cc0cdf92f76d16E7f440965F294 3750) | |
# drops = Hash[*a] | |
drops = { | |
# "0x514C93eD87939B57Fd25685dDAA356CD2Fa366d4"=>"598750", | |
# "0x541044A1dC881D2652b02e70E3d0286084619937"=>"411875", | |
# "0x8E8F86b0d8C147647C784F15a0f013Af63EB5846"=>"230000", | |
# "0x9431B1E83aCA41228C475012fD805E89B3F5F91D"=>"95625", | |
"0xfe0d4A265C91F0c382275a50920D4f601EB4C7dD"=>"93750", | |
"0x62C136D1fef51F41368068a8BAf2334A8c2f8D14"=>"93750", | |
"0xa7aeCF771Fca086983cfBC481533D949089Bd0Ec"=>"29375", | |
"0xd332f37Aced58AbdD9a1431dA3f4e090D2A1331B"=>"29375", | |
"0x89F6187e4B4C7805fba2Cbe55046758B7911e8aD"=>"28437.5", | |
"0x781D1BD9C0620882a718fC5f6fb28974304FA27E"=>"22187.5", | |
"0x6C87DfF9fE459D9ed378b5734F17795D53B2C56c"=>"7500", | |
"0x36C2c22663cB66977A613150831Ba4CEb7970b8C"=>"5000", | |
"0x44C1368c5432748D5Dd276A8FEDCe478eC40B421"=>"4687.5", | |
"0x627Dd6A5195Bc13D48e434E2995168784e8AB33B"=>"3750", | |
"0xa4FabbC8E21E5Cc0cdf92f76d16E7f440965F294"=>"3750"} | |
hot = '0xba1f4903308A7fF86C18251b5075663177772f96' | |
token = Token['GWDX'] | |
s = token.service | |
drops.each do |addr, amount| | |
puts addr,amount | |
t = s.transfer(from: hot, to: addr, quantity: amount.to_d, token:) | |
SendTransactionJob.new.perform t | |
end; nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p = Platform.find_by symbol: 'ARB' | |
cl = p.client.eth_client | |
k = PrivateKey.find_by label: 'oldlie' | |
k1 = Eth::Key.new priv: k.content | |
ct = Contract.last | |
a = ct.service.eth_contract | |
tx = cl.transact a, 'withdraw', '0xe9dab6858eaeeb286fe578d5172fd946333fcbe8', 244_027_259265, 100, sender_key: k1, gas_limit: 200000 | |
k = PrivateKey.find_by label: 'newlie' | |
k2 = Eth::Key.new priv: k.content | |
ct = Contract.find_by symbol: 'VEST' | |
a = ct.service.eth_contract | |
tx = cl.transact a, 'updateToken', '0x99cc1aa5b8de69ca193d4bdf29dfa7a4f3f7092d', sender_key: k2, gas_limit: 50000 | |
a = Address.find_by address: '0xe0595A49f42E79126B7c400AA45BDa3343Be4B64' | |
k3 = Eth::Key.new priv: a.private_key.content | |
ct = Contract.find_by symbol: 'VEST' | |
cc = ct.service.eth_contract | |
puts cl.call(cc, "withdraw", 2532, sender_key: k3) | |
p = Platform.find_by symbol: 'ARB' | |
cl = p.client.eth_client | |
k = PrivateKey.find_by label: 'newlie' | |
k2 = Eth::Key.new priv: k.content | |
ct = Contract.find_by symbol: 'VEST' | |
a = ct.service.eth_contract | |
# tx = cl.transact a, 'withdraw', '0xf2dd4fd9df53e5ca24bc97cbc30df1e3e268e773', 37376783, 1, sender_key: k2, gas_limit: 50000 | |
tx = cl.transact a, 'withdraw', '0x4e5e48dd9b415a79409a450106db667c8ee93d6c', 9000 * 10**6, 1, sender_key: k2, gas_limit: 50000 | |
tx = cl.transact a, 'withdraw', '0xffE8F95B3E11025E2BF5F2dBecC8947140F00dFA', 51300000, 1, sender_key: k2, gas_limit: 150000 | |
tx = cl.transact a, 'withdraw', '0x26d63C4a58eBDD6e2C2848094fDFfe6A7e71d7FC', 94000000, 1, sender_key: k2, gas_limit: 150000 | |
tx = cl.transact a, 'withdraw', '0x29D230ec3CFbf8d681D307c6684C15A52f0ebEaE', 502000000, 1, sender_key: k2, gas_limit: 150000 | |
tx = cl.transact a, 'withdraw', '0x997941e8bc16c6c3ae73a7bbacef6d0afbd4e61a', 15000000, 1, sender_key: k2, gas_limit: 150000 | |
tx = cl.transact a, 'withdraw', '0xe9dab6858eaeeb286fe578d5172fd946333fcbe8', 205160646111, 1, sender_key: k2, gas_limit: 150000 | |
tx = cl.transact a, 'withdraw', '0x24e563c7dd4c8cc39e4c65c909ec1e988ed04801', 138000000, 1, sender_key: k2, gas_limit: 150000 | |
tx = cl.transact a, 'withdraw', '0x036Fc3b4d09503a71B551EdD3a1bf0A7966e5196', 536323800, 1, sender_key: k2, gas_limit: 150000 | |
tx = cl.transact a, 'updateToken', '0xaf88d065e77c8cc2239327c5edb3a432268e5831', sender_key: k2, gas_limit: 50000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p = Platform.find_by symbol: 'ARB' | |
cl = p.client.eth_client | |
k = PrivateKey.find_by label: 'oldlie' | |
k1 = Eth::Key.new priv: k.content | |
ct = Contract.last | |
a = ct.service.eth_contract | |
tx = cl.transact a, 'withdraw', '0xe9dab6858eaeeb286fe578d5172fd946333fcbe8', 244_027_259265, 100, sender_key: k1, gas_limit: 200000 | |
k = PrivateKey.find_by label: 'newlie' | |
k2 = Eth::Key.new priv: k.content | |
ct = Contract.find_by symbol: 'VEST' | |
a = ct.service.eth_contract | |
tx = cl.transact a, 'updateToken', '0x99cc1aa5b8de69ca193d4bdf29dfa7a4f3f7092d', sender_key: k2, gas_limit: 50000 | |
a = Address.find_by address: '0xe0595A49f42E79126B7c400AA45BDa3343Be4B64' | |
k3 = Eth::Key.new priv: a.private_key.content | |
ct = Contract.find_by symbol: 'VEST' | |
cc = ct.service.eth_contract | |
puts cl.call(cc, "withdraw", 2532, sender_key: k3) | |
p = Platform.find_by symbol: 'ARB' | |
cl = p.client.eth_client | |
k = PrivateKey.find_by label: 'newlie' | |
k2 = Eth::Key.new priv: k.content | |
ct = Contract.find_by symbol: 'VEST' | |
a = ct.service.eth_contract | |
# tx = cl.transact a, 'withdraw', '0xf2dd4fd9df53e5ca24bc97cbc30df1e3e268e773', 37376783, 1, sender_key: k2, gas_limit: 50000 | |
tx = cl.transact a, 'withdraw', '0x4e5e48dd9b415a79409a450106db667c8ee93d6c', 9000 * 10**6, 1, sender_key: k2, gas_limit: 50000 | |
tx = cl.transact a, 'withdraw', '0xffE8F95B3E11025E2BF5F2dBecC8947140F00dFA', 51300000, 1, sender_key: k2, gas_limit: 150000 | |
tx = cl.transact a, 'withdraw', '0x26d63C4a58eBDD6e2C2848094fDFfe6A7e71d7FC', 94000000, 1, sender_key: k2, gas_limit: 150000 | |
tx = cl.transact a, 'withdraw', '0x29D230ec3CFbf8d681D307c6684C15A52f0ebEaE', 502000000, 1, sender_key: k2, gas_limit: 150000 | |
tx = cl.transact a, 'withdraw', '0x997941e8bc16c6c3ae73a7bbacef6d0afbd4e61a', 15000000, 1, sender_key: k2, gas_limit: 150000 | |
tx = cl.transact a, 'withdraw', '0xe9dab6858eaeeb286fe578d5172fd946333fcbe8', 205160646111, 1, sender_key: k2, gas_limit: 150000 | |
tx = cl.transact a, 'withdraw', '0x24e563c7dd4c8cc39e4c65c909ec1e988ed04801', 138000000, 1, sender_key: k2, gas_limit: 150000 | |
tx = cl.transact a, 'withdraw', '0x036Fc3b4d09503a71B551EdD3a1bf0A7966e5196', 536323800, 1, sender_key: k2, gas_limit: 150000 | |
tx = cl.transact a, 'updateToken', '0xaf88d065e77c8cc2239327c5edb3a432268e5831', sender_key: k2, gas_limit: 50000 | |
hot = '0xb9465919451CA24ba220B6161F8f6A569381aDf7' | |
token = Token['GWDX'] | |
drops.each do |addr, amount| | |
t = s.transfer from: hot, to: addr, quantity: amount, token: | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment