Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@harmony-js/staking

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harmony-js/staking - npm Package Compare versions

Comparing version 0.1.43 to 0.1.45

6

dist/factory.d.ts

@@ -0,4 +1,9 @@

/**
* @packageDocumentation
* @module harmony-staking
*/
import { Messenger } from '@harmony-js/network';
import { Signature } from '@harmony-js/crypto';
import { Directive, CreateValidator, EditValidator, Delegate, Undelegate, CollectRewards, StakingTransaction } from './stakingTransaction';
/** @hidden */
export interface DescriptionInterface {

@@ -11,2 +16,3 @@ name: string;

}
/** @hidden */
export interface CommissionRateInterface {

@@ -13,0 +19,0 @@ rate: string;

"use strict";
/**
* @packageDocumentation
* @module harmony-staking
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.StakingFactory = void 0;
var stakingTransaction_1 = require("./stakingTransaction");

@@ -4,0 +9,0 @@ var utils_1 = require("@harmony-js/utils");

39

dist/index.cjs.js

@@ -15,14 +15,14 @@ /**

/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
Copyright (c) Microsoft Corporation.
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */

@@ -99,3 +99,7 @@ /* global Reflect, Promise */

// tslint:disable: max-classes-per-file
/**
* @packageDocumentation
* @module harmony-staking
*/
/** @hidden */
var StakingSettings = /** @class */ (function () {

@@ -276,2 +280,3 @@ function StakingSettings() {

}(transaction.TransactionBase));
/** @hidden */
var Description = /** @class */ (function () {

@@ -297,2 +302,3 @@ function Description(name, identity, website, securityContact, details) {

}());
/** @hidden */
var Decimal = /** @class */ (function () {

@@ -352,2 +358,3 @@ function Decimal(value) {

}());
/** @hidden */
var CommissionRate = /** @class */ (function () {

@@ -463,2 +470,6 @@ function CommissionRate(rate, maxRate, maxChangeRate) {

/**
* @packageDocumentation
* @module harmony-staking
*/
var StakingFactory = /** @class */ (function () {

@@ -531,2 +542,8 @@ function StakingFactory(messenger) {

/**
* @packageDocumentation
* @module harmony-staking
* @ignore
*/
exports.StakingSettings = StakingSettings;

@@ -533,0 +550,0 @@ exports.StakingTransaction = StakingTransaction;

@@ -0,3 +1,8 @@

/**
* @packageDocumentation
* @module harmony-staking
* @ignore
*/
export * from './stakingTransaction';
export * from './factory';
//# sourceMappingURL=index.d.ts.map

@@ -11,14 +11,14 @@ /**

/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
Copyright (c) Microsoft Corporation.
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */

@@ -95,3 +95,7 @@ /* global Reflect, Promise */

// tslint:disable: max-classes-per-file
/**
* @packageDocumentation
* @module harmony-staking
*/
/** @hidden */
var StakingSettings = /** @class */ (function () {

@@ -104,2 +108,3 @@ function StakingSettings() {

}());
/** @hidden */
var Directive;

@@ -274,2 +279,3 @@ (function (Directive) {

}(TransactionBase));
/** @hidden */
var Description = /** @class */ (function () {

@@ -295,2 +301,3 @@ function Description(name, identity, website, securityContact, details) {

}());
/** @hidden */
var Decimal = /** @class */ (function () {

@@ -350,2 +357,3 @@ function Decimal(value) {

}());
/** @hidden */
var CommissionRate = /** @class */ (function () {

@@ -461,2 +469,6 @@ function CommissionRate(rate, maxRate, maxChangeRate) {

/**
* @packageDocumentation
* @module harmony-staking
*/
var StakingFactory = /** @class */ (function () {

@@ -529,3 +541,9 @@ function StakingFactory(messenger) {

/**
* @packageDocumentation
* @module harmony-staking
* @ignore
*/
export { StakingSettings, Directive, StakingTransaction, Description, Decimal, CommissionRate, CreateValidator, EditValidator, Delegate, Undelegate, CollectRewards, StakingFactory };
//# sourceMappingURL=index.esm.js.map
"use strict";
/**
* @packageDocumentation
* @module harmony-staking
* @ignore
*/
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +8,0 @@ var tslib_1 = require("tslib");

@@ -12,14 +12,14 @@ /**

/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
Copyright (c) Microsoft Corporation.
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */

@@ -96,3 +96,7 @@ /* global Reflect, Promise */

// tslint:disable: max-classes-per-file
/**
* @packageDocumentation
* @module harmony-staking
*/
/** @hidden */
var StakingSettings = /** @class */ (function () {

@@ -273,2 +277,3 @@ function StakingSettings() {

}(transaction.TransactionBase));
/** @hidden */
var Description = /** @class */ (function () {

@@ -294,2 +299,3 @@ function Description(name, identity, website, securityContact, details) {

}());
/** @hidden */
var Decimal = /** @class */ (function () {

@@ -349,2 +355,3 @@ function Decimal(value) {

}());
/** @hidden */
var CommissionRate = /** @class */ (function () {

@@ -460,2 +467,6 @@ function CommissionRate(rate, maxRate, maxChangeRate) {

/**
* @packageDocumentation
* @module harmony-staking
*/
var StakingFactory = /** @class */ (function () {

@@ -528,2 +539,8 @@ function StakingFactory(messenger) {

/**
* @packageDocumentation
* @module harmony-staking
* @ignore
*/
exports.StakingSettings = StakingSettings;

@@ -530,0 +547,0 @@ exports.StakingTransaction = StakingTransaction;

@@ -0,1 +1,5 @@

/**
* @packageDocumentation
* @module harmony-staking
*/
/// <reference types="bn.js" />

@@ -5,2 +9,3 @@ import { BN, Signature } from '@harmony-js/crypto';

import { TransactionBase, TxStatus } from '@harmony-js/transaction';
/** @hidden */
export declare class StakingSettings {

@@ -10,2 +15,3 @@ static PRECISION: number;

}
/** @hidden */
export declare const enum Directive {

@@ -45,2 +51,3 @@ DirectiveCreateValidator = 0,

}
/** @hidden */
export declare class Description {

@@ -55,2 +62,3 @@ name: string;

}
/** @hidden */
export declare class Decimal {

@@ -61,2 +69,3 @@ value: BN;

}
/** @hidden */
export declare class CommissionRate {

@@ -63,0 +72,0 @@ rate: Decimal;

"use strict";
// tslint:disable: max-classes-per-file
/**
* @packageDocumentation
* @module harmony-staking
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.CollectRewards = exports.Undelegate = exports.Delegate = exports.EditValidator = exports.CreateValidator = exports.CommissionRate = exports.Decimal = exports.Description = exports.StakingTransaction = exports.Directive = exports.StakingSettings = void 0;
var tslib_1 = require("tslib");
// tslint:disable: max-classes-per-file
var crypto_1 = require("@harmony-js/crypto");

@@ -9,2 +14,3 @@ var transaction_1 = require("@harmony-js/transaction");

var text_encoding_1 = require("text-encoding");
/** @hidden */
var StakingSettings = /** @class */ (function () {

@@ -18,2 +24,3 @@ function StakingSettings() {

exports.StakingSettings = StakingSettings;
/** @hidden */
var Directive;

@@ -189,2 +196,3 @@ (function (Directive) {

exports.StakingTransaction = StakingTransaction;
/** @hidden */
var Description = /** @class */ (function () {

@@ -211,2 +219,3 @@ function Description(name, identity, website, securityContact, details) {

exports.Description = Description;
/** @hidden */
var Decimal = /** @class */ (function () {

@@ -267,2 +276,3 @@ function Decimal(value) {

exports.Decimal = Decimal;
/** @hidden */
var CommissionRate = /** @class */ (function () {

@@ -269,0 +279,0 @@ function CommissionRate(rate, maxRate, maxChangeRate) {

{
"name": "@harmony-js/staking",
"version": "0.1.43",
"version": "0.1.45",
"description": "staking transaction package for harmony",

@@ -21,9 +21,9 @@ "main": "dist/index.js",

"dependencies": {
"@harmony-js/crypto": "^0.1.43",
"@harmony-js/network": "^0.1.43",
"@harmony-js/transaction": "^0.1.43",
"@harmony-js/utils": "^0.1.43",
"@harmony-js/crypto": "^0.1.45",
"@harmony-js/network": "^0.1.45",
"@harmony-js/transaction": "^0.1.45",
"@harmony-js/utils": "^0.1.45",
"text-encoding": "^0.7.0"
},
"gitHead": "bdcfbf0f8050d96da22ed009da33465f7ad7671b"
"gitHead": "a35db780aea823fab8510da0881b22805d35648f"
}

@@ -0,1 +1,6 @@

/**
* @packageDocumentation
* @module harmony-staking
*/
import { Messenger } from '@harmony-js/network';

@@ -19,2 +24,3 @@ import { Signature } from '@harmony-js/crypto';

/** @hidden */
export interface DescriptionInterface {

@@ -28,2 +34,3 @@ name: string;

/** @hidden */
export interface CommissionRateInterface {

@@ -30,0 +37,0 @@ rate: string;

@@ -0,2 +1,8 @@

/**
* @packageDocumentation
* @module harmony-staking
* @ignore
*/
export * from './stakingTransaction';
export * from './factory';

@@ -0,1 +1,6 @@

/**
* @packageDocumentation
* @module harmony-staking
*/
// tslint:disable: max-classes-per-file

@@ -19,2 +24,3 @@

/** @hidden */
export class StakingSettings {

@@ -25,2 +31,3 @@ public static PRECISION = 18;

/** @hidden */
export const enum Directive {

@@ -206,2 +213,3 @@ DirectiveCreateValidator,

/** @hidden */
export class Description {

@@ -240,2 +248,3 @@ name: string;

/** @hidden */
export class Decimal {

@@ -299,2 +308,3 @@ value: BN;

/** @hidden */
export class CommissionRate {

@@ -301,0 +311,0 @@ rate: Decimal;

@@ -1,2 +0,7 @@

// tslint:disable-next-line: no-implicit-dependencies
/**
* @packageDocumentation
* @module harmony-staking
* @ignore
*/
import { Wallet } from '@harmony-js/account';

@@ -3,0 +8,0 @@ import { getAddressFromPrivateKey } from '@harmony-js/crypto';

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc