@nolus/nolusjs
Version:
JS library for NodeJS and Web browsers to interact with the Nolus Protocol
75 lines • 1.46 kB
JavaScript
export const getBaseCurrencyMsg = () => {
return {
base_currency: {},
};
};
export const getStableCurrencyMsg = () => {
return {
stable_currency: {},
};
};
export const getBasePriceMsg = (ticker) => {
return {
base_price: {
currency: ticker,
},
};
};
export const getStablePriceMsg = (ticker) => {
return {
stable_price: {
currency: ticker,
},
};
};
export const getPricesMsg = () => {
return {
prices: {},
};
};
export const getCurrencyPairsMsg = () => {
return {
supported_currency_pairs: {},
};
};
export const getCurrenciesMsg = () => {
return {
currencies: {},
};
};
export const getFeedersMsg = () => {
return {
feeders: {},
};
};
export const isFeederMsg = (feederWalletAddress) => {
return {
is_feeder: {
address: feederWalletAddress,
},
};
};
export const getConfigMsg = () => {
return {
config: {},
};
};
export const getSwapPathMsg = (fromCurrencyTicker, toCurrencyTicker) => {
return {
swap_path: {
from: fromCurrencyTicker,
to: toCurrencyTicker,
},
};
};
export const getSwapTreeMsg = () => {
return {
swap_tree: {},
};
};
export const feedPricesMsg = (feedPrices) => {
return {
feed_prices: feedPrices,
};
};
//# sourceMappingURL=OracleMsg.js.map