Skip to content

Commit

Permalink
Merge pull request #4 from steemit/hf20-testnet-appbase
Browse files Browse the repository at this point in the history
Hf20 testnet appbase
  • Loading branch information
roadscape authored Sep 20, 2018
2 parents dd9b3d7 + 5df4b7d commit 922379c
Show file tree
Hide file tree
Showing 99 changed files with 1,060 additions and 1,492 deletions.
54 changes: 33 additions & 21 deletions dist/dsteem.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ declare module 'dsteem/steem/asset' {
/**
* Asset symbol string.
*/
export type AssetSymbol = 'STEEM' | 'VESTS' | 'SBD';
export type AssetSymbol = 'STEEM' | 'VESTS' | 'SBD' | 'TESTS' | 'TBD';
/**
* Class representing a steem asset, e.g. `1.000 STEEM` or `12.112233 VESTS`.
*/
Expand Down Expand Up @@ -921,7 +921,7 @@ declare module 'dsteem/steem/operation' {
/**
* Operation name.
*/
export type OperationName = 'account_create' | 'account_create_with_delegation' | 'account_update' | 'account_witness_proxy' | 'account_witness_vote' | 'cancel_transfer_from_savings' | 'challenge_authority' | 'change_recovery_account' | 'claim_reward_balance' | 'comment' | 'comment_options' | 'convert' | 'custom' | 'custom_binary' | 'custom_json' | 'decline_voting_rights' | 'delegate_vesting_shares' | 'delete_comment' | 'escrow_approve' | 'escrow_dispute' | 'escrow_release' | 'escrow_transfer' | 'feed_publish' | 'limit_order_cancel' | 'limit_order_create' | 'limit_order_create2' | 'pow' | 'pow2' | 'prove_authority' | 'recover_account' | 'report_over_production' | 'request_account_recovery' | 'reset_account' | 'set_reset_account' | 'set_withdraw_vesting_route' | 'transfer' | 'transfer_from_savings' | 'transfer_to_savings' | 'transfer_to_vesting' | 'vote' | 'withdraw_vesting' | 'witness_update';
export type OperationName = 'account_create' | 'account_create_with_delegation' | 'account_update' | 'account_witness_proxy' | 'account_witness_vote' | 'cancel_transfer_from_savings' | 'change_recovery_account' | 'claim_account' | 'claim_reward_balance' | 'create_claimed_account' | 'comment' | 'comment_options' | 'convert' | 'custom' | 'custom_binary' | 'custom_json' | 'decline_voting_rights' | 'delegate_vesting_shares' | 'delete_comment' | 'escrow_approve' | 'escrow_dispute' | 'escrow_release' | 'escrow_transfer' | 'feed_publish' | 'limit_order_cancel' | 'limit_order_create' | 'limit_order_create2' | 'pow' | 'pow2' | 'recover_account' | 'report_over_production' | 'request_account_recovery' | 'reset_account' | 'set_reset_account' | 'set_withdraw_vesting_route' | 'transfer' | 'transfer_from_savings' | 'transfer_to_savings' | 'transfer_to_vesting' | 'vote' | 'withdraw_vesting' | 'witness_update';
/**
* Virtual operation name.
*/
Expand Down Expand Up @@ -1008,14 +1008,6 @@ declare module 'dsteem/steem/operation' {
request_id: number;
};
}
export interface ChallengeAuthorityOperation extends Operation {
0: 'challenge_authority';
1: {
challenger: string;
challenged: string;
require_owner: boolean;
};
}
/**
* Each account lists another account as their recovery account.
* The recovery account has the ability to create account_recovery_requests
Expand Down Expand Up @@ -1060,6 +1052,17 @@ declare module 'dsteem/steem/operation' {
reward_vests: string | Asset;
};
}
export interface ClaimAccountOperation extends Operation {
0: 'claim_account';
1: {
creator: string;
fee: string | Asset;
/**
* Extensions. Not currently used.
*/
extensions: any[];
};
}
export interface CommentOperation extends Operation {
0: 'comment';
1: {
Expand Down Expand Up @@ -1098,6 +1101,22 @@ declare module 'dsteem/steem/operation' {
amount: Asset | string;
};
}
export interface CreateClaimedAccountOperation extends Operation {
0: 'create_claimed_account';
1: {
creator: string;
new_account_name: string;
owner: AuthorityType;
active: AuthorityType;
posting: AuthorityType;
memo_key: string | PublicKey;
json_metadata: string;
/**
* Extensions. Not currently used.
*/
extensions: any[];
};
}
export interface CustomOperation extends Operation {
0: 'custom';
1: {
Expand Down Expand Up @@ -1347,13 +1366,6 @@ declare module 'dsteem/steem/operation' {
props: any;
};
}
export interface ProveAuthorityOperation extends Operation {
0: 'prove_authority';
1: {
challenged: string;
require_owner: boolean;
};
}
/**
* Recover an account to a new authority using a previous authority and verification
* of the recovery account as proof of identity. This operation can only succeed
Expand Down Expand Up @@ -1997,11 +2009,11 @@ declare module 'dsteem/helpers/broadcast' {
*/
json(data: CustomJsonOperation[1], key: PrivateKey): Promise<TransactionConfirmation>;
/**
* Create a new account.
* Create a new account on testnet.
* @param options New account options.
* @param key Private active key of account creator.
*/
createAccount(options: CreateAccountOptions, key: PrivateKey): Promise<TransactionConfirmation>;
createTestAccount(options: CreateAccountOptions, key: PrivateKey): Promise<TransactionConfirmation>;
/**
* Update account.
* @param data The account_update payload.
Expand Down Expand Up @@ -2037,7 +2049,7 @@ declare module 'dsteem/helpers/broadcast' {
*/
send(transaction: SignedTransaction): Promise<TransactionConfirmation>;
/**
* Convenience for calling `network_broadcast_api`.
* Convenience for calling `condenser_api`.
*/
call(method: string, params?: any[]): Promise<any>;
}
Expand Down Expand Up @@ -2337,7 +2349,7 @@ declare module 'dsteem/client' {
* @param params Array of parameters to pass to the method, optional.
*
*/
call(api: string, method: string, params?: any[]): Promise<any>;
call(api: string, method: string, params?: any): Promise<any>;
}

}
Expand Down
2 changes: 1 addition & 1 deletion dist/dsteem.js

Large diffs are not rendered by default.

Binary file modified dist/dsteem.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/dsteem.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/assets/js/search.js

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions docs/classes/asset.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Asset | dsteem</title>
<title>Asset | @steemit/dsteem</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
Expand All @@ -22,7 +22,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../index.html" class="title">dsteem</a>
<a href="../index.html" class="title">@steemit/dsteem</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
Expand Down Expand Up @@ -129,7 +129,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/jnordberg/dsteem/blob/master/src/steem/asset.ts#L101">steem/asset.ts:101</a></li>
<li>Defined in <a href="https://github.com/steemit/dsteem/blob/master/src/steem/asset.ts#L101">steem/asset.ts:101</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -154,7 +154,7 @@ <h3>amount</h3>
<div class="tsd-signature tsd-kind-icon">amount<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/jnordberg/dsteem/blob/master/src/steem/asset.ts#L103">steem/asset.ts:103</a></li>
<li>Defined in <a href="https://github.com/steemit/dsteem/blob/master/src/steem/asset.ts#L103">steem/asset.ts:103</a></li>
</ul>
</aside>
</section>
Expand All @@ -164,7 +164,7 @@ <h3>symbol</h3>
<div class="tsd-signature tsd-kind-icon">symbol<span class="tsd-signature-symbol">:</span> <a href="../globals.html#assetsymbol" class="tsd-signature-type">AssetSymbol</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/jnordberg/dsteem/blob/master/src/steem/asset.ts#L103">steem/asset.ts:103</a></li>
<li>Defined in <a href="https://github.com/steemit/dsteem/blob/master/src/steem/asset.ts#L103">steem/asset.ts:103</a></li>
</ul>
</aside>
</section>
Expand All @@ -181,7 +181,7 @@ <h3>add</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/jnordberg/dsteem/blob/master/src/steem/asset.ts#L128">steem/asset.ts:128</a></li>
<li>Defined in <a href="https://github.com/steemit/dsteem/blob/master/src/steem/asset.ts#L130">steem/asset.ts:130</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -209,7 +209,7 @@ <h3>divide</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/jnordberg/dsteem/blob/master/src/steem/asset.ts#L155">steem/asset.ts:155</a></li>
<li>Defined in <a href="https://github.com/steemit/dsteem/blob/master/src/steem/asset.ts#L157">steem/asset.ts:157</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -237,7 +237,7 @@ <h3>get<wbr>Precision</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/jnordberg/dsteem/blob/master/src/steem/asset.ts#L108">steem/asset.ts:108</a></li>
<li>Defined in <a href="https://github.com/steemit/dsteem/blob/master/src/steem/asset.ts#L108">steem/asset.ts:108</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -259,7 +259,7 @@ <h3>multiply</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/jnordberg/dsteem/blob/master/src/steem/asset.ts#L146">steem/asset.ts:146</a></li>
<li>Defined in <a href="https://github.com/steemit/dsteem/blob/master/src/steem/asset.ts#L148">steem/asset.ts:148</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -287,7 +287,7 @@ <h3>subtract</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/jnordberg/dsteem/blob/master/src/steem/asset.ts#L137">steem/asset.ts:137</a></li>
<li>Defined in <a href="https://github.com/steemit/dsteem/blob/master/src/steem/asset.ts#L139">steem/asset.ts:139</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -315,7 +315,7 @@ <h3>toJSON</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/jnordberg/dsteem/blob/master/src/steem/asset.ts#L164">steem/asset.ts:164</a></li>
<li>Defined in <a href="https://github.com/steemit/dsteem/blob/master/src/steem/asset.ts#L166">steem/asset.ts:166</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -337,7 +337,7 @@ <h3>to<wbr>String</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/jnordberg/dsteem/blob/master/src/steem/asset.ts#L121">steem/asset.ts:121</a></li>
<li>Defined in <a href="https://github.com/steemit/dsteem/blob/master/src/steem/asset.ts#L123">steem/asset.ts:123</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -359,7 +359,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> from</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/jnordberg/dsteem/blob/master/src/steem/asset.ts#L72">steem/asset.ts:72</a></li>
<li>Defined in <a href="https://github.com/steemit/dsteem/blob/master/src/steem/asset.ts#L72">steem/asset.ts:72</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -394,7 +394,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> from<wbr>String</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/jnordberg/dsteem/blob/master/src/steem/asset.ts#L52">steem/asset.ts:52</a></li>
<li>Defined in <a href="https://github.com/steemit/dsteem/blob/master/src/steem/asset.ts#L52">steem/asset.ts:52</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -425,7 +425,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> max</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/jnordberg/dsteem/blob/master/src/steem/asset.ts#L98">steem/asset.ts:98</a></li>
<li>Defined in <a href="https://github.com/steemit/dsteem/blob/master/src/steem/asset.ts#L98">steem/asset.ts:98</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -456,7 +456,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> min</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/jnordberg/dsteem/blob/master/src/steem/asset.ts#L90">steem/asset.ts:90</a></li>
<li>Defined in <a href="https://github.com/steemit/dsteem/blob/master/src/steem/asset.ts#L90">steem/asset.ts:90</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
14 changes: 7 additions & 7 deletions docs/classes/authority.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Authority | dsteem</title>
<title>Authority | @steemit/dsteem</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
Expand All @@ -22,7 +22,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../index.html" class="title">dsteem</a>
<a href="../index.html" class="title">@steemit/dsteem</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
Expand Down Expand Up @@ -119,7 +119,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/jnordberg/dsteem/blob/master/src/steem/account.ts#L68">steem/account.ts:68</a></li>
<li>Defined in <a href="https://github.com/steemit/dsteem/blob/master/src/steem/account.ts#L68">steem/account.ts:68</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down Expand Up @@ -153,7 +153,7 @@ <h3>account_<wbr>auths</h3>
<aside class="tsd-sources">
<p>Implementation of <a href="../interfaces/authoritytype.html">AuthorityType</a>.<a href="../interfaces/authoritytype.html#account_auths">account_auths</a></p>
<ul>
<li>Defined in <a href="https://github.com/jnordberg/dsteem/blob/master/src/steem/account.ts#L67">steem/account.ts:67</a></li>
<li>Defined in <a href="https://github.com/steemit/dsteem/blob/master/src/steem/account.ts#L67">steem/account.ts:67</a></li>
</ul>
</aside>
</section>
Expand All @@ -164,7 +164,7 @@ <h3>key_<wbr>auths</h3>
<aside class="tsd-sources">
<p>Implementation of <a href="../interfaces/authoritytype.html">AuthorityType</a>.<a href="../interfaces/authoritytype.html#key_auths">key_auths</a></p>
<ul>
<li>Defined in <a href="https://github.com/jnordberg/dsteem/blob/master/src/steem/account.ts#L68">steem/account.ts:68</a></li>
<li>Defined in <a href="https://github.com/steemit/dsteem/blob/master/src/steem/account.ts#L68">steem/account.ts:68</a></li>
</ul>
</aside>
</section>
Expand All @@ -175,7 +175,7 @@ <h3>weight_<wbr>threshold</h3>
<aside class="tsd-sources">
<p>Implementation of <a href="../interfaces/authoritytype.html">AuthorityType</a>.<a href="../interfaces/authoritytype.html#weight_threshold">weight_threshold</a></p>
<ul>
<li>Defined in <a href="https://github.com/jnordberg/dsteem/blob/master/src/steem/account.ts#L66">steem/account.ts:66</a></li>
<li>Defined in <a href="https://github.com/steemit/dsteem/blob/master/src/steem/account.ts#L66">steem/account.ts:66</a></li>
</ul>
</aside>
</section>
Expand All @@ -192,7 +192,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> from</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/jnordberg/dsteem/blob/master/src/steem/account.ts#L52">steem/account.ts:52</a></li>
<li>Defined in <a href="https://github.com/steemit/dsteem/blob/master/src/steem/account.ts#L52">steem/account.ts:52</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
Loading

0 comments on commit 922379c

Please sign in to comment.