feat: NFT support (#1829)

* add NFTokenBurn and NFTokenMint

* add NFTokenCreateOffer

* add NFTokenCancelOffer

* add NFTokenAcceptOffer

* add requests and responses

* make a beta 2.1.0

* rename TokenIDs to TokenOffers

* add validations and fixup docs

* add tests

* add missing error codes to binary codec

* adds history changes
This commit is contained in:
ledhed2222
2021-12-17 18:26:47 -05:00
committed by GitHub
parent c0a19a8417
commit 46a8adcac9
26 changed files with 1314 additions and 41 deletions

View File

@@ -40,6 +40,10 @@ export enum AccountSetAsfFlags {
asfDefaultRipple = 8,
/** Enable Deposit Authorization on this account. */
asfDepositAuth = 9,
/**
* Allow another account to mint and burn tokens on behalf of this account.
*/
asfAuthorizedMinter = 10,
}
/**
@@ -135,6 +139,11 @@ export interface AccountSet extends BaseTransaction {
* digits. Valid values are 3 to 15 inclusive, or 0 to disable.
*/
TickSize?: number
/**
* Sets an alternate account that is allowed to mint NFTokens on this
* account's behalf using NFTokenMint's `Issuer` field.
*/
Minter?: string
}
const MIN_TICK_SIZE = 3