-
Notifications
You must be signed in to change notification settings - Fork 48
refactor: add cashback() to all messages
#103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
anton-trunov
merged 7 commits into
main
from
102-use-cashback-in-all-messages-except-empty-message
May 30, 2025
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
0be192a
refactor: move cashback call
skywardboundd da0515e
fmt
skywardboundd 0a605b6
add back cashback in receive ()
skywardboundd 3f5746c
use fmt
skywardboundd c05b8e3
add prettier to fmt
skywardboundd 9a1ec4f
upd
skywardboundd 1d12f23
reorder
skywardboundd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,48 +1,48 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "main" ] | ||
| pull_request: | ||
| branches: [ "main" ] | ||
| workflow_dispatch: | ||
| push: | ||
| branches: ["main"] | ||
| pull_request: | ||
| branches: ["main"] | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| test: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| node-version: [22] | ||
| os: [ubuntu-latest] | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v2 | ||
|
|
||
| # - name: Install Soufflé on Ubuntu | ||
| # if: matrix.os == 'ubuntu-latest' | ||
| # run: | | ||
| # sudo wget https://souffle-lang.github.io/ppa/souffle-key.public -O /usr/share/keyrings/souffle-archive-keyring.gpg | ||
| # echo "deb [signed-by=/usr/share/keyrings/souffle-archive-keyring.gpg] https://souffle-lang.github.io/ppa/ubuntu/ stable main" | sudo tee /etc/apt/sources.list.d/souffle.list | ||
| # sudo apt update | ||
| # sudo apt install souffle | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
|
|
||
| - name: Install dependencies | ||
| run: yarn install | ||
|
|
||
| - name: Build | ||
| run: yarn build | ||
|
|
||
| - name: Run Tact formatter | ||
| run: yarn tact-fmt --check ./sources | ||
|
|
||
| - name: Run Misti | ||
| run: yarn misti --min-severity medium ./tact.config.json | ||
|
|
||
| - name: Run tests | ||
| run: yarn test | ||
| test: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| node-version: [22] | ||
| os: [ubuntu-latest] | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v2 | ||
|
|
||
| # - name: Install Soufflé on Ubuntu | ||
| # if: matrix.os == 'ubuntu-latest' | ||
| # run: | | ||
| # sudo wget https://souffle-lang.github.io/ppa/souffle-key.public -O /usr/share/keyrings/souffle-archive-keyring.gpg | ||
| # echo "deb [signed-by=/usr/share/keyrings/souffle-archive-keyring.gpg] https://souffle-lang.github.io/ppa/ubuntu/ stable main" | sudo tee /etc/apt/sources.list.d/souffle.list | ||
| # sudo apt update | ||
| # sudo apt install souffle | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
|
|
||
| - name: Install dependencies | ||
| run: yarn install | ||
|
|
||
| - name: Run Lint | ||
| run: yarn lint | ||
|
|
||
| - name: Build | ||
| run: yarn build | ||
|
|
||
| - name: Run Misti | ||
| run: yarn misti --min-severity medium ./tact.config.json | ||
|
|
||
| - name: Run tests | ||
| run: yarn test | ||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -2,4 +2,4 @@ | |
| "printWidth": 120, | ||
| "tabWidth": 4, | ||
| "useTabs": false | ||
| } | ||
| } | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -1,7 +1,3 @@ | ||
| { | ||
| "recommendations": [ | ||
| "tonstudio.vscode-tact", | ||
| "tonwhales.func-vscode", | ||
| "dbaeumer.vscode-eslint" | ||
| ] | ||
| } | ||
| "recommendations": ["tonstudio.vscode-tact", "tonwhales.func-vscode", "dbaeumer.vscode-eslint"] | ||
| } |
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| export default { | ||
| preset: 'ts-jest', | ||
| testEnvironment: 'node', | ||
| testPathIgnorePatterns: ["/node_modules/", "/dist/"], | ||
| snapshotSerializers: ["@tact-lang/ton-jest/serializers"], | ||
| globalSetup: './jest.setup.ts', | ||
| globalTeardown: './jest.teardown.ts', | ||
| }; | ||
| preset: "ts-jest", | ||
| testEnvironment: "node", | ||
| testPathIgnorePatterns: ["/node_modules/", "/dist/"], | ||
| snapshotSerializers: ["@tact-lang/ton-jest/serializers"], | ||
| globalSetup: "./jest.setup.ts", | ||
| globalTeardown: "./jest.teardown.ts", | ||
| }; |
This file contains hidden or 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 |
|---|---|---|
| @@ -1 +1 @@ | ||
| export default async () => { }; | ||
| export default async () => {}; |
This file contains hidden or 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 |
|---|---|---|
| @@ -1 +1 @@ | ||
| export default async () => { }; | ||
| export default async () => {}; |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,42 +1,42 @@ | ||
| { | ||
| "private": true, | ||
| "scripts": { | ||
| "build": "tact --config ./tact.config.json", | ||
| "fmt": "tact-fmt --write ./sources", | ||
| "lint": "tact-fmt --check ./sources && yarn misti ./tact.config.json", | ||
| "test": "yarn build && jest", | ||
| "deploy": "yarn test && ts-node ./sources/contract.deploy.ts", | ||
| "read": "ts-node ./sources/contract.read.ts" | ||
| }, | ||
| "dependencies": { | ||
| "@nowarp/misti": "~0.8.0", | ||
| "@tact-lang/compiler": "^1.6.13", | ||
| "@tact-lang/deployer": "^0.2.0", | ||
| "@tact-lang/ton-abi": "^0.0.3", | ||
| "@tact-lang/ton-jest": "^0.0.4", | ||
| "@ton/core": "^0.60.1", | ||
| "@ton/crypto": "^3.2.0", | ||
| "@ton/sandbox": "^0.27.0", | ||
| "@ton/test-utils": "^0.4.2", | ||
| "@ton/ton": "^13.9.0", | ||
| "@types/jest": "^29.2.4", | ||
| "@types/node": "^18.11.14", | ||
| "@types/qs": "^6.9.7", | ||
| "base64url": "^3.0.1", | ||
| "enquirer": "^2.3.6", | ||
| "jest": "^29.3.1", | ||
| "open": "^8.4.0", | ||
| "prando": "^6.0.1", | ||
| "prettier": "^2.5.1", | ||
| "qs": "^6.11.0", | ||
| "ts-jest": "^29.0.3", | ||
| "ts-node": "^10.9.1", | ||
| "typescript": "^4.9.4" | ||
| }, | ||
| "devDependencies": { | ||
| "eslint": "^9.19.0", | ||
| "globals": "^13.24.0", | ||
| "typescript-eslint": "^8.22.0" | ||
| }, | ||
| "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" | ||
| "private": true, | ||
| "scripts": { | ||
| "build": "tact --config ./tact.config.json", | ||
| "fmt": "prettier --write ./sources && tact-fmt --write ./sources", | ||
| "lint": "prettier --check ./sources && tact-fmt --check ./sources && yarn misti ./tact.config.json", | ||
| "test": "yarn build && jest", | ||
| "deploy": "yarn test && ts-node ./sources/contract.deploy.ts", | ||
| "read": "ts-node ./sources/contract.read.ts" | ||
| }, | ||
| "dependencies": { | ||
| "@nowarp/misti": "~0.8.0", | ||
| "@tact-lang/compiler": "^1.6.13", | ||
| "@tact-lang/deployer": "^0.2.0", | ||
| "@tact-lang/ton-abi": "^0.0.3", | ||
| "@tact-lang/ton-jest": "^0.0.4", | ||
| "@ton/core": "^0.60.1", | ||
| "@ton/crypto": "^3.2.0", | ||
| "@ton/sandbox": "^0.27.0", | ||
| "@ton/test-utils": "^0.4.2", | ||
| "@ton/ton": "^13.9.0", | ||
| "@types/jest": "^29.2.4", | ||
| "@types/node": "^18.11.14", | ||
| "@types/qs": "^6.9.7", | ||
| "base64url": "^3.0.1", | ||
| "enquirer": "^2.3.6", | ||
| "jest": "^29.3.1", | ||
| "open": "^8.4.0", | ||
| "prando": "^6.0.1", | ||
| "prettier": "^2.5.1", | ||
| "qs": "^6.11.0", | ||
| "ts-jest": "^29.0.3", | ||
| "ts-node": "^10.9.1", | ||
| "typescript": "^4.9.4" | ||
| }, | ||
| "devDependencies": { | ||
| "eslint": "^9.19.0", | ||
| "globals": "^13.24.0", | ||
| "typescript-eslint": "^8.22.0" | ||
| }, | ||
| "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" | ||
| } |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1,18 +1,19 @@ | ||
| { | ||
| "projects": [{ | ||
| "name": "sample", | ||
| "path": "./sources/contract.tact", | ||
| "output": "./sources/output", | ||
| "mode": "full", | ||
| "options": { | ||
| "external": false, | ||
| "debug": false, | ||
| "ipfsAbiGetter": false, | ||
| "interfacesGetter": false, | ||
| "experimental": { | ||
| "inline": false | ||
| "projects": [ | ||
| { | ||
| "name": "sample", | ||
| "path": "./sources/contract.tact", | ||
| "output": "./sources/output", | ||
| "mode": "full", | ||
| "options": { | ||
| "external": false, | ||
| "debug": false, | ||
| "ipfsAbiGetter": false, | ||
| "interfacesGetter": false, | ||
| "experimental": { | ||
| "inline": false | ||
| } | ||
| } | ||
| } | ||
| }] | ||
| ] | ||
| } | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.