Remove app name
This commit is contained in:
parent
f5d82d5292
commit
ae4f5cbaa1
@ -26,6 +26,5 @@ REGISTRY_FEES=900000alnt
|
||||
REGISTRY_GAS_PRICE=0.001
|
||||
|
||||
# Application Configuration
|
||||
APP_NAME=gor-deploy
|
||||
DEPLOYER_LRN=
|
||||
LACONIC_TRANSFER_AMOUNT=1000000alnt
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -32,6 +32,7 @@ yarn-error.log*
|
||||
|
||||
# env files (can opt-in for committing if needed)
|
||||
.env.local
|
||||
.env
|
||||
|
||||
# vercel
|
||||
.vercel
|
||||
|
@ -6,6 +6,9 @@ import axios from 'axios';
|
||||
import { verifyUnusedSolanaPayment } from '@/utils/solanaVerify';
|
||||
import { transferLNTTokens } from '@/services/laconicTransfer';
|
||||
|
||||
// Use CAIP convention for chain ID: namespace + reference
|
||||
const SOLANA_CHAIN_ID = 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp'; // Solana mainnet
|
||||
|
||||
// Sleep helper function
|
||||
const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));
|
||||
|
||||
@ -398,8 +401,7 @@ export async function POST(request: NextRequest) {
|
||||
repository: repoUrl,
|
||||
repository_ref: fullHash,
|
||||
external_payment: {
|
||||
// Use CAIP convention for chain ID: namespace + reference
|
||||
chain_id: 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp', // Solana mainnet
|
||||
chain_id: SOLANA_CHAIN_ID,
|
||||
tx_hash: txHash,
|
||||
// TODO: Take pubkey from user and add it
|
||||
// pubkey: ''
|
||||
|
@ -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 = () => {
|
||||
const requiredEnvVars = [
|
||||
'REGISTRY_USER_KEY', // Same account as the registry user
|
||||
|
Loading…
Reference in New Issue
Block a user