-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide types for effects (closes #299).
Types provided for effects, with the Go package being the reference. Moved Asset, Trade and Offer Types to their own files. Kept service_api exporting back types imported to not break anything in other files.
- Loading branch information
1 parent
563ab74
commit e6c622e
Showing
7 changed files
with
369 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
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,15 @@ | ||
import { AssetType } from "stellar-base"; | ||
import { Horizon } from "./../horizon_api"; | ||
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.