Skip to content

Commit

Permalink
Merge branch 'release/v1.6.0' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
briancorbin committed Apr 19, 2022
2 parents 3c9c1b8 + 58ba31c commit dba9b42
Show file tree
Hide file tree
Showing 82 changed files with 4,788 additions and 627 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
version: 2.1

defaults:
builder-install: &builder-install gcr.io/mobilenode-211420/builder-install:1_24
builder-install: &builder-install gcr.io/mobilenode-211420/builder-install:1_25
default-xcode-version: &default-xcode-version "12.0.0"

default-environment: &default-environment
Expand Down
139 changes: 133 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ information.
For documentation, usage, and API specification, see our gitbook
page: [https://mobilecoin.gitbook.io/full-service-api/](https://mobilecoin.gitbook.io/full-service-api/)

Deprecated docs are being phased out, but remain at [API.md](API.md) (possibly increasingly out of date)

For database encryption features, see [DATABASE.md](DATABASE.md).

### Build and Run
Expand Down
8 changes: 8 additions & 0 deletions cli/mobilecoin/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ def _create_parsers(self):
self.gift_remove_args = gift_action.add_parser('remove', help='Remove a gift code.')
self.gift_remove_args.add_argument('gift_code', help='Gift code to remove.')

# Version
self.version_args = command_sp.add_parser('version', help='Show version number.')


def _load_account_prefix(self, prefix):
accounts = self.client.get_all_accounts()
matching_ids = [
Expand Down Expand Up @@ -712,6 +716,10 @@ def gift_remove(self, gift_code):
print('Gift code not found; nothing to remove.')
return

def version(self):
version = self.client.version()
print(version['string'])


def _format_mob(mob):
return '{} MOB'.format(_format_decimal(mob))
Expand Down
4 changes: 4 additions & 0 deletions cli/mobilecoin/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,10 @@ def remove_gift_code(self, gift_code_b58):
})
return r['removed']

def version(self):
r = self._req({"method": "version"})
return r

# Utility methods.

def poll_balance(self, account_id, min_block_height=None, seconds=10, poll_delay=1.0):
Expand Down
13 changes: 13 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,17 @@ description: >-
---

# Welcome!
Full-service is MobileCoin's wallet backend. With full-service you can:
- Create and manage accounts (private keys).
- Build, submit, and record transactions
- Scan the ledger and view balances

## Integrating full-service
- Get started with the full-service API by following the [environment setup guide](tutorials/environment-setup.md).
- For an introduction to using full-service check out the guide to [accounts and transactions](tutorials/receive-mob).
- For detailed information on how full-service stores data, check out the guide to [database usage](tutorials/database-usage.md).
- If you are having issues sending or receiving MOB, check out the guide to [resolving disputes](tutorials/resolve-disputes.md).




31 changes: 20 additions & 11 deletions docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@
* [Create Account](accounts/account/create_account.md)
* [Import Account](accounts/account/import_account.md)
* [Import Account Legacy](accounts/account/import_account_from_legacy_root_entropy-deprecated.md)
* [Import View Only Account](accounts/account/import_view_only_account.md)
* [Get Account](accounts/account/get_account.md)
* [Get All Accounts](accounts/account/get_all_accounts.md)
* [Get All View Only Accounts](accounts/account/get_all_view_only_accounts.md)
* [Get Account Status](accounts/account/get_account_status.md)
* [Get View Only Account](accounts/account/get_view_only_account.md)
* [Update Account Name](accounts/account/update_account_name.md)
* [Update View Only Account Name](accounts/account/update_view_only_account_name.md)
* [Remove Account](accounts/account/remove_account.md)
* [Remove View Only Account](accounts/account/remove_view_only_account.md)
* [Account Secrets](accounts/account-secrets/README.md)
* [Export Account Secrets](accounts/account-secrets/export_account_secrets.md)
* [Export View Only Account Secrets](accounts/account-secrets/export_view_only_account_secrets.md)
* [Address](accounts/address/README.md)
* [Assign Address For Account](accounts/address/assign_address_for_account.md)
* [Get All Addresses For Account](accounts/address/get_all_addresses_for_account.md)
Expand All @@ -23,6 +29,7 @@
* [Balance](accounts/balance/README.md)
* [Get Balance For Account](accounts/balance/get_balance_for_account.md)
* [Get Balance For Address](accounts/balance/get_balance_for_address.md)
* [Get Balance For View Only Account](accounts/balance/get_balance_for_view_only_account.md)

## Transactions

Expand All @@ -37,6 +44,7 @@
* [Get TXOs For Account](transactions/txo/get_txos_for_account.md)
* [Get All TXOs For Account](transactions/txo/get_all_txos_for_account.md)
* [Get TXOs For Account](transactions/txo/get_txos_for_account.md)
* [Get TXOs For View Only Account](transactions/txo/get_txos_for_view_only_account.md)
* [Get All TXOs For Address](transactions/txo/get_txo_object.md)
* [Confirmation](transactions/transaction-confirmation/README.md)
* [Get Confirmations](transactions/transaction-confirmation/get_confirmations.md)
Expand All @@ -57,17 +65,6 @@
* [Check B58 Type](transactions/payment-request/check_b58_type.md)



## Wallet

* [Wallet Status](wallet/wallet-status/README.md)
* [Get Wallet Status](wallet/wallet-status/get_wallet_status.md)

## Ledger

* [Block](ledger/block/README.md)
* [Get Block](ledger/block/get_block.md)

## Gift Codes

* [Gift Code](gift-codes/gift-code/README.md)
Expand All @@ -79,9 +76,21 @@
* [Claim Gift Code](gift-codes/gift-code/claim_gift_code.md)
* [Remove Gift Code](gift-codes/gift-code/remove_gift_code.md)

## Other

* [Block](other/block/README.md)
* [Get Block](other/block/get_block.md)
* [Network Status](other/network-status/README.md)
* [Get Network Status](other/network-status/get_network_status.md)
* [Wallet Status](other/wallet-status/README.md)
* [Get Wallet Status](other/wallet-status/get_wallet_status.md)
* [Version](other/version/README.md)
* [Get Version](other/version/version.md)

## Tutorials

* [Environment Setup](tutorials/environment-setup.md)
* [Run Full Service](tutorials/recieve-mob.md)
* [Database Usage](tutorials/database-usage.md)
* [Resolve Disputes](tutorials/resolve-disputes.md)

Loading

0 comments on commit dba9b42

Please sign in to comment.