@0bsnetwork/assets-pairs-order 中文文档教程
Utility for ordering pair of assets in (amountasset, priceasset)
Example:
yarn add @0bsnetwork/assets-pairs-order
import { createOrderPair, MAINNET_DATA } from '@0bsnetwork/assets-pairs-order'
const orderPair = createOrderPair(MAINNET_DATA);
orderPair(
'DNhP2zAH5HM1kdUSmxcBqs8RP4vvUgRFc1YgAKkfPmPD',
'FxSm86qcEw8wGfpX3T7X5fsnuK5XxYA6ZfVYJja29vMA'
)
/* [
'FxSm86qcEw8wGfpX3T7X5fsnuK5XxYA6ZfVYJja29vMA',
'DNhP2zAH5HM1kdUSmxcBqs8RP4vvUgRFc1YgAKkfPmPD',
]
*/
## Browser
For using in browser include dist/browser.js
Utility for ordering pair of assets in (amountasset, priceasset)
Example:
yarn add @0bsnetwork/assets-pairs-order
import { createOrderPair, MAINNET_DATA } from '@0bsnetwork/assets-pairs-order'
const orderPair = createOrderPair(MAINNET_DATA);
orderPair(
'DNhP2zAH5HM1kdUSmxcBqs8RP4vvUgRFc1YgAKkfPmPD',
'FxSm86qcEw8wGfpX3T7X5fsnuK5XxYA6ZfVYJja29vMA'
)
/* [
'FxSm86qcEw8wGfpX3T7X5fsnuK5XxYA6ZfVYJja29vMA',
'DNhP2zAH5HM1kdUSmxcBqs8RP4vvUgRFc1YgAKkfPmPD',
]
*/
## Browser
For using in browser include dist/browser.js
更多
你可能也喜欢
- 3p-videogular-youtube 中文文档教程
- @36node/query-normalizr 中文文档教程
- @555platform/protektor.ts 中文文档教程
- @5alid/cls 中文文档教程
- @aaa-backend-stack/build-tools 中文文档教程
- @aaa-backend-stack/serverdate 中文文档教程
- @aanton/telegram-webpage-monitor-bot 中文文档教程
- @aaxis/react-native-webview 中文文档教程
- @abizzle/react-scripts 中文文档教程
- @abutterworth/tiny 中文文档教程