-
Notifications
You must be signed in to change notification settings - Fork 512
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
7 changed files
with
193 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Transaction } from '../transactions' | ||
|
||
import BaseLedgerEntry from './BaseLedgerEntry' | ||
|
||
/** | ||
* The EmittedTxn object type contains the | ||
* | ||
* @category Ledger Entries | ||
*/ | ||
export default interface EmittedTxn extends BaseLedgerEntry { | ||
LedgerEntryType: 'EmittedTxn' | ||
|
||
EmittedTxn: Transaction | ||
|
||
/** | ||
* A hint indicating which page of the sender's owner directory links to this | ||
* object, in case the directory consists of multiple pages. | ||
*/ | ||
OwnerNode: 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,27 @@ | ||
import { Hook as WHook } from '../common' | ||
|
||
import BaseLedgerEntry from './BaseLedgerEntry' | ||
|
||
/** | ||
* The Hook object type contains the | ||
* | ||
* @category Ledger Entries | ||
*/ | ||
export default interface Hook extends BaseLedgerEntry { | ||
LedgerEntryType: 'Hook' | ||
|
||
/** The identifying (classic) address of this account. */ | ||
Account: string | ||
|
||
/** | ||
* A hint indicating which page of the sender's owner directory links to this | ||
* object, in case the directory consists of multiple pages. | ||
*/ | ||
OwnerNode: string | ||
|
||
PreviousTxnID: string | ||
|
||
PreviousTxnLgrSeq: number | ||
|
||
Hooks: WHook[] | ||
} |
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,67 @@ | ||
import { HookParameter } from '../common' | ||
|
||
import BaseLedgerEntry from './BaseLedgerEntry' | ||
|
||
/** | ||
* The HookDefintion object type contains the | ||
* | ||
* @category Ledger Entries | ||
*/ | ||
export default interface HookDefintion extends BaseLedgerEntry { | ||
LedgerEntryType: 'HookDefintion' | ||
|
||
/** | ||
* The flags that are set on the hook. | ||
*/ | ||
Flags: number | ||
|
||
/** | ||
* This field contains a string that is used to uniquely identify the hook. | ||
*/ | ||
HookHash: string | ||
|
||
/** | ||
* The transactions that triggers the hook. Represented as a 256Hash | ||
*/ | ||
HookOn?: string | ||
|
||
/** | ||
* The namespace of the hook. | ||
*/ | ||
HookNamespace?: string | ||
|
||
/** | ||
* The API version of the hook. | ||
*/ | ||
HookApiVersion?: string | ||
|
||
/** | ||
* The parameters of the hook. | ||
*/ | ||
HookParameters?: HookParameter[] | ||
|
||
/** | ||
* The code that is executed when the hook is triggered. | ||
*/ | ||
CreateCode?: string | ||
|
||
/** | ||
* This is an optional field that contains the transaction ID of the hook set. | ||
*/ | ||
HookSetTxnID?: string | ||
|
||
/** | ||
* This is an optional field that contains the number of references to this hook. | ||
*/ | ||
ReferenceCount?: number | ||
|
||
/** | ||
* This is an optional field that contains the fee associated with the hook. | ||
*/ | ||
Fee?: string | ||
|
||
/** | ||
* This is an optional field that contains the callback fee associated with the hook. | ||
*/ | ||
HookCallbackFee?: number | ||
} |
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,29 @@ | ||
import BaseLedgerEntry from './BaseLedgerEntry' | ||
|
||
/** | ||
* The HookState object type contains the | ||
* | ||
* @category Ledger Entries | ||
*/ | ||
export default interface HookState extends BaseLedgerEntry { | ||
LedgerEntryType: 'HookState' | ||
|
||
/** | ||
* A hint indicating which page of the sender's owner directory links to this | ||
* object, in case the directory consists of multiple pages. | ||
*/ | ||
OwnerNode: string | ||
|
||
/** | ||
* The HookStateKey property contains the key associated with this hook state, | ||
* and the HookStateData property contains the data associated with this hook state. | ||
*/ | ||
HookStateKey: string | ||
|
||
/** | ||
* The `HookStateData` property contains the data associated with this hook state. | ||
* It is typically a string containing the data associated with this hook state, | ||
* such as an identifier or other information. | ||
*/ | ||
HookStateData: 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
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