Skip to content

Commit 1a8c67d

Browse files
committed
add send_usd example for ton
1 parent 69fc257 commit 1a8c67d

File tree

16 files changed

+7219
-0
lines changed

16 files changed

+7219
-0
lines changed

price_feeds/ton/send_usd/.env.sample

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
WALLET_VERSION="v4"
2+
WALLET_MNEMONIC=""
3+
TONCENTER_API_KEY="" # Get from https://toncenter.com/
4+
PYTH_CONTRACT_ADDRESS="EQB4ZnrI5qsP_IUJgVJNwEGKLzZWsQOFhiaqDbD7pTt_f9oU"
5+
SEND_USD_CONTRACT_ADDRESS="EQBSXhaZHDbb7WRcdxXnmlFXsh_VDLJFSuFdWWV_FxxWFx-q"

price_feeds/ton/send_usd/.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
node_modules
2+
temp
3+
build
4+
dist
5+
.DS_Store
6+
7+
# VS Code
8+
.vscode/*
9+
.history/
10+
*.vsix
11+
12+
# IDEA files
13+
.idea
14+
15+
# VIM
16+
Session.vim
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build

price_feeds/ton/send_usd/.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"printWidth": 120,
3+
"tabWidth": 4,
4+
"singleQuote": true,
5+
"bracketSpacing": true,
6+
"semi": true
7+
}

price_feeds/ton/send_usd/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# send_usd
2+
3+
## Project structure
4+
5+
- `contracts` - source code of all the smart contracts of the project and their dependencies.
6+
- `wrappers` - wrapper classes (implementing `Contract` from ton-core) for the contracts, including any [de]serialization primitives and compilation functions.
7+
- `tests` - tests for the contracts.
8+
- `scripts` - scripts used by the project, mainly the deployment scripts.
9+
10+
## How to use
11+
12+
### Build
13+
14+
`npx blueprint build` or `yarn blueprint build`
15+
16+
### Test
17+
18+
`npx blueprint test` or `yarn blueprint test`
19+
20+
### Deploy or run another script
21+
22+
`npx blueprint run` or `yarn blueprint run`
23+
24+
### Add a new contract
25+
26+
`npx blueprint create ContractName` or `yarn blueprint create ContractName`

0 commit comments

Comments
 (0)