Comparing version 1.3.17 to 1.3.18
{ | ||
"name": "slopes", | ||
"version": "1.3.17", | ||
"version": "1.3.18", | ||
"description": "AVA Platform JS Library", | ||
@@ -5,0 +5,0 @@ "main": "typings/src/index.js", |
@@ -490,12 +490,8 @@ /** | ||
let n49_avm = Object.assign({}, n2_avm); | ||
n49_avm["blockchainID"] = "tHLiSpCwUQQVZ6W4GMjVzx5JiFRgZBrniTBqaxFLdqBJKk8YN"; | ||
let n49_platform = Object.assign({}, n2_avm); | ||
let n49_contracts = Object.assign({}, n2_avm); | ||
let n12345_avm:object = Object.assign({}, n2_avm); | ||
n12345_avm["blockchainID"] = "ddV3GvdmdeQkaxLRo9LH5AbDNyU9bDu6SqWak7x9UXMbupksK"; | ||
let n12345_platform = Object.assign({}, n2_avm); | ||
let n12345_contracts = Object.assign({}, n2_avm); | ||
n12345_avm["blockchainID"] = "i8KtK2KwLi1o7WaVBbEKpRLPtAEYayfoptqAFYxfQgrus1g6m"; | ||
let n12345_platform = Object.assign({}, n2_platform); | ||
n12345_platform["blockchainID"] = "11111111111111111111111111111111LpoYY"; | ||
let n12345_contracts = Object.assign({}, n2_contracts); | ||
n12345_platform["blockchainID"] = "MTHoZAP3gGHB4cAUpFB1CuYnh3uDoMkte6FjLb9Sn5Hx8Bkvb"; | ||
@@ -522,11 +518,11 @@ export class Defaults { | ||
"X": n12345_avm, | ||
"ddV3GvdmdeQkaxLRo9LH5AbDNyU9bDu6SqWak7x9UXMbupksK": n12345_avm, | ||
"i8KtK2KwLi1o7WaVBbEKpRLPtAEYayfoptqAFYxfQgrus1g6m": n12345_avm, | ||
"platform": n12345_platform, | ||
"P": n12345_platform, | ||
"BCID1": n12345_platform, | ||
"11111111111111111111111111111111LpoYY": n12345_platform, | ||
"contracts": n12345_contracts, | ||
"C": n12345_contracts, | ||
"BCID2": n12345_contracts | ||
"MTHoZAP3gGHB4cAUpFB1CuYnh3uDoMkte6FjLb9Sn5Hx8Bkvb": n12345_contracts | ||
} | ||
}; | ||
} |
@@ -23,3 +23,3 @@ import mockAxios from 'jest-mock-axios'; | ||
const networkid:number = 12345; | ||
const blockchainid:string = "ddV3GvdmdeQkaxLRo9LH5AbDNyU9bDu6SqWak7x9UXMbupksK"; | ||
const blockchainid:string = "i8KtK2KwLi1o7WaVBbEKpRLPtAEYayfoptqAFYxfQgrus1g6m"; | ||
const ip:string = '127.0.0.1'; | ||
@@ -26,0 +26,0 @@ const port:number = 9650; |
@@ -297,9 +297,9 @@ /// <reference types="node" /> | ||
"X": object; | ||
"ddV3GvdmdeQkaxLRo9LH5AbDNyU9bDu6SqWak7x9UXMbupksK": object; | ||
"i8KtK2KwLi1o7WaVBbEKpRLPtAEYayfoptqAFYxfQgrus1g6m": object; | ||
"platform": {} & object; | ||
"P": {} & object; | ||
"BCID1": {} & object; | ||
"11111111111111111111111111111111LpoYY": {} & object; | ||
"contracts": {} & object; | ||
"C": {} & object; | ||
"BCID2": {} & object; | ||
"MTHoZAP3gGHB4cAUpFB1CuYnh3uDoMkte6FjLb9Sn5Hx8Bkvb": {} & object; | ||
}; | ||
@@ -306,0 +306,0 @@ }; |
@@ -365,10 +365,8 @@ "use strict"; | ||
}; | ||
let n49_avm = Object.assign({}, n2_avm); | ||
n49_avm["blockchainID"] = "tHLiSpCwUQQVZ6W4GMjVzx5JiFRgZBrniTBqaxFLdqBJKk8YN"; | ||
let n49_platform = Object.assign({}, n2_avm); | ||
let n49_contracts = Object.assign({}, n2_avm); | ||
let n12345_avm = Object.assign({}, n2_avm); | ||
n12345_avm["blockchainID"] = "ddV3GvdmdeQkaxLRo9LH5AbDNyU9bDu6SqWak7x9UXMbupksK"; | ||
let n12345_platform = Object.assign({}, n2_avm); | ||
let n12345_contracts = Object.assign({}, n2_avm); | ||
n12345_avm["blockchainID"] = "i8KtK2KwLi1o7WaVBbEKpRLPtAEYayfoptqAFYxfQgrus1g6m"; | ||
let n12345_platform = Object.assign({}, n2_platform); | ||
n12345_platform["blockchainID"] = "11111111111111111111111111111111LpoYY"; | ||
let n12345_contracts = Object.assign({}, n2_contracts); | ||
n12345_platform["blockchainID"] = "MTHoZAP3gGHB4cAUpFB1CuYnh3uDoMkte6FjLb9Sn5Hx8Bkvb"; | ||
class Defaults { | ||
@@ -396,11 +394,11 @@ } | ||
"X": n12345_avm, | ||
"ddV3GvdmdeQkaxLRo9LH5AbDNyU9bDu6SqWak7x9UXMbupksK": n12345_avm, | ||
"i8KtK2KwLi1o7WaVBbEKpRLPtAEYayfoptqAFYxfQgrus1g6m": n12345_avm, | ||
"platform": n12345_platform, | ||
"P": n12345_platform, | ||
"BCID1": n12345_platform, | ||
"11111111111111111111111111111111LpoYY": n12345_platform, | ||
"contracts": n12345_contracts, | ||
"C": n12345_contracts, | ||
"BCID2": n12345_contracts | ||
"MTHoZAP3gGHB4cAUpFB1CuYnh3uDoMkte6FjLb9Sn5Hx8Bkvb": n12345_contracts | ||
} | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbHMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7QUFJQSxvQ0FBaUM7QUFDakMsOENBQXNCO0FBRXRCLDBEQUFtQztBQUluQzs7R0FFRztBQUNILE1BQU0sUUFBUSxHQUFHLGtCQUFRLENBQUMsV0FBVyxFQUFFLENBQUM7QUFFeEM7O0dBRUc7QUFDSCxNQUFhLG1CQUFtQjtDQU0vQjtBQU5ELGtEQU1DO0FBRUQ7O0dBRUc7QUFDSCxNQUFzQixPQUFPO0lBcUN6Qjs7OztPQUlHO0lBQ0gsWUFBWSxJQUFlLEVBQUUsT0FBYztRQXJDM0M7Ozs7V0FJRztRQUNILGVBQVUsR0FBRyxDQUFDLE9BQWMsRUFBRSxFQUFFO1lBQzVCLElBQUcsSUFBSSxDQUFDLEVBQUUsS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b25maWcgPSB7XG4gICAgICAgICAgICBiYXNlVVJMOnRoaXMuY29yZS5nZXRQcm90b2NvbCgpK1wiOi8vXCIrdGhpcy5jb3JlLmdldElQKCkrXCI6XCIrdGhpcy5jb3JlLmdldFBvcnQoKSxcbiAgICAgICAgICAgIHJlc3BvbnNlVHlwZTogJ2pzb24nXG4gICAgICAgIH07XG5cbiAgICAgICAgcmV0dXJuIHRoaXMuY29yZS5wb3N0KGVwLCB7fSwgSlNPTi5zdHJpbmdpZnkocnBjKSwgaGVhZGVycywgYXhDb25mKS50aGVuKCAocmVzcDpSZXF1ZXN0UmVzcG9uc2VEYXRhKSA9PiB7XG4gICAgICAgICAgICBpZihyZXNwLnN0YXR1cyA+PSAyMDAgJiYgcmVzcC5zdGF0dXMgPCAzMDApe1xuICAgICAgICAgICAgICAgIHRoaXMucnBjaWQgKz0gMTtcbiAgICAgICAgICAgICAgICBpZih0eXBlb2YgcmVzcC5kYXRhID09PSBcInN0cmluZ1wiKXtcbiAgICAgICAgICAgICAgICAgICAgcmVzcC5kYXRhID0gSlNPTi5wYXJzZShyZXNwLmRhdGEpO1xuICAgICAgICAgICAgICAgICAgICBcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgaWYodHlwZW9mIHJlc3AuZGF0YSA9PT0gJ29iamVjdCcgJiYgJ2Vycm9yJyBpbiByZXNwLmRhdGEpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKFwiRXJyb3IgcmV0dXJuZWQ6IFwiICsgSlNPTi5zdHJpbmdpZnkocmVzcC5kYXRhKSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHJldHVybiByZXNwO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9ICAgXG5cbiAgICAvKipcbiAgICAgKiBSZXR1cm5zIHRoZSBycGNpZCwgYSBzdHJpY3RseS1pbmNyZWFzaW5nIG51bWJlciwgc3RhcnRpbmcgZnJvbSAxLC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gICAgIGlmKHR5cGVvZiByZXNwLmRhdGEgPT09IFwic3RyaW5nXCIpe1xuICAgICAgICAgICAgICAgICAgICByZXNwLmRhdGEgPSBKU09OLnBhcnNlKHJlc3AuZGF0YSk7XG4gICAgICAgICAgICAgICAgICAgIFxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBpZih0eXBlb2YgcmVzcC5kYXRhID09PSAnb2JqZWN0JyAmJiAnZXJyb3InIGluIHJlc3AuZGF0YSkge1xuICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXCJFcnJvciByZXR1cm5lZDogXCIgKyBKU09OLnN0cmluZ2lmeShyZXNwLmRhdGEpKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgcmV0dXJuIHJlc3A7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH0gICBcblxuICAgIC8qKlxuICAgICAqIFJldHVybnMgdGhlIHJwY2lkLCBhIHN0cmljdGx5LWluY3JlYXNpbmcgbnVtYmVyLCBzdGFydGluZyBmcm9tIDEsIGluZGljYXRpbmcgdGhlIG5leHQgcmVxdWVzdCBJRCB0aGF0IHdpbGwgYmUgc2VudC5cbiAgICAgKi9cbiAgICBnZXRSUENJRCA9ICgpOm51bWJlciA9PiB7XG4gICAgICAgIHJldHVybiB0aGlzLnJwY2lkO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFxuICAgICAqIEBwYXJhbSBjb3JlIFJlZmVyZW5jZSB0byB0aGUgU2xvcGVzIGluc3RhbmNlIHVzaW5nIHRoaXMgZW5kcG9pbnRcbiAgICAgKiBAcGFyYW0gYmFzZXVybCBQYXRoIG9mIHRoZSBBUElzIGJhc2V1cmwgLSBleDogXCIvZXh0L2JjL2F2bVwiXG4gICAgICogQHBhcmFtIGpycGNWZXJzaW9uIFRoZSBqcnBjIHZlcnNpb24gdG8gdXNlLCBkZWZhdWx0IFwiMi4wXCIuXG4gICAgICovXG4gICAgY29uc3R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xuICAgICAgICAgICAgXCJjb250cmFjdHNcIjogbjJfY29udHJhY3RzLFxuICAgICAgICAgICAgXCJDXCI6IG4yX2NvbnRyYWN0cyxcbiAgICAgICAgICAgIFwiQkNJRDJcIjogbjJfY29udHJhY3RzXG4gICAgICAgIH1cbiAgICAgICAgKi9cbiAgICAgICAgXCIxMjM0NVwiOiB7XG4gICAgICAgICAgICBcImF2bVwiOiBuMTIzNDVfYXZtLFxuICAgICAgICAgICAgXCJYXCI6IG4xMjM0NV9hdm0sXG4gICAgICAgICAgICBcImk4S3RLMkt3TGkxbzdXYVZCYkVLcFJMUHRBRVlheWZvcHRxQUZZeGZRZ3J1czFnNm1cIjogbjEyMzQ1X2F2bSxcbiAgICAgICAgICAgIFwicGxhdGZvcm1cIjogbjEyMzQ1X3BsYXRmb3JtLFxuICAgICAgICAgICAgXCJQXCI6IG4xMjM0NV9wbGF0Zm9ybSxcbiAgICAgICAgICAgIFwiMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTFMcG9ZWVwiOiBuMTIzNDVfcGxhdGZvcm0sXG4gICAgICAgICAgICBcImNvbnRyYWN0c1wiOiBuMTIzNDVfY29udHJhY3RzLFxuICAgICAgICAgICAgXCJDXCI6IG4xMjM0NV9jb250cmFjdHMsXG4gICAgICAgICAgICBcIk1USG9aQVAzZ0dIQjRjQVVwRkIxQ3VZbmgzdURvTWt0ZTZGakxiOVNuNUh4OEJrdmJcIjogbjEyMzQ1X2NvbnRyYWN0c1xuICAgICAgICB9XG4gICAgfTtcbn0iXX0= |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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 too big to display
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
9889167
16677