@relayprotocol/relay-sdk 5.2.5 → 5.2.7
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/_cjs/src/constants/servers.js +2 -1
- package/_cjs/src/constants/servers.js.map +1 -1
- package/_cjs/src/version.js +1 -1
- package/_cjs/tsconfig.build.tsbuildinfo +1 -1
- package/_esm/src/constants/servers.js +1 -0
- package/_esm/src/constants/servers.js.map +1 -1
- package/_esm/src/version.js +1 -1
- package/_esm/tsconfig.build.tsbuildinfo +1 -1
- package/_types/src/constants/servers.d.ts +1 -0
- package/_types/src/constants/servers.d.ts.map +1 -1
- package/_types/src/types/api.d.ts +19 -19
- package/_types/src/types/api.d.ts.map +1 -1
- package/_types/src/version.d.ts +1 -1
- package/_types/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +6 -1
|
@@ -3,4 +3,5 @@ export declare const TESTNET_RELAY_API = "https://api.testnets.relay.link";
|
|
|
3
3
|
export declare const ASSETS_RELAY_API = "https://assets.relay.link";
|
|
4
4
|
export declare const MAINNET_RELAY_WS = "wss://ws.relay.link";
|
|
5
5
|
export declare const DEV_RELAY_WS = "wss://ws.dev.relay.link";
|
|
6
|
+
export declare const TESTNET_RELAY_WS = "wss://ws.testnets.relay.link";
|
|
6
7
|
//# sourceMappingURL=servers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"servers.d.ts","sourceRoot":"","sources":["../../../src/constants/servers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,2BAA2B,CAAA;AACzD,eAAO,MAAM,iBAAiB,oCAAoC,CAAA;AAClE,eAAO,MAAM,gBAAgB,8BAA8B,CAAA;AAG3D,eAAO,MAAM,gBAAgB,wBAAwB,CAAA;AACrD,eAAO,MAAM,YAAY,4BAA4B,CAAA"}
|
|
1
|
+
{"version":3,"file":"servers.d.ts","sourceRoot":"","sources":["../../../src/constants/servers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,2BAA2B,CAAA;AACzD,eAAO,MAAM,iBAAiB,oCAAoC,CAAA;AAClE,eAAO,MAAM,gBAAgB,8BAA8B,CAAA;AAG3D,eAAO,MAAM,gBAAgB,wBAAwB,CAAA;AACrD,eAAO,MAAM,YAAY,4BAA4B,CAAA;AACrD,eAAO,MAAM,gBAAgB,iCAAiC,CAAA"}
|
|
@@ -439,7 +439,7 @@ export interface paths {
|
|
|
439
439
|
/** @description User address, when supplied returns user balance and max bridge amount */
|
|
440
440
|
user?: string;
|
|
441
441
|
/** @description Restricts the user balance and capacity to a particular currency when supplied with a currency id. Defaults to the native currency of the destination chain. */
|
|
442
|
-
currency?: "anime" | "btc" | "cgt" | "dai" | "degen" | "eth" | "omi" | "pop" | "tg7" | "tia" | "usdc" | "usdc.e" | "usdt" | "sol" | "weth" | "apeeth" | "ape" | "g7" | "pengu" | "plume" | "wbtc" | "plumeusd" | "gun" | "somi" | "synd" | "xpl" | "usde" | "mon" | "usdh" | "musd" | "usdm" | "pyusd" | "cash" | "eusd";
|
|
442
|
+
currency?: "anime" | "btc" | "cgt" | "dai" | "degen" | "eth" | "omi" | "pop" | "tg7" | "tia" | "usdc" | "usdc.e" | "usdt" | "sol" | "weth" | "apeeth" | "ape" | "g7" | "pengu" | "plume" | "wbtc" | "plumeusd" | "gun" | "somi" | "synd" | "xpl" | "usde" | "mon" | "usdh" | "musd" | "usdm" | "pyusd" | "cash" | "eusd" | "pusd";
|
|
443
443
|
};
|
|
444
444
|
};
|
|
445
445
|
responses: {
|
|
@@ -492,7 +492,7 @@ export interface paths {
|
|
|
492
492
|
originChainId: number;
|
|
493
493
|
destinationChainId: number;
|
|
494
494
|
/** @enum {string} */
|
|
495
|
-
currency: "anime" | "btc" | "cgt" | "dai" | "degen" | "eth" | "omi" | "pop" | "tg7" | "tia" | "usdc" | "usdc.e" | "usdt" | "sol" | "weth" | "apeeth" | "ape" | "g7" | "pengu" | "plume" | "wbtc" | "plumeusd" | "gun" | "somi" | "synd" | "xpl" | "usde" | "mon" | "usdh" | "musd" | "usdm" | "pyusd" | "cash" | "eusd";
|
|
495
|
+
currency: "anime" | "btc" | "cgt" | "dai" | "degen" | "eth" | "omi" | "pop" | "tg7" | "tia" | "usdc" | "usdc.e" | "usdt" | "sol" | "weth" | "apeeth" | "ape" | "g7" | "pengu" | "plume" | "wbtc" | "plumeusd" | "gun" | "somi" | "synd" | "xpl" | "usde" | "mon" | "usdh" | "musd" | "usdm" | "pyusd" | "cash" | "eusd" | "pusd";
|
|
496
496
|
/** @description Amount to bridge as the base amount (can be switched to exact input using the dedicated flag), denoted in wei */
|
|
497
497
|
amount: string;
|
|
498
498
|
/** @description App fees to be charged for execution */
|
|
@@ -596,7 +596,7 @@ export interface paths {
|
|
|
596
596
|
* @description Origin chain gas currency
|
|
597
597
|
* @enum {string}
|
|
598
598
|
*/
|
|
599
|
-
gasCurrency?: "anime" | "btc" | "cgt" | "dai" | "degen" | "eth" | "omi" | "pop" | "tg7" | "tia" | "usdc" | "usdc.e" | "usdt" | "sol" | "weth" | "apeeth" | "ape" | "g7" | "pengu" | "plume" | "wbtc" | "plumeusd" | "gun" | "somi" | "synd" | "xpl" | "usde" | "mon" | "usdh" | "musd" | "usdm" | "pyusd" | "cash" | "eusd" | "avax" | "bnb" | "matic" | "sei" | "mnt" | "trx" | "bera" | "ip" | "s" | "lrds" | "celo" | "flow" | "ron" | "metis" | "btcn" | "core" | "sui" | "ton" | "cronos" | "hype" | "mcade" | "usd";
|
|
599
|
+
gasCurrency?: "anime" | "btc" | "cgt" | "dai" | "degen" | "eth" | "omi" | "pop" | "tg7" | "tia" | "usdc" | "usdc.e" | "usdt" | "sol" | "weth" | "apeeth" | "ape" | "g7" | "pengu" | "plume" | "wbtc" | "plumeusd" | "gun" | "somi" | "synd" | "xpl" | "usde" | "mon" | "usdh" | "musd" | "usdm" | "pyusd" | "cash" | "eusd" | "pusd" | "avax" | "bnb" | "matic" | "sei" | "mnt" | "trx" | "bera" | "ip" | "s" | "lrds" | "celo" | "flow" | "ron" | "metis" | "btcn" | "core" | "sui" | "ton" | "cronos" | "hype" | "mcade" | "usd";
|
|
600
600
|
/** @description Combination of the relayerGas and relayerService to give you the full relayer fee in wei */
|
|
601
601
|
relayer?: string;
|
|
602
602
|
/** @description Destination chain gas fee in wei */
|
|
@@ -607,10 +607,10 @@ export interface paths {
|
|
|
607
607
|
* @description The currency for all relayer fees (gas and service)
|
|
608
608
|
* @enum {string}
|
|
609
609
|
*/
|
|
610
|
-
relayerCurrency?: "anime" | "btc" | "cgt" | "dai" | "degen" | "eth" | "omi" | "pop" | "tg7" | "tia" | "usdc" | "usdc.e" | "usdt" | "sol" | "weth" | "apeeth" | "ape" | "g7" | "pengu" | "plume" | "wbtc" | "plumeusd" | "gun" | "somi" | "synd" | "xpl" | "usde" | "mon" | "usdh" | "musd" | "usdm" | "pyusd" | "cash" | "eusd";
|
|
610
|
+
relayerCurrency?: "anime" | "btc" | "cgt" | "dai" | "degen" | "eth" | "omi" | "pop" | "tg7" | "tia" | "usdc" | "usdc.e" | "usdt" | "sol" | "weth" | "apeeth" | "ape" | "g7" | "pengu" | "plume" | "wbtc" | "plumeusd" | "gun" | "somi" | "synd" | "xpl" | "usde" | "mon" | "usdh" | "musd" | "usdm" | "pyusd" | "cash" | "eusd" | "pusd";
|
|
611
611
|
app?: string;
|
|
612
612
|
/** @enum {string} */
|
|
613
|
-
appCurrency?: "anime" | "btc" | "cgt" | "dai" | "degen" | "eth" | "omi" | "pop" | "tg7" | "tia" | "usdc" | "usdc.e" | "usdt" | "sol" | "weth" | "apeeth" | "ape" | "g7" | "pengu" | "plume" | "wbtc" | "plumeusd" | "gun" | "somi" | "synd" | "xpl" | "usde" | "mon" | "usdh" | "musd" | "usdm" | "pyusd" | "cash" | "eusd";
|
|
613
|
+
appCurrency?: "anime" | "btc" | "cgt" | "dai" | "degen" | "eth" | "omi" | "pop" | "tg7" | "tia" | "usdc" | "usdc.e" | "usdt" | "sol" | "weth" | "apeeth" | "ape" | "g7" | "pengu" | "plume" | "wbtc" | "plumeusd" | "gun" | "somi" | "synd" | "xpl" | "usde" | "mon" | "usdh" | "musd" | "usdm" | "pyusd" | "cash" | "eusd" | "pusd";
|
|
614
614
|
};
|
|
615
615
|
breakdown?: {
|
|
616
616
|
/** @description Amount that will be bridged in the estimated time */
|
|
@@ -672,7 +672,7 @@ export interface paths {
|
|
|
672
672
|
originChainId: number;
|
|
673
673
|
destinationChainId: number;
|
|
674
674
|
/** @enum {string} */
|
|
675
|
-
currency: "anime" | "btc" | "cgt" | "dai" | "degen" | "eth" | "omi" | "pop" | "tg7" | "tia" | "usdc" | "usdc.e" | "usdt" | "sol" | "weth" | "apeeth" | "ape" | "g7" | "pengu" | "plume" | "wbtc" | "plumeusd" | "gun" | "somi" | "synd" | "xpl" | "usde" | "mon" | "usdh" | "musd" | "usdm" | "pyusd" | "cash" | "eusd";
|
|
675
|
+
currency: "anime" | "btc" | "cgt" | "dai" | "degen" | "eth" | "omi" | "pop" | "tg7" | "tia" | "usdc" | "usdc.e" | "usdt" | "sol" | "weth" | "apeeth" | "ape" | "g7" | "pengu" | "plume" | "wbtc" | "plumeusd" | "gun" | "somi" | "synd" | "xpl" | "usde" | "mon" | "usdh" | "musd" | "usdm" | "pyusd" | "cash" | "eusd" | "pusd";
|
|
676
676
|
/** @description Amount to bridge as the base amount (can be switched to exact input using the dedicated flag), denoted in wei */
|
|
677
677
|
amount: string;
|
|
678
678
|
/** @description App fees to be charged for execution */
|
|
@@ -1153,7 +1153,7 @@ export interface paths {
|
|
|
1153
1153
|
* @description Origin chain gas currency
|
|
1154
1154
|
* @enum {string}
|
|
1155
1155
|
*/
|
|
1156
|
-
gasCurrency?: "anime" | "btc" | "cgt" | "dai" | "degen" | "eth" | "omi" | "pop" | "tg7" | "tia" | "usdc" | "usdc.e" | "usdt" | "sol" | "weth" | "apeeth" | "ape" | "g7" | "pengu" | "plume" | "wbtc" | "plumeusd" | "gun" | "somi" | "synd" | "xpl" | "usde" | "mon" | "usdh" | "musd" | "usdm" | "pyusd" | "cash" | "eusd" | "avax" | "bnb" | "matic" | "sei" | "mnt" | "trx" | "bera" | "ip" | "s" | "lrds" | "celo" | "flow" | "ron" | "metis" | "btcn" | "core" | "sui" | "ton" | "cronos" | "hype" | "mcade" | "usd";
|
|
1156
|
+
gasCurrency?: "anime" | "btc" | "cgt" | "dai" | "degen" | "eth" | "omi" | "pop" | "tg7" | "tia" | "usdc" | "usdc.e" | "usdt" | "sol" | "weth" | "apeeth" | "ape" | "g7" | "pengu" | "plume" | "wbtc" | "plumeusd" | "gun" | "somi" | "synd" | "xpl" | "usde" | "mon" | "usdh" | "musd" | "usdm" | "pyusd" | "cash" | "eusd" | "pusd" | "avax" | "bnb" | "matic" | "sei" | "mnt" | "trx" | "bera" | "ip" | "s" | "lrds" | "celo" | "flow" | "ron" | "metis" | "btcn" | "core" | "sui" | "ton" | "cronos" | "hype" | "mcade" | "usd";
|
|
1157
1157
|
/** @description Combination of the relayerGas and relayerService to give you the full relayer fee in wei */
|
|
1158
1158
|
relayer?: string;
|
|
1159
1159
|
/** @description Destination chain gas fee in wei */
|
|
@@ -1164,10 +1164,10 @@ export interface paths {
|
|
|
1164
1164
|
* @description The currency for all relayer fees (gas and service)
|
|
1165
1165
|
* @enum {string}
|
|
1166
1166
|
*/
|
|
1167
|
-
relayerCurrency?: "anime" | "btc" | "cgt" | "dai" | "degen" | "eth" | "omi" | "pop" | "tg7" | "tia" | "usdc" | "usdc.e" | "usdt" | "sol" | "weth" | "apeeth" | "ape" | "g7" | "pengu" | "plume" | "wbtc" | "plumeusd" | "gun" | "somi" | "synd" | "xpl" | "usde" | "mon" | "usdh" | "musd" | "usdm" | "pyusd" | "cash" | "eusd";
|
|
1167
|
+
relayerCurrency?: "anime" | "btc" | "cgt" | "dai" | "degen" | "eth" | "omi" | "pop" | "tg7" | "tia" | "usdc" | "usdc.e" | "usdt" | "sol" | "weth" | "apeeth" | "ape" | "g7" | "pengu" | "plume" | "wbtc" | "plumeusd" | "gun" | "somi" | "synd" | "xpl" | "usde" | "mon" | "usdh" | "musd" | "usdm" | "pyusd" | "cash" | "eusd" | "pusd";
|
|
1168
1168
|
app?: string;
|
|
1169
1169
|
/** @enum {string} */
|
|
1170
|
-
appCurrency?: "anime" | "btc" | "cgt" | "dai" | "degen" | "eth" | "omi" | "pop" | "tg7" | "tia" | "usdc" | "usdc.e" | "usdt" | "sol" | "weth" | "apeeth" | "ape" | "g7" | "pengu" | "plume" | "wbtc" | "plumeusd" | "gun" | "somi" | "synd" | "xpl" | "usde" | "mon" | "usdh" | "musd" | "usdm" | "pyusd" | "cash" | "eusd";
|
|
1170
|
+
appCurrency?: "anime" | "btc" | "cgt" | "dai" | "degen" | "eth" | "omi" | "pop" | "tg7" | "tia" | "usdc" | "usdc.e" | "usdt" | "sol" | "weth" | "apeeth" | "ape" | "g7" | "pengu" | "plume" | "wbtc" | "plumeusd" | "gun" | "somi" | "synd" | "xpl" | "usde" | "mon" | "usdh" | "musd" | "usdm" | "pyusd" | "cash" | "eusd" | "pusd";
|
|
1171
1171
|
};
|
|
1172
1172
|
/**
|
|
1173
1173
|
* @example {
|
|
@@ -2746,11 +2746,6 @@ export interface paths {
|
|
|
2746
2746
|
referrerAddress?: string;
|
|
2747
2747
|
/** @description Address to send the refund to in the case of failure, if not specified then the recipient address or user address is used */
|
|
2748
2748
|
refundTo?: string;
|
|
2749
|
-
/**
|
|
2750
|
-
* @description Which chain to refund on in case of failure. Defaults to origin for normal requests. For open-ended deposit-address requests, refundTo without refundType implies origin; omitting refundTo means there is no automatic refund.
|
|
2751
|
-
* @enum {string}
|
|
2752
|
-
*/
|
|
2753
|
-
refundType?: "origin" | "destination";
|
|
2754
2749
|
/**
|
|
2755
2750
|
* @deprecated
|
|
2756
2751
|
* @description Always refund on the origin chain in case of any issues
|
|
@@ -4813,11 +4808,6 @@ export interface paths {
|
|
|
4813
4808
|
referrerAddress?: string;
|
|
4814
4809
|
/** @description Address to send the refund to in the case of failure, if not specified then the recipient address or user address is used */
|
|
4815
4810
|
refundTo?: string;
|
|
4816
|
-
/**
|
|
4817
|
-
* @description Which chain to refund on in case of failure. Defaults to origin for normal requests. For open-ended deposit-address requests, refundTo without refundType implies origin; omitting refundTo means there is no automatic refund.
|
|
4818
|
-
* @enum {string}
|
|
4819
|
-
*/
|
|
4820
|
-
refundType?: "origin" | "destination";
|
|
4821
4811
|
/**
|
|
4822
4812
|
* @deprecated
|
|
4823
4813
|
* @description Always refund on the origin chain in case of any issues
|
|
@@ -9729,6 +9719,11 @@ export interface paths {
|
|
|
9729
9719
|
hash?: string;
|
|
9730
9720
|
/** @enum {string} */
|
|
9731
9721
|
operation?: "mint";
|
|
9722
|
+
tokenMetadata?: {
|
|
9723
|
+
decimals?: number;
|
|
9724
|
+
name?: string;
|
|
9725
|
+
symbol?: string;
|
|
9726
|
+
};
|
|
9732
9727
|
};
|
|
9733
9728
|
attestation?: {
|
|
9734
9729
|
execution?: {
|
|
@@ -9762,6 +9757,11 @@ export interface paths {
|
|
|
9762
9757
|
/** @enum {string} */
|
|
9763
9758
|
operation?: "transfer" | "burn" | "mixed";
|
|
9764
9759
|
solver?: string;
|
|
9760
|
+
tokenMetadata?: {
|
|
9761
|
+
decimals?: number;
|
|
9762
|
+
name?: string;
|
|
9763
|
+
symbol?: string;
|
|
9764
|
+
};
|
|
9765
9765
|
};
|
|
9766
9766
|
attestation?: {
|
|
9767
9767
|
execution?: {
|