Questions tagged [singleton]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
32 views

How to match object value from fc::variant which is std::pair type in contract unit test via Boost test?

This is example of object singletone table which i trying to test: { "rows": [{ "account": "ins", "first_approve": { "first": "apk", "second": 1 ...
2
votes
3answers
1k views

How to store contract state as singleton?

What is the best way to store fields specific for contract, for example if contract has 3 fields (2 strings, 1 uint64_t) and they can be changed? Should I create new table for this, it would always be ...
2
votes
1answer
361 views

How do you construct a singleton in dawn4?

Looks like they changed the constructor for singletons or I am doing this incorrectly. Can anyone advise? #include <eosiolib/eosio.hpp> #include <eosiolib/singleton.hpp> using namespace ...