UNPKG

dotbit

Version:

A complete .bit SDK and utilities in TypeScript

36 lines 1.26 kB
import { RegisterAPI } from '../fetchers/RegisterAPI'; import { SubAccountAPI, } from '../fetchers/SubAccountAPI'; export class RemoteTxBuilder { constructor(config) { this.subAccountAPI = new SubAccountAPI(config.subAccountUri); this.registerAPI = new RegisterAPI(config.registerUri); } mintSubAccounts(params) { return this.subAccountAPI.createSubAccounts(params); } changeManager(params) { return this.registerAPI.editAccountManager(params); } changeOwner(params) { return this.registerAPI.editAccountOwner(params); } editRecords(params) { return this.registerAPI.editAccountRecords(params); } editSubAccount(params) { return this.subAccountAPI.editSubAccount(params); } submitRegisterAccountOrder(params) { return this.registerAPI.submitRegisterAccountOrder(params); } submitRenewAccountOrder(params) { return this.registerAPI.submitRenewAccountOrder(params); } payWithDotbitBalance(params) { return this.registerAPI.payWithDotbitBalance(params); } returnTrxHashToService(params) { return this.registerAPI.returnTrxHashToService(params); } } //# sourceMappingURL=RemoteTxBuilder.js.map