blueprint.config.ts
file in the root of your project, and export the configuration as a named config
;
do not use a default
export:
Field | Type/Values | Default | Description |
---|---|---|---|
plugins | Plugin[] | – | Extend or customize the behavior. |
network | 'mainnet' | 'testnet' | CustomNetwork | – | Specifies the target network for deployment or interaction. |
separateCompilables | boolean | false | If true , *.compile.ts files go to compilables ; if false , to wrappers . |
requestTimeout | number | – | HTTP request timeout in milliseconds. |
recursiveWrappers | boolean | false | If true , searches wrappers/ or compilables/ recursively for contracts. |
manifestUrl | string | https://raw.githubusercontent.com/ton-org/blueprint/main/tonconnect/manifest.json | Overrides the default TON Connect manifest URL. |
Plugins
Blueprint includes a plugin system, allowing the community to extend its functionality without modifying blueprint’s core code. To use plugins, add aplugins
array to your config:
- scaffold – creates a simple DApp using the wrappers’ code.
- misti – simplifies workflow with the Misti static analyzer.
Custom network
A custom network can be set as the default by adding anetwork
object to your configuration:
--custom
flags achieves the same result, but it can be tiresome to provide them every time.
The above configuration is equivalent to running:
network
object has the same meaning as its corresponding --custom
flag. See the blueprint help run
for details.
Liteclient support
Liteclient can be configured using thenetwork
object in your configuration:
Request timeouts
You can configure how long HTTP requests should wait before timing out using therequestTimeout
field.
This is useful when working with unstable or slow networks.
Recursive wrappers
TherecursiveWrappers
field controls whether the wrappers
directory is searched recursively for contract configurations.
false
.
TON Connect manifest
If you’re using a TON Connect provider, you can override the default manifest URL by setting themanifestUrl
field: