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.

0
votes
0answers
6 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
21 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
1answer
47 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
63 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
30 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
52 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
48 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
35 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
69 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
20 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
49 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
69 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
67 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
104 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
23 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: ...
1
vote
1answer
103 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
74 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
120 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
0answers
41 views

eosiocpp tool generates different types

If you look into every abi file from contract colder you will find next: { "version": "eosio::abi/1.0", "types": [{ "new_type_name": "account_name", "type": "name" }], ... } and when ...
4
votes
2answers
85 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]...
2
votes
1answer
148 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
45 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 ...