Add Gorbagana chain ID to application deployment request record
This commit is contained in:
parent
1f90dea1f8
commit
c104bed90c
@ -25,6 +25,7 @@ const ALLOWED_SLIPPAGE_FACTOR = 0.2
|
|||||||
|
|
||||||
// Use CAIP convention for chain ID: namespace + reference
|
// Use CAIP convention for chain ID: namespace + reference
|
||||||
const SOLANA_CHAIN_ID = 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp'; // Solana mainnet
|
const SOLANA_CHAIN_ID = 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp'; // Solana mainnet
|
||||||
|
const GORBAGANA_CHAIN_ID = 'gorbagana:533uBE9RRquhTBqEX58oV52FdTTsReMd' // Gorbagana chain (first 32 characters of gorbagana genesis hash. Following solana CAIP chain ID pattern)
|
||||||
|
|
||||||
// Sleep helper function
|
// Sleep helper function
|
||||||
const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));
|
const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));
|
||||||
@ -464,7 +465,7 @@ export async function POST(request: NextRequest) {
|
|||||||
repository_ref: fullHash,
|
repository_ref: fullHash,
|
||||||
},
|
},
|
||||||
external_payment: {
|
external_payment: {
|
||||||
chain_id: SOLANA_CHAIN_ID,
|
chain_id: paymentMethod === PaymentMethod.SPL_TOKEN ? SOLANA_CHAIN_ID : GORBAGANA_CHAIN_ID,
|
||||||
tx_hash: txHash,
|
tx_hash: txHash,
|
||||||
pubkey: senderPublicKey
|
pubkey: senderPublicKey
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user