@sodax/types 2.1.0-rc.9 → 2.2.0-rc.1
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/chains/chains.d.ts
CHANGED
|
@@ -3140,7 +3140,7 @@ export declare const spokeChainConfig: {
|
|
|
3140
3140
|
};
|
|
3141
3141
|
};
|
|
3142
3142
|
readonly near: {
|
|
3143
|
-
readonly rpcUrl: "https://
|
|
3143
|
+
readonly rpcUrl: "https://free.rpc.fastnear.com";
|
|
3144
3144
|
readonly chain: BaseChainInfo<"NEAR">;
|
|
3145
3145
|
readonly nativeToken: "NEAR";
|
|
3146
3146
|
readonly addresses: {
|
package/dist/chains/chains.js
CHANGED
|
@@ -740,7 +740,7 @@ export const spokeChainConfig = {
|
|
|
740
740
|
},
|
|
741
741
|
},
|
|
742
742
|
[ChainKeys.NEAR_MAINNET]: {
|
|
743
|
-
rpcUrl: 'https://
|
|
743
|
+
rpcUrl: 'https://free.rpc.fastnear.com',
|
|
744
744
|
chain: baseChainInfo[ChainKeys.NEAR_MAINNET],
|
|
745
745
|
nativeToken: 'NEAR',
|
|
746
746
|
addresses: {
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -19,4 +19,4 @@ export * from './sui/index.js';
|
|
|
19
19
|
export * from './swap/index.js';
|
|
20
20
|
export * from './utils/index.js';
|
|
21
21
|
export * from './wallet/index.js';
|
|
22
|
-
export const CONFIG_VERSION =
|
|
22
|
+
export const CONFIG_VERSION = 231; // this value should be incremented (inside release/sdk branch) each time @sodax/types package is updated
|
|
@@ -76,6 +76,14 @@ export type SodaxOptionalConfig = {
|
|
|
76
76
|
logger?: SodaxLoggerOption;
|
|
77
77
|
analytics?: AnalyticsOption;
|
|
78
78
|
fee?: PartnerFee;
|
|
79
|
+
/**
|
|
80
|
+
* Global backend API key, sent as the `x-api-key` header. A client-side runtime option like
|
|
81
|
+
* {@link fee}: held on `ConfigService` and never part of the backend data contract. Sent to
|
|
82
|
+
* configured SODAX backend transports. Per-request overrides via `sodax.api.*` and the
|
|
83
|
+
* `swap()`/`bridge()` submit-tx legs; legacy solver requests use the configured key only.
|
|
84
|
+
* Browser-bundled keys are public.
|
|
85
|
+
*/
|
|
86
|
+
apiKey?: string;
|
|
79
87
|
radfi?: RadfiOptions;
|
|
80
88
|
swaps?: SwapsOptions;
|
|
81
89
|
moneyMarket?: MoneyMarketOptions;
|
|
@@ -2685,7 +2693,7 @@ export declare const sodaxConfig: {
|
|
|
2685
2693
|
};
|
|
2686
2694
|
};
|
|
2687
2695
|
readonly near: {
|
|
2688
|
-
readonly rpcUrl: "https://
|
|
2696
|
+
readonly rpcUrl: "https://free.rpc.fastnear.com";
|
|
2689
2697
|
readonly chain: import("../chains/chains.js").BaseChainInfo<"NEAR">;
|
|
2690
2698
|
readonly nativeToken: "NEAR";
|
|
2691
2699
|
readonly addresses: {
|
package/package.json
CHANGED