Skip to content

Commit

Permalink
Add PlotNFT Mutation, Update Cross Chain Offer Command, and Pass Stat…
Browse files Browse the repository at this point in the history
…ic Analysis (#124)
  • Loading branch information
meeragjoshi authored Nov 3, 2023
1 parent aacf82c commit 86dcbd6
Show file tree
Hide file tree
Showing 367 changed files with 10,541 additions and 4,891 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
- name: Get Flutter packages
run: flutter pub get

- name: Clone Mozilla's CA cert bundle module into root directory
run: git clone https://github.com/Chia-Network/mozilla-ca.git

- name: Run simulator tests
run: bash ./integration_test/run_tests.sh
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,7 @@ coverage/
# Ignore chialisp
main.sym
spend_bundle_hex.txt
simulator_gen_path.json
simulator_gen_path.json

# Ignore logs from exchange commands
exchange-log-*.txt
6 changes: 0 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{
"editor.defaultFormatter": "Dart-Code.dart-code",
"editor.formatOnSave": true,
"dart.lineLength": 100,
"[dart]": {
"editor.rulers": [
100
],
}
}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Add NFT support
- Add Offer support
- Bug fixing and code cleanup
- Plot NFT mutation spend

## 1.0.18

Expand Down
44 changes: 38 additions & 6 deletions bin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,50 @@ dart bin/chia_crypto_utils.dart Get-CoinRecords --full-node-url <FULL_NODE_URL>

## Create Wallet With PlotNFT

Use this command to create a wallet with a new plotNFT:
Use this command to create a wallet with a new plotNFT and register it with a pool. To create a self-pooling plotNFT, omit the pool-url parameter.

```console
dart bin/chia_crypto_utils.dart Create-WalletWithPlotNFT --full-node-url <FULL_NODE_URL> --faucet-request-url <FAUCET_URL> --faucet-request-payload '{"address": "SEND_TO_ADDRESS", "amount": 0.0000000001}'
dart bin/chia_crypto_utils.dart Create-WalletWithPlotNFT --full-node-url <FULL_NODE_URL> --cert-path <PATH_TO_CERT_FILE> --key-path <PATH_TO_KEY_FILE> --faucet-request-url <FAUCET_URL> --faucet-request-payload '{"address": "SEND_TO_ADDRESS", "amount": 0.0000000001}'
dart bin/chia_crypto_utils.dart Create-WalletWithPlotNFT --full-node-url <FULL_NODE_URL> --faucet-request-url <FAUCET_URL> --faucet-request-payload '{"address": "SEND_TO_ADDRESS", "amount": 0.0000000001}' --pool-url <POOL_URL>
dart bin/chia_crypto_utils.dart Create-WalletWithPlotNFT --full-node-url <FULL_NODE_URL> --cert-path <PATH_TO_CERT_FILE> --key-path <PATH_TO_KEY_FILE> --faucet-request-url <FAUCET_URL> --faucet-request-payload '{"address": "SEND_TO_ADDRESS", "amount": 0.0000000001}' --pool-url <POOL_URL>
```

Can also omit the faucet url and payload if you would like to manually send the XCH needed to create the PlotNFT:
Can also omit the faucet url and payload if you would like to manually send the XCH needed to create the plotNFT:

```console
dart bin/chia_crypto_utils.dart Create-WalletWithPlotNFT --full-node-url <FULL_NODE_URL>
dart bin/chia_crypto_utils.dart Create-WalletWithPlotNFT --full-node-url <FULL_NODE_URL> --cert-path <PATH_TO_CERT_FILE> --key-path <PATH_TO_KEY_FILE>
dart bin/chia_crypto_utils.dart Create-WalletWithPlotNFT --full-node-url <FULL_NODE_URL> --pool-url <POOL_URL>
dart bin/chia_crypto_utils.dart Create-WalletWithPlotNFT --full-node-url <FULL_NODE_URL> --cert-path <PATH_TO_CERT_FILE> --key-path <PATH_TO_KEY_FILE> --pool-url <POOL_URL>
```

## Mutate PlotNFT

Use this command to leave a pool.

```console
dart bin/chia_crypto_utils.dart Mutate-PlotNFT --full-node-url <FULL_NODE_URL> --faucet-request-url <FAUCET_URL> --faucet-request-payload '{"address": "SEND_TO_ADDRESS", "amount": 0.0000000001}' --mnemonic "mnemonic seed"
dart bin/chia_crypto_utils.dart Mutate-PlotNFT --full-node-url <FULL_NODE_URL> --cert-path <PATH_TO_CERT_FILE> --key-path <PATH_TO_KEY_FILE> --faucet-request-url <FAUCET_URL> --faucet-request-payload '{"address": "SEND_TO_ADDRESS", "amount": 0.0000000001}' --mnemonic "mnemonic seed"
```

Can also omit the faucet url and payload if you would like to manually send the XCH needed to mutate the plotNFT:

```console
dart bin/chia_crypto_utils.dart Mutate-PlotNFT --full-node-url <FULL_NODE_URL> --mnemonic "mnemonic seed"
dart bin/chia_crypto_utils.dart Mutate-PlotNFT --full-node-url <FULL_NODE_URL> --cert-path <PATH_TO_CERT_FILE> --key-path <PATH_TO_KEY_FILE> --mnemonic "mnemonic seed"
```

## Register PlotNFT

Use this command to register a PlotNFT with a pool. Should already be in farming to pool state.

```console
dart bin/chia_crypto_utils.dart Register-PlotNFT --full-node-url <FULL_NODE_URL> --faucet-request-url <FAUCET_URL> --faucet-request-payload '{"address": "SEND_TO_ADDRESS", "amount": 0.0000000001}' --mnemonic "mnemonic seed" --launcher-id <PLOT_NFT_LAUNCHER_ID> --pool-url <POOL_URL>
dart bin/chia_crypto_utils.dart Register-PlotNFT --full-node-url <FULL_NODE_URL> --cert-path <PATH_TO_CERT_FILE> --key-path <PATH_TO_KEY_FILE> --faucet-request-url <FAUCET_URL> --faucet-request-payload '{"address": "SEND_TO_ADDRESS", "amount": 0.0000000001}' --mnemonic "mnemonic seed" --launcher-id <PLOT_NFT_LAUNCHER_ID> --pool-url <POOL_URL>
```

Can also omit the faucet url and payload if you would like to manually send the XCH needed to mutate the plotNFT:

```console
dart bin/chia_crypto_utils.dart Register-PlotNFT --full-node-url <FULL_NODE_URL> --mnemonic "mnemonic seed" --launcher-id <PLOT_NFT_LAUNCHER_ID> --pool-url <POOL_URL>
dart bin/chia_crypto_utils.dart Register-PlotNFT --full-node-url <FULL_NODE_URL> --cert-path <PATH_TO_CERT_FILE> --key-path <PATH_TO_KEY_FILE> --mnemonic "mnemonic seed" --launcher-id <PLOT_NFT_LAUNCHER_ID> --pool-url <POOL_URL>
```

## Get Farming Status
Expand Down
Loading

0 comments on commit 86dcbd6

Please sign in to comment.