-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
63 additions
and
2 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,52 @@ | ||
components: | ||
schemas: | ||
TrustSetTransaction: | ||
$id: TrustSetTransaction | ||
allOf: | ||
- $ref: '../base.yaml#/components/schemas/BaseTransaction' | ||
type: object | ||
description: | | ||
Create or modify a trust line linking two accounts. | ||
required: | ||
- LimitAmount | ||
properties: | ||
LimitAmount: | ||
$ref: '../base.yaml#/components/schemas/CurrencyAmount' | ||
description: | | ||
Object defining the trust line to create or modify, in the format of a Currency Amount. | ||
QualityIn: | ||
type: integer | ||
format: uint32 | ||
description: | | ||
(Optional) Value incoming balances on this trust line at the ratio of this number per | ||
1,000,000,000 units. A value of 0 is shorthand for treating balances at face value. | ||
QualityOut: | ||
type: integer | ||
format: uint32 | ||
description: | | ||
(Optional) Value outgoing balances on this trust line at the ratio of this number per | ||
1,000,000,000 units. A value of 0 is shorthand for treating balances at face value. | ||
TrustSetFlag: | ||
$id: TrustSetFlag | ||
type: string | ||
enum: | ||
- tfSetfAuth: 0x00010000 | ||
- tfSetNoRipple: 0x00020000 | ||
- tfClearNoRipple: 0x00040000 | ||
- tfSetFreeze: 0x00100000 | ||
- tfClearFreeze: 0x00200000 | ||
description: Enum representing flags for TrustSet transactions. | ||
x-enum-descriptions: | ||
tfSetfAuth: Authorize the other party to hold currency issued by this account. (No effect unless using the asfRequireAuth AccountSet flag.) Cannot be unset. | ||
tfSetNoRipple: Enable the No Ripple flag, which blocks rippling between two trust lines of the same currency if this flag is enabled on both. | ||
tfClearNoRipple: Disable the No Ripple flag, allowing rippling on this trust line. | ||
tfSetFreeze: Freeze the trust line. | ||
tfClearFreeze: Unfreeze the trust line. | ||
TrustSetErrorCode: | ||
$id: TrustSetErrorCode | ||
type: string | ||
enum: | ||
- tecNO_PERMISSION | ||
description: Enum representing possible error codes for TrustSet transactions. | ||
x-enum-descriptions: | ||
tecNO_PERMISSION: If the account specified in LimitAmount.issuer is blocking incoming trust lines, the transaction fails. |