@sip-protocol/sdk 0.2.7 → 0.2.8
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/dist/browser.js +26 -5
- package/dist/browser.mjs +1 -1
- package/dist/chunk-UPTISVCY.mjs +10304 -0
- package/dist/index.js +26 -5
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/adapters/near-intents.ts +31 -5
package/dist/index.js
CHANGED
|
@@ -2456,22 +2456,43 @@ var DEFAULT_ASSET_MAPPINGS = {
|
|
|
2456
2456
|
// NEAR assets
|
|
2457
2457
|
"near:NEAR": "nep141:wrap.near",
|
|
2458
2458
|
"near:wNEAR": "nep141:wrap.near",
|
|
2459
|
+
"near:USDC": "nep141:17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1",
|
|
2459
2460
|
// Ethereum assets (via OMFT bridge)
|
|
2460
2461
|
"ethereum:ETH": "nep141:eth.omft.near",
|
|
2461
|
-
"ethereum:USDC": "nep141:
|
|
2462
|
-
"ethereum:USDT": "nep141:
|
|
2462
|
+
"ethereum:USDC": "nep141:eth-0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48.omft.near",
|
|
2463
|
+
"ethereum:USDT": "nep141:eth-0xdac17f958d2ee523a2206206994597c13d831ec7.omft.near",
|
|
2463
2464
|
// Solana assets (via OMFT bridge)
|
|
2464
2465
|
"solana:SOL": "nep141:sol.omft.near",
|
|
2466
|
+
"solana:USDC": "nep141:sol-5ce3bf3a31af18be40ba30f721101b4341690186.omft.near",
|
|
2467
|
+
"solana:USDT": "nep141:sol-c800a4bd850783ccb82c2b2c7e84175443606352.omft.near",
|
|
2465
2468
|
// Zcash assets
|
|
2466
2469
|
"zcash:ZEC": "nep141:zec.omft.near",
|
|
2467
2470
|
// Arbitrum assets
|
|
2468
2471
|
"arbitrum:ETH": "nep141:arb.omft.near",
|
|
2472
|
+
"arbitrum:ARB": "nep141:arb-0x912ce59144191c1204e64559fe8253a0e49e6548.omft.near",
|
|
2473
|
+
"arbitrum:USDC": "nep141:arb-0xaf88d065e77c8cc2239327c5edb3a432268e5831.omft.near",
|
|
2469
2474
|
// Base assets
|
|
2470
2475
|
"base:ETH": "nep141:base.omft.near",
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
"
|
|
2476
|
+
"base:USDC": "nep141:base-0x833589fcd6edb6e08f4c7c32d4f71b54bda02913.omft.near",
|
|
2477
|
+
// Optimism assets (via HOT bridge - uses nep245)
|
|
2478
|
+
"optimism:ETH": "nep245:v2_1.omni.hot.tg:10_11111111111111111111",
|
|
2479
|
+
"optimism:OP": "nep245:v2_1.omni.hot.tg:10_vLAiSt9KfUGKpw5cD3vsSyNYBo7",
|
|
2480
|
+
"optimism:USDC": "nep245:v2_1.omni.hot.tg:10_A2ewyUyDp6qsue1jqZsGypkCxRJ",
|
|
2481
|
+
// Polygon assets (via HOT bridge - uses nep245)
|
|
2482
|
+
"polygon:POL": "nep245:v2_1.omni.hot.tg:137_11111111111111111111",
|
|
2483
|
+
"polygon:MATIC": "nep245:v2_1.omni.hot.tg:137_11111111111111111111",
|
|
2474
2484
|
// POL is the rebranded MATIC
|
|
2485
|
+
"polygon:USDC": "nep245:v2_1.omni.hot.tg:137_qiStmoQJDQPTebaPjgx5VBxZv6L",
|
|
2486
|
+
// BNB Chain assets (via HOT bridge - uses nep245)
|
|
2487
|
+
"bsc:BNB": "nep245:v2_1.omni.hot.tg:56_11111111111111111111",
|
|
2488
|
+
"bsc:USDC": "nep245:v2_1.omni.hot.tg:56_2w93GqMcEmQFDru84j3HZZWt557r",
|
|
2489
|
+
// Avalanche assets (via HOT bridge - uses nep245)
|
|
2490
|
+
"avalanche:AVAX": "nep245:v2_1.omni.hot.tg:43114_11111111111111111111",
|
|
2491
|
+
"avalanche:USDC": "nep245:v2_1.omni.hot.tg:43114_3atVJH3r5c4GqiSYmg9fECvjc47o",
|
|
2492
|
+
// Bitcoin
|
|
2493
|
+
"bitcoin:BTC": "nep141:btc.omft.near",
|
|
2494
|
+
// Aptos
|
|
2495
|
+
"aptos:APT": "nep141:aptos.omft.near"
|
|
2475
2496
|
};
|
|
2476
2497
|
var CHAIN_BLOCKCHAIN_MAP = {
|
|
2477
2498
|
near: "near",
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sip-protocol/sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "Core SDK for Shielded Intents Protocol - Privacy layer for cross-chain transactions",
|
|
5
5
|
"author": "SIP Protocol <hello@sip-protocol.org>",
|
|
6
6
|
"homepage": "https://sip-protocol.org",
|
|
@@ -138,27 +138,53 @@ const DEFAULT_ASSET_MAPPINGS: Record<string, DefuseAssetId> = {
|
|
|
138
138
|
// NEAR assets
|
|
139
139
|
'near:NEAR': 'nep141:wrap.near',
|
|
140
140
|
'near:wNEAR': 'nep141:wrap.near',
|
|
141
|
+
'near:USDC': 'nep141:17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1',
|
|
141
142
|
|
|
142
143
|
// Ethereum assets (via OMFT bridge)
|
|
143
144
|
'ethereum:ETH': 'nep141:eth.omft.near',
|
|
144
|
-
'ethereum:USDC': 'nep141:
|
|
145
|
-
'ethereum:USDT': 'nep141:
|
|
145
|
+
'ethereum:USDC': 'nep141:eth-0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48.omft.near',
|
|
146
|
+
'ethereum:USDT': 'nep141:eth-0xdac17f958d2ee523a2206206994597c13d831ec7.omft.near',
|
|
146
147
|
|
|
147
148
|
// Solana assets (via OMFT bridge)
|
|
148
149
|
'solana:SOL': 'nep141:sol.omft.near',
|
|
150
|
+
'solana:USDC': 'nep141:sol-5ce3bf3a31af18be40ba30f721101b4341690186.omft.near',
|
|
151
|
+
'solana:USDT': 'nep141:sol-c800a4bd850783ccb82c2b2c7e84175443606352.omft.near',
|
|
149
152
|
|
|
150
153
|
// Zcash assets
|
|
151
154
|
'zcash:ZEC': 'nep141:zec.omft.near',
|
|
152
155
|
|
|
153
156
|
// Arbitrum assets
|
|
154
157
|
'arbitrum:ETH': 'nep141:arb.omft.near',
|
|
158
|
+
'arbitrum:ARB': 'nep141:arb-0x912ce59144191c1204e64559fe8253a0e49e6548.omft.near',
|
|
159
|
+
'arbitrum:USDC': 'nep141:arb-0xaf88d065e77c8cc2239327c5edb3a432268e5831.omft.near',
|
|
155
160
|
|
|
156
161
|
// Base assets
|
|
157
162
|
'base:ETH': 'nep141:base.omft.near',
|
|
163
|
+
'base:USDC': 'nep141:base-0x833589fcd6edb6e08f4c7c32d4f71b54bda02913.omft.near',
|
|
158
164
|
|
|
159
|
-
//
|
|
160
|
-
'
|
|
161
|
-
'
|
|
165
|
+
// Optimism assets (via HOT bridge - uses nep245)
|
|
166
|
+
'optimism:ETH': 'nep245:v2_1.omni.hot.tg:10_11111111111111111111',
|
|
167
|
+
'optimism:OP': 'nep245:v2_1.omni.hot.tg:10_vLAiSt9KfUGKpw5cD3vsSyNYBo7',
|
|
168
|
+
'optimism:USDC': 'nep245:v2_1.omni.hot.tg:10_A2ewyUyDp6qsue1jqZsGypkCxRJ',
|
|
169
|
+
|
|
170
|
+
// Polygon assets (via HOT bridge - uses nep245)
|
|
171
|
+
'polygon:POL': 'nep245:v2_1.omni.hot.tg:137_11111111111111111111',
|
|
172
|
+
'polygon:MATIC': 'nep245:v2_1.omni.hot.tg:137_11111111111111111111', // POL is the rebranded MATIC
|
|
173
|
+
'polygon:USDC': 'nep245:v2_1.omni.hot.tg:137_qiStmoQJDQPTebaPjgx5VBxZv6L',
|
|
174
|
+
|
|
175
|
+
// BNB Chain assets (via HOT bridge - uses nep245)
|
|
176
|
+
'bsc:BNB': 'nep245:v2_1.omni.hot.tg:56_11111111111111111111',
|
|
177
|
+
'bsc:USDC': 'nep245:v2_1.omni.hot.tg:56_2w93GqMcEmQFDru84j3HZZWt557r',
|
|
178
|
+
|
|
179
|
+
// Avalanche assets (via HOT bridge - uses nep245)
|
|
180
|
+
'avalanche:AVAX': 'nep245:v2_1.omni.hot.tg:43114_11111111111111111111',
|
|
181
|
+
'avalanche:USDC': 'nep245:v2_1.omni.hot.tg:43114_3atVJH3r5c4GqiSYmg9fECvjc47o',
|
|
182
|
+
|
|
183
|
+
// Bitcoin
|
|
184
|
+
'bitcoin:BTC': 'nep141:btc.omft.near',
|
|
185
|
+
|
|
186
|
+
// Aptos
|
|
187
|
+
'aptos:APT': 'nep141:aptos.omft.near',
|
|
162
188
|
}
|
|
163
189
|
|
|
164
190
|
/**
|