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 [asset]

The tag has no usage guidance.

0
votes
0answers
14 views

how to create custom datatype and pass it to an action like a single string (like we do with asset)?

I have the following mockup datatype that has an internal uint128_t: #pragma once #include <eosiolib/eosio.hpp> using namespace std; using namespace eosio; struct my_datatype { uint128_t ...
3
votes
1answer
330 views

How to pass a 'symbol_name' into an action?

Does anyone know how to pass an assets symbol_name in as an argument to an action? I have been trying the following: .abi "types": [{ "new_type_name": "symbol_name", "type": "uint64" }] and .cpp ...
4
votes
2answers
193 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]...
1
vote
1answer
46 views

Does EOS have builtin pegged asset like bitshares does?

In bitshares there are builtin support for pegged asset, like bitUSD, bitCNY etc, does EOS have any of such mechanism?