Skip to content

Commit fa9a0a7

Browse files
committed
added nativecurrency token uri image
1 parent e240298 commit fa9a0a7

File tree

6 files changed

+37
-13
lines changed

6 files changed

+37
-13
lines changed

dist/index.d.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ interface NetworkConfig {
1818
name: string;
1919
symbol: string;
2020
decimals: number;
21+
logoURI?: string;
2122
};
2223
tokens?: TokenConfig[];
2324
}

dist/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ interface NetworkConfig {
1818
name: string;
1919
symbol: string;
2020
decimals: number;
21+
logoURI?: string;
2122
};
2223
tokens?: TokenConfig[];
2324
}

dist/index.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,8 @@ var SUBSTRATE_NETWORKS = [
818818
nativeCurrency: {
819819
name: "Selendra",
820820
symbol: "SEL",
821-
decimals: 18
821+
decimals: 18,
822+
logoURI: "https://www.selendra.org/logo/sel-logo-blue-notext.png"
822823
},
823824
ss58Format: 42,
824825
genesisHash: "0x9e17c622381c36351de3ff9dc662282bf89ea2f420a9c55e23ff4fd815d2886a"
@@ -870,7 +871,8 @@ var EVM_NETWORKS = [
870871
nativeCurrency: {
871872
name: "Selendra",
872873
symbol: "SEL",
873-
decimals: 18
874+
decimals: 18,
875+
logoURI: "https://www.selendra.org/logo/sel-logo-blue-notext.png"
874876
},
875877
tokens: [
876878
{
@@ -892,14 +894,16 @@ var EVM_NETWORKS = [
892894
nativeCurrency: {
893895
name: "Ethereum",
894896
symbol: "ETH",
895-
decimals: 18
897+
decimals: 18,
898+
logoURI: "https://cryptologos.cc/logos/ethereum-eth-logo.svg?v=040"
896899
},
897900
tokens: [
898901
{
899902
address: "0xdAC17F958D2ee523a2206206994597C13D831ec7",
900903
name: "Tether USD",
901904
symbol: "USDT",
902-
decimals: 6
905+
decimals: 6,
906+
logoURI: "https://cryptologos.cc/logos/tether-usdt-logo.svg?v=040"
903907
},
904908
{
905909
address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
@@ -919,14 +923,16 @@ var EVM_NETWORKS = [
919923
nativeCurrency: {
920924
name: "MATIC",
921925
symbol: "MATIC",
922-
decimals: 18
926+
decimals: 18,
927+
logoURI: "https://cryptologos.cc/logos/polygon-matic-logo.svg?v=040"
923928
},
924929
tokens: [
925930
{
926931
address: "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
927932
name: "Tether USD",
928933
symbol: "USDT",
929-
decimals: 6
934+
decimals: 6,
935+
logoURI: "https://cryptologos.cc/logos/tether-usdt-logo.svg?v=040"
930936
}
931937
]
932938
}

dist/index.mjs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,8 @@ var SUBSTRATE_NETWORKS = [
784784
nativeCurrency: {
785785
name: "Selendra",
786786
symbol: "SEL",
787-
decimals: 18
787+
decimals: 18,
788+
logoURI: "https://www.selendra.org/logo/sel-logo-blue-notext.png"
788789
},
789790
ss58Format: 42,
790791
genesisHash: "0x9e17c622381c36351de3ff9dc662282bf89ea2f420a9c55e23ff4fd815d2886a"
@@ -836,7 +837,8 @@ var EVM_NETWORKS = [
836837
nativeCurrency: {
837838
name: "Selendra",
838839
symbol: "SEL",
839-
decimals: 18
840+
decimals: 18,
841+
logoURI: "https://www.selendra.org/logo/sel-logo-blue-notext.png"
840842
},
841843
tokens: [
842844
{
@@ -858,14 +860,16 @@ var EVM_NETWORKS = [
858860
nativeCurrency: {
859861
name: "Ethereum",
860862
symbol: "ETH",
861-
decimals: 18
863+
decimals: 18,
864+
logoURI: "https://cryptologos.cc/logos/ethereum-eth-logo.svg?v=040"
862865
},
863866
tokens: [
864867
{
865868
address: "0xdAC17F958D2ee523a2206206994597C13D831ec7",
866869
name: "Tether USD",
867870
symbol: "USDT",
868-
decimals: 6
871+
decimals: 6,
872+
logoURI: "https://cryptologos.cc/logos/tether-usdt-logo.svg?v=040"
869873
},
870874
{
871875
address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
@@ -885,14 +889,16 @@ var EVM_NETWORKS = [
885889
nativeCurrency: {
886890
name: "MATIC",
887891
symbol: "MATIC",
888-
decimals: 18
892+
decimals: 18,
893+
logoURI: "https://cryptologos.cc/logos/polygon-matic-logo.svg?v=040"
889894
},
890895
tokens: [
891896
{
892897
address: "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
893898
name: "Tether USD",
894899
symbol: "USDT",
895-
decimals: 6
900+
decimals: 6,
901+
logoURI: "https://cryptologos.cc/logos/tether-usdt-logo.svg?v=040"
896902
}
897903
]
898904
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bitriel-wallet-sdk",
3-
"version": "1.1.9",
3+
"version": "1.1.10",
44
"description": "This is bitriel Wallet SDK",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",

src/config/networks.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export interface NetworkConfig {
1010
name: string;
1111
symbol: string;
1212
decimals: number;
13+
logoURI?: string;
1314
};
1415
tokens?: TokenConfig[];
1516
}
@@ -47,6 +48,7 @@ export const SUBSTRATE_NETWORKS: SubstrateNetworkConfig[] = [
4748
name: "Selendra",
4849
symbol: "SEL",
4950
decimals: 18,
51+
logoURI: "https://www.selendra.org/logo/sel-logo-blue-notext.png",
5052
},
5153
ss58Format: 42,
5254
genesisHash:
@@ -100,6 +102,7 @@ export const EVM_NETWORKS: EVMNetworkConfig[] = [
100102
name: "Selendra",
101103
symbol: "SEL",
102104
decimals: 18,
105+
logoURI: "https://www.selendra.org/logo/sel-logo-blue-notext.png",
103106
},
104107
tokens: [
105108
{
@@ -122,13 +125,16 @@ export const EVM_NETWORKS: EVMNetworkConfig[] = [
122125
name: "Ethereum",
123126
symbol: "ETH",
124127
decimals: 18,
128+
logoURI: "https://cryptologos.cc/logos/ethereum-eth-logo.svg?v=040",
125129
},
126130
tokens: [
127131
{
128132
address: "0xdAC17F958D2ee523a2206206994597C13D831ec7",
129133
name: "Tether USD",
130134
symbol: "USDT",
131135
decimals: 6,
136+
logoURI:
137+
"https://cryptologos.cc/logos/tether-usdt-logo.svg?v=040",
132138
},
133139
{
134140
address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
@@ -149,13 +155,17 @@ export const EVM_NETWORKS: EVMNetworkConfig[] = [
149155
name: "MATIC",
150156
symbol: "MATIC",
151157
decimals: 18,
158+
logoURI:
159+
"https://cryptologos.cc/logos/polygon-matic-logo.svg?v=040",
152160
},
153161
tokens: [
154162
{
155163
address: "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
156164
name: "Tether USD",
157165
symbol: "USDT",
158166
decimals: 6,
167+
logoURI:
168+
"https://cryptologos.cc/logos/tether-usdt-logo.svg?v=040",
159169
},
160170
],
161171
},

0 commit comments

Comments
 (0)