@reyaxyz/common 0.342.0 → 0.343.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.
Files changed (47) hide show
  1. package/README.md +1 -1
  2. package/dist/api-types.js.map +1 -1
  3. package/dist/incentives-api-types.js.map +1 -1
  4. package/dist/transactions/abis/OFT.json +201 -0
  5. package/dist/transactions/abis/Periphery.json +233 -0
  6. package/dist/transactions/index.js +3 -1
  7. package/dist/transactions/index.js.map +1 -1
  8. package/dist/types/api-types.d.ts +12 -0
  9. package/dist/types/api-types.d.ts.map +1 -1
  10. package/dist/types/incentives-api-types.d.ts +8 -1
  11. package/dist/types/incentives-api-types.d.ts.map +1 -1
  12. package/dist/types/transactions/index.d.ts +1 -0
  13. package/dist/types/transactions/index.d.ts.map +1 -1
  14. package/dist/types/types.d.ts +2 -1
  15. package/dist/types/types.d.ts.map +1 -1
  16. package/dist/types/utils/index.d.ts +1 -0
  17. package/dist/types/utils/index.d.ts.map +1 -1
  18. package/dist/types/utils/layerzero/index.d.ts +3 -0
  19. package/dist/types/utils/layerzero/index.d.ts.map +1 -0
  20. package/dist/types/utils/layerzero/oft-config.d.ts +4 -0
  21. package/dist/types/utils/layerzero/oft-config.d.ts.map +1 -0
  22. package/dist/types/utils/layerzero/types.d.ts +23 -0
  23. package/dist/types/utils/layerzero/types.d.ts.map +1 -0
  24. package/dist/types/utils/token/token-info.d.ts.map +1 -1
  25. package/dist/types.js.map +1 -1
  26. package/dist/utils/index.js +1 -0
  27. package/dist/utils/index.js.map +1 -1
  28. package/dist/utils/layerzero/index.js +19 -0
  29. package/dist/utils/layerzero/index.js.map +1 -0
  30. package/dist/utils/layerzero/oft-config.js +29 -0
  31. package/dist/utils/layerzero/oft-config.js.map +1 -0
  32. package/dist/utils/layerzero/types.js +3 -0
  33. package/dist/utils/layerzero/types.js.map +1 -0
  34. package/dist/utils/token/token-info.js +64 -0
  35. package/dist/utils/token/token-info.js.map +1 -1
  36. package/package.json +2 -2
  37. package/src/api-types.ts +4 -0
  38. package/src/incentives-api-types.ts +13 -0
  39. package/src/transactions/abis/OFT.json +201 -0
  40. package/src/transactions/abis/Periphery.json +233 -0
  41. package/src/transactions/index.ts +1 -0
  42. package/src/types.ts +3 -0
  43. package/src/utils/index.ts +1 -0
  44. package/src/utils/layerzero/index.ts +2 -0
  45. package/src/utils/layerzero/oft-config.ts +32 -0
  46. package/src/utils/layerzero/types.ts +25 -0
  47. package/src/utils/token/token-info.ts +64 -0
package/README.md CHANGED
@@ -6,5 +6,5 @@
6
6
 
7
7
  | Statements | Branches | Functions | Lines |
8
8
  | --------------------------- | ----------------------- | ------------------------- | ----------------- |
9
- | ![Statements](https://img.shields.io/badge/statements-28.53%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-25.29%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-17.39%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-29.65%25-red.svg?style=flat) |
9
+ | ![Statements](https://img.shields.io/badge/statements-28.69%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-25.14%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-17.24%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-29.88%25-red.svg?style=flat) |
10
10
 
@@ -1 +1 @@
1
- {"version":3,"file":"api-types.js","sourceRoot":"/","sources":["api-types.ts"],"names":[],"mappings":"","sourcesContent":["export type PaginatedQueryParams = {\n before: string;\n after: string;\n limit: string;\n direction: 'asc' | 'desc';\n};\n\nexport type PaginatedQueryMeta = {\n limit: number;\n count: number;\n before: string | null | undefined;\n after: string | null | undefined;\n};\n\nexport type Decimal = 'fake-decimal';\n\nexport type ApiEndpoint<Response, Params, Query = never> = {\n params: Params;\n query: Query;\n response: Response;\n};\n\nexport type ApiListEndpoint<Response, Params = never, Query = never> = {\n params: Params;\n query: Query;\n response: Response[];\n};\n\nexport type ApiInfiniteListEndpointResponse<Response> = {\n data: Response[];\n meta: PaginatedQueryMeta;\n};\n\nexport type ApiInfiniteListEndpoint<\n Response,\n Params = never,\n Query = PaginatedQueryParams,\n> = {\n params: Params;\n query: Query;\n response: ApiInfiniteListEndpointResponse<Response>;\n};\n\nexport type AddressParam = {\n address: string;\n};\n\nexport type ReplaceDecimals<T, D> = T extends Decimal\n ? D\n : T extends (infer U)[]\n ? ReplaceDecimals<U, D>[]\n : { [K in keyof T]: ReplaceDecimals<T[K], D> };\n\nexport type Stringified<T, D = Decimal> = T extends D | bigint | Date\n ? string\n : T extends (infer U)[]\n ? Stringified<U, D>[]\n : {\n [K in keyof T]: Stringified<T[K], D>;\n };\n\nexport type PageBasedPaginatedListResponse<T> = {\n data: T[];\n currentPage: number;\n totalPages: number;\n userWallet?: string;\n type: 'weekly' | 'total';\n};\n"]}
1
+ {"version":3,"file":"api-types.js","sourceRoot":"/","sources":["api-types.ts"],"names":[],"mappings":"","sourcesContent":["export type PaginatedQueryParams = {\n before: string;\n after: string;\n limit: string;\n direction: 'asc' | 'desc';\n};\n\nexport type PaginatedQueryMeta = {\n limit: number;\n count: number;\n before: string | null | undefined;\n after: string | null | undefined;\n};\n\nexport type Decimal = 'fake-decimal';\n\nexport type ApiEndpoint<Response, Params, Query = never> = {\n params: Params;\n query: Query;\n response: Response;\n};\n\nexport type ApiListEndpoint<Response, Params = never, Query = never> = {\n params: Params;\n query: Query;\n response: Response[];\n};\n\nexport type ApiInfiniteListEndpointResponse<Response> = {\n data: Response[];\n meta: PaginatedQueryMeta;\n};\n\nexport type ApiInfiniteListEndpoint<\n Response,\n Params = never,\n Query = PaginatedQueryParams,\n> = {\n params: Params;\n query: Query;\n response: ApiInfiniteListEndpointResponse<Response>;\n};\n\nexport type AddressParam = {\n address: string;\n};\n\nexport type ReplaceDecimals<T, D> = T extends Decimal\n ? D\n : T extends (infer U)[]\n ? ReplaceDecimals<U, D>[]\n : { [K in keyof T]: ReplaceDecimals<T[K], D> };\n\nexport type Stringified<T, D = Decimal> = T extends D | bigint | Date\n ? string\n : T extends (infer U)[]\n ? Stringified<U, D>[]\n : {\n [K in keyof T]: Stringified<T[K], D>;\n };\n\nexport type FailableResult<T = never> = [T] extends [never]\n ? { success: true } | { success: false; error: string }\n : { success: true; data: T } | { success: false; error: string };\n\nexport type PageBasedPaginatedListResponse<T> = {\n data: T[];\n currentPage: number;\n totalPages: number;\n userWallet?: string;\n type: 'weekly' | 'total';\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"incentives-api-types.js","sourceRoot":"/","sources":["incentives-api-types.ts"],"names":[],"mappings":"","sourcesContent":["import {\n AddressParam,\n ApiEndpoint,\n ApiInfiniteListEndpoint,\n ApiListEndpoint,\n PaginatedQueryParams,\n Stringified,\n} from './api-types';\nimport { Rank, RankTrading } from './types';\n\nexport type PointsBreakdown = {\n totalPoints: number;\n tradingPoints: number;\n stakingPoints: number;\n signalPoints: number;\n rank: number;\n};\n\nexport type IncentivesUserPointsData = {\n weekly: PointsBreakdown;\n total: PointsBreakdown;\n};\n\nexport type IncentivesUserRanks = {\n walletAddress: string;\n tradingRank: RankTrading;\n stakingRank: Rank;\n};\n\nexport type IncentivesUserBoosts = {\n walletAddress: string;\n tradingBoost: number;\n stakingBoost: number;\n loyaltyBoost: number;\n};\n\nexport type IncentivesUserSummaryData = {\n walletAddress: string;\n points: IncentivesUserPointsData;\n ranks: Omit<IncentivesUserRanks, 'walletAddress'>;\n boosts: Omit<IncentivesUserBoosts, 'walletAddress'>;\n};\n\nexport type IncentivesLeaderBoardEntry = {\n rank: number;\n walletAddress: string;\n totalPoints: number;\n tradingPoints: number;\n stakingPoints: number;\n signalPoints: number;\n isCurrentUser?: boolean;\n};\n\nexport type IncentivesRankingHistoryEntry = {\n week: number;\n createdAt: Date;\n tradingRank: RankTrading;\n stakingRank: Rank;\n tradingPoints: number;\n stakingPoints: number;\n};\n\nexport type IncentivesPointsHistoryEntry = {\n walletAddress: string;\n totalXpOG: number;\n totalXpOGRanked: number;\n liquidityReferralXpOG: number;\n liquidityXpOG: number;\n rankMultiplierOG: number;\n rankOG: Rank;\n stakingPointsOG: number;\n liquidityReferralXpSeason1: number;\n liquidityXpSeason1: number;\n liquidityXpSeason1Ranked: number;\n rankMultiplierSeason1: number;\n rankSeason1: Rank;\n stakingPointsSeason1: number;\n tradingReferralXpSeason1: number;\n tradingXpSeason1: number;\n tradingXpSeason1Ranked: number;\n tradingRankMultiplierSeason1: number;\n tradingRankSeason1: RankTrading;\n tradingPointsSeason1: number;\n liquidityReferralXpSeason2: number;\n liquidityXpSeason2: number;\n rankSeason2: Rank;\n stakingPointsSeason2: number;\n tradingReferralXpSeason2: number;\n tradingXpSeason2: number;\n tradingRankSeason2: RankTrading;\n tradingPointsSeason2: number;\n totalLiquidityXp: number;\n totalLiquidityReferralXp: number;\n totalTradingXp: number;\n totalTradingReferralXp: number;\n totalXp: number;\n totalPoints: number;\n};\n\nexport type LeaderBoardParams = { type: 'weekly' | 'total' };\n\nexport type TradingCompetitionRoundParams = { round: number };\n\nexport type TradingCompetitionUserSummaryData = {\n realizedPnl: number;\n eligible: boolean;\n position: number | null;\n};\n\nexport type TradingCompetitionLeaderboardEntry = {\n walletAddress: string;\n realizedPnl: number;\n position: number;\n};\n\nexport type IncentivesApiSource = {\n 'incentives/points': ApiEndpoint<\n {\n total: number;\n weekly: number;\n },\n never\n >;\n\n 'incentives/leaderBoard/:type': ApiInfiniteListEndpoint<\n IncentivesLeaderBoardEntry,\n LeaderBoardParams,\n PaginatedQueryParams\n >;\n\n 'incentives/wallet/:address': ApiEndpoint<\n IncentivesUserSummaryData,\n AddressParam\n >;\n\n 'incentives/wallet/:address/referralsLeaderBoard/:type': ApiListEndpoint<\n IncentivesLeaderBoardEntry,\n AddressParam & LeaderBoardParams\n >;\n\n 'incentives/wallet/:address/leaderBoard/:type': ApiEndpoint<\n IncentivesLeaderBoardEntry,\n AddressParam & LeaderBoardParams\n >;\n\n 'incentives/wallet/:address/ranksHistory': ApiListEndpoint<\n IncentivesRankingHistoryEntry,\n AddressParam\n >;\n\n 'incentives/wallet/:address/signalPoints': ApiListEndpoint<\n {\n createdAt: Date;\n points: number;\n reason: string;\n },\n AddressParam\n >;\n\n 'incentives/wallet/:address/pointsHistory': ApiEndpoint<\n IncentivesPointsHistoryEntry,\n AddressParam\n >;\n\n 'incentives/tradingCompetition/:round': ApiEndpoint<\n {\n entries: TradingCompetitionLeaderboardEntry[];\n refreshedAt: number;\n },\n TradingCompetitionRoundParams\n >;\n\n 'incentives/wallet/:address/tradingCompetition/:round': ApiEndpoint<\n TradingCompetitionUserSummaryData,\n AddressParam & TradingCompetitionRoundParams\n >;\n};\n\nexport type IncentivesApi = {\n [K in keyof IncentivesApiSource]: {\n params: IncentivesApiSource[K]['params'];\n query: IncentivesApiSource[K]['query'];\n response: Stringified<IncentivesApiSource[K]['response']>;\n };\n};\n"]}
1
+ {"version":3,"file":"incentives-api-types.js","sourceRoot":"/","sources":["incentives-api-types.ts"],"names":[],"mappings":"","sourcesContent":["import {\n AddressParam,\n ApiEndpoint,\n ApiInfiniteListEndpoint,\n ApiListEndpoint,\n PaginatedQueryParams,\n FailableResult,\n Stringified,\n} from './api-types';\nimport { Rank, RankTrading } from './types';\n\nexport type PointsBreakdown = {\n totalPoints: number;\n tradingPoints: number;\n stakingPoints: number;\n signalPoints: number;\n rank: number;\n};\n\nexport type IncentivesUserPointsData = {\n weekly: PointsBreakdown;\n total: PointsBreakdown;\n};\n\nexport type IncentivesUserRanks = {\n walletAddress: string;\n tradingRank: RankTrading;\n stakingRank: Rank;\n};\n\nexport type IncentivesUserBoosts = {\n walletAddress: string;\n tradingBoost: number;\n stakingBoost: number;\n loyaltyBoost: number;\n};\n\nexport type IncentivesUserSummaryData = {\n walletAddress: string;\n points: IncentivesUserPointsData;\n ranks: Omit<IncentivesUserRanks, 'walletAddress'>;\n boosts: Omit<IncentivesUserBoosts, 'walletAddress'>;\n};\n\nexport type IncentivesLeaderBoardEntry = {\n rank: number;\n walletAddress: string;\n totalPoints: number;\n tradingPoints: number;\n stakingPoints: number;\n signalPoints: number;\n isCurrentUser?: boolean;\n};\n\nexport type IncentivesRankingHistoryEntry = {\n week: number;\n createdAt: Date;\n tradingRank: RankTrading;\n stakingRank: Rank;\n tradingPoints: number;\n stakingPoints: number;\n};\n\nexport type IncentivesPointsHistoryEntry = {\n walletAddress: string;\n totalXpOG: number;\n totalXpOGRanked: number;\n liquidityReferralXpOG: number;\n liquidityXpOG: number;\n rankMultiplierOG: number;\n rankOG: Rank;\n stakingPointsOG: number;\n liquidityReferralXpSeason1: number;\n liquidityXpSeason1: number;\n liquidityXpSeason1Ranked: number;\n rankMultiplierSeason1: number;\n rankSeason1: Rank;\n stakingPointsSeason1: number;\n tradingReferralXpSeason1: number;\n tradingXpSeason1: number;\n tradingXpSeason1Ranked: number;\n tradingRankMultiplierSeason1: number;\n tradingRankSeason1: RankTrading;\n tradingPointsSeason1: number;\n liquidityReferralXpSeason2: number;\n liquidityXpSeason2: number;\n rankSeason2: Rank;\n stakingPointsSeason2: number;\n tradingReferralXpSeason2: number;\n tradingXpSeason2: number;\n tradingRankSeason2: RankTrading;\n tradingPointsSeason2: number;\n totalLiquidityXp: number;\n totalLiquidityReferralXp: number;\n totalTradingXp: number;\n totalTradingReferralXp: number;\n totalXp: number;\n totalPoints: number;\n};\n\nexport type LeaderBoardParams = { type: 'weekly' | 'total' };\n\nexport type TradingCompetitionRoundParams = { round: number };\n\nexport type TradingCompetitionUserSummaryData = {\n realizedPnl: number;\n eligible: boolean;\n position: number | null;\n};\n\nexport type TradingCompetitionLeaderboardEntry = {\n walletAddress: string;\n realizedPnl: number;\n position: number;\n};\n\nexport type IncentivesApiSource = {\n 'incentives/points': ApiEndpoint<\n {\n total: number;\n weekly: number;\n },\n never\n >;\n\n 'incentives/leaderBoard/:type': ApiInfiniteListEndpoint<\n IncentivesLeaderBoardEntry,\n LeaderBoardParams,\n PaginatedQueryParams\n >;\n\n 'incentives/wallet/:address': ApiEndpoint<\n IncentivesUserSummaryData,\n AddressParam\n >;\n\n 'incentives/wallet/:address/referralsLeaderBoard/:type': ApiListEndpoint<\n IncentivesLeaderBoardEntry,\n AddressParam & LeaderBoardParams\n >;\n\n 'incentives/wallet/:address/leaderBoard/:type': ApiEndpoint<\n IncentivesLeaderBoardEntry,\n AddressParam & LeaderBoardParams\n >;\n\n 'incentives/wallet/:address/ranksHistory': ApiListEndpoint<\n IncentivesRankingHistoryEntry,\n AddressParam\n >;\n\n 'incentives/wallet/:address/signalPoints': ApiListEndpoint<\n {\n createdAt: Date;\n points: number;\n reason: string;\n },\n AddressParam\n >;\n\n 'incentives/wallet/:address/pointsHistory': ApiEndpoint<\n IncentivesPointsHistoryEntry,\n AddressParam\n >;\n\n 'incentives/tradingCompetition/:round': ApiEndpoint<\n {\n entries: TradingCompetitionLeaderboardEntry[];\n status: 'live' | 'ended';\n refreshedAt: number;\n },\n TradingCompetitionRoundParams\n >;\n\n 'incentives/wallet/:address/tradingCompetition/:round': ApiEndpoint<\n TradingCompetitionUserSummaryData,\n AddressParam & TradingCompetitionRoundParams\n >;\n\n 'incentives/wallet/:address/tradingCompetition/:round/registration': ApiEndpoint<\n { registered: boolean },\n AddressParam & TradingCompetitionRoundParams\n >;\n\n 'incentives/wallet/:address/tradingCompetition/:round/claim': ApiEndpoint<\n FailableResult,\n AddressParam & TradingCompetitionRoundParams,\n { code: string }\n >;\n};\n\nexport type IncentivesApi = {\n [K in keyof IncentivesApiSource]: {\n params: IncentivesApiSource[K]['params'];\n query: IncentivesApiSource[K]['query'];\n response: Stringified<IncentivesApiSource[K]['response']>;\n };\n};\n"]}
@@ -0,0 +1,201 @@
1
+ {
2
+ "abi": [
3
+ {
4
+ "inputs": [
5
+ {
6
+ "components": [
7
+ {
8
+ "internalType": "uint32",
9
+ "name": "dstEid",
10
+ "type": "uint32"
11
+ },
12
+ {
13
+ "internalType": "bytes32",
14
+ "name": "to",
15
+ "type": "bytes32"
16
+ },
17
+ {
18
+ "internalType": "uint256",
19
+ "name": "amountLD",
20
+ "type": "uint256"
21
+ },
22
+ {
23
+ "internalType": "uint256",
24
+ "name": "minAmountLD",
25
+ "type": "uint256"
26
+ },
27
+ {
28
+ "internalType": "bytes",
29
+ "name": "extraOptions",
30
+ "type": "bytes"
31
+ },
32
+ {
33
+ "internalType": "bytes",
34
+ "name": "composeMsg",
35
+ "type": "bytes"
36
+ },
37
+ {
38
+ "internalType": "bytes",
39
+ "name": "oftCmd",
40
+ "type": "bytes"
41
+ }
42
+ ],
43
+ "internalType": "struct SendParam",
44
+ "name": "_sendParam",
45
+ "type": "tuple"
46
+ },
47
+ {
48
+ "internalType": "bool",
49
+ "name": "_payInLzToken",
50
+ "type": "bool"
51
+ }
52
+ ],
53
+ "name": "quoteSend",
54
+ "outputs": [
55
+ {
56
+ "components": [
57
+ {
58
+ "internalType": "uint256",
59
+ "name": "nativeFee",
60
+ "type": "uint256"
61
+ },
62
+ {
63
+ "internalType": "uint256",
64
+ "name": "lzTokenFee",
65
+ "type": "uint256"
66
+ }
67
+ ],
68
+ "internalType": "struct MessagingFee",
69
+ "name": "msgFee",
70
+ "type": "tuple"
71
+ }
72
+ ],
73
+ "stateMutability": "view",
74
+ "type": "function"
75
+ },
76
+ {
77
+ "inputs": [
78
+ {
79
+ "components": [
80
+ {
81
+ "internalType": "uint32",
82
+ "name": "dstEid",
83
+ "type": "uint32"
84
+ },
85
+ {
86
+ "internalType": "bytes32",
87
+ "name": "to",
88
+ "type": "bytes32"
89
+ },
90
+ {
91
+ "internalType": "uint256",
92
+ "name": "amountLD",
93
+ "type": "uint256"
94
+ },
95
+ {
96
+ "internalType": "uint256",
97
+ "name": "minAmountLD",
98
+ "type": "uint256"
99
+ },
100
+ {
101
+ "internalType": "bytes",
102
+ "name": "extraOptions",
103
+ "type": "bytes"
104
+ },
105
+ {
106
+ "internalType": "bytes",
107
+ "name": "composeMsg",
108
+ "type": "bytes"
109
+ },
110
+ {
111
+ "internalType": "bytes",
112
+ "name": "oftCmd",
113
+ "type": "bytes"
114
+ }
115
+ ],
116
+ "internalType": "struct SendParam",
117
+ "name": "_sendParam",
118
+ "type": "tuple"
119
+ },
120
+ {
121
+ "components": [
122
+ {
123
+ "internalType": "uint256",
124
+ "name": "nativeFee",
125
+ "type": "uint256"
126
+ },
127
+ {
128
+ "internalType": "uint256",
129
+ "name": "lzTokenFee",
130
+ "type": "uint256"
131
+ }
132
+ ],
133
+ "internalType": "struct MessagingFee",
134
+ "name": "_fee",
135
+ "type": "tuple"
136
+ },
137
+ {
138
+ "internalType": "address",
139
+ "name": "_refundAddress",
140
+ "type": "address"
141
+ }
142
+ ],
143
+ "name": "send",
144
+ "outputs": [
145
+ {
146
+ "components": [
147
+ {
148
+ "internalType": "bytes32",
149
+ "name": "guid",
150
+ "type": "bytes32"
151
+ },
152
+ {
153
+ "internalType": "uint64",
154
+ "name": "nonce",
155
+ "type": "uint64"
156
+ },
157
+ {
158
+ "components": [
159
+ {
160
+ "internalType": "uint256",
161
+ "name": "nativeFee",
162
+ "type": "uint256"
163
+ },
164
+ {
165
+ "internalType": "uint256",
166
+ "name": "lzTokenFee",
167
+ "type": "uint256"
168
+ }
169
+ ],
170
+ "internalType": "struct MessagingFee",
171
+ "name": "fee",
172
+ "type": "tuple"
173
+ }
174
+ ],
175
+ "internalType": "struct MessagingReceipt",
176
+ "name": "msgReceipt",
177
+ "type": "tuple"
178
+ },
179
+ {
180
+ "components": [
181
+ {
182
+ "internalType": "uint256",
183
+ "name": "amountSentLD",
184
+ "type": "uint256"
185
+ },
186
+ {
187
+ "internalType": "uint256",
188
+ "name": "amountReceivedLD",
189
+ "type": "uint256"
190
+ }
191
+ ],
192
+ "internalType": "struct OFTReceipt",
193
+ "name": "oftReceipt",
194
+ "type": "tuple"
195
+ }
196
+ ],
197
+ "stateMutability": "payable",
198
+ "type": "function"
199
+ }
200
+ ]
201
+ }
@@ -1457,6 +1457,125 @@
1457
1457
  "outputs": [],
1458
1458
  "stateMutability": "nonpayable"
1459
1459
  },
1460
+ {
1461
+ "type": "function",
1462
+ "name": "withdrawMALZ",
1463
+ "inputs": [
1464
+ {
1465
+ "name": "inputs",
1466
+ "type": "tuple",
1467
+ "internalType": "struct WithdrawMALZInputs",
1468
+ "components": [
1469
+ {
1470
+ "name": "accountId",
1471
+ "type": "uint128",
1472
+ "internalType": "uint128"
1473
+ },
1474
+ {
1475
+ "name": "token",
1476
+ "type": "address",
1477
+ "internalType": "address"
1478
+ },
1479
+ {
1480
+ "name": "tokenAmount",
1481
+ "type": "uint256",
1482
+ "internalType": "uint256"
1483
+ },
1484
+ {
1485
+ "name": "sig",
1486
+ "type": "tuple",
1487
+ "internalType": "struct EIP712Signature",
1488
+ "components": [
1489
+ {
1490
+ "name": "v",
1491
+ "type": "uint8",
1492
+ "internalType": "uint8"
1493
+ },
1494
+ {
1495
+ "name": "r",
1496
+ "type": "bytes32",
1497
+ "internalType": "bytes32"
1498
+ },
1499
+ {
1500
+ "name": "s",
1501
+ "type": "bytes32",
1502
+ "internalType": "bytes32"
1503
+ },
1504
+ {
1505
+ "name": "deadline",
1506
+ "type": "uint256",
1507
+ "internalType": "uint256"
1508
+ }
1509
+ ]
1510
+ },
1511
+ {
1512
+ "name": "dstEid",
1513
+ "type": "uint32",
1514
+ "internalType": "uint32"
1515
+ },
1516
+ {
1517
+ "name": "receiver",
1518
+ "type": "address",
1519
+ "internalType": "address"
1520
+ }
1521
+ ]
1522
+ }
1523
+ ],
1524
+ "outputs": [
1525
+ {
1526
+ "name": "",
1527
+ "type": "tuple",
1528
+ "internalType": "struct MessagingReceipt",
1529
+ "components": [
1530
+ {
1531
+ "name": "guid",
1532
+ "type": "bytes32",
1533
+ "internalType": "bytes32"
1534
+ },
1535
+ {
1536
+ "name": "nonce",
1537
+ "type": "uint64",
1538
+ "internalType": "uint64"
1539
+ },
1540
+ {
1541
+ "name": "fee",
1542
+ "type": "tuple",
1543
+ "internalType": "struct MessagingFee",
1544
+ "components": [
1545
+ {
1546
+ "name": "nativeFee",
1547
+ "type": "uint256",
1548
+ "internalType": "uint256"
1549
+ },
1550
+ {
1551
+ "name": "lzTokenFee",
1552
+ "type": "uint256",
1553
+ "internalType": "uint256"
1554
+ }
1555
+ ]
1556
+ }
1557
+ ]
1558
+ },
1559
+ {
1560
+ "name": "",
1561
+ "type": "tuple",
1562
+ "internalType": "struct OFTReceipt",
1563
+ "components": [
1564
+ {
1565
+ "name": "amountSentLD",
1566
+ "type": "uint256",
1567
+ "internalType": "uint256"
1568
+ },
1569
+ {
1570
+ "name": "amountReceivedLD",
1571
+ "type": "uint256",
1572
+ "internalType": "uint256"
1573
+ }
1574
+ ]
1575
+ }
1576
+ ],
1577
+ "stateMutability": "nonpayable"
1578
+ },
1460
1579
  {
1461
1580
  "type": "function",
1462
1581
  "name": "withdrawPassivePool",
@@ -1869,6 +1988,120 @@
1869
1988
  ],
1870
1989
  "anonymous": false
1871
1990
  },
1991
+ {
1992
+ "type": "function",
1993
+ "name": "stakeReya",
1994
+ "inputs": [
1995
+ {
1996
+ "name": "inputs",
1997
+ "type": "tuple",
1998
+ "internalType": "struct StakeReyaInputs",
1999
+ "components": [
2000
+ {
2001
+ "name": "accountId",
2002
+ "type": "uint128",
2003
+ "internalType": "uint128"
2004
+ },
2005
+ {
2006
+ "name": "assetAmount",
2007
+ "type": "uint256",
2008
+ "internalType": "uint256"
2009
+ },
2010
+ {
2011
+ "name": "minShareAmount",
2012
+ "type": "uint256",
2013
+ "internalType": "uint256"
2014
+ },
2015
+ {
2016
+ "name": "withdrawSig",
2017
+ "type": "tuple",
2018
+ "internalType": "struct EIP712Signature",
2019
+ "components": [
2020
+ {
2021
+ "name": "v",
2022
+ "type": "uint8",
2023
+ "internalType": "uint8"
2024
+ },
2025
+ {
2026
+ "name": "r",
2027
+ "type": "bytes32",
2028
+ "internalType": "bytes32"
2029
+ },
2030
+ {
2031
+ "name": "s",
2032
+ "type": "bytes32",
2033
+ "internalType": "bytes32"
2034
+ },
2035
+ {
2036
+ "name": "deadline",
2037
+ "type": "uint256",
2038
+ "internalType": "uint256"
2039
+ }
2040
+ ]
2041
+ }
2042
+ ]
2043
+ }
2044
+ ],
2045
+ "outputs": [],
2046
+ "stateMutability": "nonpayable"
2047
+ },
2048
+ {
2049
+ "type": "function",
2050
+ "name": "unstakeStakedReya",
2051
+ "inputs": [
2052
+ {
2053
+ "name": "inputs",
2054
+ "type": "tuple",
2055
+ "internalType": "struct UnstakeStakedReyaInputs",
2056
+ "components": [
2057
+ {
2058
+ "name": "accountId",
2059
+ "type": "uint128",
2060
+ "internalType": "uint128"
2061
+ },
2062
+ {
2063
+ "name": "shareAmount",
2064
+ "type": "uint256",
2065
+ "internalType": "uint256"
2066
+ },
2067
+ {
2068
+ "name": "minAssetAmount",
2069
+ "type": "uint256",
2070
+ "internalType": "uint256"
2071
+ },
2072
+ {
2073
+ "name": "withdrawSig",
2074
+ "type": "tuple",
2075
+ "internalType": "struct EIP712Signature",
2076
+ "components": [
2077
+ {
2078
+ "name": "v",
2079
+ "type": "uint8",
2080
+ "internalType": "uint8"
2081
+ },
2082
+ {
2083
+ "name": "r",
2084
+ "type": "bytes32",
2085
+ "internalType": "bytes32"
2086
+ },
2087
+ {
2088
+ "name": "s",
2089
+ "type": "bytes32",
2090
+ "internalType": "bytes32"
2091
+ },
2092
+ {
2093
+ "name": "deadline",
2094
+ "type": "uint256",
2095
+ "internalType": "uint256"
2096
+ }
2097
+ ]
2098
+ }
2099
+ ]
2100
+ }
2101
+ ],
2102
+ "outputs": [],
2103
+ "stateMutability": "nonpayable"
2104
+ },
1872
2105
  {
1873
2106
  "type": "error",
1874
2107
  "name": "ValueAlreadyInSet",
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.PassivePerpAbi = exports.OrdersGatewayAbi = exports.Socket_VaultWithPayloadAbi = exports.PeripheryAbi = exports.OracleAdaptersAbi = exports.MulticallAbi = exports.ErrorsAbi = exports.CoreAbi = void 0;
17
+ exports.OFTAbi = exports.PassivePerpAbi = exports.OrdersGatewayAbi = exports.Socket_VaultWithPayloadAbi = exports.PeripheryAbi = exports.OracleAdaptersAbi = exports.MulticallAbi = exports.ErrorsAbi = exports.CoreAbi = void 0;
18
18
  __exportStar(require("./action"), exports);
19
19
  var CoreProxy_json_1 = require("./abis/CoreProxy.json");
20
20
  Object.defineProperty(exports, "CoreAbi", { enumerable: true, get: function () { return CoreProxy_json_1.abi; } });
@@ -32,6 +32,8 @@ var OrdersGateway_json_1 = require("./abis/OrdersGateway.json");
32
32
  Object.defineProperty(exports, "OrdersGatewayAbi", { enumerable: true, get: function () { return OrdersGateway_json_1.abi; } });
33
33
  var PassivePerpProxy_json_1 = require("./abis/PassivePerpProxy.json");
34
34
  Object.defineProperty(exports, "PassivePerpAbi", { enumerable: true, get: function () { return PassivePerpProxy_json_1.abi; } });
35
+ var OFT_json_1 = require("./abis/OFT.json");
36
+ Object.defineProperty(exports, "OFTAbi", { enumerable: true, get: function () { return OFT_json_1.abi; } });
35
37
  __exportStar(require("./contractAddresses"), exports);
36
38
  __exportStar(require("./routerCommands"), exports);
37
39
  __exportStar(require("./sign"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["transactions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,wDAAuD;AAA9C,yGAAA,GAAG,OAAW;AACvB,kDAAsD;AAA7C,wGAAA,GAAG,OAAa;AACzB,sEAAmE;AAA1D,qHAAA,GAAG,OAAgB;AAC5B,4EAA2E;AAAlE,6HAAA,GAAG,OAAqB;AACjC,wDAA4D;AAAnD,8GAAA,GAAG,OAAgB;AAC5B,6EAAwF;AAA/E,mIAAA,GAAG,OAA8B;AAC1C,gEAAoE;AAA3D,sHAAA,GAAG,OAAoB;AAChC,sEAAqE;AAA5D,uHAAA,GAAG,OAAkB;AAC9B,sDAAoC;AACpC,mDAAiC;AACjC,yCAAuB;AACvB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,uDAAqC;AACrC,gDAA8B;AAC9B,qDAAmC;AACnC,wDAAsC","sourcesContent":["export * from './action';\nexport { abi as CoreAbi } from './abis/CoreProxy.json';\nexport { abi as ErrorsAbi } from './abis/Errors.json';\nexport { abi as MulticallAbi } from './abis/CustomMulticall3.json';\nexport { abi as OracleAdaptersAbi } from './abis/OracleAdaptersProxy.json';\nexport { abi as PeripheryAbi } from './abis/Periphery.json';\nexport { abi as Socket_VaultWithPayloadAbi } from './abis/socket/VaultWithPayload.json';\nexport { abi as OrdersGatewayAbi } from './abis/OrdersGateway.json';\nexport { abi as PassivePerpAbi } from './abis/PassivePerpProxy.json';\nexport * from './contractAddresses';\nexport * from './routerCommands';\nexport * from './sign';\nexport * from './trade';\nexport * from './txHelpers';\nexport * from './consts';\nexport * from './executeTransaction';\nexport * from './permissions';\nexport * from './buildMulticallTx';\nexport * from './encodeStorkUpdateTx';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["transactions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,wDAAuD;AAA9C,yGAAA,GAAG,OAAW;AACvB,kDAAsD;AAA7C,wGAAA,GAAG,OAAa;AACzB,sEAAmE;AAA1D,qHAAA,GAAG,OAAgB;AAC5B,4EAA2E;AAAlE,6HAAA,GAAG,OAAqB;AACjC,wDAA4D;AAAnD,8GAAA,GAAG,OAAgB;AAC5B,6EAAwF;AAA/E,mIAAA,GAAG,OAA8B;AAC1C,gEAAoE;AAA3D,sHAAA,GAAG,OAAoB;AAChC,sEAAqE;AAA5D,uHAAA,GAAG,OAAkB;AAC9B,4CAAgD;AAAvC,kGAAA,GAAG,OAAU;AACtB,sDAAoC;AACpC,mDAAiC;AACjC,yCAAuB;AACvB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,uDAAqC;AACrC,gDAA8B;AAC9B,qDAAmC;AACnC,wDAAsC","sourcesContent":["export * from './action';\nexport { abi as CoreAbi } from './abis/CoreProxy.json';\nexport { abi as ErrorsAbi } from './abis/Errors.json';\nexport { abi as MulticallAbi } from './abis/CustomMulticall3.json';\nexport { abi as OracleAdaptersAbi } from './abis/OracleAdaptersProxy.json';\nexport { abi as PeripheryAbi } from './abis/Periphery.json';\nexport { abi as Socket_VaultWithPayloadAbi } from './abis/socket/VaultWithPayload.json';\nexport { abi as OrdersGatewayAbi } from './abis/OrdersGateway.json';\nexport { abi as PassivePerpAbi } from './abis/PassivePerpProxy.json';\nexport { abi as OFTAbi } from './abis/OFT.json';\nexport * from './contractAddresses';\nexport * from './routerCommands';\nexport * from './sign';\nexport * from './trade';\nexport * from './txHelpers';\nexport * from './consts';\nexport * from './executeTransaction';\nexport * from './permissions';\nexport * from './buildMulticallTx';\nexport * from './encodeStorkUpdateTx';\n"]}
@@ -39,6 +39,18 @@ export type ReplaceDecimals<T, D> = T extends Decimal ? D : T extends (infer U)[
39
39
  export type Stringified<T, D = Decimal> = T extends D | bigint | Date ? string : T extends (infer U)[] ? Stringified<U, D>[] : {
40
40
  [K in keyof T]: Stringified<T[K], D>;
41
41
  };
42
+ export type FailableResult<T = never> = [T] extends [never] ? {
43
+ success: true;
44
+ } | {
45
+ success: false;
46
+ error: string;
47
+ } : {
48
+ success: true;
49
+ data: T;
50
+ } | {
51
+ success: false;
52
+ error: string;
53
+ };
42
54
  export type PageBasedPaginatedListResponse<T> = {
43
55
  data: T[];
44
56
  currentPage: number;
@@ -1 +1 @@
1
- {"version":3,"file":"api-types.d.ts","sourceRoot":"/","sources":["api-types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;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C,CAAC,EAAE,GACnB;KACG,CAAC,IAAI,MAAM,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;CACrC,CAAC;AAER,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GACvD;IAAE,OAAO,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACrD;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,CAAC,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnE,MAAM,MAAM,8BAA8B,CAAC,CAAC,IAAI;IAC9C,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC1B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { AddressParam, ApiEndpoint, ApiInfiniteListEndpoint, ApiListEndpoint, PaginatedQueryParams, Stringified } from './api-types';
1
+ import { AddressParam, ApiEndpoint, ApiInfiniteListEndpoint, ApiListEndpoint, PaginatedQueryParams, FailableResult, Stringified } from './api-types';
2
2
  import { Rank, RankTrading } from './types';
3
3
  export type PointsBreakdown = {
4
4
  totalPoints: number;
@@ -115,9 +115,16 @@ export type IncentivesApiSource = {
115
115
  'incentives/wallet/:address/pointsHistory': ApiEndpoint<IncentivesPointsHistoryEntry, AddressParam>;
116
116
  'incentives/tradingCompetition/:round': ApiEndpoint<{
117
117
  entries: TradingCompetitionLeaderboardEntry[];
118
+ status: 'live' | 'ended';
118
119
  refreshedAt: number;
119
120
  }, TradingCompetitionRoundParams>;
120
121
  'incentives/wallet/:address/tradingCompetition/:round': ApiEndpoint<TradingCompetitionUserSummaryData, AddressParam & TradingCompetitionRoundParams>;
122
+ 'incentives/wallet/:address/tradingCompetition/:round/registration': ApiEndpoint<{
123
+ registered: boolean;
124
+ }, AddressParam & TradingCompetitionRoundParams>;
125
+ 'incentives/wallet/:address/tradingCompetition/:round/claim': ApiEndpoint<FailableResult, AddressParam & TradingCompetitionRoundParams, {
126
+ code: string;
127
+ }>;
121
128
  };
122
129
  export type IncentivesApi = {
123
130
  [K in keyof IncentivesApiSource]: {
@@ -1 +1 @@
1
- {"version":3,"file":"incentives-api-types.d.ts","sourceRoot":"/","sources":["incentives-api-types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,WAAW,EACX,uBAAuB,EACvB,eAAe,EACf,oBAAoB,EACpB,WAAW,EACZ,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,eAAe,CAAC;IACxB,KAAK,EAAE,eAAe,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,IAAI,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,a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AAE,WAAW,CACrD,4BAA4B,EAC5B,YAAY,CACb,CAAC;IAEF,sCAAsC,EAAE,WAAW,CACjD;QACE,OAAO,EAAE,kCAAkC,EAAE,CAAC;QAC9C,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;QACzB,WAAW,EAAE,MAAM,CAAC;KACrB,EACD,6BAA6B,CAC9B,CAAC;IAEF,sDAAsD,EAAE,WAAW,CACjE,iCAAiC,EACjC,YAAY,GAAG,6BAA6B,CAC7C,CAAC;IAEF,mEAAmE,EAAE,WAAW,CAC9E;QAAE,UAAU,EAAE,OAAO,CAAA;KAAE,EACvB,YAAY,GAAG,6BAA6B,CAC7C,CAAC;IAEF,4DAA4D,EAAE,WAAW,CACvE,cAAc,EACd,YAAY,GAAG,6BAA6B,EAC5C;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CACjB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;KACzB,CAAC,IAAI,MAAM,mBAAmB,GAAG;QAChC,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QACzC,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QACvC,QAAQ,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;KAC3D;CACF,CAAC"}
@@ -7,6 +7,7 @@ export { abi as PeripheryAbi } from './abis/Periphery.json';
7
7
  export { abi as Socket_VaultWithPayloadAbi } from './abis/socket/VaultWithPayload.json';
8
8
  export { abi as OrdersGatewayAbi } from './abis/OrdersGateway.json';
9
9
  export { abi as PassivePerpAbi } from './abis/PassivePerpProxy.json';
10
+ export { abi as OFTAbi } from './abis/OFT.json';
10
11
  export * from './contractAddresses';
11
12
  export * from './routerCommands';
12
13
  export * from './sign';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["transactions/index.ts"],"names":[],"mappings":"AA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AA0B,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,GAAG,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,GAAG,IAAI,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,GAAG,IAAI,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAChD,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC"}
@@ -485,6 +485,7 @@ export type TokenInfo = {
485
485
  isElixirToken?: boolean;
486
486
  isLmToken?: boolean;
487
487
  isPoolToken?: boolean;
488
+ isOFT?: boolean;
488
489
  };
489
490
  export type GetReyaCheckerResult = {
490
491
  isEligibleForRcp: boolean;
@@ -873,7 +874,7 @@ export interface PassivePerpOrderAndPositionUpdate {
873
874
  transactionHash: string;
874
875
  uniqueId: bigint;
875
876
  }
876
- export type AssetPair = 'ETHUSD' | 'WSTETHUSD' | 'WBTCUSD' | 'USDCUSD' | 'USDEUSD' | 'SUSDEUSD' | 'DEUSDUSD' | 'SDEUSDDEUSD' | 'REYALM#SELINIUSDC' | 'REYALM#AMBERUSDC' | 'REYALM#HEDGEUSDC' | 'SRUSDRUSD_RR' | 'REYAPOOL#1' | 'ETHUSDMARK' | 'BTCUSDMARK' | 'SOLUSDMARK' | 'ARBUSDMARK' | 'OPUSDMARK' | 'AVAXUSDMARK' | 'MKRUSDMARK' | 'LINKUSDMARK' | 'AAVEUSDMARK' | 'CRVUSDMARK' | 'UNIUSDMARK' | 'SUIUSDMARK' | 'TIAUSDMARK' | 'SEIUSDMARK' | 'ZROUSDMARK' | 'XRPUSDMARK' | 'WIFUSDMARK' | '1000PEPEUSDMARK' | 'POPCATUSDMARK' | 'DOGEUSDMARK' | '1000SHIBUSDMARK' | '1000BONKUSDMARK' | 'APTUSDMARK' | 'BNBUSDMARK' | 'JTOUSDMARK' | 'ADAUSDMARK' | 'LDOUSDMARK' | 'POLUSDMARK' | 'NEARUSDMARK' | 'FTMUSD' | 'ENAUSDMARK' | 'EIGENUSDMARK' | 'PENDLEUSDMARK' | 'GOATUSDMARK' | 'GRASSUSDMARK' | '1000NEIROUSDMARK' | 'DOTUSDMARK' | 'LTCUSDMARK' | 'PYTHUSDMARK' | 'JUPUSDMARK' | 'PENGUUSDMARK' | 'TRUMPUSDMARK' | 'HYPEUSDMARK' | 'VIRTUALUSDMARK' | 'AI16ZUSDMARK' | 'AIXBTUSDMARK' | 'SUSDMARK' | 'FARTCOINUSDMARK' | 'GRIFFAINUSDMARK' | 'WLDUSDMARK' | 'ATOMUSDMARK' | 'APEUSDMARK' | 'TONUSDMARK' | 'ONDOUSDMARK' | 'TRXUSDMARK' | 'INJUSDMARK' | 'MOVEUSDMARK' | 'BERAUSDMARK' | 'LAYERUSDMARK' | 'TAOUSDMARK' | 'IPUSDMARK' | 'MEUSDMARK' | 'PUMPUSDMARK' | 'MORPHOUSDMARK' | 'SYRUPUSDMARK' | 'AEROUSDMARK' | 'KAITOUSDMARK' | 'ZORAUSDMARK' | 'PROVEUSDMARK' | 'PAXGUSDMARK' | 'YZYUSDMARK' | 'XPLUSDMARK' | 'WLFIUSDMARK' | 'LINEAUSDMARK' | 'MEGAUSDMARK';
877
+ export type AssetPair = 'ETHUSD' | 'WSTETHUSD' | 'WBTCUSD' | 'USDCUSD' | 'USDEUSD' | 'SUSDEUSD' | 'DEUSDUSD' | 'SDEUSDDEUSD' | 'REYALM#SELINIUSDC' | 'REYALM#AMBERUSDC' | 'REYALM#HEDGEUSDC' | 'SRUSDRUSD_RR' | 'REYAPOOL#1' | 'REYARUSD' | 'SREYARUSD' | 'ETHUSDMARK' | 'BTCUSDMARK' | 'SOLUSDMARK' | 'ARBUSDMARK' | 'OPUSDMARK' | 'AVAXUSDMARK' | 'MKRUSDMARK' | 'LINKUSDMARK' | 'AAVEUSDMARK' | 'CRVUSDMARK' | 'UNIUSDMARK' | 'SUIUSDMARK' | 'TIAUSDMARK' | 'SEIUSDMARK' | 'ZROUSDMARK' | 'XRPUSDMARK' | 'WIFUSDMARK' | '1000PEPEUSDMARK' | 'POPCATUSDMARK' | 'DOGEUSDMARK' | '1000SHIBUSDMARK' | '1000BONKUSDMARK' | 'APTUSDMARK' | 'BNBUSDMARK' | 'JTOUSDMARK' | 'ADAUSDMARK' | 'LDOUSDMARK' | 'POLUSDMARK' | 'NEARUSDMARK' | 'FTMUSD' | 'ENAUSDMARK' | 'EIGENUSDMARK' | 'PENDLEUSDMARK' | 'GOATUSDMARK' | 'GRASSUSDMARK' | '1000NEIROUSDMARK' | 'DOTUSDMARK' | 'LTCUSDMARK' | 'PYTHUSDMARK' | 'JUPUSDMARK' | 'PENGUUSDMARK' | 'TRUMPUSDMARK' | 'HYPEUSDMARK' | 'VIRTUALUSDMARK' | 'AI16ZUSDMARK' | 'AIXBTUSDMARK' | 'SUSDMARK' | 'FARTCOINUSDMARK' | 'GRIFFAINUSDMARK' | 'WLDUSDMARK' | 'ATOMUSDMARK' | 'APEUSDMARK' | 'TONUSDMARK' | 'ONDOUSDMARK' | 'TRXUSDMARK' | 'INJUSDMARK' | 'MOVEUSDMARK' | 'BERAUSDMARK' | 'LAYERUSDMARK' | 'TAOUSDMARK' | 'IPUSDMARK' | 'MEUSDMARK' | 'PUMPUSDMARK' | 'MORPHOUSDMARK' | 'SYRUPUSDMARK' | 'AEROUSDMARK' | 'KAITOUSDMARK' | 'ZORAUSDMARK' | 'PROVEUSDMARK' | 'PAXGUSDMARK' | 'YZYUSDMARK' | 'XPLUSDMARK' | 'WLFIUSDMARK' | 'LINEAUSDMARK' | 'MEGAUSDMARK';
877
878
  export type ContractId = string;
878
879
  export type Price = {
879
880
  symbol: number;