提交 4c1973b9 编写于 作者: D dskvr

remove account references

上级 ffdae6de
/**
* @file account.h
* @copyright defined in eos/LICENSE.txt
*/
#pragma once
#include <eosiolib/types.h>
extern "C" {
/**
* @brief Retrieve the balance for the provided account
* @details Retrieve the balance for the provided account
*
* @param balance - a pointer to a range of memory to store balance data
* @param len - length of the range of memory to store balance data
* @return true if account information is retrieved
*
* @pre `balance` is a valid pointer to a range of memory at least datalen bytes long
* @pre `balance` is a pointer to a balance object
* @pre *((uint64_t*)balance) stores the primary key
*
* Example:
*
* @code
* balance b;
* b.account = N(myaccount);
* balance(b, sizeof(balance));
* @endcode
*
* @deprecated This is deprecated in Dawn 3.0
*/
bool account_balance_get( void* balance, uint32_t len );
}
/**
* @file account.hpp
* @copyright defined in eos/LICENSE.txt
* @brief Defines types and ABI for account API interactions
*
*/
#pragma once
#include <eosiolib/account.h>
#include <eosiolib/print.hpp>
#include <eosiolib/asset.hpp>
namespace eosio { namespace account {
/**
* @brief The binary structure expected and populated by native balance function.
* @details
* Example:
*
* @code
* account_balance test1_balance;
* test1_balance.account = N(test1);
* if (account_api::get(test1_balance))
* {
* eosio::print("test1 balance=", test1_balance.eos_balance, "\n");
* }
* @endcode
*
* @deprecated This is deprecated in Dawn 3.0
*/
struct PACKED(account_balance) {
/**
* Name of the account who's balance this is
*
* @brief Name of the account who's balance this is
*/
account_name account;
/**
* Balance for this account
*
* @brief Balance for this account
*/
asset eos_balance;
/**
* Staked balance for this account
*
* @brief Staked balance for this account
*/
asset staked_balance;
/**
* Unstaking balance for this account
*
* @brief Unstaking balance for this account
*/
asset unstaking_balance;
/**
* Time at which last unstaking occurred for this account
*
* @brief Time at which last unstaking occurred for this account
*/
time last_unstaking_time;
};
/**
* Retrieve a populated balance structure
*
* @brief Retrieve a populated balance structure
* @param acnt - account
* @return true if account's balance is found
*
* @deprecated This is deprecated in Dawn 3.0
*/
bool get(account_balance& acnt)
{
return account_balance_get(&acnt, sizeof(account_balance));
}
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册