tso-data-models
Advanced tools
Comparing version 1.0.149 to 1.0.150
@@ -1,4 +0,3 @@ | ||
export declare const FTSO_REGISTRY_ADDRESS = ""; | ||
export declare const PROVIDER_ADDRESS = "0x0000"; | ||
export declare const BASE_CURRENCIES: string[]; | ||
export declare const wSGBAddress = "0x02f0826ef6aD107Cfc861152B32B52fD11BaB9ED"; | ||
export declare const tsoAddress = "0x939789ed3D07A80da886A3E3017d665cBb5591dC"; | ||
//# sourceMappingURL=addresses.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BASE_CURRENCIES = exports.PROVIDER_ADDRESS = exports.FTSO_REGISTRY_ADDRESS = void 0; | ||
exports.FTSO_REGISTRY_ADDRESS = ""; | ||
exports.PROVIDER_ADDRESS = "0x0000"; | ||
exports.BASE_CURRENCIES = ["XRP", "XLM", "DOGE", "LTC"]; | ||
exports.tsoAddress = exports.wSGBAddress = void 0; | ||
exports.wSGBAddress = '0x02f0826ef6aD107Cfc861152B32B52fD11BaB9ED'; | ||
exports.tsoAddress = '0x939789ed3D07A80da886A3E3017d665cBb5591dC'; | ||
//# sourceMappingURL=addresses.js.map |
@@ -12,2 +12,3 @@ export * from './models/data-point/DataPoint'; | ||
export * from './models/exchange-api/ExchangeInterface'; | ||
export * from './constants/abis'; | ||
export * from './constants/addresses'; | ||
@@ -14,0 +15,0 @@ export * from './utils/number-utils'; |
@@ -24,2 +24,3 @@ "use strict"; | ||
__exportStar(require("./models/exchange-api/ExchangeInterface"), exports); | ||
__exportStar(require("./constants/abis"), exports); | ||
__exportStar(require("./constants/addresses"), exports); | ||
@@ -26,0 +27,0 @@ __exportStar(require("./utils/number-utils"), exports); |
@@ -40,5 +40,3 @@ "use strict"; | ||
exports.FAsset = void 0; | ||
var ethers_1 = require("ethers"); | ||
var abis_1 = require("../../constants/abis"); | ||
var addresses_1 = require("../../constants/addresses"); | ||
//import { FTSO_REGISTRY_ADDRESS } from '../../constants/addresses'; | ||
var FAsset = /** @class */ (function () { | ||
@@ -50,3 +48,3 @@ function FAsset(assetName, assetSymbol, assetAddress, priceProviderAddress, ethersProvider) { | ||
this.priceProviderAddress = priceProviderAddress; | ||
this.ftsoRegistryContract = new ethers_1.Contract(addresses_1.FTSO_REGISTRY_ADDRESS, abis_1.FTSO_REGISTRY_ABI, ethersProvider); | ||
// this.ftsoRegistryContract = new Contract(FTSO_REGISTRY_ADDRESS, FTSO_REGISTRY_ABI, ethersProvider); | ||
} | ||
@@ -53,0 +51,0 @@ FAsset.prototype.setRegisteredTSO = function () { |
@@ -42,3 +42,2 @@ "use strict"; | ||
var abis_1 = require("../../constants/abis"); | ||
var __1 = require("../.."); | ||
var FTSOVoterWhitelister = /** @class */ (function () { | ||
@@ -67,12 +66,7 @@ function FTSOVoterWhitelister(voterAddress, whitelisterContractAddress, ftsoIndex) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var testWallet, abi, whitelisterContract; | ||
var testWallet, abi; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
testWallet = ethers_1.ethers.Wallet.fromMnemonic(abis_1.TEST_MNEMONIC); | ||
abi = ["function requestWhitelistingVoter(address _voter, uint256 _ftsoIndex) public"]; | ||
whitelisterContract = new ethers_1.ethers.Contract(__1.FTSO_REGISTRY_ADDRESS, abi, testWallet); | ||
return [4 /*yield*/, whitelisterContract.requestWhitelistingVoter(this.voterAddress, this.ftsoIndex)]; | ||
case 1: return [2 /*return*/, _a.sent()]; | ||
} | ||
testWallet = ethers_1.ethers.Wallet.fromMnemonic(abis_1.TEST_MNEMONIC); | ||
abi = ["function requestWhitelistingVoter(address _voter, uint256 _ftsoIndex) public"]; | ||
return [2 /*return*/]; | ||
}); | ||
@@ -79,0 +73,0 @@ }); |
{ | ||
"name": "tso-data-models", | ||
"version": "1.0.149", | ||
"version": "1.0.150", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -1,3 +0,2 @@ | ||
export const FTSO_REGISTRY_ADDRESS = ""; | ||
export const PROVIDER_ADDRESS = "0x0000"; | ||
export const BASE_CURRENCIES = ["XRP", "XLM", "DOGE", "LTC"]; | ||
export const wSGBAddress = '0x02f0826ef6aD107Cfc861152B32B52fD11BaB9ED'; | ||
export const tsoAddress = '0x939789ed3D07A80da886A3E3017d665cBb5591dC'; |
@@ -12,2 +12,3 @@ export * from './models/data-point/DataPoint'; | ||
export * from './models/exchange-api/ExchangeInterface'; | ||
export * from './constants/abis'; | ||
export * from './constants/addresses'; | ||
@@ -14,0 +15,0 @@ export * from './utils/number-utils'; |
import { BigNumber, ethers } from "ethers"; | ||
import { OpenEpoch } from "./OpenEpoch"; | ||
import { PRICE_SUBMITTER_ABI } from '../../constants/abis'; | ||
import { FTSO_REGISTRY_ADDRESS } from "../.."; | ||
import { classToPlain } from "class-transformer"; | ||
@@ -6,0 +5,0 @@ |
import { BigNumber, ethers } from "ethers"; | ||
import { OpenEpoch } from "./OpenEpoch"; | ||
import { PRICE_SUBMITTER_ABI } from '../../constants/abis' | ||
import { AssetSubmission, FTSO_REGISTRY_ADDRESS } from "../.."; | ||
import { AssetSubmission } from "../.."; | ||
@@ -6,0 +6,0 @@ export class EpochSubmission { |
import { ethers, Contract, ContractFactory } from 'ethers'; | ||
import { FTSO_REGISTRY_ABI } from '../../constants/abis'; | ||
import { FTSO_REGISTRY_ADDRESS } from '../../constants/addresses'; | ||
//import { FTSO_REGISTRY_ADDRESS } from '../../constants/addresses'; | ||
@@ -21,3 +21,3 @@ export class FAsset { | ||
this.priceProviderAddress = priceProviderAddress; | ||
this.ftsoRegistryContract = new Contract(FTSO_REGISTRY_ADDRESS, FTSO_REGISTRY_ABI, ethersProvider); | ||
// this.ftsoRegistryContract = new Contract(FTSO_REGISTRY_ADDRESS, FTSO_REGISTRY_ABI, ethersProvider); | ||
} | ||
@@ -24,0 +24,0 @@ |
import { BigNumber, ethers } from "ethers"; | ||
import { PRICE_SUBMITTER_ABI, TEST_MNEMONIC } from '../../constants/abis' | ||
import { FTSO_REGISTRY_ADDRESS } from "../.."; | ||
@@ -5,0 +4,0 @@ export class FTSOPriceSubmitter { |
import { BigNumber, ethers } from "ethers"; | ||
import { FTSO_REWARDS_MANAGER_API, PRICE_SUBMITTER_ABI, TEST_MNEMONIC } from '../../constants/abis' | ||
import { FTSO_REGISTRY_ADDRESS } from "../.."; | ||
import { WVP_TOKEN_API } from "../../"; | ||
@@ -14,3 +13,2 @@ | ||
constructor(votingTokenAddress: string, rewardsManagerAddress: string, provider: ethers.providers.Web3Provider) { | ||
@@ -17,0 +15,0 @@ this.votingTokenAddress = votingTokenAddress; |
import { BigNumber, ethers } from "ethers"; | ||
import { PRICE_SUBMITTER_ABI, TEST_MNEMONIC } from '../../constants/abis' | ||
import { FTSO_REGISTRY_ADDRESS } from "../.."; | ||
import { PRICE_SUBMITTER_ABI, TEST_MNEMONIC } from '../../constants/abis'; | ||
@@ -25,4 +24,4 @@ export class FTSOVoterWhitelister { | ||
const abi = ["function requestWhitelistingVoter(address _voter, uint256 _ftsoIndex) public"]; | ||
const whitelisterContract = new ethers.Contract(FTSO_REGISTRY_ADDRESS, abi, testWallet); | ||
return await whitelisterContract.requestWhitelistingVoter(this.voterAddress, this.ftsoIndex); | ||
// const whitelisterContract = new ethers.Contract(FTSO_REGISTRY_ADDRESS, abi, testWallet); | ||
// return await whitelisterContract.requestWhitelistingVoter(this.voterAddress, this.ftsoIndex); | ||
} | ||
@@ -29,0 +28,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
150261
2216