diff --git a/docs/interfaces/NFTokenCreateOffer.html b/docs/interfaces/NFTokenCreateOffer.html index f31e3b17..6a764de5 100644 --- a/docs/interfaces/NFTokenCreateOffer.html +++ b/docs/interfaces/NFTokenCreateOffer.html @@ -2,40 +2,40 @@

The NFTokenCreateOffer transaction creates either an offer to buy an NFT the submitting account does not own, or an offer to sell an NFT the submitting account does own.

-

Hierarchy

Index

Properties

Account: string
+

Hierarchy

Index

Properties

Account: string

The unique address of the account that initiated the transaction.

-
AccountTxnID?: string
+
AccountTxnID?: string

Hash value identifying another transaction. If provided, this transaction is only valid if the sending account's previously-sent transaction matches the provided hash.

-
Amount: Amount
+
Amount: Amount

Indicates the amount expected or offered for the Token.

The amount must be non-zero, except when this is a sell offer and the asset is XRP. This would indicate that the current owner of the token is giving it away free, either to anyone at all, or to the account identified by the Destination field.

-
Destination?: string
+
Destination?: string

If present, indicates that this offer may only be accepted by the specified account. Attempts by other accounts to accept this offer MUST fail.

-
Expiration?: number
+
Expiration?: number

Indicates the time after which the offer will no longer be valid. The value is the number of seconds since the Ripple Epoch.

-
Fee?: string
+
Fee?: string

Integer amount of XRP, in drops, to be destroyed as a cost for distributing this transaction to the network. Some transaction types have different minimum requirements.

-
LastLedgerSequence?: number
+
LastLedgerSequence?: number

Highest ledger index this transaction can appear in. Specifying this field places a strict upper limit on how long the transaction can wait to be validated or rejected.

-
Memos?: Memo[]
+
Memos?: Memo[]

Additional arbitrary information used to identify this transaction.

-
NFTokenID: string
+
NFTokenID: string

Identifies the NFTokenID of the NFToken object that the offer references.

-
Owner?: string
+
Owner?: string

Indicates the AccountID of the account that owns the corresponding NFToken.

If the offer is to buy a token, this field must be present @@ -45,27 +45,27 @@ buy a token one already holds is meaningless).

present, as the owner is, implicitly, the same as Account (since an offer to sell a token one doesn't already hold is meaningless).

-
Sequence?: number
+
Sequence?: number

The sequence number of the account sending the transaction. A transaction is only valid if the Sequence number is exactly 1 greater than the previous transaction from the same account. The special case 0 means the transaction is using a Ticket instead.

-
Signers?: Signer[]
+
Signers?: Signer[]

Array of objects that represent a multi-signature which authorizes this transaction.

-
SigningPubKey?: string
+
SigningPubKey?: string

Hex representation of the public key that corresponds to the private key used to sign this transaction. If an empty string, indicates a multi-signature is present in the Signers field instead.

-
SourceTag?: number
+
SourceTag?: number

Arbitrary integer used to identify the reason for this payment, or a sender on whose behalf this transaction is made. Conventionally, a refund should specify the initial payment's SourceTag as the refund payment's DestinationTag.

-
TicketSequence?: number
+
TicketSequence?: number

The sequence number of the ticket to use in place of a Sequence number. If this is provided, Sequence must be 0. Cannot be used with AccountTxnID.

-
TransactionType: "NFTokenCreateOffer"
TxnSignature?: string
+
TransactionType: "NFTokenCreateOffer"
TxnSignature?: string

The signature that verifies this transaction as originating from the account it says it is from.

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/NFTokenCreateOfferFlagsInterface.html b/docs/interfaces/NFTokenCreateOfferFlagsInterface.html index 712bb1c3..f4389647 100644 --- a/docs/interfaces/NFTokenCreateOfferFlagsInterface.html +++ b/docs/interfaces/NFTokenCreateOfferFlagsInterface.html @@ -1,4 +1,4 @@ NFTokenCreateOfferFlagsInterface | xrpl
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface NFTokenCreateOfferFlagsInterface

Map of flags to boolean values representing NFTokenCreateOffer transaction flags.

-

Hierarchy

  • GlobalFlags
    • NFTokenCreateOfferFlagsInterface

Index

Properties

Properties

tfSellToken?: boolean

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

Index

Properties

Properties

tfSellNFToken?: boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/packages/xrpl/src/models/transactions/NFTokenCreateOffer.ts b/packages/xrpl/src/models/transactions/NFTokenCreateOffer.ts index 30f7ca4e..bc1b081c 100644 --- a/packages/xrpl/src/models/transactions/NFTokenCreateOffer.ts +++ b/packages/xrpl/src/models/transactions/NFTokenCreateOffer.ts @@ -20,7 +20,7 @@ export enum NFTokenCreateOfferFlags { * If set, indicates that the offer is a sell offer. * Otherwise, it is a buy offer. */ - tfSellToken = 0x00000001, + tfSellNFToken = 0x00000001, } /** @@ -30,7 +30,7 @@ export enum NFTokenCreateOfferFlags { * @category Transaction Flags */ export interface NFTokenCreateOfferFlagsInterface extends GlobalFlags { - tfSellToken?: boolean + tfSellNFToken?: boolean } /** @@ -136,7 +136,7 @@ export function validateNFTokenCreateOffer(tx: Record): void { if ( typeof tx.Flags === 'number' && - isFlagEnabled(tx.Flags, NFTokenCreateOfferFlags.tfSellToken) + isFlagEnabled(tx.Flags, NFTokenCreateOfferFlags.tfSellNFToken) ) { validateNFTokenSellOfferCases(tx) } else { diff --git a/packages/xrpl/test/models/NFTokenCreateOffer.ts b/packages/xrpl/test/models/NFTokenCreateOffer.ts index 30c6dc9d..22098a15 100644 --- a/packages/xrpl/test/models/NFTokenCreateOffer.ts +++ b/packages/xrpl/test/models/NFTokenCreateOffer.ts @@ -31,7 +31,7 @@ describe('NFTokenCreateOffer', function () { TransactionType: 'NFTokenCreateOffer', NFTokenID: NFTOKEN_ID, Amount: '1', - Flags: NFTokenCreateOfferFlags.tfSellToken, + Flags: NFTokenCreateOfferFlags.tfSellNFToken, Expiration: 1000, Destination: 'r9LqNeG6qHxjeUocjvVki2XR35weJ9mZgQ', Account: 'rWYkbWkCeg8dP6rXALnjgZSjjLyih5NXm', @@ -47,7 +47,7 @@ describe('NFTokenCreateOffer', function () { TransactionType: 'NFTokenCreateOffer', NFTokenID: NFTOKEN_ID, Amount: '0', - Flags: NFTokenCreateOfferFlags.tfSellToken, + Flags: NFTokenCreateOfferFlags.tfSellNFToken, Expiration: 1000, Destination: 'r9LqNeG6qHxjeUocjvVki2XR35weJ9mZgQ', Account: 'rWYkbWkCeg8dP6rXALnjgZSjjLyih5NXm', @@ -82,7 +82,7 @@ describe('NFTokenCreateOffer', function () { TransactionType: 'NFTokenCreateOffer', NFTokenID: NFTOKEN_ID, Amount: '1', - Flags: NFTokenCreateOfferFlags.tfSellToken, + Flags: NFTokenCreateOfferFlags.tfSellNFToken, Expiration: 1000, Destination: 'rWYkbWkCeg8dP6rXALnjgZSjjLyih5NXm', Account: 'rWYkbWkCeg8dP6rXALnjgZSjjLyih5NXm', @@ -162,7 +162,7 @@ describe('NFTokenCreateOffer', function () { Owner: 'r9LqNeG6qHxjeUocjvVki2XR35weJ9mZgQ', Account: 'rWYkbWkCeg8dP6rXALnjgZSjjLyih5NXm', NFTokenID: NFTOKEN_ID, - Flags: NFTokenCreateOfferFlags.tfSellToken, + Flags: NFTokenCreateOfferFlags.tfSellNFToken, Amount: '1', Fee: '5000000', Sequence: 2470665,