@shogun-sdk/swap 0.0.2-test.34 → 0.0.2-test.36
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/core.cjs +17 -19
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +18 -20
- package/dist/{index-RhHZoWOE.d.cts → index-BGHbFEV3.d.cts} +10 -11
- package/dist/{index-DvCPwGOk.d.ts → index-DB1gT72l.d.ts} +10 -11
- package/dist/index.cjs +17 -19
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +18 -20
- package/dist/react.cjs +21 -21
- package/dist/react.d.cts +5 -3
- package/dist/react.d.ts +5 -3
- package/dist/react.js +22 -22
- package/dist/wallet-adapter.cjs +33 -37
- package/dist/wallet-adapter.js +33 -37
- package/package.json +4 -4
package/dist/core.cjs
CHANGED
|
@@ -526,7 +526,7 @@ async function buildOrder({
|
|
|
526
526
|
// src/utils/pollOrderStatus.ts
|
|
527
527
|
var import_intents_sdk8 = require("@shogun-sdk/intents-sdk");
|
|
528
528
|
async function pollOrderStatus(address, orderId, options = {}) {
|
|
529
|
-
const { intervalMs = 2e3, timeoutMs = 3e5 } = options;
|
|
529
|
+
const { intervalMs = 2e3, timeoutMs = 3e5, authToken } = options;
|
|
530
530
|
const startTime = Date.now();
|
|
531
531
|
const isDebug = process.env.NODE_ENV !== "production";
|
|
532
532
|
const isEvmAddress = /^0x[a-fA-F0-9]{40}$/.test(address);
|
|
@@ -547,7 +547,12 @@ async function pollOrderStatus(address, orderId, options = {}) {
|
|
|
547
547
|
}
|
|
548
548
|
const res = await fetch(queryUrl, {
|
|
549
549
|
method: "GET",
|
|
550
|
-
headers:
|
|
550
|
+
headers: {
|
|
551
|
+
"Content-Type": "application/json",
|
|
552
|
+
// The /user_intent status endpoint requires the SIWE JWT; without it
|
|
553
|
+
// the request 401s after the order has already been submitted.
|
|
554
|
+
...authToken ? { Authorization: `Bearer ${authToken}` } : {}
|
|
555
|
+
}
|
|
551
556
|
});
|
|
552
557
|
if (!res.ok) {
|
|
553
558
|
clearInterval(pollInterval);
|
|
@@ -755,7 +760,7 @@ async function handleEvmExecution({
|
|
|
755
760
|
stage: "success"
|
|
756
761
|
};
|
|
757
762
|
} else {
|
|
758
|
-
const status = await pollOrderStatus(accountAddress, orderId);
|
|
763
|
+
const status = await pollOrderStatus(accountAddress, orderId, { authToken: options?.authToken });
|
|
759
764
|
return await handleOrderPollingResult({
|
|
760
765
|
status,
|
|
761
766
|
orderId,
|
|
@@ -798,13 +803,7 @@ async function handleSolanaExecution({
|
|
|
798
803
|
const txData = await getSolanaOrderInstructions({
|
|
799
804
|
order,
|
|
800
805
|
isSingleChain,
|
|
801
|
-
rpcUrl: wallet.rpcUrl
|
|
802
|
-
txOptions: {
|
|
803
|
-
feePayer: options?.feePayer,
|
|
804
|
-
tipAmountSol: options?.tipAmountSol,
|
|
805
|
-
tipLamports: options?.tipLamports,
|
|
806
|
-
tipAccount: options?.tipAccount
|
|
807
|
-
}
|
|
806
|
+
rpcUrl: wallet.rpcUrl
|
|
808
807
|
});
|
|
809
808
|
const transaction = import_web3.VersionedTransaction.deserialize(Uint8Array.from(txData.txBytes));
|
|
810
809
|
update("processing", messageFor("signing"));
|
|
@@ -831,7 +830,7 @@ async function handleSolanaExecution({
|
|
|
831
830
|
stage: "success"
|
|
832
831
|
};
|
|
833
832
|
} else {
|
|
834
|
-
const status = await pollOrderStatus(accountAddress, orderId);
|
|
833
|
+
const status = await pollOrderStatus(accountAddress, orderId, { authToken: options?.authToken });
|
|
835
834
|
return await handleOrderPollingResult({
|
|
836
835
|
status,
|
|
837
836
|
orderId,
|
|
@@ -844,17 +843,16 @@ async function handleSolanaExecution({
|
|
|
844
843
|
async function getSolanaOrderInstructions({
|
|
845
844
|
order,
|
|
846
845
|
isSingleChain,
|
|
847
|
-
rpcUrl
|
|
848
|
-
txOptions
|
|
846
|
+
rpcUrl
|
|
849
847
|
}) {
|
|
850
|
-
const options = {
|
|
851
|
-
rpcUrl,
|
|
852
|
-
...txOptions
|
|
853
|
-
};
|
|
854
848
|
if (isSingleChain) {
|
|
855
|
-
return await (0, import_intents_sdk11.getSolanaSingleChainOrderInstructions)(order,
|
|
849
|
+
return await (0, import_intents_sdk11.getSolanaSingleChainOrderInstructions)(order, {
|
|
850
|
+
rpcUrl
|
|
851
|
+
});
|
|
856
852
|
}
|
|
857
|
-
return await (0, import_intents_sdk11.getSolanaCrossChainOrderInstructions)(order,
|
|
853
|
+
return await (0, import_intents_sdk11.getSolanaCrossChainOrderInstructions)(order, {
|
|
854
|
+
rpcUrl
|
|
855
|
+
});
|
|
858
856
|
}
|
|
859
857
|
async function submitToAuctioneer({
|
|
860
858
|
order,
|
package/dist/core.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BalanceRequestParams, e as BalanceResponse, C as ChainId, O as OrderExecutionType,
|
|
1
|
+
export { B as BalanceRequestParams, e as BalanceResponse, C as ChainId, O as OrderExecutionType, j as SupportedChain, g as SupportedChains, b as SwapQuoteParams, c as SwapQuoteResponse, a as SwapSDK, S as SwapSDKConfig, h as TokenBalance, f as buildQuoteParams, i as isEvmChain } from './index-BGHbFEV3.cjs';
|
|
2
2
|
import '@shogun-sdk/intents-sdk';
|
|
3
3
|
import './wallet-B9bKceyN.cjs';
|
|
4
4
|
import '@solana/web3.js';
|
package/dist/core.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BalanceRequestParams, e as BalanceResponse, C as ChainId, O as OrderExecutionType,
|
|
1
|
+
export { B as BalanceRequestParams, e as BalanceResponse, C as ChainId, O as OrderExecutionType, j as SupportedChain, g as SupportedChains, b as SwapQuoteParams, c as SwapQuoteResponse, a as SwapSDK, S as SwapSDKConfig, h as TokenBalance, f as buildQuoteParams, i as isEvmChain } from './index-DB1gT72l.js';
|
|
2
2
|
import '@shogun-sdk/intents-sdk';
|
|
3
3
|
import './wallet-B9bKceyN.js';
|
|
4
4
|
import '@solana/web3.js';
|
package/dist/core.js
CHANGED
|
@@ -501,9 +501,9 @@ async function buildOrder({
|
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
// src/utils/pollOrderStatus.ts
|
|
504
|
-
import { AUCTIONEER_URL
|
|
504
|
+
import { AUCTIONEER_URL } from "@shogun-sdk/intents-sdk";
|
|
505
505
|
async function pollOrderStatus(address, orderId, options = {}) {
|
|
506
|
-
const { intervalMs = 2e3, timeoutMs = 3e5 } = options;
|
|
506
|
+
const { intervalMs = 2e3, timeoutMs = 3e5, authToken } = options;
|
|
507
507
|
const startTime = Date.now();
|
|
508
508
|
const isDebug = process.env.NODE_ENV !== "production";
|
|
509
509
|
const isEvmAddress = /^0x[a-fA-F0-9]{40}$/.test(address);
|
|
@@ -524,7 +524,12 @@ async function pollOrderStatus(address, orderId, options = {}) {
|
|
|
524
524
|
}
|
|
525
525
|
const res = await fetch(queryUrl, {
|
|
526
526
|
method: "GET",
|
|
527
|
-
headers:
|
|
527
|
+
headers: {
|
|
528
|
+
"Content-Type": "application/json",
|
|
529
|
+
// The /user_intent status endpoint requires the SIWE JWT; without it
|
|
530
|
+
// the request 401s after the order has already been submitted.
|
|
531
|
+
...authToken ? { Authorization: `Bearer ${authToken}` } : {}
|
|
532
|
+
}
|
|
528
533
|
});
|
|
529
534
|
if (!res.ok) {
|
|
530
535
|
clearInterval(pollInterval);
|
|
@@ -732,7 +737,7 @@ async function handleEvmExecution({
|
|
|
732
737
|
stage: "success"
|
|
733
738
|
};
|
|
734
739
|
} else {
|
|
735
|
-
const status = await pollOrderStatus(accountAddress, orderId);
|
|
740
|
+
const status = await pollOrderStatus(accountAddress, orderId, { authToken: options?.authToken });
|
|
736
741
|
return await handleOrderPollingResult({
|
|
737
742
|
status,
|
|
738
743
|
orderId,
|
|
@@ -778,13 +783,7 @@ async function handleSolanaExecution({
|
|
|
778
783
|
const txData = await getSolanaOrderInstructions({
|
|
779
784
|
order,
|
|
780
785
|
isSingleChain,
|
|
781
|
-
rpcUrl: wallet.rpcUrl
|
|
782
|
-
txOptions: {
|
|
783
|
-
feePayer: options?.feePayer,
|
|
784
|
-
tipAmountSol: options?.tipAmountSol,
|
|
785
|
-
tipLamports: options?.tipLamports,
|
|
786
|
-
tipAccount: options?.tipAccount
|
|
787
|
-
}
|
|
786
|
+
rpcUrl: wallet.rpcUrl
|
|
788
787
|
});
|
|
789
788
|
const transaction = VersionedTransaction.deserialize(Uint8Array.from(txData.txBytes));
|
|
790
789
|
update("processing", messageFor("signing"));
|
|
@@ -811,7 +810,7 @@ async function handleSolanaExecution({
|
|
|
811
810
|
stage: "success"
|
|
812
811
|
};
|
|
813
812
|
} else {
|
|
814
|
-
const status = await pollOrderStatus(accountAddress, orderId);
|
|
813
|
+
const status = await pollOrderStatus(accountAddress, orderId, { authToken: options?.authToken });
|
|
815
814
|
return await handleOrderPollingResult({
|
|
816
815
|
status,
|
|
817
816
|
orderId,
|
|
@@ -824,17 +823,16 @@ async function handleSolanaExecution({
|
|
|
824
823
|
async function getSolanaOrderInstructions({
|
|
825
824
|
order,
|
|
826
825
|
isSingleChain,
|
|
827
|
-
rpcUrl
|
|
828
|
-
txOptions
|
|
826
|
+
rpcUrl
|
|
829
827
|
}) {
|
|
830
|
-
const options = {
|
|
831
|
-
rpcUrl,
|
|
832
|
-
...txOptions
|
|
833
|
-
};
|
|
834
828
|
if (isSingleChain) {
|
|
835
|
-
return await getSolanaSingleChainOrderInstructions(order,
|
|
829
|
+
return await getSolanaSingleChainOrderInstructions(order, {
|
|
830
|
+
rpcUrl
|
|
831
|
+
});
|
|
836
832
|
}
|
|
837
|
-
return await getSolanaCrossChainOrderInstructions(order,
|
|
833
|
+
return await getSolanaCrossChainOrderInstructions(order, {
|
|
834
|
+
rpcUrl
|
|
835
|
+
});
|
|
838
836
|
}
|
|
839
837
|
async function submitToAuctioneer({
|
|
840
838
|
order,
|
|
@@ -95,20 +95,19 @@ type PlaceOrderResult = {
|
|
|
95
95
|
message: string;
|
|
96
96
|
stage: string;
|
|
97
97
|
};
|
|
98
|
-
interface
|
|
98
|
+
interface BaseOrderOptions {
|
|
99
|
+
/**
|
|
100
|
+
* SIWE-issued JWT (the app's `auctioneer.token`). Forwarded to the
|
|
101
|
+
* authenticated order-status poll so it can read status without a 401.
|
|
102
|
+
*/
|
|
103
|
+
authToken?: string;
|
|
104
|
+
}
|
|
105
|
+
interface MarketOrderOptions extends BaseOrderOptions {
|
|
99
106
|
deadline?: number;
|
|
100
|
-
feePayer?: string;
|
|
101
|
-
tipAmountSol?: number | string;
|
|
102
|
-
tipLamports?: bigint;
|
|
103
|
-
tipAccount?: string;
|
|
104
107
|
}
|
|
105
|
-
interface LimitOrderOptions {
|
|
108
|
+
interface LimitOrderOptions extends BaseOrderOptions {
|
|
106
109
|
executionPrice: string;
|
|
107
110
|
deadline: number;
|
|
108
|
-
feePayer?: string;
|
|
109
|
-
tipAmountSol?: number | string;
|
|
110
|
-
tipLamports?: bigint;
|
|
111
|
-
tipAccount?: string;
|
|
112
111
|
}
|
|
113
112
|
type ExecuteOrderParams = {
|
|
114
113
|
orderType?: OrderExecutionType.MARKET;
|
|
@@ -399,4 +398,4 @@ declare const SupportedChains: ({
|
|
|
399
398
|
})[];
|
|
400
399
|
declare const isEvmChain: typeof isEvmChain$1;
|
|
401
400
|
|
|
402
|
-
export { type BalanceRequestParams as B, ChainId as C, type ExecuteOrderParams as E, OrderExecutionType as O, type PlaceOrderResult as P, type SwapSDKConfig as S, type TokenInfo as T, SwapSDK as a, type SwapQuoteParams as b, type SwapQuoteResponse as c, type Stage as d, type BalanceResponse as e,
|
|
401
|
+
export { type BalanceRequestParams as B, ChainId as C, type ExecuteOrderParams as E, OrderExecutionType as O, type PlaceOrderResult as P, type SwapSDKConfig as S, type TokenInfo as T, SwapSDK as a, type SwapQuoteParams as b, type SwapQuoteResponse as c, type Stage as d, type BalanceResponse as e, buildQuoteParams as f, SupportedChains as g, type TokenBalance as h, isEvmChain as i, type SupportedChain as j };
|
|
@@ -95,20 +95,19 @@ type PlaceOrderResult = {
|
|
|
95
95
|
message: string;
|
|
96
96
|
stage: string;
|
|
97
97
|
};
|
|
98
|
-
interface
|
|
98
|
+
interface BaseOrderOptions {
|
|
99
|
+
/**
|
|
100
|
+
* SIWE-issued JWT (the app's `auctioneer.token`). Forwarded to the
|
|
101
|
+
* authenticated order-status poll so it can read status without a 401.
|
|
102
|
+
*/
|
|
103
|
+
authToken?: string;
|
|
104
|
+
}
|
|
105
|
+
interface MarketOrderOptions extends BaseOrderOptions {
|
|
99
106
|
deadline?: number;
|
|
100
|
-
feePayer?: string;
|
|
101
|
-
tipAmountSol?: number | string;
|
|
102
|
-
tipLamports?: bigint;
|
|
103
|
-
tipAccount?: string;
|
|
104
107
|
}
|
|
105
|
-
interface LimitOrderOptions {
|
|
108
|
+
interface LimitOrderOptions extends BaseOrderOptions {
|
|
106
109
|
executionPrice: string;
|
|
107
110
|
deadline: number;
|
|
108
|
-
feePayer?: string;
|
|
109
|
-
tipAmountSol?: number | string;
|
|
110
|
-
tipLamports?: bigint;
|
|
111
|
-
tipAccount?: string;
|
|
112
111
|
}
|
|
113
112
|
type ExecuteOrderParams = {
|
|
114
113
|
orderType?: OrderExecutionType.MARKET;
|
|
@@ -399,4 +398,4 @@ declare const SupportedChains: ({
|
|
|
399
398
|
})[];
|
|
400
399
|
declare const isEvmChain: typeof isEvmChain$1;
|
|
401
400
|
|
|
402
|
-
export { type BalanceRequestParams as B, ChainId as C, type ExecuteOrderParams as E, OrderExecutionType as O, type PlaceOrderResult as P, type SwapSDKConfig as S, type TokenInfo as T, SwapSDK as a, type SwapQuoteParams as b, type SwapQuoteResponse as c, type Stage as d, type BalanceResponse as e,
|
|
401
|
+
export { type BalanceRequestParams as B, ChainId as C, type ExecuteOrderParams as E, OrderExecutionType as O, type PlaceOrderResult as P, type SwapSDKConfig as S, type TokenInfo as T, SwapSDK as a, type SwapQuoteParams as b, type SwapQuoteResponse as c, type Stage as d, type BalanceResponse as e, buildQuoteParams as f, SupportedChains as g, type TokenBalance as h, isEvmChain as i, type SupportedChain as j };
|
package/dist/index.cjs
CHANGED
|
@@ -526,7 +526,7 @@ async function buildOrder({
|
|
|
526
526
|
// src/utils/pollOrderStatus.ts
|
|
527
527
|
var import_intents_sdk8 = require("@shogun-sdk/intents-sdk");
|
|
528
528
|
async function pollOrderStatus(address, orderId, options = {}) {
|
|
529
|
-
const { intervalMs = 2e3, timeoutMs = 3e5 } = options;
|
|
529
|
+
const { intervalMs = 2e3, timeoutMs = 3e5, authToken } = options;
|
|
530
530
|
const startTime = Date.now();
|
|
531
531
|
const isDebug = process.env.NODE_ENV !== "production";
|
|
532
532
|
const isEvmAddress = /^0x[a-fA-F0-9]{40}$/.test(address);
|
|
@@ -547,7 +547,12 @@ async function pollOrderStatus(address, orderId, options = {}) {
|
|
|
547
547
|
}
|
|
548
548
|
const res = await fetch(queryUrl, {
|
|
549
549
|
method: "GET",
|
|
550
|
-
headers:
|
|
550
|
+
headers: {
|
|
551
|
+
"Content-Type": "application/json",
|
|
552
|
+
// The /user_intent status endpoint requires the SIWE JWT; without it
|
|
553
|
+
// the request 401s after the order has already been submitted.
|
|
554
|
+
...authToken ? { Authorization: `Bearer ${authToken}` } : {}
|
|
555
|
+
}
|
|
551
556
|
});
|
|
552
557
|
if (!res.ok) {
|
|
553
558
|
clearInterval(pollInterval);
|
|
@@ -755,7 +760,7 @@ async function handleEvmExecution({
|
|
|
755
760
|
stage: "success"
|
|
756
761
|
};
|
|
757
762
|
} else {
|
|
758
|
-
const status = await pollOrderStatus(accountAddress, orderId);
|
|
763
|
+
const status = await pollOrderStatus(accountAddress, orderId, { authToken: options?.authToken });
|
|
759
764
|
return await handleOrderPollingResult({
|
|
760
765
|
status,
|
|
761
766
|
orderId,
|
|
@@ -798,13 +803,7 @@ async function handleSolanaExecution({
|
|
|
798
803
|
const txData = await getSolanaOrderInstructions({
|
|
799
804
|
order,
|
|
800
805
|
isSingleChain,
|
|
801
|
-
rpcUrl: wallet.rpcUrl
|
|
802
|
-
txOptions: {
|
|
803
|
-
feePayer: options?.feePayer,
|
|
804
|
-
tipAmountSol: options?.tipAmountSol,
|
|
805
|
-
tipLamports: options?.tipLamports,
|
|
806
|
-
tipAccount: options?.tipAccount
|
|
807
|
-
}
|
|
806
|
+
rpcUrl: wallet.rpcUrl
|
|
808
807
|
});
|
|
809
808
|
const transaction = import_web3.VersionedTransaction.deserialize(Uint8Array.from(txData.txBytes));
|
|
810
809
|
update("processing", messageFor("signing"));
|
|
@@ -831,7 +830,7 @@ async function handleSolanaExecution({
|
|
|
831
830
|
stage: "success"
|
|
832
831
|
};
|
|
833
832
|
} else {
|
|
834
|
-
const status = await pollOrderStatus(accountAddress, orderId);
|
|
833
|
+
const status = await pollOrderStatus(accountAddress, orderId, { authToken: options?.authToken });
|
|
835
834
|
return await handleOrderPollingResult({
|
|
836
835
|
status,
|
|
837
836
|
orderId,
|
|
@@ -844,17 +843,16 @@ async function handleSolanaExecution({
|
|
|
844
843
|
async function getSolanaOrderInstructions({
|
|
845
844
|
order,
|
|
846
845
|
isSingleChain,
|
|
847
|
-
rpcUrl
|
|
848
|
-
txOptions
|
|
846
|
+
rpcUrl
|
|
849
847
|
}) {
|
|
850
|
-
const options = {
|
|
851
|
-
rpcUrl,
|
|
852
|
-
...txOptions
|
|
853
|
-
};
|
|
854
848
|
if (isSingleChain) {
|
|
855
|
-
return await (0, import_intents_sdk11.getSolanaSingleChainOrderInstructions)(order,
|
|
849
|
+
return await (0, import_intents_sdk11.getSolanaSingleChainOrderInstructions)(order, {
|
|
850
|
+
rpcUrl
|
|
851
|
+
});
|
|
856
852
|
}
|
|
857
|
-
return await (0, import_intents_sdk11.getSolanaCrossChainOrderInstructions)(order,
|
|
853
|
+
return await (0, import_intents_sdk11.getSolanaCrossChainOrderInstructions)(order, {
|
|
854
|
+
rpcUrl
|
|
855
|
+
});
|
|
858
856
|
}
|
|
859
857
|
async function submitToAuctioneer({
|
|
860
858
|
order,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BalanceRequestParams, e as BalanceResponse, C as ChainId, O as OrderExecutionType,
|
|
1
|
+
export { B as BalanceRequestParams, e as BalanceResponse, C as ChainId, O as OrderExecutionType, j as SupportedChain, g as SupportedChains, b as SwapQuoteParams, c as SwapQuoteResponse, a as SwapSDK, S as SwapSDKConfig, h as TokenBalance, f as buildQuoteParams, i as isEvmChain } from './index-BGHbFEV3.cjs';
|
|
2
2
|
import '@shogun-sdk/intents-sdk';
|
|
3
3
|
import './wallet-B9bKceyN.cjs';
|
|
4
4
|
import '@solana/web3.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BalanceRequestParams, e as BalanceResponse, C as ChainId, O as OrderExecutionType,
|
|
1
|
+
export { B as BalanceRequestParams, e as BalanceResponse, C as ChainId, O as OrderExecutionType, j as SupportedChain, g as SupportedChains, b as SwapQuoteParams, c as SwapQuoteResponse, a as SwapSDK, S as SwapSDKConfig, h as TokenBalance, f as buildQuoteParams, i as isEvmChain } from './index-DB1gT72l.js';
|
|
2
2
|
import '@shogun-sdk/intents-sdk';
|
|
3
3
|
import './wallet-B9bKceyN.js';
|
|
4
4
|
import '@solana/web3.js';
|
package/dist/index.js
CHANGED
|
@@ -501,9 +501,9 @@ async function buildOrder({
|
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
// src/utils/pollOrderStatus.ts
|
|
504
|
-
import { AUCTIONEER_URL
|
|
504
|
+
import { AUCTIONEER_URL } from "@shogun-sdk/intents-sdk";
|
|
505
505
|
async function pollOrderStatus(address, orderId, options = {}) {
|
|
506
|
-
const { intervalMs = 2e3, timeoutMs = 3e5 } = options;
|
|
506
|
+
const { intervalMs = 2e3, timeoutMs = 3e5, authToken } = options;
|
|
507
507
|
const startTime = Date.now();
|
|
508
508
|
const isDebug = process.env.NODE_ENV !== "production";
|
|
509
509
|
const isEvmAddress = /^0x[a-fA-F0-9]{40}$/.test(address);
|
|
@@ -524,7 +524,12 @@ async function pollOrderStatus(address, orderId, options = {}) {
|
|
|
524
524
|
}
|
|
525
525
|
const res = await fetch(queryUrl, {
|
|
526
526
|
method: "GET",
|
|
527
|
-
headers:
|
|
527
|
+
headers: {
|
|
528
|
+
"Content-Type": "application/json",
|
|
529
|
+
// The /user_intent status endpoint requires the SIWE JWT; without it
|
|
530
|
+
// the request 401s after the order has already been submitted.
|
|
531
|
+
...authToken ? { Authorization: `Bearer ${authToken}` } : {}
|
|
532
|
+
}
|
|
528
533
|
});
|
|
529
534
|
if (!res.ok) {
|
|
530
535
|
clearInterval(pollInterval);
|
|
@@ -732,7 +737,7 @@ async function handleEvmExecution({
|
|
|
732
737
|
stage: "success"
|
|
733
738
|
};
|
|
734
739
|
} else {
|
|
735
|
-
const status = await pollOrderStatus(accountAddress, orderId);
|
|
740
|
+
const status = await pollOrderStatus(accountAddress, orderId, { authToken: options?.authToken });
|
|
736
741
|
return await handleOrderPollingResult({
|
|
737
742
|
status,
|
|
738
743
|
orderId,
|
|
@@ -778,13 +783,7 @@ async function handleSolanaExecution({
|
|
|
778
783
|
const txData = await getSolanaOrderInstructions({
|
|
779
784
|
order,
|
|
780
785
|
isSingleChain,
|
|
781
|
-
rpcUrl: wallet.rpcUrl
|
|
782
|
-
txOptions: {
|
|
783
|
-
feePayer: options?.feePayer,
|
|
784
|
-
tipAmountSol: options?.tipAmountSol,
|
|
785
|
-
tipLamports: options?.tipLamports,
|
|
786
|
-
tipAccount: options?.tipAccount
|
|
787
|
-
}
|
|
786
|
+
rpcUrl: wallet.rpcUrl
|
|
788
787
|
});
|
|
789
788
|
const transaction = VersionedTransaction.deserialize(Uint8Array.from(txData.txBytes));
|
|
790
789
|
update("processing", messageFor("signing"));
|
|
@@ -811,7 +810,7 @@ async function handleSolanaExecution({
|
|
|
811
810
|
stage: "success"
|
|
812
811
|
};
|
|
813
812
|
} else {
|
|
814
|
-
const status = await pollOrderStatus(accountAddress, orderId);
|
|
813
|
+
const status = await pollOrderStatus(accountAddress, orderId, { authToken: options?.authToken });
|
|
815
814
|
return await handleOrderPollingResult({
|
|
816
815
|
status,
|
|
817
816
|
orderId,
|
|
@@ -824,17 +823,16 @@ async function handleSolanaExecution({
|
|
|
824
823
|
async function getSolanaOrderInstructions({
|
|
825
824
|
order,
|
|
826
825
|
isSingleChain,
|
|
827
|
-
rpcUrl
|
|
828
|
-
txOptions
|
|
826
|
+
rpcUrl
|
|
829
827
|
}) {
|
|
830
|
-
const options = {
|
|
831
|
-
rpcUrl,
|
|
832
|
-
...txOptions
|
|
833
|
-
};
|
|
834
828
|
if (isSingleChain) {
|
|
835
|
-
return await getSolanaSingleChainOrderInstructions(order,
|
|
829
|
+
return await getSolanaSingleChainOrderInstructions(order, {
|
|
830
|
+
rpcUrl
|
|
831
|
+
});
|
|
836
832
|
}
|
|
837
|
-
return await getSolanaCrossChainOrderInstructions(order,
|
|
833
|
+
return await getSolanaCrossChainOrderInstructions(order, {
|
|
834
|
+
rpcUrl
|
|
835
|
+
});
|
|
838
836
|
}
|
|
839
837
|
async function submitToAuctioneer({
|
|
840
838
|
order,
|
package/dist/react.cjs
CHANGED
|
@@ -547,7 +547,7 @@ async function buildOrder({
|
|
|
547
547
|
// src/utils/pollOrderStatus.ts
|
|
548
548
|
var import_intents_sdk8 = require("@shogun-sdk/intents-sdk");
|
|
549
549
|
async function pollOrderStatus(address, orderId, options = {}) {
|
|
550
|
-
const { intervalMs = 2e3, timeoutMs = 3e5 } = options;
|
|
550
|
+
const { intervalMs = 2e3, timeoutMs = 3e5, authToken } = options;
|
|
551
551
|
const startTime = Date.now();
|
|
552
552
|
const isDebug = process.env.NODE_ENV !== "production";
|
|
553
553
|
const isEvmAddress = /^0x[a-fA-F0-9]{40}$/.test(address);
|
|
@@ -568,7 +568,12 @@ async function pollOrderStatus(address, orderId, options = {}) {
|
|
|
568
568
|
}
|
|
569
569
|
const res = await fetch(queryUrl, {
|
|
570
570
|
method: "GET",
|
|
571
|
-
headers:
|
|
571
|
+
headers: {
|
|
572
|
+
"Content-Type": "application/json",
|
|
573
|
+
// The /user_intent status endpoint requires the SIWE JWT; without it
|
|
574
|
+
// the request 401s after the order has already been submitted.
|
|
575
|
+
...authToken ? { Authorization: `Bearer ${authToken}` } : {}
|
|
576
|
+
}
|
|
572
577
|
});
|
|
573
578
|
if (!res.ok) {
|
|
574
579
|
clearInterval(pollInterval);
|
|
@@ -776,7 +781,7 @@ async function handleEvmExecution({
|
|
|
776
781
|
stage: "success"
|
|
777
782
|
};
|
|
778
783
|
} else {
|
|
779
|
-
const status = await pollOrderStatus(accountAddress, orderId);
|
|
784
|
+
const status = await pollOrderStatus(accountAddress, orderId, { authToken: options?.authToken });
|
|
780
785
|
return await handleOrderPollingResult({
|
|
781
786
|
status,
|
|
782
787
|
orderId,
|
|
@@ -819,13 +824,7 @@ async function handleSolanaExecution({
|
|
|
819
824
|
const txData = await getSolanaOrderInstructions({
|
|
820
825
|
order,
|
|
821
826
|
isSingleChain,
|
|
822
|
-
rpcUrl: wallet.rpcUrl
|
|
823
|
-
txOptions: {
|
|
824
|
-
feePayer: options?.feePayer,
|
|
825
|
-
tipAmountSol: options?.tipAmountSol,
|
|
826
|
-
tipLamports: options?.tipLamports,
|
|
827
|
-
tipAccount: options?.tipAccount
|
|
828
|
-
}
|
|
827
|
+
rpcUrl: wallet.rpcUrl
|
|
829
828
|
});
|
|
830
829
|
const transaction = import_web3.VersionedTransaction.deserialize(Uint8Array.from(txData.txBytes));
|
|
831
830
|
update("processing", messageFor("signing"));
|
|
@@ -852,7 +851,7 @@ async function handleSolanaExecution({
|
|
|
852
851
|
stage: "success"
|
|
853
852
|
};
|
|
854
853
|
} else {
|
|
855
|
-
const status = await pollOrderStatus(accountAddress, orderId);
|
|
854
|
+
const status = await pollOrderStatus(accountAddress, orderId, { authToken: options?.authToken });
|
|
856
855
|
return await handleOrderPollingResult({
|
|
857
856
|
status,
|
|
858
857
|
orderId,
|
|
@@ -865,17 +864,16 @@ async function handleSolanaExecution({
|
|
|
865
864
|
async function getSolanaOrderInstructions({
|
|
866
865
|
order,
|
|
867
866
|
isSingleChain,
|
|
868
|
-
rpcUrl
|
|
869
|
-
txOptions
|
|
867
|
+
rpcUrl
|
|
870
868
|
}) {
|
|
871
|
-
const options = {
|
|
872
|
-
rpcUrl,
|
|
873
|
-
...txOptions
|
|
874
|
-
};
|
|
875
869
|
if (isSingleChain) {
|
|
876
|
-
return await (0, import_intents_sdk11.getSolanaSingleChainOrderInstructions)(order,
|
|
870
|
+
return await (0, import_intents_sdk11.getSolanaSingleChainOrderInstructions)(order, {
|
|
871
|
+
rpcUrl
|
|
872
|
+
});
|
|
877
873
|
}
|
|
878
|
-
return await (0, import_intents_sdk11.getSolanaCrossChainOrderInstructions)(order,
|
|
874
|
+
return await (0, import_intents_sdk11.getSolanaCrossChainOrderInstructions)(order, {
|
|
875
|
+
rpcUrl
|
|
876
|
+
});
|
|
879
877
|
}
|
|
880
878
|
async function submitToAuctioneer({
|
|
881
879
|
order,
|
|
@@ -1565,7 +1563,7 @@ var import_react4 = require("react");
|
|
|
1565
1563
|
var import_react3 = require("react");
|
|
1566
1564
|
var import_swr2 = __toESM(require("swr"), 1);
|
|
1567
1565
|
var BALANCE_KEY = "balances-global";
|
|
1568
|
-
function useBalances(initialParams) {
|
|
1566
|
+
function useBalances(initialParams, options) {
|
|
1569
1567
|
const sdk = useSwap();
|
|
1570
1568
|
const abortRef = (0, import_react3.useRef)(null);
|
|
1571
1569
|
const paramsRef = globalThis.__BALANCES_PARAMS_REF__ ?? (globalThis.__BALANCES_PARAMS_REF__ = { current: initialParams ?? null });
|
|
@@ -1591,7 +1589,9 @@ function useBalances(initialParams) {
|
|
|
1591
1589
|
} = (0, import_swr2.default)(BALANCE_KEY, fetcher, {
|
|
1592
1590
|
revalidateOnFocus: false,
|
|
1593
1591
|
shouldRetryOnError: false,
|
|
1594
|
-
keepPreviousData: true
|
|
1592
|
+
keepPreviousData: true,
|
|
1593
|
+
// 0 (default) disables polling; a positive value re-fetches on that interval.
|
|
1594
|
+
refreshInterval: options?.refreshInterval ?? 0
|
|
1595
1595
|
});
|
|
1596
1596
|
const refetch = (0, import_react3.useCallback)(async () => {
|
|
1597
1597
|
await mutateBalances();
|
package/dist/react.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { S as SwapSDKConfig, a as SwapSDK, b as SwapQuoteParams, c as SwapQuoteResponse, E as ExecuteOrderParams, d as Stage, P as PlaceOrderResult, T as TokenInfo, B as BalanceRequestParams, e as BalanceResponse } from './index-
|
|
3
|
-
export { C as ChainId, O as OrderExecutionType,
|
|
2
|
+
import { S as SwapSDKConfig, a as SwapSDK, b as SwapQuoteParams, c as SwapQuoteResponse, E as ExecuteOrderParams, d as Stage, P as PlaceOrderResult, T as TokenInfo, B as BalanceRequestParams, e as BalanceResponse } from './index-BGHbFEV3.cjs';
|
|
3
|
+
export { C as ChainId, O as OrderExecutionType, j as SupportedChain, g as SupportedChains, h as TokenBalance, f as buildQuoteParams, i as isEvmChain } from './index-BGHbFEV3.cjs';
|
|
4
4
|
import { WalletClient } from 'viem';
|
|
5
5
|
import { A as AdaptedWallet } from './wallet-B9bKceyN.cjs';
|
|
6
6
|
import { ApiUserOrders, ApiCrossChainOrder, ApiSingleChainOrder } from '@shogun-sdk/intents-sdk';
|
|
@@ -197,7 +197,9 @@ declare global {
|
|
|
197
197
|
* - Keeps previous data during refetch (no reset)
|
|
198
198
|
* - Auto-refetch when initialParams change (svm_address or evm_address)
|
|
199
199
|
*/
|
|
200
|
-
declare function useBalances(initialParams?: BalanceRequestParams | null
|
|
200
|
+
declare function useBalances(initialParams?: BalanceRequestParams | null, options?: {
|
|
201
|
+
refreshInterval?: number;
|
|
202
|
+
}): {
|
|
201
203
|
data: BalanceResponse | null | undefined;
|
|
202
204
|
loading: boolean;
|
|
203
205
|
error: Error | null;
|
package/dist/react.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { S as SwapSDKConfig, a as SwapSDK, b as SwapQuoteParams, c as SwapQuoteResponse, E as ExecuteOrderParams, d as Stage, P as PlaceOrderResult, T as TokenInfo, B as BalanceRequestParams, e as BalanceResponse } from './index-
|
|
3
|
-
export { C as ChainId, O as OrderExecutionType,
|
|
2
|
+
import { S as SwapSDKConfig, a as SwapSDK, b as SwapQuoteParams, c as SwapQuoteResponse, E as ExecuteOrderParams, d as Stage, P as PlaceOrderResult, T as TokenInfo, B as BalanceRequestParams, e as BalanceResponse } from './index-DB1gT72l.js';
|
|
3
|
+
export { C as ChainId, O as OrderExecutionType, j as SupportedChain, g as SupportedChains, h as TokenBalance, f as buildQuoteParams, i as isEvmChain } from './index-DB1gT72l.js';
|
|
4
4
|
import { WalletClient } from 'viem';
|
|
5
5
|
import { A as AdaptedWallet } from './wallet-B9bKceyN.js';
|
|
6
6
|
import { ApiUserOrders, ApiCrossChainOrder, ApiSingleChainOrder } from '@shogun-sdk/intents-sdk';
|
|
@@ -197,7 +197,9 @@ declare global {
|
|
|
197
197
|
* - Keeps previous data during refetch (no reset)
|
|
198
198
|
* - Auto-refetch when initialParams change (svm_address or evm_address)
|
|
199
199
|
*/
|
|
200
|
-
declare function useBalances(initialParams?: BalanceRequestParams | null
|
|
200
|
+
declare function useBalances(initialParams?: BalanceRequestParams | null, options?: {
|
|
201
|
+
refreshInterval?: number;
|
|
202
|
+
}): {
|
|
201
203
|
data: BalanceResponse | null | undefined;
|
|
202
204
|
loading: boolean;
|
|
203
205
|
error: Error | null;
|
package/dist/react.js
CHANGED
|
@@ -504,9 +504,9 @@ async function buildOrder({
|
|
|
504
504
|
}
|
|
505
505
|
|
|
506
506
|
// src/utils/pollOrderStatus.ts
|
|
507
|
-
import { AUCTIONEER_URL
|
|
507
|
+
import { AUCTIONEER_URL } from "@shogun-sdk/intents-sdk";
|
|
508
508
|
async function pollOrderStatus(address, orderId, options = {}) {
|
|
509
|
-
const { intervalMs = 2e3, timeoutMs = 3e5 } = options;
|
|
509
|
+
const { intervalMs = 2e3, timeoutMs = 3e5, authToken } = options;
|
|
510
510
|
const startTime = Date.now();
|
|
511
511
|
const isDebug = process.env.NODE_ENV !== "production";
|
|
512
512
|
const isEvmAddress = /^0x[a-fA-F0-9]{40}$/.test(address);
|
|
@@ -527,7 +527,12 @@ async function pollOrderStatus(address, orderId, options = {}) {
|
|
|
527
527
|
}
|
|
528
528
|
const res = await fetch(queryUrl, {
|
|
529
529
|
method: "GET",
|
|
530
|
-
headers:
|
|
530
|
+
headers: {
|
|
531
|
+
"Content-Type": "application/json",
|
|
532
|
+
// The /user_intent status endpoint requires the SIWE JWT; without it
|
|
533
|
+
// the request 401s after the order has already been submitted.
|
|
534
|
+
...authToken ? { Authorization: `Bearer ${authToken}` } : {}
|
|
535
|
+
}
|
|
531
536
|
});
|
|
532
537
|
if (!res.ok) {
|
|
533
538
|
clearInterval(pollInterval);
|
|
@@ -735,7 +740,7 @@ async function handleEvmExecution({
|
|
|
735
740
|
stage: "success"
|
|
736
741
|
};
|
|
737
742
|
} else {
|
|
738
|
-
const status = await pollOrderStatus(accountAddress, orderId);
|
|
743
|
+
const status = await pollOrderStatus(accountAddress, orderId, { authToken: options?.authToken });
|
|
739
744
|
return await handleOrderPollingResult({
|
|
740
745
|
status,
|
|
741
746
|
orderId,
|
|
@@ -781,13 +786,7 @@ async function handleSolanaExecution({
|
|
|
781
786
|
const txData = await getSolanaOrderInstructions({
|
|
782
787
|
order,
|
|
783
788
|
isSingleChain,
|
|
784
|
-
rpcUrl: wallet.rpcUrl
|
|
785
|
-
txOptions: {
|
|
786
|
-
feePayer: options?.feePayer,
|
|
787
|
-
tipAmountSol: options?.tipAmountSol,
|
|
788
|
-
tipLamports: options?.tipLamports,
|
|
789
|
-
tipAccount: options?.tipAccount
|
|
790
|
-
}
|
|
789
|
+
rpcUrl: wallet.rpcUrl
|
|
791
790
|
});
|
|
792
791
|
const transaction = VersionedTransaction.deserialize(Uint8Array.from(txData.txBytes));
|
|
793
792
|
update("processing", messageFor("signing"));
|
|
@@ -814,7 +813,7 @@ async function handleSolanaExecution({
|
|
|
814
813
|
stage: "success"
|
|
815
814
|
};
|
|
816
815
|
} else {
|
|
817
|
-
const status = await pollOrderStatus(accountAddress, orderId);
|
|
816
|
+
const status = await pollOrderStatus(accountAddress, orderId, { authToken: options?.authToken });
|
|
818
817
|
return await handleOrderPollingResult({
|
|
819
818
|
status,
|
|
820
819
|
orderId,
|
|
@@ -827,17 +826,16 @@ async function handleSolanaExecution({
|
|
|
827
826
|
async function getSolanaOrderInstructions({
|
|
828
827
|
order,
|
|
829
828
|
isSingleChain,
|
|
830
|
-
rpcUrl
|
|
831
|
-
txOptions
|
|
829
|
+
rpcUrl
|
|
832
830
|
}) {
|
|
833
|
-
const options = {
|
|
834
|
-
rpcUrl,
|
|
835
|
-
...txOptions
|
|
836
|
-
};
|
|
837
831
|
if (isSingleChain) {
|
|
838
|
-
return await getSolanaSingleChainOrderInstructions(order,
|
|
832
|
+
return await getSolanaSingleChainOrderInstructions(order, {
|
|
833
|
+
rpcUrl
|
|
834
|
+
});
|
|
839
835
|
}
|
|
840
|
-
return await getSolanaCrossChainOrderInstructions(order,
|
|
836
|
+
return await getSolanaCrossChainOrderInstructions(order, {
|
|
837
|
+
rpcUrl
|
|
838
|
+
});
|
|
841
839
|
}
|
|
842
840
|
async function submitToAuctioneer({
|
|
843
841
|
order,
|
|
@@ -1537,7 +1535,7 @@ import { useState, useCallback as useCallback3 } from "react";
|
|
|
1537
1535
|
import { useCallback as useCallback2, useEffect as useEffect2, useMemo as useMemo3, useRef as useRef2 } from "react";
|
|
1538
1536
|
import useSWR2, { mutate as mutate2 } from "swr";
|
|
1539
1537
|
var BALANCE_KEY = "balances-global";
|
|
1540
|
-
function useBalances(initialParams) {
|
|
1538
|
+
function useBalances(initialParams, options) {
|
|
1541
1539
|
const sdk = useSwap();
|
|
1542
1540
|
const abortRef = useRef2(null);
|
|
1543
1541
|
const paramsRef = globalThis.__BALANCES_PARAMS_REF__ ?? (globalThis.__BALANCES_PARAMS_REF__ = { current: initialParams ?? null });
|
|
@@ -1563,7 +1561,9 @@ function useBalances(initialParams) {
|
|
|
1563
1561
|
} = useSWR2(BALANCE_KEY, fetcher, {
|
|
1564
1562
|
revalidateOnFocus: false,
|
|
1565
1563
|
shouldRetryOnError: false,
|
|
1566
|
-
keepPreviousData: true
|
|
1564
|
+
keepPreviousData: true,
|
|
1565
|
+
// 0 (default) disables polling; a positive value re-fetches on that interval.
|
|
1566
|
+
refreshInterval: options?.refreshInterval ?? 0
|
|
1567
1567
|
});
|
|
1568
1568
|
const refetch = useCallback2(async () => {
|
|
1569
1569
|
await mutateBalances();
|
package/dist/wallet-adapter.cjs
CHANGED
|
@@ -1790,7 +1790,7 @@ var require_buffer = __commonJS({
|
|
|
1790
1790
|
function numberIsNaN(obj) {
|
|
1791
1791
|
return obj !== obj;
|
|
1792
1792
|
}
|
|
1793
|
-
var hexSliceLookupTable =
|
|
1793
|
+
var hexSliceLookupTable = function() {
|
|
1794
1794
|
const alphabet = "0123456789abcdef";
|
|
1795
1795
|
const table = new Array(256);
|
|
1796
1796
|
for (let i = 0; i < 16; ++i) {
|
|
@@ -1800,7 +1800,7 @@ var require_buffer = __commonJS({
|
|
|
1800
1800
|
}
|
|
1801
1801
|
}
|
|
1802
1802
|
return table;
|
|
1803
|
-
}
|
|
1803
|
+
}();
|
|
1804
1804
|
function defineBigIntMethod(fn) {
|
|
1805
1805
|
return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
|
|
1806
1806
|
}
|
|
@@ -1810,9 +1810,9 @@ var require_buffer = __commonJS({
|
|
|
1810
1810
|
}
|
|
1811
1811
|
});
|
|
1812
1812
|
|
|
1813
|
-
// ../../node_modules/.pnpm/bn.js@5.2.
|
|
1813
|
+
// ../../node_modules/.pnpm/bn.js@5.2.2/node_modules/bn.js/lib/bn.js
|
|
1814
1814
|
var require_bn = __commonJS({
|
|
1815
|
-
"../../node_modules/.pnpm/bn.js@5.2.
|
|
1815
|
+
"../../node_modules/.pnpm/bn.js@5.2.2/node_modules/bn.js/lib/bn.js"(exports, module2) {
|
|
1816
1816
|
"use strict";
|
|
1817
1817
|
(function(module3, exports2) {
|
|
1818
1818
|
"use strict";
|
|
@@ -2120,7 +2120,7 @@ var require_bn = __commonJS({
|
|
|
2120
2120
|
};
|
|
2121
2121
|
if (typeof Symbol !== "undefined" && typeof Symbol.for === "function") {
|
|
2122
2122
|
try {
|
|
2123
|
-
BN3.prototype[
|
|
2123
|
+
BN3.prototype[Symbol.for("nodejs.util.inspect.custom")] = inspect4;
|
|
2124
2124
|
} catch (e) {
|
|
2125
2125
|
BN3.prototype.inspect = inspect4;
|
|
2126
2126
|
}
|
|
@@ -3679,10 +3679,6 @@ var require_bn = __commonJS({
|
|
|
3679
3679
|
var mask = 67108863 ^ 67108863 >>> r2 << r2;
|
|
3680
3680
|
this.words[this.length - 1] &= mask;
|
|
3681
3681
|
}
|
|
3682
|
-
if (this.length === 0) {
|
|
3683
|
-
this.words[0] = 0;
|
|
3684
|
-
this.length = 1;
|
|
3685
|
-
}
|
|
3686
3682
|
return this._strip();
|
|
3687
3683
|
};
|
|
3688
3684
|
BN3.prototype.maskn = function maskn(bits) {
|
|
@@ -14665,9 +14661,9 @@ var init_elliptic = __esm({
|
|
|
14665
14661
|
return utils_1$1.encode(res, enc);
|
|
14666
14662
|
};
|
|
14667
14663
|
rand = /*RicMoo:ethers:require(brorand)*/
|
|
14668
|
-
|
|
14664
|
+
function() {
|
|
14669
14665
|
throw new Error("unsupported");
|
|
14670
|
-
}
|
|
14666
|
+
};
|
|
14671
14667
|
assert$5 = utils_1$1.assert;
|
|
14672
14668
|
ec = EC;
|
|
14673
14669
|
EC.prototype.keyPair = function keyPair(options) {
|
|
@@ -14848,9 +14844,9 @@ var init_elliptic = __esm({
|
|
|
14848
14844
|
{ version: "6.6.1" }.version;
|
|
14849
14845
|
elliptic.utils = utils_1$1;
|
|
14850
14846
|
elliptic.rand = /*RicMoo:ethers:require(brorand)*/
|
|
14851
|
-
|
|
14847
|
+
function() {
|
|
14852
14848
|
throw new Error("unsupported");
|
|
14853
|
-
}
|
|
14849
|
+
};
|
|
14854
14850
|
elliptic.curve = curve_1;
|
|
14855
14851
|
elliptic.curves = curves_1;
|
|
14856
14852
|
elliptic.ec = ec;
|
|
@@ -17103,7 +17099,7 @@ var require_aes_js = __commonJS({
|
|
|
17103
17099
|
}
|
|
17104
17100
|
targetArray.set(sourceArray, targetStart);
|
|
17105
17101
|
}
|
|
17106
|
-
var convertUtf8 = /* @__PURE__ */
|
|
17102
|
+
var convertUtf8 = /* @__PURE__ */ function() {
|
|
17107
17103
|
function toBytes(text) {
|
|
17108
17104
|
var result = [], i = 0;
|
|
17109
17105
|
text = encodeURI(text);
|
|
@@ -17139,8 +17135,8 @@ var require_aes_js = __commonJS({
|
|
|
17139
17135
|
toBytes,
|
|
17140
17136
|
fromBytes
|
|
17141
17137
|
};
|
|
17142
|
-
}
|
|
17143
|
-
var convertHex = /* @__PURE__ */
|
|
17138
|
+
}();
|
|
17139
|
+
var convertHex = /* @__PURE__ */ function() {
|
|
17144
17140
|
function toBytes(text) {
|
|
17145
17141
|
var result = [];
|
|
17146
17142
|
for (var i = 0; i < text.length; i += 2) {
|
|
@@ -17161,7 +17157,7 @@ var require_aes_js = __commonJS({
|
|
|
17161
17157
|
toBytes,
|
|
17162
17158
|
fromBytes
|
|
17163
17159
|
};
|
|
17164
|
-
}
|
|
17160
|
+
}();
|
|
17165
17161
|
var numberOfRounds = { 16: 10, 24: 12, 32: 14 };
|
|
17166
17162
|
var rcon = [1, 2, 4, 8, 16, 32, 64, 128, 27, 54, 108, 216, 171, 77, 154, 47, 94, 188, 99, 198, 151, 53, 106, 212, 179, 125, 250, 239, 197, 145];
|
|
17167
17163
|
var S = [99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, 118, 202, 130, 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, 164, 114, 192, 183, 253, 147, 38, 54, 63, 247, 204, 52, 165, 229, 241, 113, 216, 49, 21, 4, 199, 35, 195, 24, 150, 5, 154, 7, 18, 128, 226, 235, 39, 178, 117, 9, 131, 44, 26, 27, 110, 90, 160, 82, 59, 214, 179, 41, 227, 47, 132, 83, 209, 0, 237, 32, 252, 177, 91, 106, 203, 190, 57, 74, 76, 88, 207, 208, 239, 170, 251, 67, 77, 51, 133, 69, 249, 2, 127, 80, 60, 159, 168, 81, 163, 64, 143, 146, 157, 56, 245, 188, 182, 218, 33, 16, 255, 243, 210, 205, 12, 19, 236, 95, 151, 68, 23, 196, 167, 126, 61, 100, 93, 25, 115, 96, 129, 79, 220, 34, 42, 144, 136, 70, 238, 184, 20, 222, 94, 11, 219, 224, 50, 58, 10, 73, 6, 36, 92, 194, 211, 172, 98, 145, 149, 228, 121, 231, 200, 55, 109, 141, 213, 78, 169, 108, 86, 244, 234, 101, 122, 174, 8, 186, 120, 37, 46, 28, 166, 180, 198, 232, 221, 116, 31, 75, 189, 139, 138, 112, 62, 181, 102, 72, 3, 246, 14, 97, 53, 87, 185, 134, 193, 29, 158, 225, 248, 152, 17, 105, 217, 142, 148, 155, 30, 135, 233, 206, 85, 40, 223, 140, 161, 137, 13, 191, 230, 66, 104, 65, 153, 45, 15, 176, 84, 187, 22];
|
|
@@ -19288,7 +19284,7 @@ function _fetchData(connection, body, processFunc) {
|
|
|
19288
19284
|
flatHeaders[header.key] = header.value;
|
|
19289
19285
|
});
|
|
19290
19286
|
options.headers = flatHeaders;
|
|
19291
|
-
const runningTimeout =
|
|
19287
|
+
const runningTimeout = function() {
|
|
19292
19288
|
let timer2 = null;
|
|
19293
19289
|
const promise = new Promise(function(resolve, reject) {
|
|
19294
19290
|
if (timeout) {
|
|
@@ -19314,8 +19310,8 @@ function _fetchData(connection, body, processFunc) {
|
|
|
19314
19310
|
timer2 = null;
|
|
19315
19311
|
};
|
|
19316
19312
|
return { promise, cancel };
|
|
19317
|
-
}
|
|
19318
|
-
const runningFetch =
|
|
19313
|
+
}();
|
|
19314
|
+
const runningFetch = function() {
|
|
19319
19315
|
return __awaiter9(this, void 0, void 0, function* () {
|
|
19320
19316
|
for (let attempt = 0; attempt < attemptLimit; attempt++) {
|
|
19321
19317
|
let response = null;
|
|
@@ -19408,7 +19404,7 @@ function _fetchData(connection, body, processFunc) {
|
|
|
19408
19404
|
url
|
|
19409
19405
|
});
|
|
19410
19406
|
});
|
|
19411
|
-
}
|
|
19407
|
+
}();
|
|
19412
19408
|
return Promise.race([runningTimeout.promise, runningFetch]);
|
|
19413
19409
|
}
|
|
19414
19410
|
function fetchJson(connection, json, processFunc) {
|
|
@@ -20118,25 +20114,25 @@ var init_formatter = __esm({
|
|
|
20118
20114
|
}
|
|
20119
20115
|
// if value is null-ish, nullValue is returned
|
|
20120
20116
|
static allowNull(format, nullValue) {
|
|
20121
|
-
return
|
|
20117
|
+
return function(value) {
|
|
20122
20118
|
if (value == null) {
|
|
20123
20119
|
return nullValue;
|
|
20124
20120
|
}
|
|
20125
20121
|
return format(value);
|
|
20126
|
-
}
|
|
20122
|
+
};
|
|
20127
20123
|
}
|
|
20128
20124
|
// If value is false-ish, replaceValue is returned
|
|
20129
20125
|
static allowFalsish(format, replaceValue) {
|
|
20130
|
-
return
|
|
20126
|
+
return function(value) {
|
|
20131
20127
|
if (!value) {
|
|
20132
20128
|
return replaceValue;
|
|
20133
20129
|
}
|
|
20134
20130
|
return format(value);
|
|
20135
|
-
}
|
|
20131
|
+
};
|
|
20136
20132
|
}
|
|
20137
20133
|
// Requires an Array satisfying check
|
|
20138
20134
|
static arrayOf(format) {
|
|
20139
|
-
return
|
|
20135
|
+
return function(array) {
|
|
20140
20136
|
if (!Array.isArray(array)) {
|
|
20141
20137
|
throw new Error("not an array");
|
|
20142
20138
|
}
|
|
@@ -20145,7 +20141,7 @@ var init_formatter = __esm({
|
|
|
20145
20141
|
result.push(format(value));
|
|
20146
20142
|
});
|
|
20147
20143
|
return result;
|
|
20148
|
-
}
|
|
20144
|
+
};
|
|
20149
20145
|
}
|
|
20150
20146
|
};
|
|
20151
20147
|
throttleMessage = false;
|
|
@@ -25152,18 +25148,18 @@ var init_lib31 = __esm({
|
|
|
25152
25148
|
var require_utils2 = __commonJS({
|
|
25153
25149
|
"../../node_modules/.pnpm/ethers@5.8.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib/utils.js"(exports) {
|
|
25154
25150
|
"use strict";
|
|
25155
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ?
|
|
25151
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
25156
25152
|
if (k2 === void 0) k2 = k;
|
|
25157
25153
|
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
25158
25154
|
return m[k];
|
|
25159
25155
|
} });
|
|
25160
|
-
}
|
|
25156
|
+
} : function(o, m, k, k2) {
|
|
25161
25157
|
if (k2 === void 0) k2 = k;
|
|
25162
25158
|
o[k2] = m[k];
|
|
25163
|
-
})
|
|
25164
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ?
|
|
25159
|
+
});
|
|
25160
|
+
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
25165
25161
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
25166
|
-
}
|
|
25162
|
+
} : function(o, v) {
|
|
25167
25163
|
o["default"] = v;
|
|
25168
25164
|
});
|
|
25169
25165
|
var __importStar = exports && exports.__importStar || function(mod) {
|
|
@@ -25511,18 +25507,18 @@ var require_version = __commonJS({
|
|
|
25511
25507
|
var require_ethers = __commonJS({
|
|
25512
25508
|
"../../node_modules/.pnpm/ethers@5.8.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib/ethers.js"(exports) {
|
|
25513
25509
|
"use strict";
|
|
25514
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ?
|
|
25510
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
25515
25511
|
if (k2 === void 0) k2 = k;
|
|
25516
25512
|
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
25517
25513
|
return m[k];
|
|
25518
25514
|
} });
|
|
25519
|
-
}
|
|
25515
|
+
} : function(o, m, k, k2) {
|
|
25520
25516
|
if (k2 === void 0) k2 = k;
|
|
25521
25517
|
o[k2] = m[k];
|
|
25522
|
-
})
|
|
25523
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ?
|
|
25518
|
+
});
|
|
25519
|
+
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
25524
25520
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
25525
|
-
}
|
|
25521
|
+
} : function(o, v) {
|
|
25526
25522
|
o["default"] = v;
|
|
25527
25523
|
});
|
|
25528
25524
|
var __importStar = exports && exports.__importStar || function(mod) {
|
package/dist/wallet-adapter.js
CHANGED
|
@@ -1795,7 +1795,7 @@ var require_buffer = __commonJS({
|
|
|
1795
1795
|
function numberIsNaN(obj) {
|
|
1796
1796
|
return obj !== obj;
|
|
1797
1797
|
}
|
|
1798
|
-
var hexSliceLookupTable =
|
|
1798
|
+
var hexSliceLookupTable = function() {
|
|
1799
1799
|
const alphabet = "0123456789abcdef";
|
|
1800
1800
|
const table = new Array(256);
|
|
1801
1801
|
for (let i = 0; i < 16; ++i) {
|
|
@@ -1805,7 +1805,7 @@ var require_buffer = __commonJS({
|
|
|
1805
1805
|
}
|
|
1806
1806
|
}
|
|
1807
1807
|
return table;
|
|
1808
|
-
}
|
|
1808
|
+
}();
|
|
1809
1809
|
function defineBigIntMethod(fn) {
|
|
1810
1810
|
return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
|
|
1811
1811
|
}
|
|
@@ -1815,9 +1815,9 @@ var require_buffer = __commonJS({
|
|
|
1815
1815
|
}
|
|
1816
1816
|
});
|
|
1817
1817
|
|
|
1818
|
-
// ../../node_modules/.pnpm/bn.js@5.2.
|
|
1818
|
+
// ../../node_modules/.pnpm/bn.js@5.2.2/node_modules/bn.js/lib/bn.js
|
|
1819
1819
|
var require_bn = __commonJS({
|
|
1820
|
-
"../../node_modules/.pnpm/bn.js@5.2.
|
|
1820
|
+
"../../node_modules/.pnpm/bn.js@5.2.2/node_modules/bn.js/lib/bn.js"(exports, module) {
|
|
1821
1821
|
"use strict";
|
|
1822
1822
|
(function(module2, exports2) {
|
|
1823
1823
|
"use strict";
|
|
@@ -2125,7 +2125,7 @@ var require_bn = __commonJS({
|
|
|
2125
2125
|
};
|
|
2126
2126
|
if (typeof Symbol !== "undefined" && typeof Symbol.for === "function") {
|
|
2127
2127
|
try {
|
|
2128
|
-
BN3.prototype[
|
|
2128
|
+
BN3.prototype[Symbol.for("nodejs.util.inspect.custom")] = inspect4;
|
|
2129
2129
|
} catch (e) {
|
|
2130
2130
|
BN3.prototype.inspect = inspect4;
|
|
2131
2131
|
}
|
|
@@ -3684,10 +3684,6 @@ var require_bn = __commonJS({
|
|
|
3684
3684
|
var mask = 67108863 ^ 67108863 >>> r2 << r2;
|
|
3685
3685
|
this.words[this.length - 1] &= mask;
|
|
3686
3686
|
}
|
|
3687
|
-
if (this.length === 0) {
|
|
3688
|
-
this.words[0] = 0;
|
|
3689
|
-
this.length = 1;
|
|
3690
|
-
}
|
|
3691
3687
|
return this._strip();
|
|
3692
3688
|
};
|
|
3693
3689
|
BN3.prototype.maskn = function maskn(bits) {
|
|
@@ -14670,9 +14666,9 @@ var init_elliptic = __esm({
|
|
|
14670
14666
|
return utils_1$1.encode(res, enc);
|
|
14671
14667
|
};
|
|
14672
14668
|
rand = /*RicMoo:ethers:require(brorand)*/
|
|
14673
|
-
|
|
14669
|
+
function() {
|
|
14674
14670
|
throw new Error("unsupported");
|
|
14675
|
-
}
|
|
14671
|
+
};
|
|
14676
14672
|
assert$5 = utils_1$1.assert;
|
|
14677
14673
|
ec = EC;
|
|
14678
14674
|
EC.prototype.keyPair = function keyPair(options) {
|
|
@@ -14853,9 +14849,9 @@ var init_elliptic = __esm({
|
|
|
14853
14849
|
{ version: "6.6.1" }.version;
|
|
14854
14850
|
elliptic.utils = utils_1$1;
|
|
14855
14851
|
elliptic.rand = /*RicMoo:ethers:require(brorand)*/
|
|
14856
|
-
|
|
14852
|
+
function() {
|
|
14857
14853
|
throw new Error("unsupported");
|
|
14858
|
-
}
|
|
14854
|
+
};
|
|
14859
14855
|
elliptic.curve = curve_1;
|
|
14860
14856
|
elliptic.curves = curves_1;
|
|
14861
14857
|
elliptic.ec = ec;
|
|
@@ -17108,7 +17104,7 @@ var require_aes_js = __commonJS({
|
|
|
17108
17104
|
}
|
|
17109
17105
|
targetArray.set(sourceArray, targetStart);
|
|
17110
17106
|
}
|
|
17111
|
-
var convertUtf8 = /* @__PURE__ */
|
|
17107
|
+
var convertUtf8 = /* @__PURE__ */ function() {
|
|
17112
17108
|
function toBytes(text) {
|
|
17113
17109
|
var result = [], i = 0;
|
|
17114
17110
|
text = encodeURI(text);
|
|
@@ -17144,8 +17140,8 @@ var require_aes_js = __commonJS({
|
|
|
17144
17140
|
toBytes,
|
|
17145
17141
|
fromBytes
|
|
17146
17142
|
};
|
|
17147
|
-
}
|
|
17148
|
-
var convertHex = /* @__PURE__ */
|
|
17143
|
+
}();
|
|
17144
|
+
var convertHex = /* @__PURE__ */ function() {
|
|
17149
17145
|
function toBytes(text) {
|
|
17150
17146
|
var result = [];
|
|
17151
17147
|
for (var i = 0; i < text.length; i += 2) {
|
|
@@ -17166,7 +17162,7 @@ var require_aes_js = __commonJS({
|
|
|
17166
17162
|
toBytes,
|
|
17167
17163
|
fromBytes
|
|
17168
17164
|
};
|
|
17169
|
-
}
|
|
17165
|
+
}();
|
|
17170
17166
|
var numberOfRounds = { 16: 10, 24: 12, 32: 14 };
|
|
17171
17167
|
var rcon = [1, 2, 4, 8, 16, 32, 64, 128, 27, 54, 108, 216, 171, 77, 154, 47, 94, 188, 99, 198, 151, 53, 106, 212, 179, 125, 250, 239, 197, 145];
|
|
17172
17168
|
var S = [99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, 118, 202, 130, 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, 164, 114, 192, 183, 253, 147, 38, 54, 63, 247, 204, 52, 165, 229, 241, 113, 216, 49, 21, 4, 199, 35, 195, 24, 150, 5, 154, 7, 18, 128, 226, 235, 39, 178, 117, 9, 131, 44, 26, 27, 110, 90, 160, 82, 59, 214, 179, 41, 227, 47, 132, 83, 209, 0, 237, 32, 252, 177, 91, 106, 203, 190, 57, 74, 76, 88, 207, 208, 239, 170, 251, 67, 77, 51, 133, 69, 249, 2, 127, 80, 60, 159, 168, 81, 163, 64, 143, 146, 157, 56, 245, 188, 182, 218, 33, 16, 255, 243, 210, 205, 12, 19, 236, 95, 151, 68, 23, 196, 167, 126, 61, 100, 93, 25, 115, 96, 129, 79, 220, 34, 42, 144, 136, 70, 238, 184, 20, 222, 94, 11, 219, 224, 50, 58, 10, 73, 6, 36, 92, 194, 211, 172, 98, 145, 149, 228, 121, 231, 200, 55, 109, 141, 213, 78, 169, 108, 86, 244, 234, 101, 122, 174, 8, 186, 120, 37, 46, 28, 166, 180, 198, 232, 221, 116, 31, 75, 189, 139, 138, 112, 62, 181, 102, 72, 3, 246, 14, 97, 53, 87, 185, 134, 193, 29, 158, 225, 248, 152, 17, 105, 217, 142, 148, 155, 30, 135, 233, 206, 85, 40, 223, 140, 161, 137, 13, 191, 230, 66, 104, 65, 153, 45, 15, 176, 84, 187, 22];
|
|
@@ -19293,7 +19289,7 @@ function _fetchData(connection, body, processFunc) {
|
|
|
19293
19289
|
flatHeaders[header.key] = header.value;
|
|
19294
19290
|
});
|
|
19295
19291
|
options.headers = flatHeaders;
|
|
19296
|
-
const runningTimeout =
|
|
19292
|
+
const runningTimeout = function() {
|
|
19297
19293
|
let timer2 = null;
|
|
19298
19294
|
const promise = new Promise(function(resolve, reject) {
|
|
19299
19295
|
if (timeout) {
|
|
@@ -19319,8 +19315,8 @@ function _fetchData(connection, body, processFunc) {
|
|
|
19319
19315
|
timer2 = null;
|
|
19320
19316
|
};
|
|
19321
19317
|
return { promise, cancel };
|
|
19322
|
-
}
|
|
19323
|
-
const runningFetch =
|
|
19318
|
+
}();
|
|
19319
|
+
const runningFetch = function() {
|
|
19324
19320
|
return __awaiter9(this, void 0, void 0, function* () {
|
|
19325
19321
|
for (let attempt = 0; attempt < attemptLimit; attempt++) {
|
|
19326
19322
|
let response = null;
|
|
@@ -19413,7 +19409,7 @@ function _fetchData(connection, body, processFunc) {
|
|
|
19413
19409
|
url
|
|
19414
19410
|
});
|
|
19415
19411
|
});
|
|
19416
|
-
}
|
|
19412
|
+
}();
|
|
19417
19413
|
return Promise.race([runningTimeout.promise, runningFetch]);
|
|
19418
19414
|
}
|
|
19419
19415
|
function fetchJson(connection, json, processFunc) {
|
|
@@ -20123,25 +20119,25 @@ var init_formatter = __esm({
|
|
|
20123
20119
|
}
|
|
20124
20120
|
// if value is null-ish, nullValue is returned
|
|
20125
20121
|
static allowNull(format, nullValue) {
|
|
20126
|
-
return
|
|
20122
|
+
return function(value) {
|
|
20127
20123
|
if (value == null) {
|
|
20128
20124
|
return nullValue;
|
|
20129
20125
|
}
|
|
20130
20126
|
return format(value);
|
|
20131
|
-
}
|
|
20127
|
+
};
|
|
20132
20128
|
}
|
|
20133
20129
|
// If value is false-ish, replaceValue is returned
|
|
20134
20130
|
static allowFalsish(format, replaceValue) {
|
|
20135
|
-
return
|
|
20131
|
+
return function(value) {
|
|
20136
20132
|
if (!value) {
|
|
20137
20133
|
return replaceValue;
|
|
20138
20134
|
}
|
|
20139
20135
|
return format(value);
|
|
20140
|
-
}
|
|
20136
|
+
};
|
|
20141
20137
|
}
|
|
20142
20138
|
// Requires an Array satisfying check
|
|
20143
20139
|
static arrayOf(format) {
|
|
20144
|
-
return
|
|
20140
|
+
return function(array) {
|
|
20145
20141
|
if (!Array.isArray(array)) {
|
|
20146
20142
|
throw new Error("not an array");
|
|
20147
20143
|
}
|
|
@@ -20150,7 +20146,7 @@ var init_formatter = __esm({
|
|
|
20150
20146
|
result.push(format(value));
|
|
20151
20147
|
});
|
|
20152
20148
|
return result;
|
|
20153
|
-
}
|
|
20149
|
+
};
|
|
20154
20150
|
}
|
|
20155
20151
|
};
|
|
20156
20152
|
throttleMessage = false;
|
|
@@ -25157,18 +25153,18 @@ var init_lib31 = __esm({
|
|
|
25157
25153
|
var require_utils2 = __commonJS({
|
|
25158
25154
|
"../../node_modules/.pnpm/ethers@5.8.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib/utils.js"(exports) {
|
|
25159
25155
|
"use strict";
|
|
25160
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ?
|
|
25156
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
25161
25157
|
if (k2 === void 0) k2 = k;
|
|
25162
25158
|
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
25163
25159
|
return m[k];
|
|
25164
25160
|
} });
|
|
25165
|
-
}
|
|
25161
|
+
} : function(o, m, k, k2) {
|
|
25166
25162
|
if (k2 === void 0) k2 = k;
|
|
25167
25163
|
o[k2] = m[k];
|
|
25168
|
-
})
|
|
25169
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ?
|
|
25164
|
+
});
|
|
25165
|
+
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
25170
25166
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
25171
|
-
}
|
|
25167
|
+
} : function(o, v) {
|
|
25172
25168
|
o["default"] = v;
|
|
25173
25169
|
});
|
|
25174
25170
|
var __importStar = exports && exports.__importStar || function(mod) {
|
|
@@ -25516,18 +25512,18 @@ var require_version = __commonJS({
|
|
|
25516
25512
|
var require_ethers = __commonJS({
|
|
25517
25513
|
"../../node_modules/.pnpm/ethers@5.8.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib/ethers.js"(exports) {
|
|
25518
25514
|
"use strict";
|
|
25519
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ?
|
|
25515
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
25520
25516
|
if (k2 === void 0) k2 = k;
|
|
25521
25517
|
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
25522
25518
|
return m[k];
|
|
25523
25519
|
} });
|
|
25524
|
-
}
|
|
25520
|
+
} : function(o, m, k, k2) {
|
|
25525
25521
|
if (k2 === void 0) k2 = k;
|
|
25526
25522
|
o[k2] = m[k];
|
|
25527
|
-
})
|
|
25528
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ?
|
|
25523
|
+
});
|
|
25524
|
+
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
25529
25525
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
25530
|
-
}
|
|
25526
|
+
} : function(o, v) {
|
|
25531
25527
|
o["default"] = v;
|
|
25532
25528
|
});
|
|
25533
25529
|
var __importStar = exports && exports.__importStar || function(mod) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shogun-sdk/swap",
|
|
3
|
-
"version": "0.0.2-test.
|
|
3
|
+
"version": "0.0.2-test.36",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Shogun Network Swap utilities and helpers",
|
|
6
6
|
"author": "Shogun Network",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"sideEffects": false,
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@solana/web3.js": "^1.98.4",
|
|
48
|
-
"@shogun-sdk/intents-sdk": "1.
|
|
48
|
+
"@shogun-sdk/intents-sdk": "1.4.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@ethersproject/abstract-signer": "^5.7.0",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"ethers": "^5.6.1",
|
|
57
57
|
"react": "^18.3.1",
|
|
58
58
|
"react-dom": "^18.3.1",
|
|
59
|
-
"rimraf": "^
|
|
59
|
+
"rimraf": "^5.0.5",
|
|
60
60
|
"swr": "^2.3.6",
|
|
61
|
-
"tsup": "^8.5.
|
|
61
|
+
"tsup": "^8.5.0",
|
|
62
62
|
"typescript": "^5.8.2",
|
|
63
63
|
"viem": "^2.38.1",
|
|
64
64
|
"vue": "^3.5.18"
|