Remove app name

This commit is contained in:
Shreerang Kale 2025-07-18 17:03:47 +05:30
parent f5d82d5292
commit ae4f5cbaa1
4 changed files with 5 additions and 15 deletions

View File

@ -26,6 +26,5 @@ REGISTRY_FEES=900000alnt
REGISTRY_GAS_PRICE=0.001 REGISTRY_GAS_PRICE=0.001
# Application Configuration # Application Configuration
APP_NAME=gor-deploy
DEPLOYER_LRN= DEPLOYER_LRN=
LACONIC_TRANSFER_AMOUNT=1000000alnt LACONIC_TRANSFER_AMOUNT=1000000alnt

1
.gitignore vendored
View File

@ -32,6 +32,7 @@ yarn-error.log*
# env files (can opt-in for committing if needed) # env files (can opt-in for committing if needed)
.env.local .env.local
.env
# vercel # vercel
.vercel .vercel

View File

@ -6,6 +6,9 @@ import axios from 'axios';
import { verifyUnusedSolanaPayment } from '@/utils/solanaVerify'; import { verifyUnusedSolanaPayment } from '@/utils/solanaVerify';
import { transferLNTTokens } from '@/services/laconicTransfer'; import { transferLNTTokens } from '@/services/laconicTransfer';
// Use CAIP convention for chain ID: namespace + reference
const SOLANA_CHAIN_ID = 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp'; // Solana mainnet
// 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));
@ -398,8 +401,7 @@ export async function POST(request: NextRequest) {
repository: repoUrl, repository: repoUrl,
repository_ref: fullHash, repository_ref: fullHash,
external_payment: { external_payment: {
// Use CAIP convention for chain ID: namespace + reference chain_id: SOLANA_CHAIN_ID,
chain_id: 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp', // Solana mainnet
tx_hash: txHash, tx_hash: txHash,
// TODO: Take pubkey from user and add it // TODO: Take pubkey from user and add it
// pubkey: '' // pubkey: ''

View File

@ -32,18 +32,6 @@ export const getRegistryConfig = (): RegistryConfig => {
}; };
}; };
export const getDeployerLrn = (): string => {
if (!process.env.DEPLOYER_LRN) {
throw new Error('Missing environment variable: DEPLOYER_LRN');
}
return process.env.DEPLOYER_LRN;
};
export const getAppName = (): string => {
return process.env.APP_NAME || 'gor-deploy';
};
export const getLaconicTransferConfig = () => { export const getLaconicTransferConfig = () => {
const requiredEnvVars = [ const requiredEnvVars = [
'REGISTRY_USER_KEY', // Same account as the registry user 'REGISTRY_USER_KEY', // Same account as the registry user