@relayprotocol/relay-sdk 7.0.3 → 8.0.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/_cjs/src/routes/index.js +2 -3
- package/_cjs/src/routes/index.js.map +1 -1
- package/_cjs/src/types/Execute.js.map +1 -1
- package/_cjs/src/types/RelayChain.js.map +1 -1
- package/_cjs/src/types/api.js.map +1 -1
- package/_cjs/src/version.js +1 -1
- package/_cjs/src/version.js.map +1 -1
- package/_cjs/tsconfig.build.tsbuildinfo +1 -1
- package/_esm/src/routes/index.js +2 -3
- package/_esm/src/routes/index.js.map +1 -1
- package/_esm/src/types/Execute.js.map +1 -1
- package/_esm/src/types/RelayChain.js.map +1 -1
- package/_esm/src/types/api.js.map +1 -1
- package/_esm/src/version.js +1 -1
- package/_esm/src/version.js.map +1 -1
- package/_esm/tsconfig.build.tsbuildinfo +1 -1
- package/_types/src/client.d.ts +5 -5
- package/_types/src/routes/index.d.ts.map +1 -1
- package/_types/src/types/Execute.d.ts +4 -1
- package/_types/src/types/Execute.d.ts.map +1 -1
- package/_types/src/types/RelayChain.d.ts +1 -1
- package/_types/src/types/RelayChain.d.ts.map +1 -1
- package/_types/src/types/api.d.ts +552 -849
- package/_types/src/types/api.d.ts.map +1 -1
- package/_types/src/utils/getCurrentStepData.d.ts +2 -2
- package/_types/src/utils/prepareBatchTransaction.d.ts +1 -1
- package/_types/src/version.d.ts +1 -1
- package/_types/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/_esm/src/routes/index.js
CHANGED
|
@@ -9,19 +9,18 @@ export const routes = [
|
|
|
9
9
|
"/config",
|
|
10
10
|
"/config/v2",
|
|
11
11
|
"/deposit-addresses/v1",
|
|
12
|
+
"/deposit-addresses/v2",
|
|
13
|
+
"/deposit-addresses/{depositAddressId}/disable/v2",
|
|
12
14
|
"/execute/permits",
|
|
13
15
|
"/quote",
|
|
14
16
|
"/quote/v2",
|
|
15
17
|
"/price",
|
|
16
|
-
"/execute/swap",
|
|
17
18
|
"/execute",
|
|
18
19
|
"/fast-fill",
|
|
19
20
|
"/lives",
|
|
20
21
|
"/intents/status",
|
|
21
22
|
"/intents/status/v2",
|
|
22
23
|
"/intents/status/v3",
|
|
23
|
-
"/requests/{requestId}/signature",
|
|
24
|
-
"/requests/{requestId}/signature/v2",
|
|
25
24
|
"/requests",
|
|
26
25
|
"/requests/v2",
|
|
27
26
|
"/requests/v3",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/routes/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,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,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/routes/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,6BAA6B;IAC7B,0BAA0B;IAC1B,2BAA2B;IAC3B,0BAA0B;IAC1B,SAAS;IACT,mBAAmB;IACnB,gBAAgB;IAChB,SAAS;IACT,YAAY;IACZ,uBAAuB;IACvB,uBAAuB;IACvB,kDAAkD;IAClD,kBAAkB;IAClB,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,UAAU;IACV,YAAY;IACZ,QAAQ;IACR,iBAAiB;IACjB,oBAAoB;IACpB,oBAAoB;IACpB,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 \"/deposit-addresses/v2\",\n \"/deposit-addresses/{depositAddressId}/disable/v2\",\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\",\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 QuoteFees =\n paths['/quote/v2']['post']['responses']['200']['content']['application/json']['fees']\nexport type SwapBreakdown =\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']\n// Inlined from the dropped /execute/swap schema; still returned on execute step payloads.\nexport type SwapBreakdown =\n | {\n value?: string\n timeEstimate?: number\n }[]\n | undefined\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 | '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"]}
|
|
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 | 'hederavm'\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"]}
|