@circle-fin/app-kit 1.0.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/README.md +34 -9
- package/chains.cjs +192 -8
- package/chains.d.ts +12 -8
- package/chains.mjs +192 -8
- package/index.cjs +481 -46
- package/index.d.ts +300 -27
- package/index.mjs +481 -46
- package/package.json +4 -3
package/chains.mjs
CHANGED
|
@@ -50,6 +50,8 @@ var Blockchain;
|
|
|
50
50
|
Blockchain["Celo_Alfajores_Testnet"] = "Celo_Alfajores_Testnet";
|
|
51
51
|
Blockchain["Codex"] = "Codex";
|
|
52
52
|
Blockchain["Codex_Testnet"] = "Codex_Testnet";
|
|
53
|
+
Blockchain["Edge"] = "Edge";
|
|
54
|
+
Blockchain["Edge_Testnet"] = "Edge_Testnet";
|
|
53
55
|
Blockchain["Ethereum"] = "Ethereum";
|
|
54
56
|
Blockchain["Ethereum_Sepolia"] = "Ethereum_Sepolia";
|
|
55
57
|
Blockchain["Hedera"] = "Hedera";
|
|
@@ -62,6 +64,8 @@ var Blockchain;
|
|
|
62
64
|
Blockchain["Linea_Sepolia"] = "Linea_Sepolia";
|
|
63
65
|
Blockchain["Monad"] = "Monad";
|
|
64
66
|
Blockchain["Monad_Testnet"] = "Monad_Testnet";
|
|
67
|
+
Blockchain["Morph"] = "Morph";
|
|
68
|
+
Blockchain["Morph_Testnet"] = "Morph_Testnet";
|
|
65
69
|
Blockchain["NEAR"] = "NEAR";
|
|
66
70
|
Blockchain["NEAR_Testnet"] = "NEAR_Testnet";
|
|
67
71
|
Blockchain["Noble"] = "Noble";
|
|
@@ -265,11 +269,13 @@ var BridgeChain;
|
|
|
265
269
|
BridgeChain["Avalanche"] = "Avalanche";
|
|
266
270
|
BridgeChain["Base"] = "Base";
|
|
267
271
|
BridgeChain["Codex"] = "Codex";
|
|
272
|
+
BridgeChain["Edge"] = "Edge";
|
|
268
273
|
BridgeChain["Ethereum"] = "Ethereum";
|
|
269
274
|
BridgeChain["HyperEVM"] = "HyperEVM";
|
|
270
275
|
BridgeChain["Ink"] = "Ink";
|
|
271
276
|
BridgeChain["Linea"] = "Linea";
|
|
272
277
|
BridgeChain["Monad"] = "Monad";
|
|
278
|
+
BridgeChain["Morph"] = "Morph";
|
|
273
279
|
BridgeChain["Optimism"] = "Optimism";
|
|
274
280
|
BridgeChain["Plume"] = "Plume";
|
|
275
281
|
BridgeChain["Polygon"] = "Polygon";
|
|
@@ -285,11 +291,13 @@ var BridgeChain;
|
|
|
285
291
|
BridgeChain["Avalanche_Fuji"] = "Avalanche_Fuji";
|
|
286
292
|
BridgeChain["Base_Sepolia"] = "Base_Sepolia";
|
|
287
293
|
BridgeChain["Codex_Testnet"] = "Codex_Testnet";
|
|
294
|
+
BridgeChain["Edge_Testnet"] = "Edge_Testnet";
|
|
288
295
|
BridgeChain["Ethereum_Sepolia"] = "Ethereum_Sepolia";
|
|
289
296
|
BridgeChain["HyperEVM_Testnet"] = "HyperEVM_Testnet";
|
|
290
297
|
BridgeChain["Ink_Testnet"] = "Ink_Testnet";
|
|
291
298
|
BridgeChain["Linea_Sepolia"] = "Linea_Sepolia";
|
|
292
299
|
BridgeChain["Monad_Testnet"] = "Monad_Testnet";
|
|
300
|
+
BridgeChain["Morph_Testnet"] = "Morph_Testnet";
|
|
293
301
|
BridgeChain["Optimism_Sepolia"] = "Optimism_Sepolia";
|
|
294
302
|
BridgeChain["Plume_Testnet"] = "Plume_Testnet";
|
|
295
303
|
BridgeChain["Polygon_Amoy_Testnet"] = "Polygon_Amoy_Testnet";
|
|
@@ -1035,7 +1043,7 @@ const Codex = defineChain({
|
|
|
1035
1043
|
},
|
|
1036
1044
|
forwarderSupported: {
|
|
1037
1045
|
source: true,
|
|
1038
|
-
destination:
|
|
1046
|
+
destination: true,
|
|
1039
1047
|
},
|
|
1040
1048
|
},
|
|
1041
1049
|
kitContracts: {
|
|
@@ -1078,7 +1086,95 @@ const CodexTestnet = defineChain({
|
|
|
1078
1086
|
},
|
|
1079
1087
|
forwarderSupported: {
|
|
1080
1088
|
source: true,
|
|
1081
|
-
destination:
|
|
1089
|
+
destination: true,
|
|
1090
|
+
},
|
|
1091
|
+
},
|
|
1092
|
+
kitContracts: {
|
|
1093
|
+
bridge: BRIDGE_CONTRACT_EVM_TESTNET,
|
|
1094
|
+
},
|
|
1095
|
+
});
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* Edge Mainnet chain definition
|
|
1099
|
+
* @remarks
|
|
1100
|
+
* This represents the official production network for the Edge blockchain.
|
|
1101
|
+
* Edge is an EVM-compatible blockchain.
|
|
1102
|
+
*/
|
|
1103
|
+
defineChain({
|
|
1104
|
+
type: 'evm',
|
|
1105
|
+
chain: Blockchain.Edge,
|
|
1106
|
+
name: 'Edge',
|
|
1107
|
+
title: 'Edge Mainnet',
|
|
1108
|
+
nativeCurrency: {
|
|
1109
|
+
name: 'Ether',
|
|
1110
|
+
symbol: 'ETH',
|
|
1111
|
+
decimals: 18,
|
|
1112
|
+
},
|
|
1113
|
+
chainId: 3343,
|
|
1114
|
+
isTestnet: false,
|
|
1115
|
+
explorerUrl: 'https://pro.edgex.exchange/en-US/explorer/tx/{hash}',
|
|
1116
|
+
rpcEndpoints: ['https://edge-mainnet.g.alchemy.com/public'],
|
|
1117
|
+
eurcAddress: null,
|
|
1118
|
+
usdcAddress: '0x98d2919b9A214E6Fa5384AC81E6864bA686Ad74c',
|
|
1119
|
+
usdtAddress: null,
|
|
1120
|
+
cctp: {
|
|
1121
|
+
domain: 28,
|
|
1122
|
+
contracts: {
|
|
1123
|
+
v2: {
|
|
1124
|
+
type: 'split',
|
|
1125
|
+
tokenMessenger: '0x98706A006bc632Df31CAdFCBD43F38887ce2ca5c',
|
|
1126
|
+
messageTransmitter: '0x5b61381Fc9e58E70EfC13a4A97516997019198ee',
|
|
1127
|
+
confirmations: 65,
|
|
1128
|
+
fastConfirmations: 1,
|
|
1129
|
+
},
|
|
1130
|
+
},
|
|
1131
|
+
forwarderSupported: {
|
|
1132
|
+
source: true,
|
|
1133
|
+
destination: true,
|
|
1134
|
+
},
|
|
1135
|
+
},
|
|
1136
|
+
kitContracts: {
|
|
1137
|
+
bridge: '0x6D1AaE1c34Aeb582022916a67f2A655C6f4eDFF2', //Unique bridge address as CCTP address for Edge is also unique
|
|
1138
|
+
},
|
|
1139
|
+
});
|
|
1140
|
+
|
|
1141
|
+
/**
|
|
1142
|
+
* Edge Testnet chain definition
|
|
1143
|
+
* @remarks
|
|
1144
|
+
* This represents the official test network for the Edge blockchain.
|
|
1145
|
+
* Edge is an EVM-compatible blockchain.
|
|
1146
|
+
*/
|
|
1147
|
+
defineChain({
|
|
1148
|
+
type: 'evm',
|
|
1149
|
+
chain: Blockchain.Edge_Testnet,
|
|
1150
|
+
name: 'Edge Testnet',
|
|
1151
|
+
title: 'Edge Testnet',
|
|
1152
|
+
nativeCurrency: {
|
|
1153
|
+
name: 'Ether',
|
|
1154
|
+
symbol: 'ETH',
|
|
1155
|
+
decimals: 18,
|
|
1156
|
+
},
|
|
1157
|
+
chainId: 33431,
|
|
1158
|
+
isTestnet: true,
|
|
1159
|
+
explorerUrl: 'https://edge-testnet.explorer.alchemy.com/tx/{hash}',
|
|
1160
|
+
rpcEndpoints: ['https://edge-testnet.g.alchemy.com/public'],
|
|
1161
|
+
eurcAddress: null,
|
|
1162
|
+
usdcAddress: '0x2d9F7CAD728051AA35Ecdc472a14cf8cDF5CFD6B',
|
|
1163
|
+
usdtAddress: null,
|
|
1164
|
+
cctp: {
|
|
1165
|
+
domain: 28,
|
|
1166
|
+
contracts: {
|
|
1167
|
+
v2: {
|
|
1168
|
+
type: 'split',
|
|
1169
|
+
tokenMessenger: '0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA',
|
|
1170
|
+
messageTransmitter: '0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275',
|
|
1171
|
+
confirmations: 65,
|
|
1172
|
+
fastConfirmations: 1,
|
|
1173
|
+
},
|
|
1174
|
+
},
|
|
1175
|
+
forwarderSupported: {
|
|
1176
|
+
source: true,
|
|
1177
|
+
destination: true,
|
|
1082
1178
|
},
|
|
1083
1179
|
},
|
|
1084
1180
|
kitContracts: {
|
|
@@ -1252,7 +1348,7 @@ const HyperEVM = defineChain({
|
|
|
1252
1348
|
},
|
|
1253
1349
|
chainId: 999,
|
|
1254
1350
|
isTestnet: false,
|
|
1255
|
-
explorerUrl: 'https://
|
|
1351
|
+
explorerUrl: 'https://app.hyperliquid.xyz/explorer/tx/{hash}',
|
|
1256
1352
|
rpcEndpoints: ['https://rpc.hyperliquid.xyz/evm'],
|
|
1257
1353
|
eurcAddress: null,
|
|
1258
1354
|
usdcAddress: '0xb88339CB7199b77E23DB6E890353E22632Ba630f',
|
|
@@ -1297,7 +1393,7 @@ const HyperEVMTestnet = defineChain({
|
|
|
1297
1393
|
},
|
|
1298
1394
|
chainId: 998,
|
|
1299
1395
|
isTestnet: true,
|
|
1300
|
-
explorerUrl: 'https://
|
|
1396
|
+
explorerUrl: 'https://app.hyperliquid-testnet.xyz/explorer/tx/{hash}',
|
|
1301
1397
|
rpcEndpoints: ['https://rpc.hyperliquid-testnet.xyz/evm'],
|
|
1302
1398
|
eurcAddress: null,
|
|
1303
1399
|
usdcAddress: '0x2B3370eE501B4a559b57D449569354196457D8Ab',
|
|
@@ -1597,6 +1693,94 @@ defineChain({
|
|
|
1597
1693
|
},
|
|
1598
1694
|
});
|
|
1599
1695
|
|
|
1696
|
+
/**
|
|
1697
|
+
* Morph Mainnet chain definition
|
|
1698
|
+
* @remarks
|
|
1699
|
+
* This represents the official production network for the Morph blockchain.
|
|
1700
|
+
* Morph is an EVM-compatible Layer-2 blockchain built on the OP Stack.
|
|
1701
|
+
*/
|
|
1702
|
+
defineChain({
|
|
1703
|
+
type: 'evm',
|
|
1704
|
+
chain: Blockchain.Morph,
|
|
1705
|
+
name: 'Morph',
|
|
1706
|
+
title: 'Morph Mainnet',
|
|
1707
|
+
nativeCurrency: {
|
|
1708
|
+
name: 'Ether',
|
|
1709
|
+
symbol: 'ETH',
|
|
1710
|
+
decimals: 18,
|
|
1711
|
+
},
|
|
1712
|
+
chainId: 2818,
|
|
1713
|
+
isTestnet: false,
|
|
1714
|
+
explorerUrl: 'https://explorer.morph.network/tx/{hash}',
|
|
1715
|
+
rpcEndpoints: ['https://rpc.morphl2.io'],
|
|
1716
|
+
eurcAddress: null,
|
|
1717
|
+
usdcAddress: '0xCfb1186F4e93D60E60a8bDd997427D1F33bc372B',
|
|
1718
|
+
usdtAddress: null,
|
|
1719
|
+
cctp: {
|
|
1720
|
+
domain: 30,
|
|
1721
|
+
contracts: {
|
|
1722
|
+
v2: {
|
|
1723
|
+
type: 'split',
|
|
1724
|
+
tokenMessenger: '0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d',
|
|
1725
|
+
messageTransmitter: '0x81D40F21F12A8F0E3252Bccb954D722d4c464B64',
|
|
1726
|
+
confirmations: 64,
|
|
1727
|
+
fastConfirmations: 1,
|
|
1728
|
+
},
|
|
1729
|
+
},
|
|
1730
|
+
forwarderSupported: {
|
|
1731
|
+
source: false,
|
|
1732
|
+
destination: false,
|
|
1733
|
+
},
|
|
1734
|
+
},
|
|
1735
|
+
kitContracts: {
|
|
1736
|
+
bridge: BRIDGE_CONTRACT_EVM_MAINNET,
|
|
1737
|
+
},
|
|
1738
|
+
});
|
|
1739
|
+
|
|
1740
|
+
/**
|
|
1741
|
+
* Morph Hoodi Testnet chain definition
|
|
1742
|
+
* @remarks
|
|
1743
|
+
* This represents the official test network for the Morph blockchain.
|
|
1744
|
+
* Morph is an EVM-compatible Layer-2 blockchain built on the OP Stack.
|
|
1745
|
+
*/
|
|
1746
|
+
defineChain({
|
|
1747
|
+
type: 'evm',
|
|
1748
|
+
chain: Blockchain.Morph_Testnet,
|
|
1749
|
+
name: 'Morph Hoodi',
|
|
1750
|
+
title: 'Morph Hoodi Testnet',
|
|
1751
|
+
nativeCurrency: {
|
|
1752
|
+
name: 'Ether',
|
|
1753
|
+
symbol: 'ETH',
|
|
1754
|
+
decimals: 18,
|
|
1755
|
+
},
|
|
1756
|
+
chainId: 2910,
|
|
1757
|
+
isTestnet: true,
|
|
1758
|
+
explorerUrl: 'https://explorer-hoodi.morphl2.io/tx/{hash}',
|
|
1759
|
+
rpcEndpoints: ['https://rpc-hoodi.morphl2.io'],
|
|
1760
|
+
eurcAddress: null,
|
|
1761
|
+
usdcAddress: '0x7433b41C6c5e1d58D4Da99483609520255ab661B',
|
|
1762
|
+
usdtAddress: null,
|
|
1763
|
+
cctp: {
|
|
1764
|
+
domain: 30,
|
|
1765
|
+
contracts: {
|
|
1766
|
+
v2: {
|
|
1767
|
+
type: 'split',
|
|
1768
|
+
tokenMessenger: '0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA',
|
|
1769
|
+
messageTransmitter: '0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275',
|
|
1770
|
+
confirmations: 64,
|
|
1771
|
+
fastConfirmations: 1,
|
|
1772
|
+
},
|
|
1773
|
+
},
|
|
1774
|
+
forwarderSupported: {
|
|
1775
|
+
source: false,
|
|
1776
|
+
destination: false,
|
|
1777
|
+
},
|
|
1778
|
+
},
|
|
1779
|
+
kitContracts: {
|
|
1780
|
+
bridge: BRIDGE_CONTRACT_EVM_TESTNET,
|
|
1781
|
+
},
|
|
1782
|
+
});
|
|
1783
|
+
|
|
1600
1784
|
/**
|
|
1601
1785
|
* NEAR Protocol Mainnet chain definition
|
|
1602
1786
|
* @remarks
|
|
@@ -1855,7 +2039,7 @@ const Plume = defineChain({
|
|
|
1855
2039
|
},
|
|
1856
2040
|
forwarderSupported: {
|
|
1857
2041
|
source: true,
|
|
1858
|
-
destination:
|
|
2042
|
+
destination: true,
|
|
1859
2043
|
},
|
|
1860
2044
|
},
|
|
1861
2045
|
kitContracts: {
|
|
@@ -1900,7 +2084,7 @@ const PlumeTestnet = defineChain({
|
|
|
1900
2084
|
},
|
|
1901
2085
|
forwarderSupported: {
|
|
1902
2086
|
source: true,
|
|
1903
|
-
destination:
|
|
2087
|
+
destination: true,
|
|
1904
2088
|
},
|
|
1905
2089
|
},
|
|
1906
2090
|
kitContracts: {
|
|
@@ -2678,7 +2862,7 @@ const XDC = defineChain({
|
|
|
2678
2862
|
},
|
|
2679
2863
|
forwarderSupported: {
|
|
2680
2864
|
source: true,
|
|
2681
|
-
destination:
|
|
2865
|
+
destination: true,
|
|
2682
2866
|
},
|
|
2683
2867
|
},
|
|
2684
2868
|
kitContracts: {
|
|
@@ -2722,7 +2906,7 @@ const XDCApothem = defineChain({
|
|
|
2722
2906
|
},
|
|
2723
2907
|
forwarderSupported: {
|
|
2724
2908
|
source: true,
|
|
2725
|
-
destination:
|
|
2909
|
+
destination: true,
|
|
2726
2910
|
},
|
|
2727
2911
|
},
|
|
2728
2912
|
kitContracts: {
|