Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.27 KB

File metadata and controls

47 lines (31 loc) · 1.27 KB

w5-extensions

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.

Available extensions

For more information see this file.

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

Deploy Native Subscription Extension

IMPORTANT: if you use want to use metadata then you need to define it manually in the deployNativeSub.ts script.

npx blueprint run deployNativeSub

.env file:

WALLET_VERSION=<wallet version: v4 or v5r1>
AMOUNT=<amount in nanotons>
BENEFICIARY_ADDRESS=<beneficiary address>
PAYMENT_PER_PERIOD=<payment per period in nanotons>

# optional
SUBSCRIPTION_ID=<any number>
FIRST_CHARGING_DATE=<first charging date as unix timestamp>
PERIOD=<payment period in seconds>
GRACE_PERIOD=<grace period in seconds>
CALLER_FEE=<caller fee in nanotons>