@defuse-protocol/intents-sdk 0.53.2 → 0.54.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/dist/src/sdk.cjs +2 -0
- package/dist/src/sdk.d.cts +2 -0
- package/dist/src/sdk.d.ts +2 -0
- package/dist/src/sdk.js +2 -0
- package/package.json +4 -4
package/dist/src/sdk.cjs
CHANGED
|
@@ -32,6 +32,7 @@ var IntentsSDK = class {
|
|
|
32
32
|
this.envConfig = (0, _defuse_protocol_internal_utils.resolveEnvConfig)(args.env);
|
|
33
33
|
this.referral = args.referral;
|
|
34
34
|
this.solverRelayApiKey = args.solverRelayApiKey;
|
|
35
|
+
this.hotBridgeApiKey = args.hotBridgeApiKey;
|
|
35
36
|
const nearRpcEndpoints = args.rpc?.[require_caip2.Chains.Near] ?? _defuse_protocol_internal_utils.PUBLIC_NEAR_RPC_URLS;
|
|
36
37
|
(0, _defuse_protocol_internal_utils.assert)(nearRpcEndpoints.length > 0, "NEAR RPC URLs are not provided");
|
|
37
38
|
const nearProvider = (0, _defuse_protocol_internal_utils.nearFailoverRpcProvider)({ urls: nearRpcEndpoints });
|
|
@@ -57,6 +58,7 @@ var IntentsSDK = class {
|
|
|
57
58
|
envConfig: this.envConfig,
|
|
58
59
|
solverRelayApiKey: this.solverRelayApiKey,
|
|
59
60
|
hotSdk: new _hot_labs_omni_sdk.HotBridge({
|
|
61
|
+
apiKey: this.hotBridgeApiKey,
|
|
60
62
|
logger: console,
|
|
61
63
|
evmRpc: evmRpcUrls,
|
|
62
64
|
nearRpc: nearRpcUrls,
|
package/dist/src/sdk.d.cts
CHANGED
|
@@ -37,6 +37,7 @@ interface IntentsSDKConfig {
|
|
|
37
37
|
rpc?: PartialRPCEndpointMap;
|
|
38
38
|
referral: string;
|
|
39
39
|
solverRelayApiKey?: string;
|
|
40
|
+
hotBridgeApiKey?: string;
|
|
40
41
|
features?: {
|
|
41
42
|
/**
|
|
42
43
|
* Route migrated POA tokens (*.omft.near) through Omni Bridge.
|
|
@@ -52,6 +53,7 @@ declare class IntentsSDK implements IIntentsSDK {
|
|
|
52
53
|
protected intentSigner?: IIntentSigner;
|
|
53
54
|
protected bridges: Bridge[];
|
|
54
55
|
protected solverRelayApiKey: string | undefined;
|
|
56
|
+
protected hotBridgeApiKey: string | undefined;
|
|
55
57
|
protected saltManager: ISaltManager;
|
|
56
58
|
constructor(args: IntentsSDKConfig);
|
|
57
59
|
setIntentSigner(signer: IIntentSigner): void;
|
package/dist/src/sdk.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ interface IntentsSDKConfig {
|
|
|
37
37
|
rpc?: PartialRPCEndpointMap;
|
|
38
38
|
referral: string;
|
|
39
39
|
solverRelayApiKey?: string;
|
|
40
|
+
hotBridgeApiKey?: string;
|
|
40
41
|
features?: {
|
|
41
42
|
/**
|
|
42
43
|
* Route migrated POA tokens (*.omft.near) through Omni Bridge.
|
|
@@ -52,6 +53,7 @@ declare class IntentsSDK implements IIntentsSDK {
|
|
|
52
53
|
protected intentSigner?: IIntentSigner;
|
|
53
54
|
protected bridges: Bridge[];
|
|
54
55
|
protected solverRelayApiKey: string | undefined;
|
|
56
|
+
protected hotBridgeApiKey: string | undefined;
|
|
55
57
|
protected saltManager: ISaltManager;
|
|
56
58
|
constructor(args: IntentsSDKConfig);
|
|
57
59
|
setIntentSigner(signer: IIntentSigner): void;
|
package/dist/src/sdk.js
CHANGED
|
@@ -30,6 +30,7 @@ var IntentsSDK = class {
|
|
|
30
30
|
this.envConfig = resolveEnvConfig(args.env);
|
|
31
31
|
this.referral = args.referral;
|
|
32
32
|
this.solverRelayApiKey = args.solverRelayApiKey;
|
|
33
|
+
this.hotBridgeApiKey = args.hotBridgeApiKey;
|
|
33
34
|
const nearRpcEndpoints = args.rpc?.[Chains.Near] ?? PUBLIC_NEAR_RPC_URLS;
|
|
34
35
|
assert(nearRpcEndpoints.length > 0, "NEAR RPC URLs are not provided");
|
|
35
36
|
const nearProvider = nearFailoverRpcProvider({ urls: nearRpcEndpoints });
|
|
@@ -55,6 +56,7 @@ var IntentsSDK = class {
|
|
|
55
56
|
envConfig: this.envConfig,
|
|
56
57
|
solverRelayApiKey: this.solverRelayApiKey,
|
|
57
58
|
hotSdk: new HotBridge({
|
|
59
|
+
apiKey: this.hotBridgeApiKey,
|
|
58
60
|
logger: console,
|
|
59
61
|
evmRpc: evmRpcUrls,
|
|
60
62
|
nearRpc: nearRpcUrls,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defuse-protocol/intents-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"typescript": "^5"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@hot-labs/omni-sdk": "2.24.
|
|
34
|
+
"@hot-labs/omni-sdk": "2.24.8",
|
|
35
35
|
"@isaacs/ttlcache": "^1.0.0",
|
|
36
36
|
"@lifeomic/attempt": "^3.0.0",
|
|
37
37
|
"@omni-bridge/core": "0.2.3",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"ripple-address-codec": "^5.0.0",
|
|
46
46
|
"valibot": "^1.0.0",
|
|
47
47
|
"viem": "^2.0.0",
|
|
48
|
-
"@defuse-protocol/
|
|
49
|
-
"@defuse-protocol/
|
|
48
|
+
"@defuse-protocol/internal-utils": "0.28.2",
|
|
49
|
+
"@defuse-protocol/contract-types": "0.6.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"tsdown": "0.19.0"
|