0.0.9-alpha.6 • Published 5 months ago
@circle-dex/sdk v0.0.9-alpha.6
circle-dex
Project structure
contracts- source code of all the smart contracts of the project and their dependencies.wrappers- wrapper classes (implementingContractfrom ton-core) for the contracts, including any deserialization primitives and compilation functions.tests- tests for the contracts.scripts- scripts used by the project, mainly the deployment scripts.
How to use
Build
npx blueprint build or yarn blueprint build
Test
npx blueprint test or yarn blueprint test
Deploy or run another script
npx blueprint run or yarn blueprint run
Add a new contract
npx blueprint create ContractName or yarn blueprint create ContractName
quick testnet samples
# create Circle LP and Dexes
npx blueprint run deployCircleDex \
balanced \
$NEXT_PUBLIC_BTC_JETTON_MASTER \
$NEXT_PUBLIC_ETH_JETTON_MASTER \
--testnet --mnemonic
# Initialize liquidity pool
npx blueprint run sendLiquidityPoolInitialize \
$NEXT_PUBLIC_TON_USDT_POOL \
$NEXT_PUBLIC_TON_JETTON_MASTER \
$NEXT_PUBLIC_USDT_JETTON_MASTER \
--testnet --mnemonic
# Get pool info
npx blueprint run getPool \
$NEXT_PUBLIC_TON_USDT_POOL \
--testnet --mnemonic
# Swap tokens
npx blueprint run swap \
$NEXT_PUBLIC_TON_JETTON_MASTER \
$NEXT_PUBLIC_TON_USDT_DEX \
10 \
--testnet --mnemonic
# Mint tokens
npx blueprint run test/mint \
$NEXT_PUBLIC_TON_JETTON_MASTER \
333 \
$NEXT_PUBLIC_WALLET_ADDRESS \
--testnet --mnemonic
# Mint tokens
npx blueprint run test/mint \
$NEXT_PUBLIC_TON_JETTON_MASTER \
777 \
0QBLx3mMxQ_XhigKtOIvSP7d8BiFfOCtBKx9KbePSVznv3ql \
--testnet --mnemonic
npx blueprint run test/mint \
$NEXT_PUBLIC_USDT_JETTON_MASTER \
555 \
0QBLx3mMxQ_XhigKtOIvSP7d8BiFfOCtBKx9KbePSVznv3ql \
--testnet --mnemonic
# Add liquidity for TON
npx blueprint run addLiquidity \
$NEXT_PUBLIC_TON_JETTON_MASTER \
$NEXT_PUBLIC_TON_USDT_POOL \
3439185 \
--testnet --mnemonic
# Add liquidity for USDT
npx blueprint run addLiquidity \
$NEXT_PUBLIC_USDT_JETTON_MASTER \
$NEXT_PUBLIC_TON_USDT_POOL \
5 \
--testnet --mnemonic
# Transfer pending amounts
npx blueprint run sendLiquidityPoolPendingAmounts \
$NEXT_PUBLIC_TON_USDT_POOL \
--testnet --mnemonic
# generate test account
npx blueprint run testAccount \
$NEXT_PUBLIC_TON_JETTON_MASTER \
$NEXT_PUBLIC_USDT_JETTON_MASTER \
--testnet --mnemonic
# Add liquidity for TON
npx blueprint run addLiquidityTon \
$NEXT_PUBLIC_TON_USDT_POOL \
5 \
--testnet --mnemonic0.0.9-alpha.6
5 months ago
0.0.9-alpha.5
5 months ago
0.0.9-alpha.4
5 months ago
0.0.9-alpha.3
5 months ago
0.0.9-alpha.2
6 months ago
0.0.9-alpha.1
6 months ago
0.0.8
7 months ago
0.0.7
7 months ago
0.0.6
7 months ago
0.0.5
7 months ago
0.0.4
7 months ago
0.0.3
7 months ago
0.0.2
7 months ago
0.0.1
7 months ago