Closed mario4tier closed 1 year ago
Two new scripts in dtp/script:
init-localnet : Create the "dtp-dev" directory that will contain the Sui code and the localnet files.
lsui : The "l" stands for "localnet". All actions are performed on the dtp-dev/localnet. Does what the "sui" CLI command provides, except that working-dir, client.config, network.config don't need to be specified.
Example:
~/dtp$ init-localnet
Output location = /home/olet/dtp-dev
Stopping running localnet (sui process pid 13970)
Building localnet using latest Sui devnet branch...
Finished dev [unoptimized + debuginfo] target(s) in 1.40s
Removing existing localnet directory
Creating new localnet directory
Starting new localnet process (may take up to 30 secs)
....
New localnet started (sui process pid 11981)
========
localnet => http://0.0.0.0:9000 (active)
devnet => https://fullnode.devnet.sui.io:443
========
All coin objects own by 0xcfed50a652b8fce7a7917a8a736a7c2b1d646ba2:
Object ID | Gas Value
----------------------------------------------------------------------
0x6205fc058b205227d7b7bd5b4e7802f0055157c6 | 100000000000000
0xb2c64298dd42e83725fe991724a27741abb3aa2f | 100000000000000
0xb49fe4af8d317d442e228d7d97896de9f7f5ef9e | 100000000000000
0xdda7a05332162389586c18c4c518c9811293cb09 | 100000000000000
0xef7d5e8fe9b133c431b386f27b17d4aaaa55e58b | 100000000000000
========
Remember:
Use "dsui" to access devnet
Use "lsui" to access your localnet
~/dtp$ lsui client addresses
Showing 1 results.
0xcfed50a652b8fce7a7917a8a736a7c2b1d646ba2
~/dtp$ lsui client object 0xef7d5e8fe9b133c431b386f27b17d4aaaa55e58b
----- Move Object (0xef7d5e8fe9b133c431b386f27b17d4aaaa55e58b[0]) -----
Owner: Account Address ( 0xcfed50a652b8fce7a7917a8a736a7c2b1d646ba2 )
Version: 0
Storage Rebate: 0
Previous Transaction: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
----- Data -----
type: 0x2::coin::Coin<0x2::sui::SUI>
balance: 100000000000000
id: 0xef7d5e8fe9b133c431b386f27b17d4aaaa55e58b
Make the sui local network running on the devbox and have dtp-dev-app interact with it.