@relayprotocol/relay-sdk 6.1.3 → 7.0.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.
@@ -11,15 +11,12 @@ exports.routes = [
11
11
  "/chains/health",
12
12
  "/config",
13
13
  "/config/v2",
14
- "/execute/bridge",
15
- "/execute/bridge/v2",
16
- "/execute/call",
17
- "/execute/call/v2",
18
- "/execute/swap",
14
+ "/deposit-addresses/v1",
19
15
  "/execute/permits",
20
16
  "/quote",
21
17
  "/quote/v2",
22
18
  "/price",
19
+ "/execute/swap",
23
20
  "/execute",
24
21
  "/fast-fill",
25
22
  "/lives",
@@ -30,6 +27,7 @@ exports.routes = [
30
27
  "/requests/{requestId}/signature/v2",
31
28
  "/requests",
32
29
  "/requests/v2",
30
+ "/requests/v3",
33
31
  "/requests/metadata",
34
32
  "/transactions/index",
35
33
  "/transactions/single",
@@ -52,6 +50,7 @@ exports.routes = [
52
50
  "/wallets/screen/info",
53
51
  "/withdrawals/attest-deposit",
54
52
  "/withdrawals/request",
55
- "/withdrawals/status"
53
+ "/withdrawals/status",
54
+ "/metrics/usage"
56
55
  ];
57
56
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/routes/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IACpB,6BAA6B;IAC7B,0BAA0B;IAC1B,2BAA2B;IAC3B,0BAA0B;IAC1B,SAAS;IACT,mBAAmB;IACnB,gBAAgB;IAChB,SAAS;IACT,YAAY;IACZ,iBAAiB;IACjB,oBAAoB;IACpB,eAAe;IACf,kBAAkB;IAClB,eAAe;IACf,kBAAkB;IAClB,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,UAAU;IACV,YAAY;IACZ,QAAQ;IACR,iBAAiB;IACjB,oBAAoB;IACpB,oBAAoB;IACpB,iCAAiC;IACjC,oCAAoC;IACpC,WAAW;IACX,cAAc;IACd,oBAAoB;IACpB,qBAAqB;IACrB,sBAAsB;IACtB,uCAAuC;IACvC,eAAe;IACf,gBAAgB;IAChB,kBAAkB;IAClB,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,4BAA4B;IAC5B,sBAAsB;IACtB,wCAAwC;IACxC,8CAA8C;IAC9C,kBAAkB;IAClB,uBAAuB;IACvB,iBAAiB;IACjB,0BAA0B;IAC1B,sBAAsB;IACtB,6BAA6B;IAC7B,sBAAsB;IACtB,qBAAqB;CACtB,CAAC","sourcesContent":["export const routes = [\n \"/app-fees/{wallet}/balances\",\n \"/app-fees/{wallet}/claim\",\n \"/app-fees/{wallet}/claims\",\n \"/balance-events/{wallet}\",\n \"/chains\",\n \"/chains/liquidity\",\n \"/chains/health\",\n \"/config\",\n \"/config/v2\",\n \"/execute/bridge\",\n \"/execute/bridge/v2\",\n \"/execute/call\",\n \"/execute/call/v2\",\n \"/execute/swap\",\n \"/execute/permits\",\n \"/quote\",\n \"/quote/v2\",\n \"/price\",\n \"/execute\",\n \"/fast-fill\",\n \"/lives\",\n \"/intents/status\",\n \"/intents/status/v2\",\n \"/intents/status/v3\",\n \"/requests/{requestId}/signature\",\n \"/requests/{requestId}/signature/v2\",\n \"/requests\",\n \"/requests/v2\",\n \"/requests/metadata\",\n \"/transactions/index\",\n \"/transactions/single\",\n \"/transactions/deposit-address/reindex\",\n \"/swap-sources\",\n \"/loadforge.txt\",\n \"/conduit/install\",\n \"/prices/rates\",\n \"/currencies/v1\",\n \"/currencies/v2\",\n \"/currencies/token/price\",\n \"/currencies/token/price/v2\",\n \"/currencies/trending\",\n \"/chains/{chainId}/currencies/{address}\",\n \"/chains/{chainId}/currencies/{address}/chart\",\n \"/provision/chain\",\n \"/sanctioned/{address}\",\n \"/wallets/screen\",\n \"/wallets/screen/override\",\n \"/wallets/screen/info\",\n \"/withdrawals/attest-deposit\",\n \"/withdrawals/request\",\n \"/withdrawals/status\"\n];"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/routes/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IACpB,6BAA6B;IAC7B,0BAA0B;IAC1B,2BAA2B;IAC3B,0BAA0B;IAC1B,SAAS;IACT,mBAAmB;IACnB,gBAAgB;IAChB,SAAS;IACT,YAAY;IACZ,uBAAuB;IACvB,kBAAkB;IAClB,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,eAAe;IACf,UAAU;IACV,YAAY;IACZ,QAAQ;IACR,iBAAiB;IACjB,oBAAoB;IACpB,oBAAoB;IACpB,iCAAiC;IACjC,oCAAoC;IACpC,WAAW;IACX,cAAc;IACd,cAAc;IACd,oBAAoB;IACpB,qBAAqB;IACrB,sBAAsB;IACtB,uCAAuC;IACvC,eAAe;IACf,gBAAgB;IAChB,kBAAkB;IAClB,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,4BAA4B;IAC5B,sBAAsB;IACtB,wCAAwC;IACxC,8CAA8C;IAC9C,kBAAkB;IAClB,uBAAuB;IACvB,iBAAiB;IACjB,0BAA0B;IAC1B,sBAAsB;IACtB,6BAA6B;IAC7B,sBAAsB;IACtB,qBAAqB;IACrB,gBAAgB;CACjB,CAAC","sourcesContent":["export const routes = [\n \"/app-fees/{wallet}/balances\",\n \"/app-fees/{wallet}/claim\",\n \"/app-fees/{wallet}/claims\",\n \"/balance-events/{wallet}\",\n \"/chains\",\n \"/chains/liquidity\",\n \"/chains/health\",\n \"/config\",\n \"/config/v2\",\n \"/deposit-addresses/v1\",\n \"/execute/permits\",\n \"/quote\",\n \"/quote/v2\",\n \"/price\",\n \"/execute/swap\",\n \"/execute\",\n \"/fast-fill\",\n \"/lives\",\n \"/intents/status\",\n \"/intents/status/v2\",\n \"/intents/status/v3\",\n \"/requests/{requestId}/signature\",\n \"/requests/{requestId}/signature/v2\",\n \"/requests\",\n \"/requests/v2\",\n \"/requests/v3\",\n \"/requests/metadata\",\n \"/transactions/index\",\n \"/transactions/single\",\n \"/transactions/deposit-address/reindex\",\n \"/swap-sources\",\n \"/loadforge.txt\",\n \"/conduit/install\",\n \"/prices/rates\",\n \"/currencies/v1\",\n \"/currencies/v2\",\n \"/currencies/token/price\",\n \"/currencies/token/price/v2\",\n \"/currencies/trending\",\n \"/chains/{chainId}/currencies/{address}\",\n \"/chains/{chainId}/currencies/{address}/chart\",\n \"/provision/chain\",\n \"/sanctioned/{address}\",\n \"/wallets/screen\",\n \"/wallets/screen/override\",\n \"/wallets/screen/info\",\n \"/withdrawals/attest-deposit\",\n \"/withdrawals/request\",\n \"/withdrawals/status\",\n \"/metrics/usage\"\n];"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Execute.js","sourceRoot":"","sources":["../../../src/types/Execute.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n SvmReceipt,\n TronReceipt,\n TonReceipt,\n LvmReceipt\n} from '../types/index.js'\nimport type { paths } from './api.js'\nimport type { AxiosRequestConfig } from 'axios'\nimport type { TransactionReceipt } from 'viem'\n\nexport type CallFees =\n paths['/execute/call/v2']['post']['responses']['200']['content']['application/json']['fees']\nexport type CallBreakdown =\n paths['/execute/call/v2']['post']['responses']['200']['content']['application/json']['breakdown']\nexport type CheckApi = NonNullable<\n NonNullable<\n paths['/quote/v2']['post']['responses']['200']['content']['application/json']['steps']\n >['0']['items']\n>[0]['check']\nexport type QuoteDetails = NonNullable<\n paths['/quote/v2']['post']['responses']['200']['content']['application/json']['details']\n>\nexport type QuoteStepId = NonNullable<\n paths['/quote/v2']['post']['responses']['200']['content']['application/json']['steps']\n>['0']['id']\n\nexport type TransactionStepState = 'confirming' | 'validating' | 'complete'\nexport type SignatureStepState =\n | 'signing'\n | 'posting'\n | 'validating'\n | 'complete'\n\nexport type Execute = {\n errors?: { message?: string; orderId?: string }[]\n fees?: CallFees\n breakdown?: CallBreakdown\n details?: QuoteDetails\n error?: any // Manually added client error\n refunded?: boolean\n\n steps: {\n error?: string\n errorData?: any\n action: string\n description: string\n kind: 'transaction' | 'signature'\n id: QuoteStepId\n requestId?: string\n depositAddress?: string\n items: {\n status: 'complete' | 'incomplete'\n receipt?:\n | TransactionReceipt\n | SvmReceipt\n | TronReceipt\n | TonReceipt\n | LvmReceipt\n checkStatus?:\n | 'refund'\n | 'waiting'\n | 'failure'\n | 'pending'\n | 'submitted'\n | 'success'\n | 'unknown'\n progressState?: TransactionStepState | SignatureStepState\n data?: any\n check?: CheckApi\n orderIndexes?: number[]\n orderIds?: string[]\n // Manually added\n error?: string\n txHashes?: {\n txHash: string\n chainId: number\n isBatchTx?: boolean\n }[]\n internalTxHashes?: {\n txHash: string\n chainId: number\n isBatchTx?: boolean\n }[]\n errorData?: any\n orderData?: {\n crossPostingOrderId?: string\n orderId: string\n orderIndex: string\n }[]\n isValidatingSignature?: boolean\n }[]\n }[]\n\n //Manually added request parameters that fetched the data\n request?: AxiosRequestConfig\n}\n\nexport type ExecuteStep = NonNullable<Execute['steps']>['0']\nexport type ExecuteStepItem = NonNullable<Execute['steps'][0]['items']>[0]\n"]}
1
+ {"version":3,"file":"Execute.js","sourceRoot":"","sources":["../../../src/types/Execute.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n SvmReceipt,\n TronReceipt,\n TonReceipt,\n LvmReceipt\n} from '../types/index.js'\nimport type { paths } from './api.js'\nimport type { AxiosRequestConfig } from 'axios'\nimport type { TransactionReceipt } from 'viem'\n\nexport type QuoteFees =\n paths['/quote/v2']['post']['responses']['200']['content']['application/json']['fees']\nexport type SwapBreakdown =\n paths['/execute/swap']['post']['responses']['200']['content']['application/json']['breakdown']\nexport type CheckApi = NonNullable<\n NonNullable<\n paths['/quote/v2']['post']['responses']['200']['content']['application/json']['steps']\n >['0']['items']\n>[0]['check']\nexport type QuoteDetails = NonNullable<\n paths['/quote/v2']['post']['responses']['200']['content']['application/json']['details']\n>\nexport type QuoteStepId = NonNullable<\n paths['/quote/v2']['post']['responses']['200']['content']['application/json']['steps']\n>['0']['id']\n\nexport type TransactionStepState = 'confirming' | 'validating' | 'complete'\nexport type SignatureStepState =\n | 'signing'\n | 'posting'\n | 'validating'\n | 'complete'\n\nexport type Execute = {\n errors?: { message?: string; orderId?: string }[]\n fees?: QuoteFees\n breakdown?: SwapBreakdown\n details?: QuoteDetails\n error?: any // Manually added client error\n refunded?: boolean\n\n steps: {\n error?: string\n errorData?: any\n action: string\n description: string\n kind: 'transaction' | 'signature'\n id: QuoteStepId\n requestId?: string\n depositAddress?: string\n items: {\n status: 'complete' | 'incomplete'\n receipt?:\n | TransactionReceipt\n | SvmReceipt\n | TronReceipt\n | TonReceipt\n | LvmReceipt\n checkStatus?:\n | 'refund'\n | 'waiting'\n | 'failure'\n | 'pending'\n | 'submitted'\n | 'success'\n | 'unknown'\n progressState?: TransactionStepState | SignatureStepState\n data?: any\n check?: CheckApi\n orderIndexes?: number[]\n orderIds?: string[]\n // Manually added\n error?: string\n txHashes?: {\n txHash: string\n chainId: number\n isBatchTx?: boolean\n }[]\n internalTxHashes?: {\n txHash: string\n chainId: number\n isBatchTx?: boolean\n }[]\n errorData?: any\n orderData?: {\n crossPostingOrderId?: string\n orderId: string\n orderIndex: string\n }[]\n isValidatingSignature?: boolean\n }[]\n }[]\n\n //Manually added request parameters that fetched the data\n request?: AxiosRequestConfig\n}\n\nexport type ExecuteStep = NonNullable<Execute['steps']>['0']\nexport type ExecuteStepItem = NonNullable<Execute['steps'][0]['items']>[0]\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"RelayChain.js","sourceRoot":"","sources":["../../../src/types/RelayChain.ts"],"names":[],"mappings":"","sourcesContent":["import type { Chain } from 'viem'\nimport type { paths } from '../types/index.js'\n\ntype RelayAPIChain = NonNullable<\n paths['/chains']['get']['responses']['200']['content']['application/json']['chains']\n>['0']\n\nexport type ChainVM =\n | 'evm'\n | 'svm'\n | 'bvm'\n | 'tvm'\n | 'hypevm'\n | 'lvm'\n | 'tonvm'\n\nexport type RelayChain = {\n id: number\n name: string\n displayName: string\n httpRpcUrl?: string\n wsRpcUrl?: string\n explorerUrl?: string\n explorerQueryParams?: {\n [key: string]: unknown\n } | null\n explorerPaths?: {\n transaction?: string\n } | null\n icon?: {\n dark?: string\n light?: string\n squaredDark?: string\n squaredLight?: string\n }\n currency?: {\n id?: string\n symbol?: string\n name?: string\n address?: string\n decimals?: number\n supportsBridging?: boolean\n }\n depositEnabled?: boolean\n blockProductionLagging?: boolean\n erc20Currencies?: RelayAPIChain['erc20Currencies']\n solverCurrencies?: RelayAPIChain['solverCurrencies']\n featuredTokens?: RelayAPIChain['featuredTokens']\n tags?: RelayAPIChain['tags']\n iconUrl?: string | null\n logoUrl?: string | null\n brandColor?: string | null\n vmType?: ChainVM\n viemChain?: Chain\n baseChainId?: number | null\n tokenSupport?: 'All' | 'Limited'\n protocol?: RelayAPIChain['protocol']\n}\n"]}
1
+ {"version":3,"file":"RelayChain.js","sourceRoot":"","sources":["../../../src/types/RelayChain.ts"],"names":[],"mappings":"","sourcesContent":["import type { Chain } from 'viem'\nimport type { paths } from '../types/index.js'\n\ntype RelayAPIChain = NonNullable<\n paths['/chains']['get']['responses']['200']['content']['application/json']['chains']\n>['0']\n\nexport type ChainVM =\n | 'evm'\n | 'svm'\n | 'bvm'\n | 'tvm'\n | 'hypevm'\n | 'lvm'\n | 'tonvm'\n | 'xrpvm'\n\nexport type RelayChain = {\n id: number\n name: string\n displayName: string\n httpRpcUrl?: string\n wsRpcUrl?: string\n explorerUrl?: string\n explorerQueryParams?: {\n [key: string]: unknown\n } | null\n explorerPaths?: {\n transaction?: string\n } | null\n icon?: {\n dark?: string\n light?: string\n squaredDark?: string\n squaredLight?: string\n }\n currency?: {\n id?: string\n symbol?: string\n name?: string\n address?: string\n decimals?: number\n supportsBridging?: boolean\n }\n depositEnabled?: boolean\n blockProductionLagging?: boolean\n erc20Currencies?: RelayAPIChain['erc20Currencies']\n solverCurrencies?: RelayAPIChain['solverCurrencies']\n featuredTokens?: RelayAPIChain['featuredTokens']\n tags?: RelayAPIChain['tags']\n iconUrl?: string | null\n logoUrl?: string | null\n brandColor?: string | null\n vmType?: ChainVM\n viemChain?: Chain\n baseChainId?: number | null\n tokenSupport?: 'All' | 'Limited'\n protocol?: RelayAPIChain['protocol']\n}\n"]}