@dapix/react-native-fio
Version:
The FIO react-native-fio SDK communicates with the FIO Blockchain.
32 lines (31 loc) • 1.33 kB
JavaScript
;
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
const SignedTransaction_1 = require("./SignedTransaction");
class RegisterName extends SignedTransaction_1.SignedTransaction {
constructor(fioNmae) {
super();
this.ENDPOINT = "chain/register_fio_name";
this.ACTION = "registername";
this.ACOUNT = "fio.system";
this.fioName = fioNmae;
}
getData() {
return __awaiter(this, void 0, void 0, function* () {
let actor = yield this.getActor();
let data = {
fio_name: this.fioName,
actor: actor
};
return data;
});
}
}
exports.RegisterName = RegisterName;