-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(target_chains/ton): initialize ton contracts (#1810)
* initialize ton contracts * precommit
- Loading branch information
Showing
11 changed files
with
6,723 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# pyth | ||
|
||
## Project structure | ||
|
||
- `contracts` - source code of all the smart contracts of the project and their dependencies. | ||
- `wrappers` - wrapper classes (implementing `Contract` from ton-core) for the contracts, including any [de]serialization 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` |
625 changes: 625 additions & 0 deletions
625
target_chains/ton/contracts/contracts/imports/stdlib.fc
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include "imports/stdlib.fc"; | ||
|
||
() recv_internal(int my_balance, int msg_value, cell in_msg_full, slice in_msg_body) impure { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import type { Config } from "jest"; | ||
|
||
const config: Config = { | ||
preset: "ts-jest", | ||
testEnvironment: "node", | ||
testPathIgnorePatterns: ["/node_modules/", "/dist/"], | ||
}; | ||
|
||
export default config; |
Oops, something went wrong.