@protokol/nft-base-crypto
Version:
Transaction Builders For Base NFT Transaction Types
29 lines • 1.16 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NFTRegisterCollectionBuilder = void 0;
const core_nft_crypto_1 = require("@protokol/core-nft-crypto");
const enums_1 = require("../enums");
const transactions_1 = require("../transactions");
class NFTRegisterCollectionBuilder extends core_nft_crypto_1.AbstractNFTTransactionBuilder {
constructor() {
super();
this.data.version = enums_1.NFTBaseTransactionVersion;
this.data.typeGroup = enums_1.NFTBaseTransactionGroup;
this.data.type = enums_1.NFTBaseTransactionTypes.NFTRegisterCollection;
this.data.fee = transactions_1.NFTRegisterCollectionTransaction.staticFee();
this.data.asset = { nftCollection: {} };
}
NFTRegisterCollectionAsset(nftCollection) {
if (this.data.asset && this.data.asset.nftCollection) {
this.data.asset.nftCollection = {
...nftCollection,
};
}
return this;
}
instance() {
return this;
}
}
exports.NFTRegisterCollectionBuilder = NFTRegisterCollectionBuilder;
//# sourceMappingURL=nft-register-collection.js.map