moneytrackio / tezart Goto Github PK
View Code? Open in Web Editor NEWTezart helps to interact with Tezos blockchain.
Home Page: https://moneytrackio.github.io/tezart/
License: MIT License
Tezart helps to interact with Tezos blockchain.
Home Page: https://moneytrackio.github.io/tezart/
License: MIT License
this would allow to activate this feature easily on Contract#call
without ducplicating code.
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.
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
L’erreur retournée doit explicitement indiquer le type d’erreur TezosNodeError (avec des types particulier) :
I'm trying to get address by fromMnemonic
, while the address is different with the one generated in TrustWallet using the same mnemonic.
Is there a way to generate same address with TrustWallet by this great package? Thanks!
https://github.com/moneytrackio/tezart/blob/main/example/example.dart#L28-L35
final keystore = Keystore.fromMnemonic(mnemonic);
print(keystore.address);
Example: ensure that we pass a valid address to AddressValidator
The number of confirmation is to be passed as parameter (default value 0, the transaction is included in the head block)
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>
Hello, I'm adding optional Tor/SOCKS5 proxy support to this library. I'd like to contribute it back upstream after finishing it, do you have any suggestions towards implementing a Tor/SOCKS5 proxy in this library in a way that will be merged?
I am planning on focusing on the TezartHttpClient in https://github.com/cypherstack/tezart/blob/main/lib/src/core/rpc/impl/rpc_interface.dart
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
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):
When using https://teznode.letzbake.com/
for RPC and executing example. I get this error.
TezartNodeError: got code unhandled with msg Unhandled error: null
Although, I'm able to retrieve the balance properly.
Allow to take native parameters and encode them into micheline during contract origination.
We should use some tool like semantic release to automatically manage the versioning of the library.
An example of tools allowing this is semantic release.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.