Skip to content

Commit

Permalink
feat(target_chains/ton): initialize ton contracts (#1810)
Browse files Browse the repository at this point in the history
* initialize ton contracts

* precommit
  • Loading branch information
cctdaniel authored Aug 2, 2024
1 parent ff2d6a0 commit e73fff2
Show file tree
Hide file tree
Showing 11 changed files with 6,723 additions and 0 deletions.
26 changes: 26 additions & 0 deletions target_chains/ton/contracts/README.md
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 target_chains/ton/contracts/contracts/imports/stdlib.fc

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions target_chains/ton/contracts/contracts/pyth.fc
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 {

}
9 changes: 9 additions & 0 deletions target_chains/ton/contracts/jest.config.ts
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;
Loading

0 comments on commit e73fff2

Please sign in to comment.