We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1f3ced commit fd46b12Copy full SHA for fd46b12
core/base/src/constants/chains.ts
@@ -52,6 +52,7 @@ const chainIdAndChainEntries = [
52
[ 60, "Stacks" ],
53
[ 63, "Moca" ],
54
[ 64, "MegaETH" ],
55
+ [ 66, "Xrpl" ],
56
[ 67, "ZeroGravity" ],
57
[ 3104, "Wormchain" ],
58
[ 4000, "Cosmoshub" ],
core/base/src/constants/decimals.ts
@@ -12,7 +12,8 @@ const nativeDecimalEntries = [
12
["Algorand", 6],
13
["Btc", 8],
14
["Near", 12],
15
- ["Stacks", 6]
+ ["Stacks", 6],
16
+ ["Xrpl", 6],
17
] as const satisfies MapLevel<Platform, number>;
18
19
/** Number of decimals for the native token on a given platform */
core/base/src/constants/explorer.ts
@@ -218,6 +218,16 @@ const explorerConfig = [[
218
}
219
220
],
221
+ [
222
+ "Xrpl", {
223
+ name: "XRPL Explorer",
224
+ baseUrl: "https://livenet.xrpl.org/",
225
+ endpoints: {
226
+ tx: "transactions/",
227
+ account: "accounts/"
228
+ }
229
230
+ ],
231
]], [
232
"Testnet", [[
233
"Ethereum", {
@@ -409,6 +419,16 @@ const explorerConfig = [[
409
419
410
420
411
421
422
423
424
+ name: "XRPL Testnet Explorer",
425
+ baseUrl: "https://testnet.xrpl.org/",
426
427
428
429
430
431
412
432
]],
413
433
] as const satisfies MapLevels<["Mainnet" | "Testnet", Chain, ExplorerSettings]>;
414
434
core/base/src/constants/finality.ts
@@ -64,6 +64,7 @@ const finalityThresholds = [
64
["Plume", 4096], // inferred from testing
65
["Plasma", 2],
66
["XRPLEVM", 1],
67
+ ["Xrpl", 0],
68
["CreditCoin", 3],
69
["Cosmoshub", 0],
70
["Evmos", 0],
@@ -150,6 +151,7 @@ const blockTimeMilliseconds = [
150
151
["Plume", 250],
152
["Plasma", 1_000],
153
["XRPLEVM", 5_000],
154
+ ["Xrpl", 4_000],
155
["Seievm", 400],
156
["CreditCoin", 15_000],
157
["Stacks", 15_000],
core/base/src/constants/platforms.ts
@@ -84,6 +84,9 @@ const platformAndChainsEntries = [[
84
85
"Stacks", [
86
"Stacks"
87
+ ]], [
88
+ "Xrpl", [
89
+ "Xrpl"
90
]]
91
] as const satisfies MapLevel<string, RoArray<Chain>>;
92
@@ -110,6 +113,7 @@ const platformAddressFormatEntries = [
110
113
["Aptos", "hex"],
111
114
["Near", "sha256"],
112
115
["Stacks", "keccak256"],
116
+ ["Xrpl", "base58"],
117
] as const;
118
119
export const platformToAddressFormat = constMap(platformAddressFormatEntries);
core/base/src/constants/rpc.ts
@@ -48,6 +48,7 @@ const rpcConfig = [[
48
// ["HyperCore", "https://rpc.hyperliquid.xyz/evm"],
49
["Plume", "https://rpc.plume.org/"],
50
["XRPLEVM", "https://rpc.xrplevm.org/"],
51
+ ["Xrpl", "https://xrplcluster.com/"],
["Plasma", "https://rpc.plasma.to/"],
["CreditCoin", "https://mainnet3.creditcoin.network/"],
["Stacks", "https://api.mainnet.hiro.so"],
@@ -97,6 +98,7 @@ const rpcConfig = [[
97
98
["Fogo", "https://testnet.fogo.io"],
99
["Plume", "https://testnet-rpc.plume.org"],
100
["XRPLEVM", "https://rpc.testnet.xrplevm.org/"],
101
+ ["Xrpl", "https://s.altnet.rippletest.net:51234/"],
102
["Plasma", "https://testnet-rpc.plasma.to"],
103
["CreditCoin", "https://rpc.cc3-testnet.creditcoin.network"],
104
["Stacks", "https://api.testnet.hiro.so"],
core/icons/src/constants/chainIcons.ts
@@ -280,6 +280,11 @@ export function chainToIcon(chain: Chain): string {
280
PREFIX +
281
"PHN2ZyB3aWR0aD0iMTQ0IiBoZWlnaHQ9IjE0NCIgdmlld0JveD0iMCAwIDE0NCAxNDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0NCA3MS42OTkxQzE0NCAxMTkuMzA2IDExNC44NjYgMTM0LjU4MiA5OS41MTU2I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