From 23e4e72ba14aa08cd9f172bbd06aa954d7675e68 Mon Sep 17 00:00:00 2001 From: bretep <717695-bretep@users.noreply.gitlab.com> Date: Mon, 12 Aug 2024 00:45:35 -0700 Subject: [PATCH] Add and update PulseChain Networks --- glyphs/chain_943_64px.gif | Bin 0 -> 596 bytes icons/flex_app_chain_369.gif | Bin 0 -> 1270 bytes icons/flex_app_chain_943.gif | Bin 0 -> 1270 bytes icons/nanos_app_chain_369.gif | Bin 0 -> 132 bytes icons/nanos_app_chain_943.gif | Bin 0 -> 132 bytes icons/nanox_app_chain_369.gif | Bin 0 -> 76 bytes icons/nanox_app_chain_943.gif | Bin 0 -> 76 bytes icons/stax_app_chain_369.gif | Bin 0 -> 757 bytes icons/stax_app_chain_943.gif | Bin 0 -> 757 bytes makefile_conf/chain/pulsechain.mk | 10 ++++++++++ makefile_conf/chain/pulsechaintestnet.mk | 10 ++++++++++ src/network.c | 1 + 12 files changed, 21 insertions(+) create mode 100644 glyphs/chain_943_64px.gif create mode 100644 icons/flex_app_chain_369.gif create mode 100644 icons/flex_app_chain_943.gif create mode 100644 icons/nanos_app_chain_369.gif create mode 100644 icons/nanos_app_chain_943.gif create mode 100644 icons/nanox_app_chain_369.gif create mode 100644 icons/nanox_app_chain_943.gif create mode 100644 icons/stax_app_chain_369.gif create mode 100644 icons/stax_app_chain_943.gif create mode 100644 makefile_conf/chain/pulsechain.mk create mode 100644 makefile_conf/chain/pulsechaintestnet.mk diff --git a/glyphs/chain_943_64px.gif b/glyphs/chain_943_64px.gif new file mode 100644 index 0000000000000000000000000000000000000000..2832ecbebab20770bd975d263bfebede7d3b501c GIT binary patch literal 596 zcmV-a0;~N;Nk%w1VL$*t0J8u9BqStIP*6ZXKyYwyU|?Vn5D?$r-|z45zrVkbkdUvh zug}lVpP!$AfPer10RR90A^8LV00000EC2ui06+jh000F4@X1N5y*TU5yZ>M)j$~<` zXv!T-8oW-O4*-V?J>s9y8QNRRXF{;c5(s`6xLmSR;L?;(WYOG0;NOlz6zfg`5zyJRL1}H)S1OPiO!v%Bz literal 0 HcmV?d00001 diff --git a/icons/flex_app_chain_369.gif b/icons/flex_app_chain_369.gif new file mode 100644 index 0000000000000000000000000000000000000000..00cce19b77c780efa6187dac9ec5863eab80196a GIT binary patch literal 1270 zcmeH`{V(GO9LGQ3Z`;!+RlVwYT-&d4bu>o_y;uzAsb(JLX_J$%$PTfjx5mQ+X%%I} zdHUh(m$mcMd59Y&2%_4fvqLj6F4?B)sbRuAg!8yv_BZUez5jt%@_OYRDT)w2%H#nL z&H!$2Zvo)u=H~kP`s(WH^78WH;^O@L{Os)P^z`)PvfUw6?aky1Kfuva-CqY&04d7Z(>67Ut&W zW@l$-W@hwyy-uf_o}SifwNq15larGZ6BFa(<6~oEqoboEBO}AZ!$U(ugM)(u0|Wj2 z{e69Xy}i9XJw4ss-DdQB_q{Sy?HU%gf8lWinY=Sy^dmX-P>*QBhH0VPQc*L4JO|L?RK3#d&#oxw*MH zIXT(c+3D%&X=!Pxsi`R`DapyniHV5`2?=p=aj~(nk&%%R5fMQ_L4kpR0RaL2{{Ftc zz5;>3$H&Lp+ndkldwP0$czE!5Ja>0@H#av|S62+f*lf0oi;JV9Ba6kdv$JC|nRGhc z#>R$5qfx0;3WY)@lSw2Jkw~<%vLX-&csw45!=WgOAjrRI{;Bi-{yPKQw|D|T4S2mn zy!!+YZvi1XN4->P<;1%Wo)})LbPBp_v|g4~{i@dfAwz_PnuA$L=r_(HL6(aAp0&y2 zr>6HEo(HGRG2dY3idNx1U8?Trc)@%ozVo#u#GM3wV#i{W@#CLE7@(PQFh%R`3EmJv zX{ImJD0a|93OC6^lIFeg1WN=dg6_s!n^@e6RvA+mg(zbTA^c*^YYAk&Xw8Nx0}9aw ze^jga;43j<0fX@(gd>EzGA4D%?{i}n_ruapy8e)}8c87e6^yn=c&R#!_Cu_7RD83- z+JNW9bAS!uIQvgIR*1BZ_Ap~4_&W3s1+Z#Fib++-9aO!9a4@i^F}f31AoHn~&3^_N zkRg&j=Ha4{VElcSoTE8WplFBfFI4#LM--l#vUDLy8b1P%sx>%>OA-fjeE*Wtag~~+ zSNAZI)(*Tl*pd_Zt@nyOFgx`zZoDw*6X86!0kREx!s7?=LkbC_VwF)qZ4@SQIpAF$ z6DtfulG$Jk|EQR`9nTbg)`;Wse}_iYc_F#UiLspVg(yRWpZym5a@`i3|3vP)#LPRO dRDs^K^PTkKk&fc@I>(}_cJH=)PbT0Y@Nau-gI)jt literal 0 HcmV?d00001 diff --git a/icons/flex_app_chain_943.gif b/icons/flex_app_chain_943.gif new file mode 100644 index 0000000000000000000000000000000000000000..00cce19b77c780efa6187dac9ec5863eab80196a GIT binary patch literal 1270 zcmeH`{V(GO9LGQ3Z`;!+RlVwYT-&d4bu>o_y;uzAsb(JLX_J$%$PTfjx5mQ+X%%I} zdHUh(m$mcMd59Y&2%_4fvqLj6F4?B)sbRuAg!8yv_BZUez5jt%@_OYRDT)w2%H#nL z&H!$2Zvo)u=H~kP`s(WH^78WH;^O@L{Os)P^z`)PvfUw6?aky1Kfuva-CqY&04d7Z(>67Ut&W zW@l$-W@hwyy-uf_o}SifwNq15larGZ6BFa(<6~oEqoboEBO}AZ!$U(ugM)(u0|Wj2 z{e69Xy}i9XJw4ss-DdQB_q{Sy?HU%gf8lWinY=Sy^dmX-P>*QBhH0VPQc*L4JO|L?RK3#d&#oxw*MH zIXT(c+3D%&X=!Pxsi`R`DapyniHV5`2?=p=aj~(nk&%%R5fMQ_L4kpR0RaL2{{Ftc zz5;>3$H&Lp+ndkldwP0$czE!5Ja>0@H#av|S62+f*lf0oi;JV9Ba6kdv$JC|nRGhc z#>R$5qfx0;3WY)@lSw2Jkw~<%vLX-&csw45!=WgOAjrRI{;Bi-{yPKQw|D|T4S2mn zy!!+YZvi1XN4->P<;1%Wo)})LbPBp_v|g4~{i@dfAwz_PnuA$L=r_(HL6(aAp0&y2 zr>6HEo(HGRG2dY3idNx1U8?Trc)@%ozVo#u#GM3wV#i{W@#CLE7@(PQFh%R`3EmJv zX{ImJD0a|93OC6^lIFeg1WN=dg6_s!n^@e6RvA+mg(zbTA^c*^YYAk&Xw8Nx0}9aw ze^jga;43j<0fX@(gd>EzGA4D%?{i}n_ruapy8e)}8c87e6^yn=c&R#!_Cu_7RD83- z+JNW9bAS!uIQvgIR*1BZ_Ap~4_&W3s1+Z#Fib++-9aO!9a4@i^F}f31AoHn~&3^_N zkRg&j=Ha4{VElcSoTE8WplFBfFI4#LM--l#vUDLy8b1P%sx>%>OA-fjeE*Wtag~~+ zSNAZI)(*Tl*pd_Zt@nyOFgx`zZoDw*6X86!0kREx!s7?=LkbC_VwF)qZ4@SQIpAF$ z6DtfulG$Jk|EQR`9nTbg)`;Wse}_iYc_F#UiLspVg(yRWpZym5a@`i3|3vP)#LPRO dRDs^K^PTkKk&fc@I>(}_cJH=)PbT0Y@Nau-gI)jt literal 0 HcmV?d00001 diff --git a/icons/nanos_app_chain_369.gif b/icons/nanos_app_chain_369.gif new file mode 100644 index 0000000000000000000000000000000000000000..3787771135a42100cb005e07742db65097e434b7 GIT binary patch literal 132 zcmZ?wbhEHb6krfw;9y`-{K>+?#lXOz1H?cP0fq%Y`v3p`98L_(95Nmo794EmU}lIo zVUXzD#=vJ5!m%;IwM(4U?uf<2gd_djnpG@60~b1WD0=qonGvXbdV;$Ap(!0k3(wAG iXJ%qh{3q(0n3Aeco>`Ki5S(0;nwl4q@1B{)U=0A`%_rFa literal 0 HcmV?d00001 diff --git a/icons/nanos_app_chain_943.gif b/icons/nanos_app_chain_943.gif new file mode 100644 index 0000000000000000000000000000000000000000..3787771135a42100cb005e07742db65097e434b7 GIT binary patch literal 132 zcmZ?wbhEHb6krfw;9y`-{K>+?#lXOz1H?cP0fq%Y`v3p`98L_(95Nmo794EmU}lIo zVUXzD#=vJ5!m%;IwM(4U?uf<2gd_djnpG@60~b1WD0=qonGvXbdV;$Ap(!0k3(wAG iXJ%qh{3q(0n3Aeco>`Ki5S(0;nwl4q@1B{)U=0A`%_rFa literal 0 HcmV?d00001 diff --git a/icons/nanox_app_chain_369.gif b/icons/nanox_app_chain_369.gif new file mode 100644 index 0000000000000000000000000000000000000000..5a651f8f528e5294b854a25b0066e6eebae5ba70 GIT binary patch literal 76 zcmZ?wbhEHb7l=9#^6{>1{ d@g8fXn0cvi+0@z7L*Kld6y0;FKZt?B8UPe^7vul{ literal 0 HcmV?d00001 diff --git a/icons/nanox_app_chain_943.gif b/icons/nanox_app_chain_943.gif new file mode 100644 index 0000000000000000000000000000000000000000..5a651f8f528e5294b854a25b0066e6eebae5ba70 GIT binary patch literal 76 zcmZ?wbhEHb7l=9#^6{>1{ d@g8fXn0cvi+0@z7L*Kld6y0;FKZt?B8UPe^7vul{ literal 0 HcmV?d00001 diff --git a/icons/stax_app_chain_369.gif b/icons/stax_app_chain_369.gif new file mode 100644 index 0000000000000000000000000000000000000000..d8e9e8274fa870ea7e479ebbbc4c9d2eee364a23 GIT binary patch literal 757 zcmZ?wbhEHbRA5kGc*el+|Nnmm28MtC{{8*?_s^d{zkmP!_3PKqpFe;6`0@Sw_ix|6 zef|3N)2B}#KYsl1;lum)@87+9_xA1EH*em&e*OC8%a<=+ym60f<9zTBk@ZrM; z4<6jRckk}qyEks!xOVN@)vH&pT)A@T(xrw{PFJZQItZTQ_amv|+=B_3PKKTeoiQ+O=!etXaN%`I03|7A;yd zckbNTvu976Hf`d>i4!JF=FMt7?(FPrZ*OmDX=!e5ZftCM6Ub&zqiGz+z3q@8GNpc7?w6+>C6zs6t+%kb-#-b$*Kg1l^n-m$= z?BEJoD8L%xw5aBn;{sm`q`g6wgu$irMQhCE?6!gDW<3Pc7;=y4pl=)1shd zD^9KEVGhtteDW}KvikCCKT=XyZmyK>Q(3c-hl_{N&%~nM>L8~Bql9VFiH?I&$6j4E R3!5^}clWkjzeWZIYXGXRNKgO( literal 0 HcmV?d00001 diff --git a/icons/stax_app_chain_943.gif b/icons/stax_app_chain_943.gif new file mode 100644 index 0000000000000000000000000000000000000000..d8e9e8274fa870ea7e479ebbbc4c9d2eee364a23 GIT binary patch literal 757 zcmZ?wbhEHbRA5kGc*el+|Nnmm28MtC{{8*?_s^d{zkmP!_3PKqpFe;6`0@Sw_ix|6 zef|3N)2B}#KYsl1;lum)@87+9_xA1EH*em&e*OC8%a<=+ym60f<9zTBk@ZrM; z4<6jRckk}qyEks!xOVN@)vH&pT)A@T(xrw{PFJZQItZTQ_amv|+=B_3PKKTeoiQ+O=!etXaN%`I03|7A;yd zckbNTvu976Hf`d>i4!JF=FMt7?(FPrZ*OmDX=!e5ZftCM6Ub&zqiGz+z3q@8GNpc7?w6+>C6zs6t+%kb-#-b$*Kg1l^n-m$= z?BEJoD8L%xw5aBn;{sm`q`g6wgu$irMQhCE?6!gDW<3Pc7;=y4pl=)1shd zD^9KEVGhtteDW}KvikCCKT=XyZmyK>Q(3c-hl_{N&%~nM>L8~Bql9VFiH?I&$6j4E R3!5^}clWkjzeWZIYXGXRNKgO( literal 0 HcmV?d00001 diff --git a/makefile_conf/chain/pulsechain.mk b/makefile_conf/chain/pulsechain.mk new file mode 100644 index 000000000..816b20b39 --- /dev/null +++ b/makefile_conf/chain/pulsechain.mk @@ -0,0 +1,10 @@ +# Lock the application on its standard path for 1.5. Please complain if non compliant +PATH_APP_LOAD_PARAMS += "44'/60'" +TICKER = "PLS" +CHAIN_ID = 369 +# Allow to derive ETH 2 public keys +PATH_APP_LOAD_PARAMS += "12381/3600" +CURVE_APP_LOAD_PARAMS += bls12381g1 +DEFINES += HAVE_ETH2 +APPNAME = "PulseChain" + diff --git a/makefile_conf/chain/pulsechaintestnet.mk b/makefile_conf/chain/pulsechaintestnet.mk new file mode 100644 index 000000000..0d8ab4eb0 --- /dev/null +++ b/makefile_conf/chain/pulsechaintestnet.mk @@ -0,0 +1,10 @@ +# Lock the application on its standard path for 1.5. Please complain if non compliant +PATH_APP_LOAD_PARAMS += "44'/60'" +TICKER = "tPLS" +CHAIN_ID = 943 +# Allow to derive ETH 2 public keys +PATH_APP_LOAD_PARAMS += "12381/3600" +CURVE_APP_LOAD_PARAMS += bls12381g1 +DEFINES += HAVE_ETH2 +APPNAME = "PulseChain Testnet" + diff --git a/src/network.c b/src/network.c index 36aed4ad9..d9ccd6617 100644 --- a/src/network.c +++ b/src/network.c @@ -52,6 +52,7 @@ static const network_info_t NETWORK_MAPPING[] = { {.chain_id = 369, .name = "PulseChain", .ticker = "PLS"}, {.chain_id = 592, .name = "Astar", .ticker = "ASTR"}, {.chain_id = 888, .name = "Wanchain", .ticker = "WAN"}, + {.chain_id = 943, .name = "PulseChain Testnet", .ticker = "tPLS"}, {.chain_id = 1030, .name = "Conflux", .ticker = "CFX"}, {.chain_id = 1088, .name = "Metis Andromeda", .ticker = "METIS"}, {.chain_id = 1101, .name = "Polygon zkEVM", .ticker = "ETH"},