Skip to content

Commit

Permalink
chore: Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
pawanpaudel93 committed Jul 28, 2024
1 parent 487200e commit e2c6cbf
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,13 @@ Options:
-h, --help display help for command
```

#### CLI Examples

##### Example: Deploy contract
#### Example: Deploy contract

```sh
ao-deploy process.lua -n tictactoe -w wallet.json --tags name1:value1 name2:value2
```

##### Example: Deploy contracts with configuration
#### Example: Deploy contracts with configuration

Here is an example using a deployment configuration:

Expand Down Expand Up @@ -120,7 +118,7 @@ Deploy specific contracts:
ao-deploy aod.config.ts --deploy=contract_1,contract_3
```

##### Example: Build Contract
#### Example: Build Contract

To Build contracts and produce single bundle lua file, take a look at below provided commands

Expand All @@ -137,7 +135,7 @@ aod src/process.lua -n my-process --build-only --out-dir <PATH>
aod src/process.lua -n my-process --build-only --out-dir ./dist
```

##### Example: Build Contracts using Configuration
#### Example: Build Contracts using Configuration

To Build contracts using config, take a look at below provided example

Expand All @@ -147,29 +145,25 @@ Here is an example using a deployment configuration:
// aod.config.ts
import { defineConfig } from 'ao-deploy'

const wallet = 'wallet.json'
const luaPath = './?.lua;./src/?.lua'

const config = defineConfig({
contract_1: {
luaPath,
name: `contract-1`,
contractPath: 'contract-1.lua',
wallet,
outDir: './dist',
},
contract_2: {
luaPath,
name: `contract-2`,
contractPath: 'contract-2.lua',
wallet,
outDir: './dist',
},
contract_3: {
luaPath,
name: `contract-3`,
contractPath: 'contract-3.lua',
wallet,
outDir: './dist',
}
})
Expand Down

0 comments on commit e2c6cbf

Please sign in to comment.