Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [abi]

The tag has no usage guidance.

1
vote
1answer
11 views

Multiple Inheritance within ABI files

I have various classes that use multiple inheritance, i.e.: class A { }; class B { }; class C : public A, public B { }; Single inheritance in an ABI file is possible using the base layer as ...
0
votes
1answer
48 views

How can I create a table in an .hpp for a general contract? (Using the CDT)

THE STRUCTURE OF MY PROJECT I am working in mycontract.cpp, which imports myheader.hpp WHAT I WANT I want to create a table in myheader.hpp, for a generic contract, "IN THEORY" as follows: struct [...
0
votes
0answers
17 views

What‘s this error message means: “code”: 3010014, “message”: “precision 192 should be <= 18”,

{ "code": 500, "message": "Internal Service Error", "error": { "code": 3010014, "name": "symbol_type_exception", "what": "Invalid symbol", "details": [ { "message": ...
1
vote
1answer
50 views

Is there a way to have a 2 dimensional vector in my table?

I can have a string vector by manually changing the type in my abi file to string[] but if I try string[][] I get and ABI error in my node. Any thoughts? Thanks in advance.
1
vote
0answers
24 views

ABI File To Communicate With Unity Game Engine

So I'm building an HTML5 Unity game that will run in an internet browser attached to the Interplanetary File System. Unity allows for JSON files to be used to send and receive binary data between ...
1
vote
1answer
22 views

eosforumdapp mongodb : unsupported_abi_version_exception: ABI has an unsupported version

Syncing my node, everything works fine. I get a warning though when processing transactions from eosforumdapp and eosforumcpp info 2018-10-20T09:07:14.286 thread-1 mongo_db_plugin.cpp:481 ...
2
votes
0answers
20 views

What's the key_names and key_types mean?

"tables": [{ "table": "account", "type": "account", "index_type": "i64", "key_names" : ["account"], "key_types" : ["name"] } ] In the abi file for the table, it has the key_names and ...
1
vote
1answer
107 views

Getting bin for multiple json payloads via RPC abi_json_to_bin

I'm trying to get the bin data for a multi action transaction similar to account creation but the RPC abi_json_to_bin doesn't seem to accept a list of json payloads. Is there a keyword/struct I should ...
1
vote
0answers
61 views

how to create signature using cleos or other tools? [duplicate]

The contract I am trying to interact with has the following ABI: { "name": "resolvebet", "base": "", "fields": [{ "name": "bet_id", "type": "uint64" },{ "name": "...
2
votes
2answers
89 views

ignore //abi table comment

I have general header, which I wanna include in different contracts: ent.h: //@abi table entities i64 struct entity { entity() {}; uint64_t id; uint64_t primary_key() const { return ...
2
votes
0answers
210 views

The type defined in the ABI is invalid?

after command ./cleos --url http://192.168.1.10:8888 system newaccount --stake-net "10.0000 SYS" --stake-cpu "10.0000 SYS" --buy-ram "10.0000 SYS" eosio david ...
2
votes
0answers
50 views

Is is possible to defer a non abi action using a abi action?

I know we can defer a action in EOS, I invoke a non-abi action from an abi action like this: eosio::transaction txn{}; txn.actions.emplace_back( eosio::permission_level(owner, N(active)), N(...
2
votes
1answer
121 views

empty actions - abi file

Any help why I'm getting empty actions? { "____comment": "This file was generated by eosio-abigen. DO NOT EDIT - 2018-08-22T01:21:53", "version": "eosio::abi/1.0", "types": [], "structs": [{ ...
2
votes
1answer
116 views

what is token hex API and transaction abi?

What is token hex API and transaction abi in the abieos repo? Can ABI be generated for any transaction on the EOS block chain? If yes, then how?
2
votes
0answers
99 views

How does nodeos' abi_json_to_bin exactly work?

From telegram I've been told that using abi_json_to_bin from a wallet can be problematic (leaves you open to MITM attack, if someone intercepts and gives you a bad action data to sign, for example). ...
3
votes
1answer
187 views

How can I generate an ABI out of a wasm?

Currently I've written a rust program to print "5" and converted the same into wasm using the the rust tool (target add wasm32-unknown-unknown). I want this wasm to be executed on the local blockchain ...
0
votes
0answers
47 views

Action firing eosio_assert of another action

I'm not really familiar with leaks or overflows but I've been getting an intermittent bug in my smart contract on the Jungle testnet that is hard to pinpoint. An action, let's call it action A has ...
1
vote
1answer
75 views

Error while producing abi file for 'Hello World' contract

I am reproducing 'Hello World' contract from the docs. It does compile fine with eosiocpp -o hello.wast hello.cpp, but eosiocpp -g hello.abi hello.cpp produce the following error: error: unable to ...
2
votes
0answers
228 views

How to create ricardian clauses in the ABI with eosiocpp

I couldn't find any information on how to automatically include the ricardian clauses in the abi. I always get the error: abi_generator.hpp:68 ricardian_contracts ] Warning, no ricardian ...
1
vote
1answer
193 views

Error 3010008: No ABI found

I was able to push the contract to the jungle test net but i am unable to run the contract. i get this error: Error 3010008: No ABI found what am i doing wrong? thanks.
2
votes
1answer
195 views

How to generate ABI with Ricardian Contracts?

I have created some ricardian contracts with file names like "contract_name.action_name_rc.md". Is it possible to generate ABI file with these Ricardian Contracts automatically? Edit: I have cpp and ...
0
votes
0answers
29 views

Generating helper functions that serialize/deserialize types in ABI spec

According to the soon-to-be-deprecated documentation, "eosiocpp can also be used to generate helper functions that serialize/deserialize the types defined in the ABI spec." The example provided is: ...
2
votes
1answer
335 views

How to pass arrays into a smart contract's action method

I have a smart contract action that needs to be able to take in an array of values as one of its parameters. This array is of arbitrary length. What is the proper method signature to use for the ...
2
votes
1answer
81 views

EOS system contract is too large to execute in local machine!

When I set the eos system contract with mainnet-v1.0.3, it always give me a error, that the transaction is too long and give me the belong error {"now":"2018-06-14T08:16:44.376", "deadline":"2018-06-...
2
votes
1answer
201 views

Error generating abi file for type “double” or “float” using eosiocpp tool

I am writing a smart contract that uses a multi index table with a member type double. //@abi table tbltest i64 struct test{ uint64_t uid; double margin; uuid_t primary_key() const { ...
2
votes
2answers
58 views

eosiocpp tool generates different types

If you look into every ABI file in the contract folder you will find: { "version": "eosio::abi/1.0", "types": [{ "new_type_name": "account_name", "type": "name" }], ... } when I am ...
4
votes
2answers
189 views

Custom struct abi serialization

I am trying to understand, how the string "100000000.000 SYS" is serialized into struct asset from eosio.token example ( cleos push action eosio.token create '[ "eosio", "1000000000.0000 SYS", 0, 0, 0]...
3
votes
2answers
308 views

Tables are not generated in abi file

I have the contract class test : public contract { public: using contract::contract; test(account_name self) : contract(self) {} ... private: struct test_rec { test_hash ...
4
votes
1answer
90 views

Is it possible to declare parameters optional for an action in the ABI?

Seems important if I wish / need to change the signature of my action later that I could add new optional parameters to avoid breaking changes within possible. Is it possible to update the ABI to add ...