Created
December 11, 2022 00:57
-
-
Save koeppelmann/0f628adbc5c58b339c18f6d84dfffad5 to your computer and use it in GitHub Desktop.
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
import json | |
import requests | |
import pprint | |
#response = requests.get("https://api.circles.garden/api/users/Martin") | |
#pprint.pprint(response.content) | |
martinsavings = "0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa" | |
martin = "0x42cEDde51198D1773590311E2A340DC06B24cB37" | |
earlyadopter = "0x939b2731997922f21ab0a0bab500a949c0fc3550" | |
from_ = martinsavings | |
to = martin | |
value = 9000 * 10**18 | |
query = {"method":"compute_transfer", "params":{"from":from_, "to": to, "value":str(value)}} | |
response = requests.post("https://rpc.circles.land/pathfinder/", json=query) | |
#pprint.pprint(response.content) | |
parsed = json.loads(response.content) | |
#pprint.pprint(parsed) | |
tokenOwner = [] | |
srcs = [] | |
dests = [] | |
wads = [] | |
import web3 | |
for step in parsed["result"]["transfers"]: | |
tokenOwner.append(web3.Web3.toChecksumAddress(step["token_owner"])) | |
srcs.append(web3.Web3.toChecksumAddress(step["from"])) | |
dests.append(web3.Web3.toChecksumAddress(step["to"])) | |
wads.append(int(step["value"],16)) | |
''' | |
import web3 | |
tokenOwner = ['0x4aC5eEA1d9c875b700906ce67f6FF682371ea938', '0x124489967ee475C303D63fbACDC8EBb4C25dcd0b', '0x124489967ee475C303D63fbACDC8EBb4C25dcd0b', '0x124489967ee475C303D63fbACDC8EBb4C25dcd0b', '0x8DC7e86fF693e9032A0F41711b5581a04b26Be2E', '0x02B50e87C577084b9659a625870b4A6e8a8E9238', '0x42c4696f8606De9528073043Ce3bE14ef0701594', '0x42c4696f8606De9528073043Ce3bE14ef0701594', '0xB17A8458b38AE43427112AdA7beeeDCC737078B6', '0x0B900CBbc0e6bc4edc12f56360C8bC141eD1cc1b', '0x02B50e87C577084b9659a625870b4A6e8a8E9238', '0xE6486b442959710BA305b0D7e0Cac802117F4B00', '0x51558EdF6C91a21df5af8f4dc4ABfD4D25F94fd8', '0x295bA5c775969c6310Fa040A02C1BEC066a84967', '0xeb9784F6A6e3d03466974Cb3a5a77c79afbA14e7', '0x9a0bbbbd3789f184CA88f2F6A40F42406cb842AC', '0x9f5FF18027ADBB65A53086CDc09D12ce463daE0B', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0xAb999F912f8B5835F7Ab1795698F6F863718F64D', '0xCE22B1a439E7A801179e43f244312EDe9aa3E8d7', '0xe589260FE46c7afe9717344f32EA0cb33f0A4707', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x883bb71Cf1623E5a0885340369Ae164f6c159855', '0xD460Db4cFa021C42edeb7e555D904400dab65ECc', '0xFD7CEd6D5584f4bD7E7C22F4Cd3BC0f836ABdE10', '0x2F79d8E24128A70E430D059AD7b88A87c2C1c9C7', '0x51D9E1969202321BA0D7Bc9fFcc6327bB981AB93', '0x9fbEe47312A0022d28721BD816e62FEFf61113cF', '0x1cE2F19697D1Ff59141eB24E105060837f6E45D4', '0x5aF3BB452023c11c0a67DcD4BFeD2F0e5318921E', '0x4d19da8Cfed9Ec512CD1e11Ac0ECB008e131bC82', '0x009626dAdEd5E90aECee30AD3EBf2b3E510FE256', '0x3C03528933Ac6D6Ed21aE2F587cd8483bE854911', '0xC19BF99c1C21226b2CF01a37A4f5565D8E8A77aE', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0x3eb2b2D6e85ae3012a1c7ee727bd8F477b42F032', '0xeCe1B3B8c7De380CA27E8469f4B81361e56443c1', '0x32bd2E979A422aBa8Ac9817d8c4e10f96e93cC73', '0x08320bf880A19636446AF5f53DbB929611BDc2c9', '0x32bd2E979A422aBa8Ac9817d8c4e10f96e93cC73', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0x19674F4Be5b0321160391d573ACF329CEC016498', '0x19674F4Be5b0321160391d573ACF329CEC016498', '0x19674F4Be5b0321160391d573ACF329CEC016498', '0x19674F4Be5b0321160391d573ACF329CEC016498', '0x68D300764059bAbD26B75DA1141f05a9ffb6Fbc0', '0xDa601243A54d54C67cFd31AA2FA9C97c4120c2CC', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0x3eb2b2D6e85ae3012a1c7ee727bd8F477b42F032', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0x70B15A15D71CE5471Abb47d4cF414c3000E12254', '0x2762B964912Ca520C1fa77CE75c5BbD07268718e', '0x13Bd56DaD47A0DAD035bf2335c20C1960a9148a9', '0x504899179BCB52101f72104D661d242b00175D9c', '0xD460Db4cFa021C42edeb7e555D904400dab65ECc', '0x32bd2E979A422aBa8Ac9817d8c4e10f96e93cC73', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0xFd7b03453A16201A2A48f909c744Eb071F075FE7', '0x68D300764059bAbD26B75DA1141f05a9ffb6Fbc0', '0xE8F0C25B12C6f7E364D6933CFf4ea21F2Ac3cdD7', '0x327781406D2763B316350BBEcCBD46F8CF61C733', '0x32bd2E979A422aBa8Ac9817d8c4e10f96e93cC73', '0x19674F4Be5b0321160391d573ACF329CEC016498', '0x19674F4Be5b0321160391d573ACF329CEC016498', '0x19674F4Be5b0321160391d573ACF329CEC016498', '0x19674F4Be5b0321160391d573ACF329CEC016498', '0x4a9aFfA9249F36fd0629f342c182A4e94A13C2e0', '0xD460Db4cFa021C42edeb7e555D904400dab65ECc', '0xeb9784F6A6e3d03466974Cb3a5a77c79afbA14e7', '0x32bd2E979A422aBa8Ac9817d8c4e10f96e93cC73', '0xD460Db4cFa021C42edeb7e555D904400dab65ECc', '0xeb9784F6A6e3d03466974Cb3a5a77c79afbA14e7', '0xDa601243A54d54C67cFd31AA2FA9C97c4120c2CC', '0x14c16ce62d26Fd51582A646e2e30a3267b1E6D7E', '0xeb94174E82D6a070Dcb0135B09270dE4a3A3BcE0', '0x0c77867E0E55A262f10A4496B9206712167F2521', '0x0c77867E0E55A262f10A4496B9206712167F2521', '0x4c78E6eb3123230fA359F4A804bc4E765a19f5D1', '0x883bb71Cf1623E5a0885340369Ae164f6c159855', '0x0c77867E0E55A262f10A4496B9206712167F2521', '0xc83Ea5FbBb985AdD0d0085402AaF94B6ee094049', '0xD460Db4cFa021C42edeb7e555D904400dab65ECc', '0xDB60aB8B4adc8a35D6A58A1FCF4bE7450E12F839', '0x4a9aFfA9249F36fd0629f342c182A4e94A13C2e0', '0x4a9aFfA9249F36fd0629f342c182A4e94A13C2e0', '0x4a9aFfA9249F36fd0629f342c182A4e94A13C2e0', '0x70B15A15D71CE5471Abb47d4cF414c3000E12254', '0x4a9aFfA9249F36fd0629f342c182A4e94A13C2e0', '0x2762B964912Ca520C1fa77CE75c5BbD07268718e', '0x0142e59D7e0744e984aCa46Bbe9A7eF5C3Fa50ba', '0xfB4179cf1F15EFF34600Ed43323FF96636adDe22', '0x0142e59D7e0744e984aCa46Bbe9A7eF5C3Fa50ba', '0x6aB3Db1FAEf5C5baE5d4BD327aD2d7da76d7f462', '0x0142e59D7e0744e984aCa46Bbe9A7eF5C3Fa50ba', '0x5ccE15bC5585C8eecE1745A98340c9B2a15176a1', '0x0142e59D7e0744e984aCa46Bbe9A7eF5C3Fa50ba', '0x0142e59D7e0744e984aCa46Bbe9A7eF5C3Fa50ba', '0x009626dAdEd5E90aECee30AD3EBf2b3E510FE256', '0x0142e59D7e0744e984aCa46Bbe9A7eF5C3Fa50ba', '0x0142e59D7e0744e984aCa46Bbe9A7eF5C3Fa50ba', '0xD460Db4cFa021C42edeb7e555D904400dab65ECc', '0x0142e59D7e0744e984aCa46Bbe9A7eF5C3Fa50ba', '0x0142e59D7e0744e984aCa46Bbe9A7eF5C3Fa50ba', '0x83E21153BA3C4754e23E4C3548c74D2B8D24efc6', '0x40743d359E82783D5B227060B9C48a4037168148', '0x0142e59D7e0744e984aCa46Bbe9A7eF5C3Fa50ba', '0x140b69D9ed4AC7f9C1fa644fd9059A9d610af191', '0x647E68F4BCBC843F39c80bb02da96dD13308f657', '0xcB2d52e46cA59B2eD5d76534095aF72DF3c41aF4', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0x8188A257965E74fE0C6772DD752E580258870aE2', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0x3A599ab30A17Bc7527D8BE6D434F3048eA92d5d7', '0xeC39D9C81ACf2b7C4d847651757363EC1959D77D', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0x009626dAdEd5E90aECee30AD3EBf2b3E510FE256', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0x5aF3BB452023c11c0a67DcD4BFeD2F0e5318921E', '0xEEc3c6084e9D9A2D5C5F31e37b3D9A54EC0674CA', '0x9a0bbbbd3789f184CA88f2F6A40F42406cb842AC', '0xc8E958d98fdC56C7209631a4f61fb19Fc0Bb25fb', '0x5d4340Fe80601877798a385CEa0a9ad7533f2852', '0x49D521EC667B76d77b43Fd05E435e6C09aAA841B', '0x49D521EC667B76d77b43Fd05E435e6C09aAA841B', '0x49D521EC667B76d77b43Fd05E435e6C09aAA841B', '0xdb968A99AB065b42C1810fa3112B26fB05c4007a', '0x70B15A15D71CE5471Abb47d4cF414c3000E12254', '0x504899179BCB52101f72104D661d242b00175D9c', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0x504899179BCB52101f72104D661d242b00175D9c', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0x2762B964912Ca520C1fa77CE75c5BbD07268718e', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0xEbfbf7A3006104fB1D3b68529A7B1b584acf4203', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x3eb2b2D6e85ae3012a1c7ee727bd8F477b42F032', '0x883bb71Cf1623E5a0885340369Ae164f6c159855', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x70B15A15D71CE5471Abb47d4cF414c3000E12254', '0x9fbEe47312A0022d28721BD816e62FEFf61113cF'] | |
srcs = ['0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x9BA1Bcd88E99d6E1E03252A70A63FEa83Bf1208c', '0x9BA1Bcd88E99d6E1E03252A70A63FEa83Bf1208c', '0x9BA1Bcd88E99d6E1E03252A70A63FEa83Bf1208c', '0x9BA1Bcd88E99d6E1E03252A70A63FEa83Bf1208c', '0x9BA1Bcd88E99d6E1E03252A70A63FEa83Bf1208c', '0x9BA1Bcd88E99d6E1E03252A70A63FEa83Bf1208c', '0x9BA1Bcd88E99d6E1E03252A70A63FEa83Bf1208c', '0x9BA1Bcd88E99d6E1E03252A70A63FEa83Bf1208c', '0x9BA1Bcd88E99d6E1E03252A70A63FEa83Bf1208c', '0x355e413eE561d71477306E09DF103A1650699238', '0xeE9c910A6450c25D4A79ba396eD9c064A72B8944', '0xeE9c910A6450c25D4A79ba396eD9c064A72B8944', '0xc5a786eafeFcF703C114558c443E4F17969D9573', '0xeE9c910A6450c25D4A79ba396eD9c064A72B8944', '0x029eA4366cc7C75B7F5F5737752862cfAA9C2b0e', '0x029eA4366cc7C75B7F5F5737752862cfAA9C2b0e', '0x029eA4366cc7C75B7F5F5737752862cfAA9C2b0e', '0x249fA3ecD95a53F742707D53688FCafbBd072f33', '0xa0B595eEA6649eDF51AF68D59d7255FCAE6d6E1E', '0xD460Db4cFa021C42edeb7e555D904400dab65ECc', '0xFD7CEd6D5584f4bD7E7C22F4Cd3BC0f836ABdE10', '0x029eA4366cc7C75B7F5F5737752862cfAA9C2b0e', '0x2F79d8E24128A70E430D059AD7b88A87c2C1c9C7', '0x9fbEe47312A0022d28721BD816e62FEFf61113cF', '0x029eA4366cc7C75B7F5F5737752862cfAA9C2b0e', '0x68D300764059bAbD26B75DA1141f05a9ffb6Fbc0', '0x029eA4366cc7C75B7F5F5737752862cfAA9C2b0e', '0x29335Ee3eEE0EAcE4dbC3fC9e2b16BE0261CE653', '0x4a9aFfA9249F36fd0629f342c182A4e94A13C2e0', '0xC19BF99c1C21226b2CF01a37A4f5565D8E8A77aE', '0xAbD7e593043C61fE103B6e338204300Ca89C8b59', '0xAbD7e593043C61fE103B6e338204300Ca89C8b59', '0x5Fd8F7464c050EC0FB34223aaB544e13510812fa', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0xBdC33DfE580CE57D9bffF0d50C329aFDDF03de91', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x32bd2E979A422aBa8Ac9817d8c4e10f96e93cC73', '0x32bd2E979A422aBa8Ac9817d8c4e10f96e93cC73', '0x32bd2E979A422aBa8Ac9817d8c4e10f96e93cC73', '0xAbD7e593043C61fE103B6e338204300Ca89C8b59', '0x32bd2E979A422aBa8Ac9817d8c4e10f96e93cC73', '0x32bd2E979A422aBa8Ac9817d8c4e10f96e93cC73', '0x32bd2E979A422aBa8Ac9817d8c4e10f96e93cC73', '0x32bd2E979A422aBa8Ac9817d8c4e10f96e93cC73', '0x32bd2E979A422aBa8Ac9817d8c4e10f96e93cC73', '0x32bd2E979A422aBa8Ac9817d8c4e10f96e93cC73', '0xD460Db4cFa021C42edeb7e555D904400dab65ECc', '0xc5a786eafeFcF703C114558c443E4F17969D9573', '0x3eb2b2D6e85ae3012a1c7ee727bd8F477b42F032', '0xc5a786eafeFcF703C114558c443E4F17969D9573', '0xc5a786eafeFcF703C114558c443E4F17969D9573', '0xc5a786eafeFcF703C114558c443E4F17969D9573', '0x29335Ee3eEE0EAcE4dbC3fC9e2b16BE0261CE653', '0x6734898511c1c630E412De7Ef5A3e587568f2f33', '0x45C2654DBC83C0ffc969ad44c07094653e19c670', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0x2754F582dB29c16f1c87866f39472152dDB5f94d', '0x2754F582dB29c16f1c87866f39472152dDB5f94d', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x19674F4Be5b0321160391d573ACF329CEC016498', '0x19674F4Be5b0321160391d573ACF329CEC016498', '0x19674F4Be5b0321160391d573ACF329CEC016498', '0x19674F4Be5b0321160391d573ACF329CEC016498', '0x029b3A7B8F260d4Bd1FcD5162D9b442f1cAF3980', '0xD460Db4cFa021C42edeb7e555D904400dab65ECc', '0x9BA1Bcd88E99d6E1E03252A70A63FEa83Bf1208c', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x68D300764059bAbD26B75DA1141f05a9ffb6Fbc0', '0x68D300764059bAbD26B75DA1141f05a9ffb6Fbc0', '0xDa601243A54d54C67cFd31AA2FA9C97c4120c2CC', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0xeE9c910A6450c25D4A79ba396eD9c064A72B8944', '0x4c78E6eb3123230fA359F4A804bc4E765a19f5D1', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x029eA4366cc7C75B7F5F5737752862cfAA9C2b0e', '0xD460Db4cFa021C42edeb7e555D904400dab65ECc', '0xDB60aB8B4adc8a35D6A58A1FCF4bE7450E12F839', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x681Dd3df34855eBA17551Bdd2fa101CeE6Cfa432', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0xb8ab4f9DE4d7834bb2000F63e780d56a744C8527', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0xfC62DFf72f26DE129065C16Ef4afb55578aa1232', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x6aB3Db1FAEf5C5baE5d4BD327aD2d7da76d7f462', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0xeb9784F6A6e3d03466974Cb3a5a77c79afbA14e7', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x29335Ee3eEE0EAcE4dbC3fC9e2b16BE0261CE653', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0xFd7b03453A16201A2A48f909c744Eb071F075FE7', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x0142e59D7e0744e984aCa46Bbe9A7eF5C3Fa50ba', '0x40743d359E82783D5B227060B9C48a4037168148', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0xe8A2ba67A6a64F228d143877e2e2431828fF360A', '0x62b79600f59c44260c8025CA96CFC692f0895108', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0x29335Ee3eEE0EAcE4dbC3fC9e2b16BE0261CE653', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x29335Ee3eEE0EAcE4dbC3fC9e2b16BE0261CE653', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0xAbD7e593043C61fE103B6e338204300Ca89C8b59', '0xAbD7e593043C61fE103B6e338204300Ca89C8b59', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0xc5a786eafeFcF703C114558c443E4F17969D9573', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0xAEf690AD9Da7d54B880E3edC8E936518023086dD', '0x0aCaC72e2195695B39721387E5dC0ce70A33c09C', '0x052b4793d50d37FD3BFcBf93AAC9Cda6292F81Fa', '0x01eDE756a90dd9Dc930bD8E5ecF94547AD1E9a6F', '0x5d4340Fe80601877798a385CEa0a9ad7533f2852', '0x01eDE756a90dd9Dc930bD8E5ecF94547AD1E9a6F', '0x01eDE756a90dd9Dc930bD8E5ecF94547AD1E9a6F', '0x01eDE756a90dd9Dc930bD8E5ecF94547AD1E9a6F', '0xdb968A99AB065b42C1810fa3112B26fB05c4007a', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0x504899179BCB52101f72104D661d242b00175D9c', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0x4a9aFfA9249F36fd0629f342c182A4e94A13C2e0', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0x2762B964912Ca520C1fa77CE75c5BbD07268718e', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0x249fA3ecD95a53F742707D53688FCafbBd072f33', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0x5aF3BB452023c11c0a67DcD4BFeD2F0e5318921E', '0xb235B56b91eccb9DbdF811D7b5C45c363AcaE98D', '0x70B15A15D71CE5471Abb47d4cF414c3000E12254', '0x49D521EC667B76d77b43Fd05E435e6C09aAA841B'] | |
dests = ['0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x029eA4366cc7C75B7F5F5737752862cfAA9C2b0e', '0xC19BF99c1C21226b2CF01a37A4f5565D8E8A77aE', '0xeE9c910A6450c25D4A79ba396eD9c064A72B8944', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x01eDE756a90dd9Dc930bD8E5ecF94547AD1E9a6F', '0x9BA1Bcd88E99d6E1E03252A70A63FEa83Bf1208c', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x355e413eE561d71477306E09DF103A1650699238', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0xFD7CEd6D5584f4bD7E7C22F4Cd3BC0f836ABdE10', '0xDB60aB8B4adc8a35D6A58A1FCF4bE7450E12F839', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x29335Ee3eEE0EAcE4dbC3fC9e2b16BE0261CE653', '0xc5a786eafeFcF703C114558c443E4F17969D9573', '0x249fA3ecD95a53F742707D53688FCafbBd072f33', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0xD460Db4cFa021C42edeb7e555D904400dab65ECc', '0x5aF3BB452023c11c0a67DcD4BFeD2F0e5318921E', '0xa0B595eEA6649eDF51AF68D59d7255FCAE6d6E1E', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0xb235B56b91eccb9DbdF811D7b5C45c363AcaE98D', '0x3eb2b2D6e85ae3012a1c7ee727bd8F477b42F032', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x2F79d8E24128A70E430D059AD7b88A87c2C1c9C7', '0x9fbEe47312A0022d28721BD816e62FEFf61113cF', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x68D300764059bAbD26B75DA1141f05a9ffb6Fbc0', '0x0aCaC72e2195695B39721387E5dC0ce70A33c09C', '0x9BA1Bcd88E99d6E1E03252A70A63FEa83Bf1208c', '0x4a9aFfA9249F36fd0629f342c182A4e94A13C2e0', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0xAbD7e593043C61fE103B6e338204300Ca89C8b59', '0x4a9aFfA9249F36fd0629f342c182A4e94A13C2e0', '0x5Fd8F7464c050EC0FB34223aaB544e13510812fa', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0xBdC33DfE580CE57D9bffF0d50C329aFDDF03de91', '0x49D521EC667B76d77b43Fd05E435e6C09aAA841B', '0x32bd2E979A422aBa8Ac9817d8c4e10f96e93cC73', '0xc5a786eafeFcF703C114558c443E4F17969D9573', '0x29335Ee3eEE0EAcE4dbC3fC9e2b16BE0261CE653', '0xAbD7e593043C61fE103B6e338204300Ca89C8b59', '0x6734898511c1c630E412De7Ef5A3e587568f2f33', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0x9BA1Bcd88E99d6E1E03252A70A63FEa83Bf1208c', '0x01eDE756a90dd9Dc930bD8E5ecF94547AD1E9a6F', '0x45C2654DBC83C0ffc969ad44c07094653e19c670', '0xD460Db4cFa021C42edeb7e555D904400dab65ECc', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x3eb2b2D6e85ae3012a1c7ee727bd8F477b42F032', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x4a9aFfA9249F36fd0629f342c182A4e94A13C2e0', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x70B15A15D71CE5471Abb47d4cF414c3000E12254', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x2754F582dB29c16f1c87866f39472152dDB5f94d', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x19674F4Be5b0321160391d573ACF329CEC016498', '0x029b3A7B8F260d4Bd1FcD5162D9b442f1cAF3980', '0x01eDE756a90dd9Dc930bD8E5ecF94547AD1E9a6F', '0x9BA1Bcd88E99d6E1E03252A70A63FEa83Bf1208c', '0xD460Db4cFa021C42edeb7e555D904400dab65ECc', '0x4a9aFfA9249F36fd0629f342c182A4e94A13C2e0', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x68D300764059bAbD26B75DA1141f05a9ffb6Fbc0', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0xDa601243A54d54C67cFd31AA2FA9C97c4120c2CC', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0xeE9c910A6450c25D4A79ba396eD9c064A72B8944', '0x4c78E6eb3123230fA359F4A804bc4E765a19f5D1', '0xb235B56b91eccb9DbdF811D7b5C45c363AcaE98D', '0x029eA4366cc7C75B7F5F5737752862cfAA9C2b0e', '0xD460Db4cFa021C42edeb7e555D904400dab65ECc', '0xDB60aB8B4adc8a35D6A58A1FCF4bE7450E12F839', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x4a9aFfA9249F36fd0629f342c182A4e94A13C2e0', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x681Dd3df34855eBA17551Bdd2fa101CeE6Cfa432', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0xb8ab4f9DE4d7834bb2000F63e780d56a744C8527', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0xfC62DFf72f26DE129065C16Ef4afb55578aa1232', '0xb235B56b91eccb9DbdF811D7b5C45c363AcaE98D', '0x6aB3Db1FAEf5C5baE5d4BD327aD2d7da76d7f462', '0x0aCaC72e2195695B39721387E5dC0ce70A33c09C', '0xeb9784F6A6e3d03466974Cb3a5a77c79afbA14e7', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0x29335Ee3eEE0EAcE4dbC3fC9e2b16BE0261CE653', '0x2762B964912Ca520C1fa77CE75c5BbD07268718e', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0xFd7b03453A16201A2A48f909c744Eb071F075FE7', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x40743d359E82783D5B227060B9C48a4037168148', '0x0142e59D7e0744e984aCa46Bbe9A7eF5C3Fa50ba', '0x40743d359E82783D5B227060B9C48a4037168148', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0xe8A2ba67A6a64F228d143877e2e2431828fF360A', '0x62b79600f59c44260c8025CA96CFC692f0895108', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x92f09A17160B0eD3245d0b82e12452Ff12468782', '0x29335Ee3eEE0EAcE4dbC3fC9e2b16BE0261CE653', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0x4a9aFfA9249F36fd0629f342c182A4e94A13C2e0', '0x29335Ee3eEE0EAcE4dbC3fC9e2b16BE0261CE653', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0xDE374ece6fA50e781E81Aac78e811b33D16912c7', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0xAbD7e593043C61fE103B6e338204300Ca89C8b59', '0x4a9aFfA9249F36fd0629f342c182A4e94A13C2e0', '0x4a9aFfA9249F36fd0629f342c182A4e94A13C2e0', '0xc5a786eafeFcF703C114558c443E4F17969D9573', '0x2762B964912Ca520C1fa77CE75c5BbD07268718e', '0xAEf690AD9Da7d54B880E3edC8E936518023086dD', '0x0aCaC72e2195695B39721387E5dC0ce70A33c09C', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x5d4340Fe80601877798a385CEa0a9ad7533f2852', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x49D521EC667B76d77b43Fd05E435e6C09aAA841B', '0xdb968A99AB065b42C1810fa3112B26fB05c4007a', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x504899179BCB52101f72104D661d242b00175D9c', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x4a9aFfA9249F36fd0629f342c182A4e94A13C2e0', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x2762B964912Ca520C1fa77CE75c5BbD07268718e', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x249fA3ecD95a53F742707D53688FCafbBd072f33', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0xb235B56b91eccb9DbdF811D7b5C45c363AcaE98D', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x42cEDde51198D1773590311E2A340DC06B24cB37', '0x42cEDde51198D1773590311E2A340DC06B24cB37'] | |
wads = [131618488617207601738, 846776635391705824608, 159679832807320061560, 253238539814261443100, 9999999999999999999, 9693758322635287747, 258263375868356736172, 1718971887517560816307, 159852437963436896272, 306651393430141667429, 296957535107506379683, 131247413965244842958, 148816070532356194251, 45563194444443499477, 127593766288953437103, 26620684625652890934, 306651393430141667429, 131247413965244842958, 40787362885138549246, 22810960142782065188, 22810960142782065188, 160205087062214182049, 254926178366484503649, 92516062408253686043, 216139692122422779021, 22810960142782065188, 216139692122422779021, 254926078366484503650, 45563194444443499477, 89308733749529392886, 89308733749529392886, 89308733749529392886, 9959339550595116059, 7384776909833846993, 173156860733396936581, 40787362885138549246, 9271488443236392511, 159679832807320061560, 136019215400545406305, 6745635541740805615, 6745635541740805615, 4999999999999999999, 3633977148967358320, 3633977148967358320, 1199900820096773161214, 146338404507377862741, 171508619292209507605, 31161236156390955812, 40385115217886999999, 280187619905091993851, 139880214431958214551, 64856789062595302046, 147053395324131272937, 6999900000000000000, 211914641417018051671, 6999999999999999999, 39225315063658912652, 294151393430143416302, 40756035665419935393, 18892420944558999999, 2766577448384302155, 171508619292209507605, 40385115217886999999, 147053395324131272937, 180998936530029198966, 77905392714021790000, 21736894850319498575, 81356648965687910391, 6736904850319498576, 14999989999999999999, 786708704982000010974, 201050414977718702569, 312278472947576086377, 131247513965244842957, 142132303091460379071, 201050414977718702569, 142132303091460379071, 613302586860283334860, 13959239550595500431, 4574462640761755645, 11959339550595013852, 11959339550595013852, 202395229761236244501, 198832998617950076351, 53982851185303879578, 76945935465091978437, 106381065189218625054, 106381065189218625054, 165061114106400099025, 175830882567423509394, 175830882567423509394, 303424648856376946497, 40056622405685130672, 306651393430141667429, 129020077572438999999, 129020077572438999999, 106033264887062999999, 106033264887062999999, 65784075228665645803, 65784075228665645803, 5686678314989411714, 5686678314989411714, 6500250000002375556, 6500250000002375556, 204666591705325104521, 67726950636427303092, 54806382185483566252, 306651343430141667429, 12889877457557879180, 12889877457557879180, 23346276340102200907, 21692552680204609013, 21692552680204609013, 45038829020306809920, 26740984068139699999, 26740984068139699999, 26740984068139699999, 140732580928194082509, 54806482185483566251, 139908949928014395836, 67727050636427303091, 306651393430141667429, 306651393430141667429, 293881669051075827255, 210579185375070852271, 46402239202864198125, 22932105850011047766, 31161236156390955812, 59648456609978935392, 104346511995334647934, 62964702657905741292, 62964702657905741292, 76036157882728999999, 280030508804488721387, 62971601714830453045, 62971601714830453045, 260148563216121585173, 5627079517434418948, 306651393430141667429, 306651393430141667429, 293881669051075827255, 170602040518057044354, 150205087062214182050, 150205087062214182050, 9999999999999999999, 581218555534100638342, 139908949928014395836, 299061844108832610022, 280187619905091993851, 280187619905091993851, 30810286729008865784, 3254264458259194383, 92516062408253686043, 480820894948560735921, 171508619292209507605, 9261056666401777268] | |
''' | |
tokenOwner_ = [] | |
srcs_ = [] | |
dests_ = [] | |
wads_ = [] | |
for i in range(len(tokenOwner)): | |
if tokenOwner[i] == dests[i]: | |
tokenOwner_.append(tokenOwner[i]) | |
srcs_.append(srcs[i]) | |
dests_.append(dests[i]) | |
wads_.append(wads[i]) | |
for i in range(len(tokenOwner)): | |
if tokenOwner[i] == srcs[i]: | |
tokenOwner_.append(tokenOwner[i]) | |
srcs_.append(srcs[i]) | |
dests_.append(dests[i]) | |
wads_.append(wads[i]) | |
elif not tokenOwner[i] == dests[i]: | |
tokenOwner_.insert(0,tokenOwner[i]) | |
srcs_.insert(0,srcs[i]) | |
dests_.insert(0,dests[i]) | |
wads_.insert(0,wads[i]) | |
w3 = web3.Web3(web3.HTTPProvider('https://rpc.gnosischain.com')) | |
#w3 = web3.Web3(web3.HTTPProvider('http://nethermind-xdai.dappnode:8545')) | |
abi = [{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"uint256","name":"_inflation","internalType":"uint256"},{"type":"uint256","name":"_period","internalType":"uint256"},{"type":"string","name":"_symbol","internalType":"string"},{"type":"string","name":"_name","internalType":"string"},{"type":"uint256","name":"_signupBonus","internalType":"uint256"},{"type":"uint256","name":"_initialIssuance","internalType":"uint256"},{"type":"uint256","name":"_timeout","internalType":"uint256"}]},{"type":"event","name":"HubTransfer","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"event","name":"OrganizationSignup","inputs":[{"type":"address","name":"organization","internalType":"address","indexed":True}],"anonymous":False},{"type":"event","name":"Signup","inputs":[{"type":"address","name":"user","internalType":"address","indexed":True},{"type":"address","name":"token","internalType":"address","indexed":False}],"anonymous":False},{"type":"event","name":"Trust","inputs":[{"type":"address","name":"canSendTo","internalType":"address","indexed":True},{"type":"address","name":"user","internalType":"address","indexed":True},{"type":"uint256","name":"limit","internalType":"uint256","indexed":False}],"anonymous":False},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"checkSendLimit","inputs":[{"type":"address","name":"tokenOwner","internalType":"address"},{"type":"address","name":"src","internalType":"address"},{"type":"address","name":"dest","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"deployedAt","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"divisor","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"inflate","inputs":[{"type":"uint256","name":"_initial","internalType":"uint256"},{"type":"uint256","name":"_periods","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"inflation","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"initialIssuance","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"issuance","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"issuanceByStep","inputs":[{"type":"uint256","name":"_periods","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"limits","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"organizationSignup","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"organizations","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"period","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"periods","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"pow","inputs":[{"type":"uint256","name":"base","internalType":"uint256"},{"type":"uint256","name":"exponent","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"seen","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"signup","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"signupBonus","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"timeout","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"tokenToUser","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferThrough","inputs":[{"type":"address[]","name":"tokenOwners","internalType":"address[]"},{"type":"address[]","name":"srcs","internalType":"address[]"},{"type":"address[]","name":"dests","internalType":"address[]"},{"type":"uint256[]","name":"wads","internalType":"uint256[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"trust","inputs":[{"type":"address","name":"user","internalType":"address"},{"type":"uint256","name":"limit","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract Token"}],"name":"userToToken","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"seen","internalType":"bool"},{"type":"uint256","name":"sent","internalType":"uint256"},{"type":"uint256","name":"received","internalType":"uint256"}],"name":"validation","inputs":[{"type":"address","name":"","internalType":"address"}]}] | |
address = "0x29b9a7fBb8995b2423a71cC17cf9810798F6C543" #hub | |
hub = w3.eth.contract(address=address, abi=abi) | |
#print(w3.isConnected()) | |
#print(w3.eth.blockNumber) | |
#print(tokenOwner_) | |
#print(srcs_) | |
#print(dests_) | |
#print(wads_) | |
try: | |
print(hub.functions.transferThrough(tokenOwner, srcs, dests, wads).call({'from': from_})) | |
except: | |
print("An exception occurred") | |
try: | |
print(hub.functions.transferThrough(tokenOwner_, srcs_, dests_, wads_).call({'from': from_})) | |
except: | |
print("An exception occurred") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment