@subwallet/extension-base 1.1.29-0 → 1.1.29-beta.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 (293) hide show
  1. package/background/KoniTypes.d.ts +95 -68
  2. package/background/KoniTypes.js +16 -13
  3. package/background/errors/TransactionError.js +9 -0
  4. package/cjs/background/KoniTypes.js +17 -16
  5. package/cjs/background/errors/TransactionError.js +9 -0
  6. package/cjs/constants/index.js +19 -4
  7. package/cjs/koni/api/nft/config.js +33 -23
  8. package/cjs/koni/api/nft/index.js +14 -0
  9. package/cjs/koni/api/nft/nft.js +1 -22
  10. package/cjs/koni/api/nft/ordinal_nft/constants.js +21 -0
  11. package/cjs/koni/api/nft/ordinal_nft/index.js +121 -0
  12. package/cjs/koni/api/nft/ordinal_nft/utils.js +41 -0
  13. package/cjs/koni/api/staking/bonding/amplitude.js +17 -15
  14. package/cjs/koni/api/staking/bonding/astar.js +11 -10
  15. package/cjs/koni/api/staking/bonding/index.js +4 -1
  16. package/cjs/koni/api/staking/bonding/paraChain.js +25 -23
  17. package/cjs/koni/api/staking/bonding/relayChain.js +48 -45
  18. package/cjs/koni/api/staking/bonding/utils.js +104 -86
  19. package/cjs/koni/api/staking/index.js +6 -5
  20. package/cjs/koni/api/staking/paraChain.js +6 -5
  21. package/cjs/koni/api/staking/relayChain.js +3 -2
  22. package/cjs/koni/api/yield/helper/utils.js +46 -0
  23. package/cjs/koni/background/cron.js +11 -1
  24. package/cjs/koni/background/handlers/Extension.js +362 -69
  25. package/cjs/koni/background/handlers/State.js +51 -3
  26. package/cjs/koni/background/handlers/index.js +4 -2
  27. package/cjs/koni/background/subscription.js +95 -37
  28. package/cjs/services/campaign-service/index.js +9 -6
  29. package/cjs/services/chain-service/constants.js +2 -16
  30. package/cjs/services/chain-service/utils.js +7 -1
  31. package/cjs/services/earning-service/constants/chains.js +29 -0
  32. package/cjs/services/earning-service/constants/index.js +27 -0
  33. package/cjs/services/earning-service/constants/step.js +18 -0
  34. package/cjs/services/earning-service/handlers/base.js +232 -0
  35. package/cjs/services/earning-service/handlers/index.js +60 -0
  36. package/cjs/services/earning-service/handlers/lending/base.js +20 -0
  37. package/cjs/services/earning-service/handlers/lending/index.js +13 -0
  38. package/cjs/services/earning-service/handlers/lending/interlay.js +184 -0
  39. package/cjs/services/earning-service/handlers/liquid-staking/acala.js +217 -0
  40. package/cjs/services/earning-service/handlers/liquid-staking/base.js +43 -0
  41. package/cjs/services/earning-service/handlers/liquid-staking/bifrost.js +283 -0
  42. package/cjs/services/earning-service/handlers/liquid-staking/index.js +34 -0
  43. package/cjs/services/earning-service/handlers/liquid-staking/parallel.js +196 -0
  44. package/cjs/services/earning-service/handlers/liquid-staking/stella-swap.js +409 -0
  45. package/cjs/services/earning-service/handlers/native-staking/amplitude.js +382 -0
  46. package/cjs/services/earning-service/handlers/native-staking/astar.js +459 -0
  47. package/cjs/services/earning-service/handlers/native-staking/base-para.js +137 -0
  48. package/cjs/services/earning-service/handlers/native-staking/base.js +159 -0
  49. package/cjs/services/earning-service/handlers/native-staking/index.js +34 -0
  50. package/cjs/services/earning-service/handlers/native-staking/para-chain.js +383 -0
  51. package/cjs/services/earning-service/handlers/native-staking/relay-chain.js +542 -0
  52. package/cjs/services/earning-service/handlers/nomination-pool/index.js +541 -0
  53. package/cjs/services/earning-service/handlers/special.js +411 -0
  54. package/cjs/services/earning-service/service.js +387 -0
  55. package/cjs/services/earning-service/utils/index.js +128 -0
  56. package/cjs/services/event-service/index.js +4 -0
  57. package/cjs/services/keyring-service/index.js +14 -2
  58. package/cjs/services/migration-service/scripts/DeleteEarningData.js +21 -0
  59. package/cjs/services/migration-service/scripts/EnableEarningChains.js +21 -0
  60. package/cjs/services/migration-service/scripts/MigrateLedgerAccount.js +1 -1
  61. package/cjs/services/migration-service/scripts/MigrateTransactionHistory.js +1 -1
  62. package/cjs/services/migration-service/scripts/databases/MigrateEarningHistory.js +21 -0
  63. package/cjs/services/migration-service/scripts/databases/MigrateEarningVersion.js +21 -0
  64. package/cjs/services/migration-service/scripts/index.js +7 -1
  65. package/cjs/services/mint-campaign-service/campaigns/UnlockDotCampaign.js +149 -0
  66. package/cjs/services/mint-campaign-service/campaigns/index.js +13 -0
  67. package/cjs/services/mint-campaign-service/constants.js +11 -0
  68. package/cjs/services/mint-campaign-service/index.js +18 -0
  69. package/cjs/services/notification-service/NotificationService.js +1 -1
  70. package/cjs/services/storage-service/DatabaseService.js +51 -0
  71. package/cjs/services/storage-service/databases/index.js +4 -0
  72. package/cjs/services/storage-service/db-stores/NominatorMetadata.js +3 -3
  73. package/cjs/services/storage-service/db-stores/YieldPoolStore.js +36 -0
  74. package/cjs/services/storage-service/db-stores/YieldPositionStore.js +65 -0
  75. package/cjs/services/subscan-service/index.js +16 -0
  76. package/cjs/services/transaction-service/event-parser/index.js +58 -0
  77. package/cjs/services/transaction-service/helpers/index.js +3 -1
  78. package/cjs/services/transaction-service/index.js +185 -74
  79. package/cjs/services/transaction-service/utils.js +1 -0
  80. package/cjs/types/campaigns/index.js +16 -0
  81. package/cjs/types/campaigns/unlock-dot.js +1 -0
  82. package/cjs/types/index.js +44 -0
  83. package/cjs/types/ordinal.js +1 -0
  84. package/cjs/types/transaction.js +1 -0
  85. package/cjs/types/yield/actions/index.js +27 -0
  86. package/cjs/types/yield/actions/join/index.js +38 -0
  87. package/cjs/types/yield/actions/join/step.js +47 -0
  88. package/cjs/types/yield/actions/join/submit.js +1 -0
  89. package/cjs/types/yield/actions/join/validate.js +16 -0
  90. package/cjs/types/yield/actions/others.js +1 -0
  91. package/cjs/types/yield/index.js +27 -0
  92. package/cjs/types/yield/info/account/index.js +49 -0
  93. package/cjs/types/yield/info/account/info.js +1 -0
  94. package/cjs/types/yield/info/account/reward.js +1 -0
  95. package/cjs/types/yield/info/account/target.js +32 -0
  96. package/cjs/types/yield/info/account/unstake.js +27 -0
  97. package/cjs/types/yield/info/base.js +41 -0
  98. package/cjs/types/yield/info/chain/index.js +27 -0
  99. package/cjs/types/yield/info/chain/info.js +1 -0
  100. package/cjs/types/yield/info/chain/target.js +1 -0
  101. package/cjs/types/yield/info/index.js +49 -0
  102. package/cjs/types/yield/info/pallet.js +15 -0
  103. package/cjs/utils/fetchStaticData.js +2 -1
  104. package/cjs/utils/index.js +89 -1
  105. package/cjs/utils/object.js +12 -0
  106. package/cjs/utils/yield/index.js +3 -0
  107. package/constants/index.d.ts +6 -1
  108. package/constants/index.js +6 -1
  109. package/koni/api/nft/config.js +33 -23
  110. package/koni/api/nft/index.js +15 -1
  111. package/koni/api/nft/nft.js +2 -23
  112. package/koni/api/nft/ordinal_nft/constants.d.ts +9 -0
  113. package/koni/api/nft/ordinal_nft/constants.js +12 -0
  114. package/koni/api/nft/ordinal_nft/index.d.ts +8 -0
  115. package/koni/api/nft/ordinal_nft/index.js +114 -0
  116. package/koni/api/nft/ordinal_nft/utils.d.ts +2 -0
  117. package/koni/api/nft/ordinal_nft/utils.js +33 -0
  118. package/koni/api/staking/bonding/amplitude.js +11 -9
  119. package/koni/api/staking/bonding/astar.js +9 -8
  120. package/koni/api/staking/bonding/index.d.ts +1 -1
  121. package/koni/api/staking/bonding/index.js +5 -1
  122. package/koni/api/staking/bonding/paraChain.js +12 -10
  123. package/koni/api/staking/bonding/relayChain.d.ts +2 -2
  124. package/koni/api/staking/bonding/relayChain.js +33 -30
  125. package/koni/api/staking/bonding/utils.d.ts +15 -38
  126. package/koni/api/staking/bonding/utils.js +85 -69
  127. package/koni/api/staking/index.js +2 -1
  128. package/koni/api/staking/paraChain.js +7 -6
  129. package/koni/api/staking/relayChain.js +4 -3
  130. package/koni/api/yield/helper/utils.d.ts +10 -0
  131. package/koni/api/yield/helper/utils.js +32 -0
  132. package/koni/background/cron.d.ts +1 -0
  133. package/koni/background/cron.js +12 -2
  134. package/koni/background/handlers/Extension.d.ts +17 -1
  135. package/koni/background/handlers/Extension.js +321 -30
  136. package/koni/background/handlers/State.d.ts +18 -2
  137. package/koni/background/handlers/State.js +50 -3
  138. package/koni/background/handlers/index.js +4 -2
  139. package/koni/background/subscription.d.ts +6 -1
  140. package/koni/background/subscription.js +97 -38
  141. package/package.json +316 -3
  142. package/services/campaign-service/index.js +9 -6
  143. package/services/chain-service/constants.d.ts +0 -11
  144. package/services/chain-service/constants.js +1 -14
  145. package/services/chain-service/utils.d.ts +1 -0
  146. package/services/chain-service/utils.js +5 -1
  147. package/services/earning-service/constants/abis/compound_finance_v2_abi.json +1235 -0
  148. package/services/earning-service/constants/abis/st_liquid_token_abi.json +1355 -0
  149. package/services/earning-service/constants/chains.d.ts +14 -0
  150. package/services/earning-service/constants/chains.js +21 -0
  151. package/services/earning-service/constants/index.d.ts +2 -0
  152. package/services/earning-service/constants/index.js +5 -0
  153. package/services/earning-service/constants/step.d.ts +3 -0
  154. package/services/earning-service/constants/step.js +10 -0
  155. package/services/earning-service/handlers/base.d.ts +112 -0
  156. package/services/earning-service/handlers/base.js +226 -0
  157. package/services/earning-service/handlers/index.d.ts +5 -0
  158. package/services/earning-service/handlers/index.js +8 -0
  159. package/services/earning-service/handlers/lending/base.d.ts +6 -0
  160. package/services/earning-service/handlers/lending/base.js +12 -0
  161. package/services/earning-service/handlers/lending/index.d.ts +1 -0
  162. package/services/earning-service/handlers/lending/index.js +4 -0
  163. package/services/earning-service/handlers/lending/interlay.d.ts +23 -0
  164. package/services/earning-service/handlers/lending/interlay.js +176 -0
  165. package/services/earning-service/handlers/liquid-staking/acala.d.ts +26 -0
  166. package/services/earning-service/handlers/liquid-staking/acala.js +209 -0
  167. package/services/earning-service/handlers/liquid-staking/base.d.ts +9 -0
  168. package/services/earning-service/handlers/liquid-staking/base.js +35 -0
  169. package/services/earning-service/handlers/liquid-staking/bifrost.d.ts +45 -0
  170. package/services/earning-service/handlers/liquid-staking/bifrost.js +272 -0
  171. package/services/earning-service/handlers/liquid-staking/index.d.ts +4 -0
  172. package/services/earning-service/handlers/liquid-staking/index.js +7 -0
  173. package/services/earning-service/handlers/liquid-staking/parallel.d.ts +25 -0
  174. package/services/earning-service/handlers/liquid-staking/parallel.js +188 -0
  175. package/services/earning-service/handlers/liquid-staking/stella-swap.d.ts +34 -0
  176. package/services/earning-service/handlers/liquid-staking/stella-swap.js +399 -0
  177. package/services/earning-service/handlers/native-staking/amplitude.d.ts +22 -0
  178. package/services/earning-service/handlers/native-staking/amplitude.js +373 -0
  179. package/services/earning-service/handlers/native-staking/astar.d.ts +19 -0
  180. package/services/earning-service/handlers/native-staking/astar.js +449 -0
  181. package/services/earning-service/handlers/native-staking/base-para.d.ts +11 -0
  182. package/services/earning-service/handlers/native-staking/base-para.js +129 -0
  183. package/services/earning-service/handlers/native-staking/base.d.ts +21 -0
  184. package/services/earning-service/handlers/native-staking/base.js +150 -0
  185. package/services/earning-service/handlers/native-staking/index.d.ts +4 -0
  186. package/services/earning-service/handlers/native-staking/index.js +7 -0
  187. package/services/earning-service/handlers/native-staking/para-chain.d.ts +15 -0
  188. package/services/earning-service/handlers/native-staking/para-chain.js +375 -0
  189. package/services/earning-service/handlers/native-staking/relay-chain.d.ts +21 -0
  190. package/services/earning-service/handlers/native-staking/relay-chain.js +533 -0
  191. package/services/earning-service/handlers/nomination-pool/index.d.ts +35 -0
  192. package/services/earning-service/handlers/nomination-pool/index.js +531 -0
  193. package/services/earning-service/handlers/special.d.ts +56 -0
  194. package/services/earning-service/handlers/special.js +403 -0
  195. package/services/earning-service/service.d.ts +45 -0
  196. package/services/earning-service/service.js +379 -0
  197. package/services/earning-service/utils/index.d.ts +18 -0
  198. package/services/earning-service/utils/index.js +112 -0
  199. package/services/event-service/index.d.ts +1 -0
  200. package/services/event-service/index.js +4 -0
  201. package/services/event-service/types.d.ts +8 -0
  202. package/services/keyring-service/index.d.ts +2 -1
  203. package/services/keyring-service/index.js +14 -2
  204. package/services/migration-service/scripts/DeleteEarningData.d.ts +4 -0
  205. package/services/migration-service/scripts/DeleteEarningData.js +13 -0
  206. package/services/migration-service/scripts/EnableEarningChains.d.ts +4 -0
  207. package/services/migration-service/scripts/EnableEarningChains.js +13 -0
  208. package/services/migration-service/scripts/MigrateLedgerAccount.js +1 -1
  209. package/services/migration-service/scripts/MigrateTransactionHistory.js +1 -1
  210. package/services/migration-service/scripts/databases/MigrateEarningHistory.d.ts +4 -0
  211. package/services/migration-service/scripts/databases/MigrateEarningHistory.js +13 -0
  212. package/services/migration-service/scripts/databases/MigrateEarningVersion.d.ts +4 -0
  213. package/services/migration-service/scripts/databases/MigrateEarningVersion.js +13 -0
  214. package/services/migration-service/scripts/index.js +7 -1
  215. package/services/mint-campaign-service/campaigns/UnlockDotCampaign.d.ts +13 -0
  216. package/services/mint-campaign-service/campaigns/UnlockDotCampaign.js +139 -0
  217. package/services/mint-campaign-service/campaigns/index.d.ts +1 -0
  218. package/services/mint-campaign-service/campaigns/index.js +4 -0
  219. package/services/mint-campaign-service/constants.d.ts +1 -0
  220. package/services/mint-campaign-service/constants.js +4 -0
  221. package/services/mint-campaign-service/index.d.ts +7 -0
  222. package/services/mint-campaign-service/index.js +11 -0
  223. package/services/notification-service/NotificationService.js +1 -1
  224. package/services/storage-service/DatabaseService.d.ts +18 -1
  225. package/services/storage-service/DatabaseService.js +51 -0
  226. package/services/storage-service/databases/index.d.ts +3 -1
  227. package/services/storage-service/databases/index.js +4 -0
  228. package/services/storage-service/db-stores/NominatorMetadata.js +3 -3
  229. package/services/storage-service/db-stores/YieldPoolStore.d.ts +10 -0
  230. package/services/storage-service/db-stores/YieldPoolStore.js +28 -0
  231. package/services/storage-service/db-stores/YieldPositionStore.d.ts +9 -0
  232. package/services/storage-service/db-stores/YieldPositionStore.js +57 -0
  233. package/services/subscan-service/index.d.ts +3 -2
  234. package/services/subscan-service/index.js +15 -0
  235. package/services/subscan-service/types.d.ts +20 -0
  236. package/services/transaction-service/event-parser/index.d.ts +3 -1
  237. package/services/transaction-service/event-parser/index.js +57 -1
  238. package/services/transaction-service/helpers/index.js +3 -1
  239. package/services/transaction-service/index.d.ts +4 -15
  240. package/services/transaction-service/index.js +183 -72
  241. package/services/transaction-service/types.d.ts +2 -0
  242. package/services/transaction-service/utils.js +1 -0
  243. package/types/campaigns/index.d.ts +1 -0
  244. package/types/campaigns/index.js +4 -0
  245. package/types/campaigns/unlock-dot.d.ts +71 -0
  246. package/types/campaigns/unlock-dot.js +1 -0
  247. package/types/index.d.ts +5 -0
  248. package/types/index.js +5 -1
  249. package/types/ordinal.d.ts +69 -0
  250. package/types/ordinal.js +1 -0
  251. package/types/transaction.d.ts +3 -0
  252. package/types/transaction.js +1 -0
  253. package/types/yield/actions/index.d.ts +2 -0
  254. package/types/yield/actions/index.js +5 -0
  255. package/types/yield/actions/join/index.d.ts +3 -0
  256. package/types/yield/actions/join/index.js +6 -0
  257. package/types/yield/actions/join/step.d.ts +94 -0
  258. package/types/yield/actions/join/step.js +46 -0
  259. package/types/yield/actions/join/submit.d.ts +53 -0
  260. package/types/yield/actions/join/submit.js +1 -0
  261. package/types/yield/actions/join/validate.d.ts +18 -0
  262. package/types/yield/actions/join/validate.js +10 -0
  263. package/types/yield/actions/others.d.ts +63 -0
  264. package/types/yield/actions/others.js +1 -0
  265. package/types/yield/index.d.ts +2 -0
  266. package/types/yield/index.js +5 -0
  267. package/types/yield/info/account/index.d.ts +4 -0
  268. package/types/yield/info/account/index.js +7 -0
  269. package/types/yield/info/account/info.d.ts +92 -0
  270. package/types/yield/info/account/info.js +1 -0
  271. package/types/yield/info/account/reward.d.ts +45 -0
  272. package/types/yield/info/account/reward.js +1 -0
  273. package/types/yield/info/account/target.d.ts +43 -0
  274. package/types/yield/info/account/target.js +27 -0
  275. package/types/yield/info/account/unstake.d.ts +31 -0
  276. package/types/yield/info/account/unstake.js +22 -0
  277. package/types/yield/info/base.d.ts +45 -0
  278. package/types/yield/info/base.js +36 -0
  279. package/types/yield/info/chain/index.d.ts +2 -0
  280. package/types/yield/info/chain/index.js +5 -0
  281. package/types/yield/info/chain/info.d.ts +243 -0
  282. package/types/yield/info/chain/info.js +1 -0
  283. package/types/yield/info/chain/target.d.ts +37 -0
  284. package/types/yield/info/chain/target.js +1 -0
  285. package/types/yield/info/index.d.ts +4 -0
  286. package/types/yield/info/index.js +7 -0
  287. package/types/yield/info/pallet.d.ts +143 -0
  288. package/types/yield/info/pallet.js +9 -0
  289. package/utils/fetchStaticData.js +2 -1
  290. package/utils/index.d.ts +5 -0
  291. package/utils/index.js +53 -1
  292. package/utils/object.d.ts +1 -0
  293. package/utils/object.js +6 -0
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _step = require("./step");
7
+ Object.keys(_step).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _step[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _step[key];
14
+ }
15
+ });
16
+ });
17
+ var _submit = require("./submit");
18
+ Object.keys(_submit).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _submit[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _submit[key];
25
+ }
26
+ });
27
+ });
28
+ var _validate = require("./validate");
29
+ Object.keys(_validate).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _validate[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _validate[key];
36
+ }
37
+ });
38
+ });
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.YieldStepType = void 0;
7
+ // Copyright 2019-2022 @subwallet/extension-base
8
+ // SPDX-License-Identifier: Apache-2.0
9
+ /**
10
+ * @interface RequestEarlyValidateYield
11
+ * @description Params to early validate join pool
12
+ * @prop {string} slug - Pool's slug
13
+ * @prop {string} address - Account's address
14
+ * */
15
+ /**
16
+ * @interface ResponseEarlyValidateYield
17
+ * @prop {boolean} passed - Passed validate
18
+ * */
19
+ /**
20
+ * @interface OptimalYieldPathParams
21
+ * @description Params to generate steps
22
+ * */
23
+ /**
24
+ * @enum {string}
25
+ * @description Type of join yield step
26
+ * */
27
+ let YieldStepType;
28
+ /**
29
+ * @interface BaseYieldStepDetail
30
+ * @description Base info of a step
31
+ * @prop {string} name - Step's name
32
+ * @prop {YieldStepType} type - Step's type
33
+ * @prop {Record<string,unknown>} [metadata] - Metadata for generating extrinsic
34
+ * */
35
+ exports.YieldStepType = YieldStepType;
36
+ (function (YieldStepType) {
37
+ YieldStepType["DEFAULT"] = "DEFAULT";
38
+ YieldStepType["XCM"] = "XCM";
39
+ YieldStepType["NOMINATE"] = "NOMINATE";
40
+ YieldStepType["JOIN_NOMINATION_POOL"] = "JOIN_NOMINATION_POOL";
41
+ YieldStepType["MINT_VDOT"] = "MINT_VDOT";
42
+ YieldStepType["MINT_LDOT"] = "MINT_LDOT";
43
+ YieldStepType["MINT_QDOT"] = "MINT_QDOT";
44
+ YieldStepType["MINT_SDOT"] = "MINT_SDOT";
45
+ YieldStepType["MINT_STDOT"] = "MINT_STDOT";
46
+ YieldStepType["TOKEN_APPROVAL"] = "TOKEN_APPROVAL";
47
+ })(YieldStepType || (exports.YieldStepType = YieldStepType = {}));
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.YieldValidationStatus = void 0;
7
+ // Copyright 2019-2022 @subwallet/extension-base
8
+ // SPDX-License-Identifier: Apache-2.0
9
+ let YieldValidationStatus;
10
+ exports.YieldValidationStatus = YieldValidationStatus;
11
+ (function (YieldValidationStatus) {
12
+ YieldValidationStatus["NOT_ENOUGH_FEE"] = "NOT_ENOUGH_FEE";
13
+ YieldValidationStatus["NOT_ENOUGH_BALANCE"] = "NOT_ENOUGH_BALANCE";
14
+ YieldValidationStatus["NOT_ENOUGH_MIN_JOIN_POOL"] = "NOT_ENOUGH_MIN_JOIN_POOL";
15
+ YieldValidationStatus["OK"] = "OK";
16
+ })(YieldValidationStatus || (exports.YieldValidationStatus = YieldValidationStatus = {}));
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _info = require("./info");
7
+ Object.keys(_info).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _info[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _info[key];
14
+ }
15
+ });
16
+ });
17
+ var _actions = require("./actions");
18
+ Object.keys(_actions).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _actions[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _actions[key];
25
+ }
26
+ });
27
+ });
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _info = require("./info");
7
+ Object.keys(_info).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _info[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _info[key];
14
+ }
15
+ });
16
+ });
17
+ var _reward = require("./reward");
18
+ Object.keys(_reward).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _reward[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _reward[key];
25
+ }
26
+ });
27
+ });
28
+ var _target = require("./target");
29
+ Object.keys(_target).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _target[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _target[key];
36
+ }
37
+ });
38
+ });
39
+ var _unstake = require("./unstake");
40
+ Object.keys(_unstake).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _unstake[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _unstake[key];
47
+ }
48
+ });
49
+ });
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.EarningStatus = void 0;
7
+ // Copyright 2019-2022 @subwallet/extension-base
8
+ // SPDX-License-Identifier: Apache-2.0
9
+ /**
10
+ * @enum {string}
11
+ * @description The earning status of an account in a pool.
12
+ * */
13
+ let EarningStatus;
14
+ /**
15
+ * @interface NominationInfo
16
+ * @description Info of the validator account joined
17
+ * @prop {string} chain - Slug of chain
18
+ * @prop {string} validatorAddress - Validator's address or nomination pool's id
19
+ * @prop {string} [validatorIdentity] - Validator's identity
20
+ * @prop {string} activeStake - Active staked value
21
+ * @prop {boolean} [hasUnstaking] - Does the account have unstake request with validator?
22
+ * @prop {string} [validatorMinStake] - Min amount to join with validator
23
+ * @prop {EarningStatus} status - The staking status of the account
24
+ * */
25
+ exports.EarningStatus = EarningStatus;
26
+ (function (EarningStatus) {
27
+ EarningStatus["EARNING_REWARD"] = "EARNING_REWARD";
28
+ EarningStatus["PARTIALLY_EARNING"] = "PARTIALLY_EARNING";
29
+ EarningStatus["NOT_EARNING"] = "NOT_EARNING";
30
+ EarningStatus["WAITING"] = "WAITING";
31
+ EarningStatus["NOT_STAKING"] = "NOT_STAKING";
32
+ })(EarningStatus || (exports.EarningStatus = EarningStatus = {}));
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.UnstakingStatus = void 0;
7
+ // Copyright 2019-2022 @subwallet/extension-base
8
+ // SPDX-License-Identifier: Apache-2.0
9
+ /**
10
+ * @enum {string}
11
+ * @description The status of un-staked request.
12
+ * */
13
+ let UnstakingStatus;
14
+ /**
15
+ * @interface UnstakingInfo
16
+ * @description Info of un-stake request
17
+ * @prop {string} chain - Slug of chain
18
+ * @prop {UnstakingStatus} status - Status of request
19
+ * @prop {string} claimable - Amount to be withdrawn
20
+ * @prop {number} [waitingTime] - Time remains to wait (in hours)
21
+ * @prop {string} [validatorAddress] - Address of validator
22
+ * */
23
+ exports.UnstakingStatus = UnstakingStatus;
24
+ (function (UnstakingStatus) {
25
+ UnstakingStatus["CLAIMABLE"] = "CLAIMABLE";
26
+ UnstakingStatus["UNLOCKING"] = "UNLOCKING";
27
+ })(UnstakingStatus || (exports.UnstakingStatus = UnstakingStatus = {}));
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.YieldPoolType = exports.YieldCompoundingPeriod = void 0;
7
+ // Copyright 2019-2022 @subwallet/extension-base
8
+ // SPDX-License-Identifier: Apache-2.0
9
+ /**
10
+ * @enum {string}
11
+ * @description The types of yield pool.
12
+ * */
13
+ let YieldPoolType;
14
+ /**
15
+ * @enum {number}
16
+ * @description Time to calculate profit
17
+ * */
18
+ exports.YieldPoolType = YieldPoolType;
19
+ (function (YieldPoolType) {
20
+ YieldPoolType["LIQUID_STAKING"] = "LIQUID_STAKING";
21
+ YieldPoolType["LENDING"] = "LENDING";
22
+ YieldPoolType["SINGLE_FARMING"] = "SINGLE_FARMING";
23
+ YieldPoolType["NOMINATION_POOL"] = "NOMINATION_POOL";
24
+ YieldPoolType["NATIVE_STAKING"] = "NATIVE_STAKING";
25
+ YieldPoolType["PARACHAIN_STAKING"] = "PARACHAIN_STAKING";
26
+ })(YieldPoolType || (exports.YieldPoolType = YieldPoolType = {}));
27
+ let YieldCompoundingPeriod;
28
+ /**
29
+ * @interface BasePoolInfo
30
+ * @prop {string} slug - Pool's slug
31
+ * @prop {string} chain - Pool's chain
32
+ * @prop {string} type - Pool's type
33
+ * @prop {string} group - Pool's group (by token)
34
+ * */
35
+ exports.YieldCompoundingPeriod = YieldCompoundingPeriod;
36
+ (function (YieldCompoundingPeriod) {
37
+ YieldCompoundingPeriod[YieldCompoundingPeriod["DAILY"] = 1] = "DAILY";
38
+ YieldCompoundingPeriod[YieldCompoundingPeriod["WEEKLY"] = 7] = "WEEKLY";
39
+ YieldCompoundingPeriod[YieldCompoundingPeriod["MONTHLY"] = 30] = "MONTHLY";
40
+ YieldCompoundingPeriod[YieldCompoundingPeriod["YEARLY"] = 365] = "YEARLY";
41
+ })(YieldCompoundingPeriod || (exports.YieldCompoundingPeriod = YieldCompoundingPeriod = {}));
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _info = require("./info");
7
+ Object.keys(_info).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _info[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _info[key];
14
+ }
15
+ });
16
+ });
17
+ var _target = require("./target");
18
+ Object.keys(_target).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _target[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _target[key];
25
+ }
26
+ });
27
+ });
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _account = require("./account");
7
+ Object.keys(_account).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _account[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _account[key];
14
+ }
15
+ });
16
+ });
17
+ var _base = require("./base");
18
+ Object.keys(_base).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _base[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _base[key];
25
+ }
26
+ });
27
+ });
28
+ var _chain = require("./chain");
29
+ Object.keys(_chain).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _chain[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _chain[key];
36
+ }
37
+ });
38
+ });
39
+ var _pallet = require("./pallet");
40
+ Object.keys(_pallet).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _pallet[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _pallet[key];
47
+ }
48
+ });
49
+ });
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.PalletParachainStakingRequestType = void 0;
7
+ // Copyright 2019-2022 @subwallet/extension-base
8
+ // SPDX-License-Identifier: Apache-2.0
9
+ let PalletParachainStakingRequestType;
10
+ exports.PalletParachainStakingRequestType = PalletParachainStakingRequestType;
11
+ (function (PalletParachainStakingRequestType) {
12
+ PalletParachainStakingRequestType["REVOKE"] = "revoke";
13
+ PalletParachainStakingRequestType["DECREASE"] = "decrease";
14
+ PalletParachainStakingRequestType["BOND_LESS"] = "bondLess";
15
+ })(PalletParachainStakingRequestType || (exports.PalletParachainStakingRequestType = PalletParachainStakingRequestType = {}));
@@ -9,8 +9,9 @@ var _axios = _interopRequireDefault(require("axios"));
9
9
  // Copyright 2019-2022 @subwallet/extension-base
10
10
  // SPDX-License-Identifier: Apache-2.0
11
11
 
12
+ const PRODUCTION_BRANCHES = ['master', 'webapp', 'webapp-dev'];
12
13
  const branchName = process.env.BRANCH_NAME || 'koni-dev';
13
- const fetchTarget = branchName === 'master' || branchName === 'webapp' ? 'list.json' : 'preview.json';
14
+ const fetchTarget = PRODUCTION_BRANCHES.indexOf(branchName) > -1 ? 'list.json' : 'preview.json';
14
15
  async function fetchStaticData(slug, targetFile) {
15
16
  const fetchFile = targetFile || fetchTarget;
16
17
  const rs = await _axios.default.get(`https://static-data.subwallet.app/${slug}/${fetchFile}`);
@@ -36,9 +36,12 @@ var _exportNames = {
36
36
  getDomainFromUrl: true,
37
37
  waitTimeout: true,
38
38
  stripUrl: true,
39
+ baseParseIPFSUrl: true,
40
+ swParseIPFSUrl: true,
39
41
  wait: true,
40
42
  canDerive: true
41
43
  };
44
+ exports.baseParseIPFSUrl = void 0;
42
45
  Object.defineProperty(exports, "canDerive", {
43
46
  enumerable: true,
44
47
  get: function () {
@@ -67,12 +70,13 @@ exports.parseRawNumber = parseRawNumber;
67
70
  exports.reformatAddress = reformatAddress;
68
71
  exports.stripUrl = void 0;
69
72
  exports.sumBN = sumBN;
70
- exports.toUnit = void 0;
73
+ exports.toUnit = exports.swParseIPFSUrl = void 0;
71
74
  exports.utf16ToString = utf16ToString;
72
75
  exports.wait = wait;
73
76
  exports.waitTimeout = waitTimeout;
74
77
  var _KoniTypes = require("@subwallet/extension-base/background/KoniTypes");
75
78
  var _constants = require("@subwallet/extension-base/constants");
79
+ var _config = require("@subwallet/extension-base/koni/api/nft/config");
76
80
  var _environment = require("@subwallet/extension-base/utils/environment");
77
81
  var _i18next = require("i18next");
78
82
  var _util = require("@polkadot/util");
@@ -114,6 +118,18 @@ Object.keys(_environment2).forEach(function (key) {
114
118
  }
115
119
  });
116
120
  });
121
+ var _number = require("./number");
122
+ Object.keys(_number).forEach(function (key) {
123
+ if (key === "default" || key === "__esModule") return;
124
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
125
+ if (key in exports && exports[key] === _number[key]) return;
126
+ Object.defineProperty(exports, key, {
127
+ enumerable: true,
128
+ get: function () {
129
+ return _number[key];
130
+ }
131
+ });
132
+ });
117
133
  var _lazy = require("./lazy");
118
134
  Object.keys(_lazy).forEach(function (key) {
119
135
  if (key === "default" || key === "__esModule") return;
@@ -126,6 +142,18 @@ Object.keys(_lazy).forEach(function (key) {
126
142
  }
127
143
  });
128
144
  });
145
+ var _promise = require("./promise");
146
+ Object.keys(_promise).forEach(function (key) {
147
+ if (key === "default" || key === "__esModule") return;
148
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
149
+ if (key in exports && exports[key] === _promise[key]) return;
150
+ Object.defineProperty(exports, key, {
151
+ enumerable: true,
152
+ get: function () {
153
+ return _promise[key];
154
+ }
155
+ });
156
+ });
129
157
  var _registry = require("./registry");
130
158
  Object.keys(_registry).forEach(function (key) {
131
159
  if (key === "default" || key === "__esModule") return;
@@ -150,6 +178,18 @@ Object.keys(_translate).forEach(function (key) {
150
178
  }
151
179
  });
152
180
  });
181
+ var _object = require("./object");
182
+ Object.keys(_object).forEach(function (key) {
183
+ if (key === "default" || key === "__esModule") return;
184
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
185
+ if (key in exports && exports[key] === _object[key]) return;
186
+ Object.defineProperty(exports, key, {
187
+ enumerable: true,
188
+ get: function () {
189
+ return _object[key];
190
+ }
191
+ });
192
+ });
153
193
  // Copyright 2019-2022 @subwallet/extension-base authors & contributors
154
194
  // SPDX-License-Identifier: Apache-2.0
155
195
 
@@ -450,6 +490,54 @@ const stripUrl = url => {
450
490
  return parts[2];
451
491
  };
452
492
  exports.stripUrl = stripUrl;
493
+ const baseParseIPFSUrl = input => {
494
+ if (!input || input.length === 0) {
495
+ return undefined;
496
+ }
497
+ if (isUrl(input)) {
498
+ return input;
499
+ }
500
+ if (isUrl(input) || input.includes('https://') || input.includes('http')) {
501
+ return input;
502
+ }
503
+ if (input.startsWith('/ipfs/')) {
504
+ return (0, _config.getRandomIpfsGateway)() + input.split('/ipfs/')[1];
505
+ }
506
+ if (!input.includes('ipfs://') && !input.includes('ipfs://ipfs/')) {
507
+ // just the IPFS hash
508
+ return (0, _config.getRandomIpfsGateway)() + input;
509
+ }
510
+ if (input.includes('ipfs://') && !input.includes('ipfs://ipfs/')) {
511
+ // starts with ipfs://
512
+ return (0, _config.getRandomIpfsGateway)() + input.split('ipfs://')[1];
513
+ }
514
+ return (0, _config.getRandomIpfsGateway)() + input.split('ipfs://ipfs/')[1]; // starts with ipfs://ipfs/
515
+ };
516
+ exports.baseParseIPFSUrl = baseParseIPFSUrl;
517
+ const swParseIPFSUrl = input => {
518
+ if (!input || input.length === 0) {
519
+ return undefined;
520
+ }
521
+ if (isUrl(input)) {
522
+ return input;
523
+ }
524
+ if (isUrl(input) || input.includes('https://') || input.includes('http')) {
525
+ return input;
526
+ }
527
+ if (input.startsWith('/ipfs/')) {
528
+ return _config.SUBWALLET_IPFS + input.split('/ipfs/')[1];
529
+ }
530
+ if (!input.includes('ipfs://') && !input.includes('ipfs://ipfs/')) {
531
+ // just the IPFS hash
532
+ return _config.SUBWALLET_IPFS + input;
533
+ }
534
+ if (input.includes('ipfs://') && !input.includes('ipfs://ipfs/')) {
535
+ // starts with ipfs://
536
+ return _config.SUBWALLET_IPFS + input.split('ipfs://')[1];
537
+ }
538
+ return _config.SUBWALLET_IPFS + input.split('ipfs://ipfs/')[1]; // starts with ipfs://ipfs/
539
+ };
540
+ exports.swParseIPFSUrl = swParseIPFSUrl;
453
541
  function wait(milliseconds) {
454
542
  return new Promise(resolve => {
455
543
  setTimeout(() => {
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.isEmptyObject = isEmptyObject;
7
+ // Copyright 2019-2022 @subwallet/extension-koni authors & contributors
8
+ // SPDX-License-Identifier: Apache-2.0
9
+
10
+ function isEmptyObject(input) {
11
+ return Object.keys(input).length === 0;
12
+ }
@@ -0,0 +1,3 @@
1
+ // Copyright 2019-2022 @subwallet/extension-base
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ "use strict";
@@ -1,3 +1,5 @@
1
+ export declare const BASE_SECOND_INTERVAL = 1000;
2
+ export declare const BASE_MINUTE_INTERVAL: number;
1
3
  export declare const CRON_REFRESH_PRICE_INTERVAL = 30000;
2
4
  export declare const CRON_AUTO_RECOVER_DOTSAMA_INTERVAL = 60000;
3
5
  export declare const CRON_AUTO_RECOVER_WEB3_INTERVAL = 90000;
@@ -6,7 +8,7 @@ export declare const ASTAR_REFRESH_BALANCE_INTERVAL = 60000;
6
8
  export declare const SUB_TOKEN_REFRESH_BALANCE_INTERVAL = 60000;
7
9
  export declare const CRON_REFRESH_NFT_INTERVAL = 7200000;
8
10
  export declare const CRON_REFRESH_STAKING_REWARD_INTERVAL = 900000;
9
- export declare const CRON_REFRESH_STAKING_REWARD_FAST_INTERVAL = 300000;
11
+ export declare const CRON_REFRESH_STAKING_REWARD_FAST_INTERVAL = 90000;
10
12
  export declare const CRON_REFRESH_HISTORY_INTERVAL = 900000;
11
13
  export declare const CRON_GET_API_MAP_STATUS = 10000;
12
14
  export declare const CRON_REFRESH_CHAIN_STAKING_METADATA = 900000;
@@ -14,6 +16,7 @@ export declare const CRON_REFRESH_CHAIN_NOMINATOR_METADATA = 1800000;
14
16
  export declare const CRON_RECOVER_HISTORY_INTERVAL = 30000;
15
17
  export declare const CRON_SYNC_MANTA_PAY = 300000;
16
18
  export declare const MANTA_PAY_BALANCE_INTERVAL = 30000;
19
+ export declare const CRON_REFRESH_EARNING_REWARD_HISTORY_INTERVAL: number;
17
20
  export declare const ALL_ACCOUNT_KEY = "ALL";
18
21
  export declare const ALL_NETWORK_KEY = "all";
19
22
  export declare const ALL_GENESIS_HASH: null;
@@ -22,5 +25,7 @@ export declare const IGNORE_QR_SIGNER: string[];
22
25
  export declare const XCM_MIN_AMOUNT_RATIO = 1.2;
23
26
  export declare const GAS_PRICE_RATIO = 1.05;
24
27
  export declare const NETWORK_MULTI_GAS_FEE: string[];
28
+ export declare const ORDINAL_COLLECTION = "__Ordinal__";
29
+ export declare const ORDINAL_METHODS: string[];
25
30
  export * from './staking';
26
31
  export * from './storage';
@@ -1,6 +1,8 @@
1
1
  // Copyright 2019-2022 @subwallet/extension-koni authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
+ export const BASE_SECOND_INTERVAL = 1000;
5
+ export const BASE_MINUTE_INTERVAL = 60 * BASE_SECOND_INTERVAL;
4
6
  export const CRON_REFRESH_PRICE_INTERVAL = 30000;
5
7
  export const CRON_AUTO_RECOVER_DOTSAMA_INTERVAL = 60000;
6
8
  export const CRON_AUTO_RECOVER_WEB3_INTERVAL = 90000;
@@ -9,7 +11,7 @@ export const ASTAR_REFRESH_BALANCE_INTERVAL = 60000;
9
11
  export const SUB_TOKEN_REFRESH_BALANCE_INTERVAL = 60000;
10
12
  export const CRON_REFRESH_NFT_INTERVAL = 7200000;
11
13
  export const CRON_REFRESH_STAKING_REWARD_INTERVAL = 900000;
12
- export const CRON_REFRESH_STAKING_REWARD_FAST_INTERVAL = 300000;
14
+ export const CRON_REFRESH_STAKING_REWARD_FAST_INTERVAL = 90000;
13
15
  export const CRON_REFRESH_HISTORY_INTERVAL = 900000;
14
16
  export const CRON_GET_API_MAP_STATUS = 10000;
15
17
  export const CRON_REFRESH_CHAIN_STAKING_METADATA = 900000;
@@ -17,6 +19,7 @@ export const CRON_REFRESH_CHAIN_NOMINATOR_METADATA = 1800000;
17
19
  export const CRON_RECOVER_HISTORY_INTERVAL = 30000;
18
20
  export const CRON_SYNC_MANTA_PAY = 300000;
19
21
  export const MANTA_PAY_BALANCE_INTERVAL = 30000;
22
+ export const CRON_REFRESH_EARNING_REWARD_HISTORY_INTERVAL = 15 * BASE_MINUTE_INTERVAL;
20
23
  export const ALL_ACCOUNT_KEY = 'ALL';
21
24
  export const ALL_NETWORK_KEY = 'all';
22
25
  export const ALL_GENESIS_HASH = null;
@@ -25,5 +28,7 @@ export const IGNORE_QR_SIGNER = [];
25
28
  export const XCM_MIN_AMOUNT_RATIO = 1.2;
26
29
  export const GAS_PRICE_RATIO = 1.05;
27
30
  export const NETWORK_MULTI_GAS_FEE = ['astarEvm'];
31
+ export const ORDINAL_COLLECTION = '__Ordinal__';
32
+ export const ORDINAL_METHODS = ['drc-20', 'pol-20'];
28
33
  export * from "./staking.js";
29
34
  export * from "./storage.js";