Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/solve_token_list_parsing_issue #338

Merged
merged 1 commit into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyinjective/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3437,7 +3437,7 @@ async def _tokens_from_official_lists(

for token in tokens:
if token.denom is not None and token.denom != "" and token.denom not in tokens_by_denom:
unique_symbol = token.symbol
unique_symbol = token.denom
for symbol_candidate in [token.symbol, token.name]:
if symbol_candidate not in tokens_by_symbol:
unique_symbol = symbol_candidate
Expand Down
158 changes: 133 additions & 25 deletions pyinjective/denoms_devnet.ini
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,12 @@ peggy_denom = inj1mhmln627samtkuwe459ylq763r4n7n69gxxc9x
decimals = 18

[ASTRO]
peggy_denom = ibc/EBD5A24C554198EBAF44979C5B4D2C2D312E6EBAB71962C92F735499C7575839
peggy_denom = ibc/E8AC6B792CDE60AB208CA060CA010A3881F682A7307F624347AB71B6A0B0BF89
decimals = 6

[ATOM]
peggy_denom = peggy0x8D983cb9388EaC77af0474fA441C4815500Cb7BB
decimals = 6
peggy_denom = factory/inj17vytdwqczqz72j65saukplrktd4gyfme5agf6c/atom
decimals = 8

[AUTISM]
peggy_denom = factory/inj14lf8xm6fcvlggpa7guxzjqwjmtr24gnvf56hvz/autism
Expand Down Expand Up @@ -408,8 +408,8 @@ peggy_denom = peggy0xA4426666addBE8c4985377d36683D17FB40c31Be
decimals = 6

[BINJ]
peggy_denom = factory/inj1lhr06p7k3rdgk0knw5hfsde3fj87g2aq4e9a52/binj
decimals = 6
peggy_denom = factory/inj10q36ygr0pkz7ezajcnjd2f0tat5n737yg6g6d5/binj
decimals = 18

[BITS]
peggy_denom = factory/inj10gcvfpnn4932kzk56h5kp77mrfdqas8z63qr7n/bits
Expand Down Expand Up @@ -524,7 +524,7 @@ peggy_denom = factory/inj1eucxlpy6c387g5wrn4ee7ppshdzg3rh4t50ahf/cock
decimals = 6

[COKE]
peggy_denom = inj14eaxewvy7a3fk948c3g3qham98mcqpm8v5y0dp
peggy_denom = factory/inj158g7dfclyg9rr6u4ddxg9d2afwevq5d79g2tm6/coke
decimals = 6

[COMP]
Expand Down Expand Up @@ -580,7 +580,7 @@ peggy_denom = factory/inj1any4rpwq7r850u6feajg5payvhwpunu9cxqevc/dojo
decimals = 6

[DOT]
peggy_denom = peggy0xFfFFfFff1FcaCBd218EDc0EbA20Fc2308C778080
peggy_denom = ibc/624BA9DD171915A2B9EA70F69638B2CEA179959850C1A586F6C485498F29EDD4
decimals = 10

[DREAM]
Expand All @@ -600,7 +600,7 @@ peggy_denom = inj1zdj9kqnknztl2xclm5ssv25yre09f8908d4923
decimals = 18

[ELON]
peggy_denom = peggy0x43123e1d077351267113ada8bE85A058f5D492De
peggy_denom = inj10pqutl0av9ltrw9jq8d3wjwjayvz76jhfcfza0
decimals = 6

[ENA]
Expand Down Expand Up @@ -728,7 +728,7 @@ peggy_denom = factory/inj17g4j3geupy762u0wrewqwprvtzar7k5et2zqsh/incel
decimals = 6

[INJ]
peggy_denom = peggy0xe28b3b32b6c345a34ff64674606124dd5aceca30
peggy_denom = inj
decimals = 18

[INJECT]
Expand Down Expand Up @@ -812,7 +812,7 @@ peggy_denom = factory/inj1h33jkaqqalcy3wf8um6ewk4hxmfwf8uern470k/kinja
decimals = 6

[KIRA]
peggy_denom = factory/inj1xy3kvlr4q4wdd6lrelsrw2fk2ged0any44hhwq/KIRA
peggy_denom = factory/inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk/kira
decimals = 6

[KPEPE]
Expand Down Expand Up @@ -840,7 +840,7 @@ peggy_denom = peggy0x514910771AF9Ca656af840dff83E8264EcF986CA
decimals = 18

[LIOR]
peggy_denom = factory/inj1tgphgjqsz8fupkfjx6cy275e3s0l8xfu6rd6jh/lior
peggy_denom = factory/inj1cjus5ragdkvpmt627fw7wkj2ydsra9s0vap4zx/lior
decimals = 6

[LUNA]
Expand Down Expand Up @@ -876,7 +876,7 @@ peggy_denom = factory/inj1z08usf75ecfp3cqtwey6gx7nr79s3agal3k8xf/mila
decimals = 6

[MILK]
peggy_denom = factory/inj1yg24mn8enl5e6v4jl2j6cce47mx4vyd6e8dpck/milk
peggy_denom = factory/inj1fpl63h7at2epr55yn5svmqkq4fkye32vmxq8ry/milk
decimals = 6

[MOONIFY]
Expand Down Expand Up @@ -928,7 +928,7 @@ peggy_denom = inj1r9h59ke0a77zkaarr4tuq25r3lt9za4r2mgyf4
decimals = 6

[NOBI]
peggy_denom = factory/inj1xawhm3d8lf9n0rqdljpal033yackja3dt0kvp0/nobi
peggy_denom = factory/inj1pjp9q2ycs7eaav8d5ny5956k5m6t0alpl33xd6/nobi
decimals = 6

[NOBITCHES]
Expand Down Expand Up @@ -1052,7 +1052,7 @@ peggy_denom = inj1tjcf9497fwmrnk22jfu5hsdq82qshga54ajvzy
decimals = 6

[PYUSD]
peggy_denom = peggy0x6c3ea9036406852006290770BEdFcAbA0e23A0e8
peggy_denom = ibc/4367FD29E33CDF0487219CD3E88D8C432BD4C2776C0C1034FF05A3E6451B8B11
decimals = 6

[Phuc]
Expand All @@ -1076,8 +1076,8 @@ peggy_denom = inj1wmrzttj7ms7glplek348vedx4v2ls467n539xt
decimals = 18

[QAT]
peggy_denom = peggy0x5Ac3A2F6205a481C7a8984E4291E450e52cd0369
decimals = 18
peggy_denom = inj1m4g54lg2mhhm7a4h3ms5xlyecafhe4macgsuen
decimals = 8

[QNT]
peggy_denom = peggy0x4a220e6096b25eadb88358cb44068a3248254675
Expand Down Expand Up @@ -1140,7 +1140,7 @@ peggy_denom = inj1300xcg9naqy00fujsr9r8alwk7dh65uqu87xm8
decimals = 18

[SHURIKEN]
peggy_denom = factory/inj1z426atp9k68uv49kaam7m0vnehw5fulxkyvde0/shuriken
peggy_denom = factory/inj1gflhshg8yrk8rrr3sgswhmsnygw9ghzdsn05a0/shuriken
decimals = 6

[SKIPBIDIDOBDOBDOBYESYESYESYES]
Expand Down Expand Up @@ -1324,7 +1324,7 @@ peggy_denom = inj1q6zlut7gtkzknkk773jecujwsdkgq882akqksk
decimals = 6

[USDC]
peggy_denom = ibc/2CBC2EA121AE42563B08028466F37B600F2D7D4282342DE938283CC3FB2BC00E
peggy_denom = factory/inj17vytdwqczqz72j65saukplrktd4gyfme5agf6c/usdc
decimals = 6

[USDC-MPL]
Expand All @@ -1340,7 +1340,7 @@ peggy_denom = inj1dngqzz6wphf07fkdam7dn55t8t3r6qenewy9zu
decimals = 6

[USDCet]
peggy_denom = inj12sqy9uzzl3h3vqxam7sz9f0yvmhampcgesh3qw
peggy_denom = factory/inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk/inj1q6zlut7gtkzknkk773jecujwsdkgq882akqksk
decimals = 6

[USDCgateway]
Expand Down Expand Up @@ -1408,8 +1408,8 @@ peggy_denom = ibc/C643B73073217F778DD7BDCB74C7EBCEF8E7EF81614FFA3C1C31861221AA9C
decimals = 0

[Unknown]
peggy_denom = ibc/88C49ADE2E583244058E4786C9FAE1AC431D55289EE31D59DDCC45201A60B82E
decimals = 0
peggy_denom = ibc/078184C66B073F0464BA0BBD736DD601A0C637F9C42B592DDA5D6A95289D99A4
decimals = 6

[VATRENI]
peggy_denom = inj1tn457ed2gg5vj2cur5khjjw63w73y3xhyhtaay
Expand Down Expand Up @@ -1579,10 +1579,26 @@ decimals = 8
peggy_denom = factory/inj153e2w8u77h4ytrhgry846k5t8n9uea8xtal6d7/lp
decimals = 0

[factory/inj1jfuyujpvvkxq4566r3z3tv3jdy29pqra5ln0yk/kira]
peggy_denom = factory/inj1jfuyujpvvkxq4566r3z3tv3jdy29pqra5ln0yk/kira
decimals = 6

[factory/inj1lhr06p7k3rdgk0knw5hfsde3fj87g2aq4e9a52/binj]
peggy_denom = factory/inj1lhr06p7k3rdgk0knw5hfsde3fj87g2aq4e9a52/binj
decimals = 6

[factory/inj1lv0mhwcu3y4p9av5nafct8j7y4ag6lmlfuxuy3/lp]
peggy_denom = factory/inj1lv0mhwcu3y4p9av5nafct8j7y4ag6lmlfuxuy3/lp
decimals = 0

[factory/inj1sg3yjgjlwhtrepeuusj4jwv209rh6cmk882cw3/lior]
peggy_denom = factory/inj1sg3yjgjlwhtrepeuusj4jwv209rh6cmk882cw3/lior
decimals = 6

[factory/inj1tgphgjqsz8fupkfjx6cy275e3s0l8xfu6rd6jh/lior]
peggy_denom = factory/inj1tgphgjqsz8fupkfjx6cy275e3s0l8xfu6rd6jh/lior
decimals = 6

[factory/inj1uukt3kqela4vsllvrqnrgllkna5wn3cm588w6k/inj1kwdranvwf6vl2grh99layugwdnph6um2e8k25g]
peggy_denom = factory/inj1uukt3kqela4vsllvrqnrgllkna5wn3cm588w6k/inj1kwdranvwf6vl2grh99layugwdnph6um2e8k25g
decimals = 0
Expand All @@ -1607,10 +1623,58 @@ decimals = 0
peggy_denom = factory/inj1wug8sewp6cedgkmrmvhl3lf3tulagm9h5uhctd/lpinj1w798gp0zqv3s9hjl3jlnwxtwhykga6rnx4llty
decimals = 0

[factory/inj1xawhm3d8lf9n0rqdljpal033yackja3dt0kvp0/nobi]
peggy_denom = factory/inj1xawhm3d8lf9n0rqdljpal033yackja3dt0kvp0/nobi
decimals = 6

[factory/inj1xy3kvlr4q4wdd6lrelsrw2fk2ged0any44hhwq/KIRA]
peggy_denom = factory/inj1xy3kvlr4q4wdd6lrelsrw2fk2ged0any44hhwq/KIRA
decimals = 6

[factory/inj1yg24mn8enl5e6v4jl2j6cce47mx4vyd6e8dpck/milk]
peggy_denom = factory/inj1yg24mn8enl5e6v4jl2j6cce47mx4vyd6e8dpck/milk
decimals = 6

[factory/inj1z426atp9k68uv49kaam7m0vnehw5fulxkyvde0/shuriken]
peggy_denom = factory/inj1z426atp9k68uv49kaam7m0vnehw5fulxkyvde0/shuriken
decimals = 6

[hINJ]
peggy_denom = inj18luqttqyckgpddndh8hvaq25d5nfwjc78m56lc
decimals = 18

[ibc/2CBC2EA121AE42563B08028466F37B600F2D7D4282342DE938283CC3FB2BC00E]
peggy_denom = ibc/2CBC2EA121AE42563B08028466F37B600F2D7D4282342DE938283CC3FB2BC00E
decimals = 6

[ibc/4457C4FE143DA253CBBE998681F090B51F67E0A6AFDC8D9347516DB519712C2F]
peggy_denom = ibc/4457C4FE143DA253CBBE998681F090B51F67E0A6AFDC8D9347516DB519712C2F
decimals = 0

[ibc/88C49ADE2E583244058E4786C9FAE1AC431D55289EE31D59DDCC45201A60B82E]
peggy_denom = ibc/88C49ADE2E583244058E4786C9FAE1AC431D55289EE31D59DDCC45201A60B82E
decimals = 0

[ibc/EBD5A24C554198EBAF44979C5B4D2C2D312E6EBAB71962C92F735499C7575839]
peggy_denom = ibc/EBD5A24C554198EBAF44979C5B4D2C2D312E6EBAB71962C92F735499C7575839
decimals = 6

[inj12sqy9uzzl3h3vqxam7sz9f0yvmhampcgesh3qw]
peggy_denom = inj12sqy9uzzl3h3vqxam7sz9f0yvmhampcgesh3qw
decimals = 6

[inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku]
peggy_denom = inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku
decimals = 18

[inj14eaxewvy7a3fk948c3g3qham98mcqpm8v5y0dp]
peggy_denom = inj14eaxewvy7a3fk948c3g3qham98mcqpm8v5y0dp
decimals = 6

[inj1plsk58sxqjw9828aqzeskmc8xy9eu5kppw3jg4]
peggy_denom = inj1plsk58sxqjw9828aqzeskmc8xy9eu5kppw3jg4
decimals = 8

[lootbox1]
peggy_denom = factory/inj1llr45x92t7jrqtxvc02gpkcqhqr82dvyzkr4mz/lootbox1
decimals = 0
Expand All @@ -1635,6 +1699,46 @@ decimals = 6
peggy_denom = inj1kehk5nvreklhylx22p3x0yjydfsz9fv3fvg5xt
decimals = 18

[peggy0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599]
peggy_denom = peggy0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599
decimals = 8

[peggy0x43123e1d077351267113ada8bE85A058f5D492De]
peggy_denom = peggy0x43123e1d077351267113ada8bE85A058f5D492De
decimals = 6

[peggy0x44C21afAaF20c270EBbF5914Cfc3b5022173FEB7]
peggy_denom = peggy0x44C21afAaF20c270EBbF5914Cfc3b5022173FEB7
decimals = 0

[peggy0x5Ac3A2F6205a481C7a8984E4291E450e52cd0369]
peggy_denom = peggy0x5Ac3A2F6205a481C7a8984E4291E450e52cd0369
decimals = 18

[peggy0x6c3ea9036406852006290770BEdFcAbA0e23A0e8]
peggy_denom = peggy0x6c3ea9036406852006290770BEdFcAbA0e23A0e8
decimals = 6

[peggy0x8D983cb9388EaC77af0474fA441C4815500Cb7BB]
peggy_denom = peggy0x8D983cb9388EaC77af0474fA441C4815500Cb7BB
decimals = 6

[peggy0xBe8d71D26525440A03311cc7fa372262c5354A3c]
peggy_denom = peggy0xBe8d71D26525440A03311cc7fa372262c5354A3c
decimals = 18

[peggy0xFfFFfFff1FcaCBd218EDc0EbA20Fc2308C778080]
peggy_denom = peggy0xFfFFfFff1FcaCBd218EDc0EbA20Fc2308C778080
decimals = 10

[peggy0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2]
peggy_denom = peggy0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
decimals = 18

[peggy0xe28b3b32b6c345a34ff64674606124dd5aceca30]
peggy_denom = peggy0xe28b3b32b6c345a34ff64674606124dd5aceca30
decimals = 18

[proj]
peggy_denom = proj
decimals = 18
Expand Down Expand Up @@ -1731,13 +1835,17 @@ decimals = 18
peggy_denom = peggy0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84
decimals = 18

[unknown]
peggy_denom = unknown
decimals = 0

[wBTC]
peggy_denom = peggy0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599
decimals = 8
peggy_denom = factory/inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk/inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku
decimals = 18

[wETH]
peggy_denom = peggy0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
decimals = 18
peggy_denom = factory/inj17vytdwqczqz72j65saukplrktd4gyfme5agf6c/weth
decimals = 8

[wUSDM]
peggy_denom = peggy0x57F5E098CaD7A3D1Eed53991D4d66C45C9AF7812
Expand Down
Loading
Loading