Loading...
Searching...
No Matches
contract_tools.cpp File Reference
#include <glog/logging.h>
#include <boost/algorithm/string.hpp>
#include <vector>
#include "interface/contract/contract_client.h"
#include "platform/config/resdb_config_utils.h"

Go to the source code of this file.

Functions

void ShowUsage ()
 
void CreateAccount (ContractClient *client)
 
void DeployContract (ContractClient *client, const std::string &caller_address, const std::string &contract_name, const std::string &contract_path, const std::vector< std::string > &init_params)
 
void ExecuteContract (ContractClient *client, const std::string &caller_address, const std::string &contract_address, const std::string &func_name, const std::vector< std::string > &params)
 
int main (int argc, char **argv)
 

Function Documentation

◆ CreateAccount()

void CreateAccount ( ContractClient *  client)

Definition at line 39 of file contract_tools.cpp.

◆ DeployContract()

void DeployContract ( ContractClient *  client,
const std::string &  caller_address,
const std::string &  contract_name,
const std::string &  contract_path,
const std::vector< std::string > &  init_params 
)

Definition at line 48 of file contract_tools.cpp.

◆ ExecuteContract()

void ExecuteContract ( ContractClient *  client,
const std::string &  caller_address,
const std::string &  contract_address,
const std::string &  func_name,
const std::vector< std::string > &  params 
)

Definition at line 61 of file contract_tools.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 74 of file contract_tools.cpp.

◆ ShowUsage()

void ShowUsage ( )

Definition at line 32 of file contract_tools.cpp.