Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
mkdir -p ~/flohive && docker run --pull always -v ~/flohive:/app/cache \
-e OWNERS_ALLOWLIST=0xLicenseOwnerAddress gr1dnetwork/circuit-nodemkdir %USERPROFILE%\flohive 2>nul & docker run --pull always -v %USERPROFILE%\flohive:/app/cache ^
-e OWNERS_ALLOWLIST=0xLicenseOwnerAddress gr1dnetwork/circuit-node[INFO] Using burner wallet {"address":"burner_address"}{
"owner_address": "6jm9hBqmTxb1KMHdu88YBtLZzipLLccNDadAeMYeEF5d",
"token_mint_address": "BfGBv5n9YoJBNudqNwBZMyqMsHwNreyLTb7BWQR6SXCp"
}{
"owner_address": "6jm9hBqmTxb1KMHdu88YBtLZzipLLccNDadAeMYeEF5d",
"token_mint_address": "BfGBv5n9YoJBNudqNwBZMyqMsHwNreyLTb7BWQR6SXCp"
}{
"status": 200,
"message": "Assets Fetched Successfully",
"data": {
"owner_address": "6jm9hBqmTxb1KMHdu88YBtLZzipLLccNDadAeMYeEF5d",
"asset": {
"balance": 5,
"QueryResult": "9e621d04b95250c5c6540568987b208b7856422e704edbffe3c43846df20115d553ebfc0f7f04824ab5db898e6c8116411584c40947b632f10789ee7de02d53c0500000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}
}
}{
"owner_address": "6jm9hBqmTxb1KMHdu88YBtLZzipLLccNDadAeMYeEF5d",
"token_mint_address": "BfGBv5n9YoJBNudqNwBZMyqMsHwNreyLTb7BWQR6SXCp"
}{
"owner_address": "6jm9hBqmTxb1KMHdu88YBtLZzipLLccNDadAeMYeEF5d",
"token_mint_address": "BfGBv5n9YoJBNudqNwBZMyqMsHwNreyLTb7BWQR6SXCp"
}{
"user_address": "0x1234567890abcdef1234567890abcdef12345678",
"contract_address": "0xabcdefabcdefabcdefabcdefabcdefabcdefabcdef"
}{
"user_address": "0x29469395eaf6f95920e59f858042f0e28d98a20b",
"contract_address": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d"
}{
"status": 200,
"message": "Assets Fetched Successfully",
"data": {
"user_address": "0x29469395eaf6f95920e59f858042f0e28d98a20b",
"asset": {
"balance": 183,
"QueryResult": "0x00000000000000000000000000000000000000000000000000000000000000b7"
}
}
}{
"user_address": "0x1234567890abcdef1234567890abcdef12345678",
"contract_address": "0xabcdefabcdefabcdefabcdefabcdefabcdefabcdef"
}{
"user_address": "0x1234567890abcdef1234567890abcdef12345678",
"contract_address": "0xabcdefabcdefabcdefabcdefabcdefabcdefabcdef"
}



module.exports = {
networks: {
gr1dTestnet: {
url: "https://rpc-123420000418.raas-testnet.gelato.digital",
accounts: [`0x${YOUR_PRIVATE_KEY}`], // Replace with your private key, keep it safe!
chainId: 123420000418,
gas: "auto",
gasPrice: "auto",
},
},
solidity: "0.8.26", // Make sure this matches your contracts
};npx hardhat run scripts/deploy.js --network gr1dTestnetmodule.exports = {
networks: {
gr1dTestnet: {
provider: () => new HDWalletProvider("YOUR_MNEMONIC", "https://rpc-123420000418.raas-testnet.gelato.digital"),
network_id: 123420000418, // GR1D Testnet Chain ID
gas: 3000000, // Adjust this based on your contract's requirements
gasPrice: 20000000000, // 20 gwei; tweak as needed
},
},
compilers: {
solc: {
version: "0.8.26",
},
},
};truffle migrate --network gr1dTestnetnpx hardhat compilenpx hardhat run scripts/deploy.js --network gr1dTestnettruffle compiletruffle migrate --network gr1dTestnetAll insider tokens to Team, Advisors and Investors are locked for over 12months, with unlocks extending 48months from the token generation event (TGE).


assetId, sourceChain, targetChain, and recipient.function transferAsset(assetId, sourceChain, targetChain, recipient) {
const intent = {
action: 'TRANSFER_ASSET',
assetId,
sourceChain,
targetChain,
recipient
};
intentLayer.processIntent(intent)
.then(result => {
console.log('Asset transferred successfully:', result);
})
.catch(error => {
console.error('Error transferring asset:', error);
});
}{
"status": "success",
"transactionHash": "0x123abc456def789...",
"sourceChain": "ChainA",
"targetChain": "ChainB",
"assetId": "NFT-1001",
"recipient": "0xRecipientAddress123"
}{
"status": "error",
"message": "Insufficient gas for the transfer.",
"code": 402,
"sourceChain": "ChainA",
"targetChain": "ChainB",
"assetId": "NFT-1001"
}function purchaseItem(itemId, gameId, chainId, userCurrency, itemCurrency, amount) {
const intent = {
action: 'PURCHASE_ITEM',
itemId,
gameId,
chainId,
userCurrency,
itemCurrency,
amount
};
intentLayer.processIntent(intent)
.then(result => {
console.log('Item purchased successfully:', result);
// Update player inventory or game state here
})
.catch(error => {
console.error('Error purchasing item:', error);
});
}{
"status": "success",
"transactionHash": "0x789xyz123def456...",
"itemId": "ITEM-5678",
"amount": 100,
"userCurrency": "USDC",
"itemCurrency": "ETH",
"gameId": "GAME-42",
"updatedInventory": true
}{
"status": "error",
"message": "Failed currency conversion due to insufficient liquidity.",
"code": 503,
"userCurrency": "USDC",
"itemCurrency": "ETH"
}function updateQuestProgress(questId, taskId, chainId) {
const intent = {
action: 'UPDATE_QUEST_PROGRESS',
questId,
taskId,
chainId
};
intentLayer.processIntent(intent)
.then(result => {
console.log('Quest progress updated:', result);
// Check for quest completion or unlock achievements here
})
.catch(error => {
console.error('Error updating quest progress:', error);
});
}{
"status": "success",
"questId": "QUEST-9001",
"taskId": "TASK-2002",
"chainId": "ChainX",
"progress": "50%",
"achievementUnlocked": false
}{
"status": "error",
"message": "Failed to update quest progress due to chain sync issues.",
"code": 409,
"questId": "QUEST-9001",
"taskId": "TASK-2002"
}npx hardhat run scripts/deploy.js --network gr1dTestnettruffle compiletruffle migrate --network gr1dTestnet