https://github.com/youneedwork/pumpfun-sol-clone
https://github.com/youneedwork/pumpfun-sol-clone
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/youneedwork/pumpfun-sol-clone
- Owner: YouNeedWork
- Created: 2025-04-01T08:13:59.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-04-01T08:14:08.000Z (about 1 year ago)
- Last Synced: 2025-09-09T12:41:08.741Z (10 months ago)
- Language: TypeScript
- Size: 81.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Mates Contract
## Progress
- [ ] Pump (90%)
- [ ] Lack for tests
- [ ] Lack for migrate to raydium
- [ ] Fair Launch (90%)
- [ ] Auto Migrate to raydium (0%)
## Commands
### Tests
```bash
yarn test
```
### Generate New Program
```bash
yarn generate
```
### Build
```bash
anchor build
```
### Deploy
```bash
anchor deploy -p mates_pump
```
## Devnet
### Usefuly Explorer
- https://solscan.io/
- https://explorer.solana.com/
### Contract
- Pump: `CBxkgcQ56DFcqXsdJSk3Yx4zhM2FDM3GJJG8LRzrjcei`
- Admin: `4JGRskBbWodVS76Z5obxNbaAn7EnqbiF4nAbyNH11h97`
### Token
- Mates: `fvCa1oU8x4sHqqgpCgpRzUDonCwkVavwPYDK8SzJVpG`
### Success Txs
```shell
mates_contract on master [!?] via v23.3.0 via 🦀 v1.82.0 on ☁️ (us-west-1)
❯ ts-node ./scripts/02_deploy.ts
mates_pump programId CBxkgcQ56DFcqXsdJSk3Yx4zhM2FDM3GJJG8LRzrjcei
(node:1000828) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Transaction: https://explorer.solana.com/tx/5ohCf4eeuaPzqbRrszpqQqWLqMgAb9WdMiDKhSCwBo9q5hsL5y5zuMVzHs5BesCvwVavJB2yZAQb5m5dACcpPuAq?cluster=devnet
mates_contract on master [!?] via v23.3.0 via 🦀 v1.82.0 on ☁️ (us-west-1) took 4s
❯ ts-node ./scripts/03_buy.ts
mates_pump programId CBxkgcQ56DFcqXsdJSk3Yx4zhM2FDM3GJJG8LRzrjcei
(node:1001007) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Transaction: https://explorer.solana.com/tx/3EpaAWQvRyx9DDMqQYFnTqyt8rRRD25U6bAqg1M9HUr7cYYvGUSUBNJLsAXAqdLz6tEHE14UN1isGW9tMd3iu8zm?cluster=devnet
mates_contract on master [!?] via v23.3.0 via 🦀 v1.82.0 on ☁️ (us-west-1) took 4s
❯ ts-node ./scripts/04_sell.ts
mates_pump programId CBxkgcQ56DFcqXsdJSk3Yx4zhM2FDM3GJJG8LRzrjcei
(node:1001186) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Transaction: https://explorer.solana.com/tx/f5jXESNeXRQHRdeCnDYBWuUvr1LPooHuHWHSpNe4MmUDGxq9QsuDEY4PAnoDQwwdzcdYjwRR2ZBUJTs2FG34oRn?cluster=devnet
```
### Desc
- 00_initialized.ts: Initialize the pump contract
- 01_init_fee_account.ts: Initialize Global fee account
- 02_deploy.ts: Deploy the pump contract
- 03_buy.ts: Buy the pump token
- 04_sell.ts: Sell the pump token
- 05_migrate.ts: Migrate to raydium {TODO}
The user needs to first create a pump token, then mint the token, and subsequently discard both the mint authority and the freeze authority. Finally, they should call deploy.ts.
There are two parameters for buying and selling:
- amount: Represents the quantity to buy or sell. If buying, it refers to the number of mates. If selling, it refers to the number of pump tokens.
- min_amount: Slippage tolerance.