Skip to content

Commit

Permalink
More rename
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Dec 18, 2023
1 parent 71618d6 commit 313e79b
Show file tree
Hide file tree
Showing 8 changed files with 123 additions and 9 deletions.
114 changes: 114 additions & 0 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion bindings/python/examples/how_tos/account_output/destroy.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Sync wallet with the node
balance = wallet.sync()

# We try to destroy the first account in the account
# We try to destroy the first account in the wallet
account_id = balance.accounts[0]

wallet.set_stronghold_password(os.environ["STRONGHOLD_PASSWORD"])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from iota_sdk import ConsolidationParams, Utils, Wallet, WalletOptions, FeatureType

# In this example we will consolidate basic outputs from an account with only an AddressUnlockCondition by sending
# In this example we will consolidate basic outputs from a wallet with only an AddressUnlockCondition by sending
# them to the same address again.

# This example uses secrets in environment variables for simplicity which
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from iota_sdk import Wallet, WalletOptions

# In this example we will get outputs stored in the account
# In this example we will get outputs stored in the wallet

# This example uses secrets in environment variables for simplicity which
# should not be done in production.
Expand All @@ -13,15 +13,15 @@
wallet = Wallet(WalletOptions(storage_path=os.environ.get('WALLET_DB_PATH')))
wallet.sync()

# All outputs stored in the account
# All outputs stored in the wallet
outputs = wallet.outputs()

# Print all output ids
print('Output ids:')
for output in outputs:
print(output.output_id)

# All unspent outputs stored in the account
# All unspent outputs stored in the wallet
outputs = wallet.unspent_outputs()

# Print all unspent output ids
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
wallet = Wallet(WalletOptions(storage_path=os.environ.get('WALLET_DB_PATH')))
wallet.sync({'syncIncomingTransactions': True})

# All transactions sent from the the account
# All transactions sent from the wallet
transactions = wallet.transactions()
print('Sent transactions:')
for transaction in transactions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# Sync wallet with the node
wallet.sync()

# Only the unspent outputs in the account
# Only the unspent outputs in the wallet
output_ids = wallet.claimable_outputs('All')

print('Available outputs to claim:')
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/examples/how_tos/native_tokens/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
print(f'Block included: {os.environ["EXPLORER_URL"]}/block/{block_id}')

wallet.sync()
print("Account synced")
print("Wallet synced")

print('Preparing transaction to create native token...')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

wallet.set_stronghold_password(os.environ["STRONGHOLD_PASSWORD"])

# We try to destroy the first foundry in the account
# We try to destroy the first foundry in the wallet
foundry_id = balance.foundries[0]

# Send transaction.
Expand Down

0 comments on commit 313e79b

Please sign in to comment.