-
Notifications
You must be signed in to change notification settings - Fork 0
/
environments.toml
97 lines (82 loc) · 3.53 KB
/
environments.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[development]
# If given `run-locally = true`, `network` will be launched with:
#
# soroban network start local
#
# You can use a shorthand version for `local`:
#
# network = "local"
network = { name = "local", run-locally = true }
accounts = [
# If you provide a string, an identity with this name will be created with
# `soroban keys`, which saves the mnemonic in `.soroban/identity`.
"alice",
# Alternatively, you can provide an expanded definition.
# - `name`: the only required field, same behavior as string value above.
# - `default`: whether to use this account as the `--source` for commands
# that need one. See `init` below. Can only have one default.
# - `mnemonic`: a BIP39 mnemonic for the account. If not provided, a new
# keypair will be generated and saved in the `.soroban/identity` directory.
{ name = "me", default = true, mnemonic = "boots and cats and boots and cats..." },
]
default-account = "me"
[development.contracts]
# Auto-build, -deploy, -bind, and -import all contracts in Cargo workspace
# Only supported in development & test environments
cargo-workspace = true
# Instead of `cargo-workspace`, you can list each contract individually.
# `workspace = true` indicates that this project is part of the local cargo
# workspace. In dev & test environments, workspace contracts will be
# automatically built, deployed, initialized, bound, and imported.
soroban-atomic-swap-contract = { workspace = true }
soroban-auth-contract = { workspace = true }
soroban-errors-contract = { workspace = true }
soroban-hello-world-contract = { workspace = true }
soroban-increment-contract = { workspace = true }
# If contracts need more settings, you can list them the long way.
[development.contracts.soroban-token-contract]
workspace = true
# Initialization steps for the contract, to be run after deployment.
# Only supported in `development` and `test` environments.
# You only need to specify the slop (everything after the `--`) for calls to
# `soroban contract invoke` for the given contract. Uses `default-account`
# by default; to use another, prefix with `SOROBAN_ACCOUNT=other-account`.
init = """
initialize --symbol ABND --decimal 7 --name abundance --admin me
mint --amount 2000000 --to me"
"""
# Specify live contracts to bind & import in this project using the given name.
# During initialization, these contracts will also be "spooned" into the development network,
# meaning that their data will match the live network at the given sequence number.
[development.contracts.eurc]
environment = "production"
address = "C..."
at-ledger-sequence = 50153603
[staging]
rpc-url = "https://soroban-testnet.stellar.org"
network-passphrase = "Test SDF Network ; September 2015"
# or, to run your own network locally:
network = { name = "testnet", run-locally = true }
accounts = [
{ name = "testnet-user", default = true },
]
[staging.contracts]
soroban-atomic-swap-contract = "C123..."
soroban-auth-contract = "C234..."
soroban-errors-contract = "C345..."
soroban-hello-world-contract = "C456..."
soroban-increment-contract = "C567..."
soroban-token-contract = "C678..."
eurc = "C789..."
[production]
rpc-url = "https://our-custom-rpc-provider.cool"
network-passphrase = "Public Global Stellar Network ; September 2015"
default-account = "official-team-account"
[production.contracts]
soroban-atomic-swap-contract = "C987..."
soroban-auth-contract = "C876..."
soroban-errors-contract = "C765..."
soroban-hello-world-contract = "C654..."
soroban-increment-contract = "C543..."
soroban-token-contract = "C432..."
eurc = "C321..."