UNPKG

@goplus/sdk-node

Version:
72 lines (66 loc) 2.89 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetDefiInfoResponseResultOwner = void 0; var _ApiClient = require("../ApiClient"); /* * GoPlus Security API Document * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: 1.0 * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 3.0.45 * * Do not edit the class manually. * */ /** * The GetDefiInfoResponseResultOwner model module. * @module model/GetDefiInfoResponseResultOwner * @version 1.0 */ class GetDefiInfoResponseResultOwner { /** * Constructs a new <code>GetDefiInfoResponseResultOwner</code>. * When there is no owner function, or the ownership is unreadable or private, it would return empty. \&quot;owner\&quot;: { } * @alias module:model/GetDefiInfoResponseResultOwner * @class */ constructor() {} /** * Constructs a <code>GetDefiInfoResponseResultOwner</code> from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. * @param {module:model/GetDefiInfoResponseResultOwner} obj Optional instance to populate. * @return {module:model/GetDefiInfoResponseResultOwner} The populated <code>GetDefiInfoResponseResultOwner</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new GetDefiInfoResponseResultOwner(); if (data.hasOwnProperty('owner_name')) obj.owner_name = _ApiClient.ApiClient.convertToType(data['owner_name'], 'String'); if (data.hasOwnProperty('owner_address')) obj.owner_address = _ApiClient.ApiClient.convertToType(data['owner_address'], 'String'); if (data.hasOwnProperty('owner_type')) obj.owner_type = _ApiClient.ApiClient.convertToType(data['owner_type'], 'String'); } return obj; } } /** * the function name of ownership. If there is no return, means unknown. * @member {String} owner_name */ exports.GetDefiInfoResponseResultOwner = GetDefiInfoResponseResultOwner; GetDefiInfoResponseResultOwner.prototype.owner_name = undefined; /** * owner address of the contract. No return means unknown. * @member {String} owner_address */ GetDefiInfoResponseResultOwner.prototype.owner_address = undefined; /** * blackhole\" : the owner is a blackhole address. \"contract\" : the owner is a contract. \"eoa\" : the owner is a common address (eoa). \"multi-address\": the owner is an array/list. null: the address is not detected. No return means unknown. * @member {String} owner_type */ GetDefiInfoResponseResultOwner.prototype.owner_type = undefined;