/
XChainOwnedCreateAccountClaimID.ts
65 lines (53 loc) · 1.81 KB
/
XChainOwnedCreateAccountClaimID.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import { XChainBridge } from '../common'
import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
/**
* The XChainOwnedCreateAccountClaimID ledger object is used to collect attestations
* for creating an account via a cross-chain transfer.
*
* @category Ledger Entries
*/
export default interface XChainOwnedCreateAccountClaimID
extends BaseLedgerEntry,
HasPreviousTxnID {
LedgerEntryType: 'XChainOwnedCreateAccountClaimID'
/** The account that owns this object. */
Account: string
/**
* The door accounts and assets of the bridge this object correlates to.
*/
XChainBridge: XChainBridge
/**
* An integer that determines the order that accounts created through
* cross-chain transfers must be performed. Smaller numbers must execute
* before larger numbers.
*/
XChainAccountCreateCount: number
/**
* Attestations collected from the witness servers. This includes the parameters
* needed to recreate the message that was signed, including the amount, destination,
* signature reward amount, and reward account for that signature. With the
* exception of the reward account, all signatures must sign the message created with
* common parameters.
*/
XChainCreateAccountAttestations: Array<{
// TODO: add docs
XChainCreateAccountProofSig: {
Amount: string
AttestationRewardAccount: string
AttestationSignerAccount: string
Destination: string
PublicKey: string
WasLockingChainSend: 0 | 1
}
}>
/**
* A bit-map of boolean flags. No flags are defined for,
* XChainOwnedCreateAccountClaimIDs, so this value is always 0.
*/
Flags: 0
/**
* 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
}