Compare commits
14 Commits
75d1bf3a72
...
5b19867a50
| Author | SHA1 | Date | |
|---|---|---|---|
| 5b19867a50 | |||
| 9047616c79 | |||
| 48f3b72e81 | |||
| ad8fb39db2 | |||
| 4274ffe2b6 | |||
| d93c4f1ef5 | |||
| 4b1a0c8257 | |||
| 07fffb9320 | |||
| 1912695db8 | |||
| 663f5c3435 | |||
| 65cd4ad11c | |||
| 45f992c386 | |||
| 1e390445f4 | |||
| d42c0f84ed |
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -13,7 +13,7 @@ import { games } from "@/data/games";
|
||||||
import { WAGER_PRIZE_MULT } from "@/shared/constants";
|
import { WAGER_PRIZE_MULT } from "@/shared/constants";
|
||||||
import { EXPLORER_ADDRESS_TEMPLATE } from "@/data/shared";
|
import { EXPLORER_ADDRESS_TEMPLATE } from "@/data/shared";
|
||||||
|
|
||||||
const ENABLE_REFERRAL_SYSTEM = true; // Toggle for referral system visibility
|
const ENABLE_REFERRAL_SYSTEM = false; // Toggle for referral system visibility
|
||||||
|
|
||||||
interface GameHistory {
|
interface GameHistory {
|
||||||
ended_time: string;
|
ended_time: string;
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
import { Connection } from "@solana/web3.js";
|
import { clusterApiUrl, Connection } from "@solana/web3.js";
|
||||||
|
|
||||||
// Replace this URL with your dedicated RPC endpoint
|
// Replace this URL with your dedicated RPC endpoint
|
||||||
// You can get one from providers like QuickNode, Alchemy, Helius, or GenesysGo
|
// You can get one from providers like QuickNode, Alchemy, Helius, or GenesysGo
|
||||||
// export const CLUSTER_URL = "https://tiniest-cold-darkness.solana-mainnet.quiknode.pro/72332d636ff78d498b880bd8fdc3eb646c827da8/";
|
// export const CLUSTER_URL = "https://tiniest-cold-darkness.solana-mainnet.quiknode.pro/72332d636ff78d498b880bd8fdc3eb646c827da8/";
|
||||||
// export const CLUSTER_URL = "https://go.getblock.io/908837801b534ae7a6f0869fc44cc567";
|
// export const CLUSTER_URL = "https://go.getblock.io/908837801b534ae7a6f0869fc44cc567";
|
||||||
export const CLUSTER_URL = "https://solana-mainnet.core.chainstack.com/c54e14eef17693283a0323efcc4ce731";
|
// export const CLUSTER_URL = "https://solana-mainnet.core.chainstack.com/c54e14eef17693283a0323efcc4ce731";
|
||||||
// export const CLUSTER_URL = "https://mainnet.helius-rpc.com/?api-key=72332d63-6ff7-4d49-8b88-0bd8fdc3eb64";
|
// export const CLUSTER_URL = "https://mainnet.helius-rpc.com/?api-key=72332d63-6ff7-4d49-8b88-0bd8fdc3eb64";
|
||||||
// export const CLUSTER_URL = clusterApiUrl("devnet");
|
export const CLUSTER_URL = clusterApiUrl("devnet");
|
||||||
export const EXPLORER_ADDRESS_TEMPLATE = "https://explorer.solana.com/address/{address}";
|
export const EXPLORER_ADDRESS_TEMPLATE = "https://explorer.solana.com/address/{address}";
|
||||||
export const EXPLORER_TX_TEMPLATE = "https://explorer.solana.com/tx/{address}";
|
export const EXPLORER_TX_TEMPLATE = "https://explorer.solana.com/tx/{address}";
|
||||||
export const connection = new Connection(CLUSTER_URL);
|
export const connection = new Connection(CLUSTER_URL);
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,14 @@ export type Bets = {
|
||||||
"writable": true,
|
"writable": true,
|
||||||
"signer": true
|
"signer": true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "ownerReferrer",
|
||||||
|
"writable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "joinerReferrer",
|
||||||
|
"writable": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "systemProgram",
|
"name": "systemProgram",
|
||||||
"address": "11111111111111111111111111111111"
|
"address": "11111111111111111111111111111111"
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,14 @@
|
||||||
"writable": true,
|
"writable": true,
|
||||||
"signer": true
|
"signer": true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "owner_referrer",
|
||||||
|
"writable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "joiner_referrer",
|
||||||
|
"writable": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "system_program",
|
"name": "system_program",
|
||||||
"address": "11111111111111111111111111111111"
|
"address": "11111111111111111111111111111111"
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,9 @@ export async function closeBet(wallets: ConnectedSolanaWallet, uid:string, betI
|
||||||
betVault: chosenBet,
|
betVault: chosenBet,
|
||||||
betsList: bet_list_pda,
|
betsList: bet_list_pda,
|
||||||
winner: winner,
|
winner: winner,
|
||||||
feeWallet: FEE_COLLECTOR_PUBKEY
|
feeWallet: FEE_COLLECTOR_PUBKEY,
|
||||||
|
ownerReferrer: FEE_COLLECTOR_PUBKEY,
|
||||||
|
joinerReferrer: FEE_COLLECTOR_PUBKEY
|
||||||
})
|
})
|
||||||
.transaction();
|
.transaction();
|
||||||
tx.feePayer = new PublicKey(wallets.address);
|
tx.feePayer = new PublicKey(wallets.address);
|
||||||
|
|
|
||||||
11
start-server.sh
Executable file
11
start-server.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Load NVM
|
||||||
|
export NVM_DIR="/root/.nvm"
|
||||||
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||||
|
|
||||||
|
# Navigate to the project directory
|
||||||
|
cd /root/duelfi/duelfi
|
||||||
|
|
||||||
|
# Run the server
|
||||||
|
npm run start
|
||||||
Loading…
Reference in New Issue
Block a user