forked from stellar/js-stellar-sdk
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue stellar#299: Types peovided for effects, with Go Package being …
…the reference, in addition to moving Asset and Offer Types to their own files.
- Loading branch information
1 parent
563ab74
commit 1b3c7fb
Showing
6 changed files
with
387 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export interface AccountRecordSigners { | ||
key: string; | ||
weight: number; | ||
type: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { AssetType } from "stellar-base"; | ||
import { Horizon } from "./../horizon_api"; | ||
|
||
export interface OfferAsset { | ||
asset_type: AssetType; | ||
asset_code?: string; | ||
asset_issuer?: string; | ||
} | ||
|
||
export interface AssetRecord extends Horizon.BaseResponse { | ||
asset_type: AssetType.credit4 | AssetType.credit12; | ||
asset_code: string; | ||
asset_issuer: string; | ||
paging_token: string; | ||
accounts: Horizon.AssetAccounts; | ||
num_claimable_balances: number; | ||
balances: Horizon.AssetBalances; | ||
claimable_balances_amount: string; | ||
amount: string; | ||
num_accounts: number; | ||
flags: Horizon.Flags; | ||
} |
Oops, something went wrong.