feat: implement platform treasury model with merchant balance tracking and API docs
This commit is contained in:
@@ -51,10 +51,14 @@ export async function POST(req: NextRequest) {
|
||||
// Generate Temporary Wallets for Crypto fallback
|
||||
const evmWallet = await CryptoEngine.createTemporaryWallet('POLYGON');
|
||||
const solWallet = await CryptoEngine.createTemporaryWallet('SOLANA');
|
||||
const tronWallet = await CryptoEngine.createTemporaryWallet('TRON');
|
||||
const btcWallet = await CryptoEngine.createTemporaryWallet('BITCOIN');
|
||||
|
||||
const cryptoWallets = {
|
||||
EVM: { address: evmWallet.address, privateKey: evmWallet.privateKey },
|
||||
SOLANA: { address: solWallet.address, privateKey: solWallet.privateKey }
|
||||
SOLANA: { address: solWallet.address, privateKey: solWallet.privateKey },
|
||||
TRON: { address: tronWallet.address, privateKey: tronWallet.privateKey },
|
||||
BITCOIN: { address: btcWallet.address, privateKey: btcWallet.privateKey }
|
||||
};
|
||||
|
||||
if (useMock) {
|
||||
@@ -114,7 +118,9 @@ export async function POST(req: NextRequest) {
|
||||
status: 'pending',
|
||||
wallets: {
|
||||
EVM: evmWallet.address,
|
||||
SOLANA: solWallet.address
|
||||
SOLANA: solWallet.address,
|
||||
TRON: tronWallet.address,
|
||||
BITCOIN: btcWallet.address
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user