Skip to content

Commit e73fff2

Browse files
authored
feat(target_chains/ton): initialize ton contracts (#1810)
* initialize ton contracts * precommit
1 parent ff2d6a0 commit e73fff2

File tree

11 files changed

+6723
-0
lines changed

11 files changed

+6723
-0
lines changed

Diff for: target_chains/ton/contracts/README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# pyth
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`

Diff for: target_chains/ton/contracts/contracts/imports/stdlib.fc

+625
Large diffs are not rendered by default.

Diff for: target_chains/ton/contracts/contracts/pyth.fc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#include "imports/stdlib.fc";
2+
3+
() recv_internal(int my_balance, int msg_value, cell in_msg_full, slice in_msg_body) impure {
4+
5+
}

Diff for: target_chains/ton/contracts/jest.config.ts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import type { Config } from "jest";
2+
3+
const config: Config = {
4+
preset: "ts-jest",
5+
testEnvironment: "node",
6+
testPathIgnorePatterns: ["/node_modules/", "/dist/"],
7+
};
8+
9+
export default config;

0 commit comments

Comments
 (0)