138 {
139 ilog(
"create_test_accounts");
140 std::vector<signed_transaction> trxs;
141 trxs.reserve(2);
142
143 try {
144 name creator(init_name);
145
147
151
154
162
163
164 {
166
167
168 {
171
173 }
174
175 {
178
180 }
181
182 {
185
187 }
188
191 trx.
sign(creator_priv_key, chainid);
192 trxs.emplace_back(std::move(trx));
193 }
194
195
196 {
198
200
203 handler.
code.assign(wasm.begin(), wasm.end());
204
206
207 {
212 }
213
214 {
217 act.
name =
"create"_n;
219 act.
data = sysio_token_serializer.variant_to_binary(
"create",
224 }
225 {
228 act.
name =
"issue"_n;
230 act.
data = sysio_token_serializer.variant_to_binary(
"issue",
235 }
236 {
239 act.
name =
"transfer"_n;
241 act.
data = sysio_token_serializer.variant_to_binary(
"transfer",
246 }
247 {
250 act.
name =
"transfer"_n;
252 act.
data = sysio_token_serializer.variant_to_binary(
"transfer",
257 }
258
262 trx.
sign(txn_test_receiver_C_priv_key, chainid);
263 trxs.emplace_back(std::move(trx));
264 }
265 } catch ( const std::bad_alloc& ) {
266 throw;
267 } catch ( const boost::interprocess::bad_alloc& ) {
268 throw;
271 return;
272 } catch (const std::exception& e) {
274 return;
275 }
276
278 }
abstract_plugin & get_plugin(const string &name) const
public_key get_public_key() const
static private_key regenerate(const typename KeyType::data_type &data)
Used to generate a useful error report when an exception is thrown.
virtual std::shared_ptr< exception > dynamic_copy_exception() const
static variant from_string(const string &utf8_str, const parse_type ptype=parse_type::legacy_parser, uint32_t max_depth=DEFAULT_MAX_RECURSION_DEPTH)
An order-preserving dictionary of variants.
static std_exception_wrapper from_current_exception(const std::exception &e)
void pack(Stream &s, const std::deque< T > &value)
constexpr microseconds seconds(int64_t s)
fc::string format_string(const fc::string &, const variant_object &, bool minimize=false)
uint32_t next(octet_iterator &it, octet_iterator end)
const fc::microseconds abi_serializer_max_time
static yield_function_t create_yield_function(const fc::microseconds &max_serialization_time)
vector< permission_level > authorization
Immutable except for fc::from_variant.
std::string to_string() const
const signature_type & sign(const private_key_type &key, const chain_id_type &chain_id)
void push_transactions(std::vector< signed_transaction > &&trxs, const std::function< void(fc::exception_ptr)> &next)