NOTE:
Done before external integrations, to keep the sales fee consistent and the agent fee consistent across different marketplaces: changed minimum fee to 500 (5%) and agent cut to 5000 in tribaldex (50%).
OUR SYMBOLS
Packs: CSPACKS
gaming items: CSHOTS
Lands: (listed separatedly on NFTShowroom)
How to fetch the data from Hive Engine nodes
MARKET
Sell book for Items:
Sell book for Packs:
INVENTORY
assets
packs
Mapping for our Image Server (if dont want to rely on slow IPFS)
"Could you share different types of dapp transaction examples explaining..."
1. who the sender is
HIVE
PVE: @cryptoshotsdoom → it sends to players only our Hive-Engine token DOOM
PVP: @cryptoshots.tips and @karina.gpt → they send to players HIVE transfers, Hive-Engine token DOOM and sponsored HE tokens (vary)
TRADING for our Hive-Engine token DOOM:
Direct match between buyers and sellers (Hive-Engine does not support custom smart contracts out-of-the-box).
Plus swaps in the SWAP.HIVE/DOOM liquidity pool: https://tribaldex.com/dieselpools/pools
Secondary Hive-Engine tokens coming: MARS, FOOD, GAS.
WAX
PVE: crypto4shots: it sends to players only our Wax token BOOM
PVP: crypto1shots (added this address in DappRadar and awaiting approval) → it send to players WAX transfers, WAX token BOOM and Sponsored Wax tokens (vary)
TRADING:
Match buyer/sellers through our smart contract leveraged on the Alcor DEX: @csboomcsboom
Plus swaps in the WAX/BOOM liquidity pool: https://wax.alcor.exchange/positions
Secondary Wax tokens (live): MARS, FOOD, GAS.
2. who the receiver is
HIVE
PVE: any Hive player
PVP: any Hive player
TRADING: any Hive user
WAX
PVE: any Wax player
PVP: any Wax player
TRADING: any Wax user
3. and where the value is sent?
It’s sent from the sender to the receiver.
If that’s what you need, to know the value of the token at the time of the transfer, I quickly put together these scripts and they work as expected to fetch the current $ value of our tokens:
var getFungibleTokenPrice = async ({ tokenPair }) => {
const { tokenName, cryptoName, marketNumber } = tokenPair;
const cryptoNameLc = cryptoName.toLowerCase();
const data = await fetch(`https://wax.alcor.exchange/api/markets/${marketNumber}/deals`).then(res => res.json());
const lastTransactionPrice = data[0].unit_price;
console.log(`$${tokenName} current price on the open market: ${lastTransactionPrice} ${cryptoName}`);
fetch(`https://api.coingecko.com/api/v3/simple/price?ids=${cryptoNameLc}&vs_currencies=usd`)
.then(response => response.json())
.then(data => {
const priceUSD = data[cryptoNameLc].usd;
console.log(`$${cryptoName} current price is $ ${priceUSD}`);
const tokenPriceUSD = lastTransactionPrice * priceUSD;
console.log(`The current price of $${tokenName} is $ ${tokenPriceUSD.toFixed(4)}.`);
});
};
var tokenPair = {
tokenName: 'BOOM',
contract: 'csboomcsboom',
cryptoName: 'WAX',
marketNumber: 368,
};
getFungibleTokenPrice({ tokenPair });
OTHER CONSIDERATIONS
From a conversation with crim:
In PVP:
DappRadar seems to track correctly only Hive transfers, so only PVP token rewards received by winners. That means that currently it doesn't track as active users players that don't win.
Also, I believe that it’s not tracking Hive-Engine token transfers (our token, sponsored tokens, our NFT transfers).
We plan on broadcasting a custom_json operation on chain with the match summary at the end of every 5-min PVP match. It will contain the match participants (max 8 per room), match result and kill log.
ie.
This way Dappradar should be able to track active users by using the players array field.
In PVE:
If, as we think, DappRadar currently doesn't account for HE tokens, then in PVE it's tracking nothing on the Hive side.
And even if it were tracking HE transfers, at the moment in PVE it would track only transfers when players claim their rewards. And in our case it could be N matches together; they could even be grouped for different days.
Also, it can't track active players if they leave rewards staked in-game to get some perks.
So same here, we plan on broadcasting a custom_json operation on chain after every PVE match with the player name and match result.
- (( For transparency every 15th of the month we also take a snapshot and post all game stats (json) on the Hive chain at the same permlink, but I doubt they can consume that. ))
crim: Is there enough data right now from HE not being tracked that adding it would make a big difference?
gabe:
PVP: if they start tracking HE, they still wont capture users that didnt win. Minor/medium improvement.
PVE: helps a bit but not much. They track PVE claims but usually it's once per user per day.
Tracking HE though will fix our $ volume that has always been wrong both on Hive and Wax.
Same for the daily transactions count.
Congratulations @crypto-shots! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)
You distributed more than 155000 upvotes. Your next target is to reach 160000 upvotes.
You can view your badges on your board and compare yourself to others in the Ranking If you no longer want to receive notifications, reply to this comment with the wordSTOP
Replies (3)
LISTING OF NFTS on EXTERNAL MARKETPLACES
NOTE:
Done before external integrations, to keep the sales fee consistent and the agent fee consistent across different marketplaces: changed minimum fee to 500 (5%) and agent cut to 5000 in tribaldex (50%).
OUR SYMBOLS
How to fetch the data from Hive Engine nodes
MARKET
Sell book for Items:
Sell book for Packs:
INVENTORY
assets
packs
Mapping for our Image Server (if dont want to rely on slow IPFS)
https://play.crypto-shots.com/nft-images/hive/{schema}/{name}.pngNOTE:
Examples:
Fee Configuration:
How the 3rd party market gets their fee:
marketAccount:marketAccount:DAPPRADAR TRACKING
"Could you share different types of dapp transaction examples explaining..."
1. who the sender is
HIVE
PVE: @cryptoshotsdoom → it sends to players only our Hive-Engine token DOOMPVP: @cryptoshots.tips and @karina.gpt → they send to players HIVE transfers, Hive-Engine token DOOM and sponsored HE tokens (vary)TRADINGfor our Hive-Engine token DOOM:Direct match between buyers and sellers (Hive-Engine does not support custom smart contracts out-of-the-box).
Plus swaps in the SWAP.HIVE/DOOM liquidity pool: https://tribaldex.com/dieselpools/pools
Secondary Hive-Engine tokens coming: MARS, FOOD, GAS.
WAX
PVE: crypto4shots: it sends to players only our Wax token BOOMPVP: crypto1shots (added this address in DappRadar and awaiting approval) → it send to players WAX transfers, WAX token BOOM and Sponsored Wax tokens (vary)TRADING:Match buyer/sellers through our smart contract leveraged on the Alcor DEX: @csboomcsboom
Plus swaps in the WAX/BOOM liquidity pool: https://wax.alcor.exchange/positions
Secondary Wax tokens (live): MARS, FOOD, GAS.
2. who the receiver is
HIVE
PVE: any Hive playerPVP: any Hive playerTRADING: any Hive userWAX
PVE: any Wax playerPVP: any Wax playerTRADING: any Wax user3. and where the value is sent?
It’s sent from the sender to the receiver.
If that’s what you need, to know the value of the token at the time of the transfer, I quickly put together these scripts and they work as expected to fetch the current $ value of our tokens:
HIVE:
WAX:
OTHER CONSIDERATIONS
From a conversation with crim:
DappRadar seems to track correctly only Hive transfers, so only PVP token rewards received by winners. That means that currently it doesn't track as active users players that don't win.
Also, I believe that it’s not tracking Hive-Engine token transfers (our token, sponsored tokens, our NFT transfers).
We plan on broadcasting a custom_json operation on chain with the match summary at the end of every 5-min PVP match. It will contain the match participants (max 8 per room), match result and kill log.
ie.
This way Dappradar should be able to track active users by using the players array field.
If, as we think, DappRadar currently doesn't account for HE tokens, then in PVE it's tracking nothing on the Hive side.
And even if it were tracking HE transfers, at the moment in PVE it would track only transfers when players claim their rewards. And in our case it could be N matches together; they could even be grouped for different days.
Also, it can't track active players if they leave rewards staked in-game to get some perks.
So same here, we plan on broadcasting a custom_json operation on chain after every PVE match with the player name and match result.
This way Dappradar should be able to track active users by using the players array field.
How does a custom_json operation on the Hive blockchain looks like:
Example of how to stream blocks of the Hive blockchain and parse custom_json operations found in blocks:
- (( For transparency every 15th of the month we also take a snapshot and post all game stats (json) on the Hive chain at the same permlink, but I doubt they can consume that. ))
crim:
Is there enough data right now from HE not being tracked that adding it would make a big difference?
gabe:
Tracking HE though will fix our $ volume that has always been wrong both on Hive and Wax.
Same for the daily transactions count.
Congratulations @crypto-shots! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)
Your next target is to reach 160000 upvotes.
You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word
STOP