@fioprotocol/fiosdk
Version:
The Foundation for Interwallet Operability (FIO) is a consortium of leading blockchain wallets, exchanges and payments providers that seeks to accelerate blockchain adoption by reducing the risk, complexity, and inconvenience of sending and receiving cryp
25 lines • 1.1 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.RenewFioDomainRequest = void 0;
const entities_1 = require("../../entities");
const validation_1 = require("../../utils/validation");
const SignedRequest_1 = require("./SignedRequest");
class RenewFioDomainRequest extends SignedRequest_1.SignedRequest {
constructor(config, props) {
super(config);
this.props = props;
this.ENDPOINT = `chain/${entities_1.EndPoint.renewFioDomain}`;
this.ACTION = entities_1.Action.renewDomain;
this.ACCOUNT = entities_1.Account.address;
this.getData = () => ({
actor: this.getActor(),
fio_domain: this.props.fioDomain,
max_fee: this.props.maxFee,
tpid: this.props.technologyProviderId,
});
this.validationData = { fioDomain: props.fioDomain, tpid: props.technologyProviderId };
this.validationRules = validation_1.validationRules.renewFioDomain;
}
}
exports.RenewFioDomainRequest = RenewFioDomainRequest;
//# sourceMappingURL=RenewFioDomainRequest.js.map
;