tos_dart_sdk 0.29.4 copy "tos_dart_sdk: ^0.29.4" to clipboard
tos_dart_sdk: ^0.29.4 copied to clipboard

Software Development Kit in Dart to build Apps for the TOS Blockchain.

0.29.4 #

Breaking Changes - BlockDAG terminology migration:

  • Rename getBlueScore() to getHeight() (BlockDAG terminology)
  • Rename getStableBlueScore() to getStableHeight()
  • Rename getBlocksAtBlueScore() to getBlocksAtHeight()
  • Rename GetBlocksAtBlueScoreParams to GetBlocksAtHeightParams
  • Update Block field blueScore to height
  • Update GetInfoResult fields blueScore to height, stableBlueScore to stableHeight
  • Update all DTO blueScore fields to height (PeerEntry, GetHardForksResult, GetMinerWorkResult, GetBlockTemplateResult, DevFeeThresholds)

Note: This update aligns with the TOS daemon API migration from GHOSTDAG back to BlockDAG terminology.

0.29.3 #

Breaking changes - API simplification:

  • Migrate from encrypted balance to plaintext balance representation
  • Rename getBlocksAtHeight to getBlocksAtBlueScore (GHOSTDAG consensus terminology)
  • Simplify GetBalanceResult to return plaintext balance directly
  • Simplify GetStableBalanceResult structure
  • Simplify TransferPayload by removing cryptographic proof fields
  • Update Block field names to use blue_score instead of height
  • Update GetInfoResult, GetBlockTemplateResult, GetMinerWorkResult to use GHOSTDAG terminology

Note: This update aligns with daemon API changes for improved clarity and performance.

0.29.2 #

Bug fix:

  • Fix testnet node URL from testnet-node.tos.network to testnode.tos.network (correct deployment domain)

0.29.1 #

Code quality improvements and dependency updates:

  • Upgrade very_good_analysis from 9.0.0 to 10.0.0 (supports Dart 3.9.0)
  • Upgrade GitHub Actions checkout from v4 to v5
  • Fix all lint issues: add documentation for ignore directives, fix line length violations
  • Fix Future type inference warning in example code
  • Fix discarded futures by wrapping with unawaited()
  • Remove debug print statement from library code
  • Add assert message for better error reporting

0.29.0 #

Wallet API upgrade :

  • add Flag enum and update ExtraData structure.

0.28.0 #

Daemon API upgrade :

  • getMempool RPC method updated.
  • new getMempoolSummary RPC method.
  • MempoolTransactionSummary dto used in TransactionAddedInMempool event.

0.27.0 #

Wallet API upgrade :

  • TrackAsset event.
  • UntrackAsset event.

0.26.0 #

Daemon API upgrade :

  • invokeContract event.
  • deployContract event.
  • contractTransfer event.
  • contractEvent event.

Wallet API upgrade :

  • RPCAssetData for NewAsset event.

0.25.0 #

Wallet API upgrade :

  • add syncError event.

0.24.5 #

  • fix(BuildTransactionParams): fix JSON serialization

0.24.4 #

  • feat(transfer): add encryptExtraData field to TransferBuilder
  • feat(TransactionTypeBuilder): add safeFromJson method and prepareTransactionJson utility
  • refactor(BuildTransactionParams): simplify JSON serialization by extracting common fields

0.24.3 #

fix: update invokeContract and deployContract Builders.

0.24.2 #

refactor: modularize BuildTransactionParams JSON (de)serialization

0.24.1 #

chore: update Freezed to v3.

0.24.0 #

Daemon API upgrade :

  • add multisig transaction type in TransactionType.
  • RPC Asset Data
  • missing fields in GetAssetsParams.

Wallet API upgrade :

  • new RPC methods: getAssets, getAsset, dumpTransaction.

0.23.2 #

Wallet API upgrade :

  • add missing TransactionEntryType (Multisig, InvokeContract, DeployContract) in TransactionEntry.

0.23.1 #

Daemon API upgrade :

  • add burned_supply and emitted_supply to GetInfoResult.

0.23.0 #

Wallet API upgrade :

  • fix for transaction entry.

Daemon API upgrade :

  • new RPC methods: hasMultisigAtTopoheight, getContractOutputs, getContractModule, getContractData.

0.22.0 #

Wallet API upgrade :

  • new RPC methods: buildTransactionOffline, buildUnsignedTransaction, finalizeUnsignedTransaction, signUnsignedTransaction, decryptExtraData, decryptCiphertext.
  • new event: historySynced.

Daemon API upgrade :

  • new RPC methods: getMultisig, getMultisigAtTopoheight, hasMultisig, countContracts, getEstimatedFeeRates, getContractOutputs.

0.21.1 #

Wallet API upgrade :

  • fix typo in json key for historySynced event.

0.21.0 #

Wallet API upgrade :

  • new historySynced event.
  • ExtraData dto.

Daemon API upgrade :

  • new getExtraData RPC method.

0.20.1 #

Wallet API upgrade :

  • new timestamp field in TransactionEntry (ready for network-upgrade).

0.20.0 #

Daemon API upgrade :

  • new makeIntegratedAddress RPC method.
  • add StableHeightChanged event.
  • fix TransactionResponse/RPCTransaction.

Wallet API upgrade :

  • add asset in ListTransactionParams.

0.19.0 #

Daemon API upgrade :

  • new GetTransactionExecutor RPC method.
  • new getStableTopoheight RPC method.
  • new getStableBalance RPC method.
  • new validateAddress RPC method.
  • new getDifficulty RPC method.
  • new splitAddress RPC method.
  • new extractKeyFromAddress RPC method.
  • new getMinerWork RPC method.
  • new GetHardForks RPC method.
  • fix some dtos.

Wallet API:

  • new clearTxCache RPC method.
  • new estimateExtraDataSize RPC method.
  • fix some dtos.

0.18.0 #

Daemon API upgrade :

  • new getMempoolCache RPC method.
  • new isAccountRegistered RPC method.
  • new getAccountRegistrationTopoheight RPC method.
  • fix some dtos.

Wallet API upgrade :

  • new hasBalance RPC method.
  • new estimateFees RPC method.
  • fix some dtos.

0.17.0 #

Daemon API upgrade :

  • GetMempoolCache RPC method.

Wallet API:

  • Fix outgoing transaction entry.

0.16.2 #

  • fix transfer entry.

0.16.1 #

  • difficulty member type changed in GetInfoResult.
  • "owner" became "source" in TransactionResponse.
  • add DevFee in GetAccountHistoryResult

0.16.0 #

Daemon API upgrade :

  • new blockOrphaned Event.
  • new transactionOrphaned Event.

0.15.1 #

Wallet:

  • use sealed classes for Transaction and TransactionEntry types.

0.15.0 #

  • fix some dtos.
  • activate wallet events.
  • add BasicAuth to wallet client.

0.14.0 #

Daemon API upgrade :

  • new hasBalance RPC method.
  • new getNonceAtTopoheight RPC method.

0.13.3 #

  • update get_last_balance RPC method to get_balance.

0.13.2 #

  • update all events name to snake case.

0.13.1 #

  • fix suffix for websocket connection.

0.13.0 #

  • new JSON-RPC client to interact with CLI wallet.
  • global refactoring.

0.12.1 #

Daemon API upgrade :

  • fix Peer object.

Misc :

  • update README

0.12.0 #

Daemon API upgrade :

  • new PeerStateUpdated event.
  • Peer event response updates.

0.11.0 #

Daemon API upgrade :

  • new getDevFeeThresholds RPC method.
  • new getSizeOnDisk RPC method.
  • GetInfo response update.

0.10.0 #

Daemon API upgrade :

  • new hasNonce RPC method.
  • new isTxExecutedInBlock RPC method.
  • new Peer events.

0.9.0 #

Daemon API upgrade :

  • new getPeers RPC method.
  • new getAccountHistory RPC method.
  • new getAccountAssets RPC method.

0.8.0 #

Daemon API upgrade :

  • new getAsset RPC method.
  • new countAccounts RPC method.

0.7.0 #

Daemon API upgrade :

  • new getAccounts RPC method.

0.6.0 #

Daemon API upgrade :

  • new StableHeightChanged event.
  • new countAssets RPC method.

0.5.0 #

  • new getBlocksRangeByTopoHeight and getBlocksRangeByHeight RPC methods.

0.4.7 #

  • fix: json key in TransactionType.

0.4.6 #

  • fix: totalFees in Block can be null.

0.4.5 #

  • fix: default backoff strategy, client state & misc.

0.4.4 #

  • fix: reconnect behavior.

0.4.3 #

  • fix: missing field in Block and Burn TransactionType.

0.4.2 #

  • socket states.

0.4.1 #

  • Handle all types in the "result" field of JSON-RPC response.
  • No subscription if event has already been subscribed before.
  • More logging messages.

0.4.0 #

  • Complete rework of the DaemonClientRepository.
  • Only one socket connection is used for all requests and events.
  • Retry Timer for socket connection.

0.3.0 #

  • feat: Secure Websocket option.

0.2.0 #

  • feat: DaemonChannelRepository with broadcast Stream for more flexibility.

0.1.6 #

  • fix: topoHeight property in Balance.

0.1.5 #

  • feat: add Network enum.

0.0.5 #

  • fix: strong typing for event stream objects.

0.0.4 #

  • fix: param type for onTransactionAddedInMempool callback.

0.0.3 #

  • fix: unique json-rpc id.

0.0.2 #

  • fix: param type for onTransactionExecuted callback.

0.0.1 #

  • Initial version.
0
likes
150
points
10
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Software Development Kit in Dart to build Apps for the TOS Blockchain.

Repository (GitHub)

License

MIT (license)

Dependencies

convert, freezed_annotation, json_annotation, json_rpc_2, jsontool, logging, very_good_analysis, web_socket_client

More

Packages that depend on tos_dart_sdk