Coder Social home page Coder Social logo

moneytrackio / tezart Goto Github PK

View Code? Open in Web Editor NEW
26.0 26.0 16.0 4.1 MB

Tezart helps to interact with ​Tezos blockchain.

Home Page: https://moneytrackio.github.io/tezart/

License: MIT License

Dart 95.88% Shell 4.12%
blockchain blockchain-technology dart dartlang flutter tezos tezos-blockchain tezos-client

tezart's People

Contributors

bwnyasse avatar elkesrio avatar ethella avatar glavigno avatar kaderate avatar pierre-michard avatar sushantchandla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tezart's Issues

an unexpected error invalid signature is sometimes thrown

We sometimes see on tests and using the library in development an 'invalid signature' error from the node. The issue reproduces sometimes.

Signing a transaction being a deterministic process, we need to investigate what causes the issue in order to fix it.

Error: 'Uint8List' is restricted and can't be extended or implemented.

I'm getting the following error while trying this :

../../../.pub-cache/hosted/pub.dartlang.org/pinenacl-0.2.1/lib/api/api.dart:24:7: Error: 'Uint8List' is restricted and can't be extended or implemented.
class ByteList with ListMixin<int>, Encodable implements Uint8List {
      ^

flutter doctor :

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 2.5.0-5.2.pre, on Ubuntu 20.04.3 LTS 5.4.0-81-generic,
    locale en_GB.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.60.0)
[✓] Connected device (2 available)

• No issues found!

Possible suspect : breaking change in pinenacl-dart due to breaking change in dart-sdk

Manage errors while calling contracts

description

L’erreur retournée doit explicitement indiquer le type d’erreur TezosNodeError (avec des types particulier) :

  • erreur réseau côté chaîne / injection (erreur 4|5xx côté RPC d’injection par exemple) ;
  • erreur au niveau transaction (balance insuffisante pour payer les frais par exemple, ou taille d’opération trop importante) ;
  • erreur lors de l’exécution du contrat ({{FAILWITH}}par exemple).

How to run the example with public Tezos node?

I'm getting this error when I run dart example/example.dart:

TezartNodeError: got code unhandled with msg `Unhandled error: SocketException: Connection refused (OS Error: Connection refused, errno = 61), address = localhost, port = 58596.`
#0      catchHttpError (package:tezart/src/core/rpc/impl/tezart_http_error.dart:54:5)
<asynchronous suspension>
#1      main (file:///Users/leotreasure/tezart/example/example.dart:71:26)
<asynchronous suspension>

Unable to get to Docs

A few weeks ago I saw some great documentation tezart, but now the GitHub pages just shows the readme and only redirects to that?

In great Need of referring to the docs

Trying out the library and difficulty to execute an entrypoint call

Using a simple increment/decrement contract on hangzhounet (KT1QLqPN8us3LpgqSR9BgdF8bwJ8vJBjhfwV)
The contract is found, as well as entrypoints, storage ... However I have not been able to execute an increment() call so far.
Here is the code:
Future increment() async {
const String secretKey =
"edsk...";
final source = Keystore.fromSecretKey(secretKey);
var rpcUrl = "https://hangzhounet.api.tez.ie";
final client = TezartClient(rpcUrl);
const contractAddress = "KT1QLqPN8us3LpgqSR9BgdF8bwJ8vJBjhfwV";
final rpcInterface = client.rpcInterface;
final contract =
Contract(contractAddress: contractAddress, rpcInterface: rpcInterface);
final callContractOperationsList = await contract.callOperation(
entrypoint: 'increment',
params: 1,
source: source,
);
await callContractOperationsList.estimate(); // computes the counters, storage limits, gas limits and fees
await callContractOperationsList.execute();
await callContractOperationsList.monitor();
}

I got this error:
...
I/flutter ( 8676): 2021-12-25 23:49:16.259955[INFO] - RpcInterface : request for forgeOperations [ chain:main, level:head]
I/flutter ( 8676): 2021-12-25 23:49:16.260530[INFO] - RpcInterface : request for branch [ chain:main, level:head]
I/flutter ( 8676): 2021-12-25 23:49:16.260718[INFO] - TezartHttpClient : request to get from path: chains/main/blocks/head/hash
I/flutter ( 8676): 2021-12-25 23:49:16.925714[INFO] - TezartHttpClient : request to post to path: chains/main/blocks/head/helpers/forge/operations
I/flutter ( 8676): 2021-12-25 23:49:18.189721[INFO] - RpcInterface : request for injectOperation [ chain:main]
I/flutter ( 8676): 2021-12-25 23:49:18.189933[INFO] - TezartHttpClient : request to post to path: injection/operation?chain=main
I/flutter ( 8676): 2021-12-25 23:49:18.418852[INFO] - Operation : request to monitorOperation opSz2QbwPvRz7Xu7mshvpxTMinjcUgsRpRkcFWG12MDihFvhZw2
I/flutter ( 8676): 2021-12-25 23:49:18.419441[INFO] - TezartHttpClient : request to get from path: chains/main/blocks/head
I/flutter ( 8676): 2021-12-25 23:49:20.836868[INFO] - TezartHttpClient : request to get from path: chains/main/blocks/BMMAXD6o8CrareoHhdrS1JwAueH1J2toYr99mL5LrfRXxASkujB/operation_hashes/3
I/flutter ( 8676): 2021-12-25 23:49:23.286202[INFO] - TezartHttpClient : request to get from path: chains/main/blocks/BKksBHnmgyo61tsmySsj8M5a4UeXwVc2JkjLHQFBwfo3YsNYsKQ/operation_hashes/3
I/flutter ( 8676): 2021-12-25 23:49:58.009417[INFO] - TezartHttpClient : request to get from path: chains/main/blocks/BLH2Q86aVop56vuFSd9wK3y9XxT1bo3fBh3CUwpf1Wg26jzKpwQ/operation_hashes/3
E/flutter ( 8676): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: TezartNodeError: got code monitoringTimedOut with msg Monitoring the operation opSz2QbwPvRz7Xu7mshvpxTMinjcUgsRpRkcFWG12MDihFvhZw2 timed out.
E/flutter ( 8676): #0 OperationsMonitor.monitor
package:tezart/…/impl/operations_monitor.dart:41
E/flutter ( 8676):
E/flutter ( 8676): #1 OperationsList.monitor
package:tezart/…/impl/operations_list.dart:205
E/flutter ( 8676):
E/flutter ( 8676): #2 _MyHomePageState.increment
package:tezartdapp/main.dart:74
E/flutter ( 8676):
E/flutter ( 8676):

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.