Skip to content
This repository was archived by the owner on Sep 30, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: pr

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Lint
run: |
yarn install
yarn lint
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Test
run: |
yarn install
yarn test
49 changes: 0 additions & 49 deletions .gitlab-ci.yml

This file was deleted.

12 changes: 9 additions & 3 deletions docs/globals.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,26 @@
* ["importPrivateKey"](modules/_importprivatekey_.md)
* ["methods/balances/transfer"](modules/_methods_balances_transfer_.md)
* ["methods/balances/transferKeepAlive"](modules/_methods_balances_transferkeepalive_.md)
* ["methods/democracy/activateProxy"](modules/_methods_democracy_activateproxy_.md)
* ["methods/democracy/closeProxy"](modules/_methods_democracy_closeproxy_.md)
* ["methods/democracy/deactivateProxy"](modules/_methods_democracy_deactivateproxy_.md)
* ["methods/democracy/openProxy"](modules/_methods_democracy_openproxy_.md)
* ["methods/democracy/proxyVote"](modules/_methods_democracy_proxyvote_.md)
* ["methods/democracy/removeProxy"](modules/_methods_democracy_removeproxy_.md)
* ["methods/democracy/resignProxy"](modules/_methods_democracy_resignproxy_.md)
* ["methods/democracy/setProxy"](modules/_methods_democracy_setproxy_.md)
* ["methods/democracy/types"](modules/_methods_democracy_types_.md)
* ["methods/democracy/vote"](modules/_methods_democracy_vote_.md)
* ["methods/session/setKeys"](modules/_methods_session_setkeys_.md)
* ["methods/staking/bond"](modules/_methods_staking_bond_.md)
* ["methods/staking/bondExtra"](modules/_methods_staking_bondextra_.md)
* ["methods/staking/chill"](modules/_methods_staking_chill_.md)
* ["methods/staking/nominate"](modules/_methods_staking_nominate_.md)
* ["methods/staking/payoutNominator"](modules/_methods_staking_payoutnominator_.md)
* ["methods/staking/payoutValidator"](modules/_methods_staking_payoutvalidator_.md)
* ["methods/staking/setController"](modules/_methods_staking_setcontroller_.md)
* ["methods/staking/unbond"](modules/_methods_staking_unbond_.md)
* ["methods/staking/validate"](modules/_methods_staking_validate_.md)
* ["methods/staking/withdrawUnbonded"](modules/_methods_staking_withdrawunbonded_.md)
* ["methods/vesting/vest"](modules/_methods_vesting_vest_.md)
* ["methods/vesting/vestOther"](modules/_methods_vesting_vestother_.md)
* ["util/constants"](modules/_util_constants_.md)
* ["util/registry"](modules/_util_registry_.md)
* ["util/types"](modules/_util_types_.md)
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

• **dest**: *string*

*Defined in [src/methods/balances/transfer.ts:12](https://github.com/paritytech/txwrapper/blob/230d329/src/methods/balances/transfer.ts#L12)*
*Defined in [src/methods/balances/transfer.ts:12](https://github.com/paritytech/txwrapper/blob/a7b5a55/src/methods/balances/transfer.ts#L12)*

The recipient address, SS-58 encoded.

Expand All @@ -31,6 +31,6 @@ ___

• **value**: *number*

*Defined in [src/methods/balances/transfer.ts:16](https://github.com/paritytech/txwrapper/blob/230d329/src/methods/balances/transfer.ts#L16)*
*Defined in [src/methods/balances/transfer.ts:16](https://github.com/paritytech/txwrapper/blob/a7b5a55/src/methods/balances/transfer.ts#L16)*

The amount to send.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[@substrate/txwrapper](../README.md) › [Globals](../globals.md) › ["methods/democracy/activateProxy"](../modules/_methods_democracy_activateproxy_.md) › [DemocracyActivateProxyArgs](_methods_democracy_activateproxy_.democracyactivateproxyargs.md)

# Interface: DemocracyActivateProxyArgs

## Hierarchy

* object

↳ **DemocracyActivateProxyArgs**

## Index

### Properties

* [proxy](_methods_democracy_activateproxy_.democracyactivateproxyargs.md#proxy)

## Properties

### proxy

• **proxy**: *string*

*Defined in [src/methods/democracy/activateProxy.ts:12](https://github.com/paritytech/txwrapper/blob/a7b5a55/src/methods/democracy/activateProxy.ts#L12)*

Address to set as proxy, SS-58 encoded.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[@substrate/txwrapper](../README.md) › [Globals](../globals.md) › ["methods/democracy/deactivateProxy"](../modules/_methods_democracy_deactivateproxy_.md) › [DemocracyDeactivateProxyArgs](_methods_democracy_deactivateproxy_.democracydeactivateproxyargs.md)

# Interface: DemocracyDeactivateProxyArgs

## Hierarchy

* object

↳ **DemocracyDeactivateProxyArgs**

## Index

### Properties

* [proxy](_methods_democracy_deactivateproxy_.democracydeactivateproxyargs.md#proxy)

## Properties

### proxy

• **proxy**: *string*

*Defined in [src/methods/democracy/deactivateProxy.ts:12](https://github.com/paritytech/txwrapper/blob/a7b5a55/src/methods/democracy/deactivateProxy.ts#L12)*

The address of the proxy to remove, SS-58 encoded.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[@substrate/txwrapper](../README.md) › [Globals](../globals.md) › ["methods/democracy/openProxy"](../modules/_methods_democracy_openproxy_.md) › [DemocracyOpenProxyArgs](_methods_democracy_openproxy_.democracyopenproxyargs.md)

# Interface: DemocracyOpenProxyArgs

## Hierarchy

* object

↳ **DemocracyOpenProxyArgs**

## Index

### Properties

* [target](_methods_democracy_openproxy_.democracyopenproxyargs.md#target)

## Properties

### target

• **target**: *string*

*Defined in [src/methods/democracy/openProxy.ts:12](https://github.com/paritytech/txwrapper/blob/a7b5a55/src/methods/democracy/openProxy.ts#L12)*

The address of the proxy to remove, SS-58 encoded.
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@

• **refIndex**: *number*

*Defined in [src/methods/democracy/proxyVote.ts:13](https://github.com/paritytech/txwrapper/blob/230d329/src/methods/democracy/proxyVote.ts#L13)*
*Defined in [src/methods/democracy/proxyVote.ts:13](https://github.com/paritytech/txwrapper/blob/a7b5a55/src/methods/democracy/proxyVote.ts#L13)*

___

### vote

• **vote**: *[Vote](../modules/_methods_democracy_types_.md#vote)*

*Defined in [src/methods/democracy/proxyVote.ts:18](https://github.com/paritytech/txwrapper/blob/230d329/src/methods/democracy/proxyVote.ts#L18)*
*Defined in [src/methods/democracy/proxyVote.ts:18](https://github.com/paritytech/txwrapper/blob/a7b5a55/src/methods/democracy/proxyVote.ts#L18)*

Vote

This file was deleted.

This file was deleted.

4 changes: 2 additions & 2 deletions docs/interfaces/_methods_democracy_vote_.democracyvoteargs.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@

• **refIndex**: *number*

*Defined in [src/methods/democracy/vote.ts:13](https://github.com/paritytech/txwrapper/blob/230d329/src/methods/democracy/vote.ts#L13)*
*Defined in [src/methods/democracy/vote.ts:13](https://github.com/paritytech/txwrapper/blob/a7b5a55/src/methods/democracy/vote.ts#L13)*

___

### vote

• **vote**: *[Vote](../modules/_methods_democracy_types_.md#vote)*

*Defined in [src/methods/democracy/vote.ts:18](https://github.com/paritytech/txwrapper/blob/230d329/src/methods/democracy/vote.ts#L18)*
*Defined in [src/methods/democracy/vote.ts:18](https://github.com/paritytech/txwrapper/blob/a7b5a55/src/methods/democracy/vote.ts#L18)*

Vote
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

• **keys**: *string[]*

*Defined in [src/methods/session/setKeys.ts:12](https://github.com/paritytech/txwrapper/blob/230d329/src/methods/session/setKeys.ts#L12)*
*Defined in [src/methods/session/setKeys.ts:12](https://github.com/paritytech/txwrapper/blob/a7b5a55/src/methods/session/setKeys.ts#L12)*

The 5 keys to set.

Expand All @@ -31,6 +31,6 @@ ___

• **proof**? : *undefined | string*

*Defined in [src/methods/session/setKeys.ts:16](https://github.com/paritytech/txwrapper/blob/230d329/src/methods/session/setKeys.ts#L16)*
*Defined in [src/methods/session/setKeys.ts:16](https://github.com/paritytech/txwrapper/blob/a7b5a55/src/methods/session/setKeys.ts#L16)*

Proof (unused for now).
6 changes: 3 additions & 3 deletions docs/interfaces/_methods_staking_bond_.stakingbondargs.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

• **controller**: *string*

*Defined in [src/methods/staking/bond.ts:12](https://github.com/paritytech/txwrapper/blob/230d329/src/methods/staking/bond.ts#L12)*
*Defined in [src/methods/staking/bond.ts:12](https://github.com/paritytech/txwrapper/blob/a7b5a55/src/methods/staking/bond.ts#L12)*

The SS-58 encoded address of the Controller account.

Expand All @@ -32,7 +32,7 @@ ___

• **payee**: *string*

*Defined in [src/methods/staking/bond.ts:20](https://github.com/paritytech/txwrapper/blob/230d329/src/methods/staking/bond.ts#L20)*
*Defined in [src/methods/staking/bond.ts:20](https://github.com/paritytech/txwrapper/blob/a7b5a55/src/methods/staking/bond.ts#L20)*

The rewards destination. Can be "Stash", "Staked", or "Controller".

Expand All @@ -42,6 +42,6 @@ ___

• **value**: *number*

*Defined in [src/methods/staking/bond.ts:16](https://github.com/paritytech/txwrapper/blob/230d329/src/methods/staking/bond.ts#L16)*
*Defined in [src/methods/staking/bond.ts:16](https://github.com/paritytech/txwrapper/blob/a7b5a55/src/methods/staking/bond.ts#L16)*

The number of tokens to bond.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@

• **maxAdditional**: *number*

*Defined in [src/methods/staking/bondExtra.ts:12](https://github.com/paritytech/txwrapper/blob/230d329/src/methods/staking/bondExtra.ts#L12)*
*Defined in [src/methods/staking/bondExtra.ts:12](https://github.com/paritytech/txwrapper/blob/a7b5a55/src/methods/staking/bondExtra.ts#L12)*

The maximum amount to bond.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

• **targets**: *Array‹string›*

*Defined in [src/methods/staking/nominate.ts:15](https://github.com/paritytech/txwrapper/blob/230d329/src/methods/staking/nominate.ts#L15)*
*Defined in [src/methods/staking/nominate.ts:15](https://github.com/paritytech/txwrapper/blob/a7b5a55/src/methods/staking/nominate.ts#L15)*

The SS-58 encoded addresses of the targets you wish to nominate. A maximum of 16
nominations are allowed.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[@substrate/txwrapper](../README.md) › [Globals](../globals.md) › ["methods/staking/payoutNominator"](../modules/_methods_staking_payoutnominator_.md) › [StakingPayoutNominatorArgs](_methods_staking_payoutnominator_.stakingpayoutnominatorargs.md)

# Interface: StakingPayoutNominatorArgs

## Hierarchy

* object

↳ **StakingPayoutNominatorArgs**

## Index

### Properties

* [era](_methods_staking_payoutnominator_.stakingpayoutnominatorargs.md#era)
* [validators](_methods_staking_payoutnominator_.stakingpayoutnominatorargs.md#validators)

## Properties

### era

• **era**: *number*

*Defined in [src/methods/staking/payoutNominator.ts:14](https://github.com/paritytech/txwrapper/blob/a7b5a55/src/methods/staking/payoutNominator.ts#L14)*

May not be lower than one following the most recently paid era. If it is
higher, then it indicates an instruction to skip the payout of all
previous eras.

___

### validators

• **validators**: *[string, number][]*

*Defined in [src/methods/staking/payoutNominator.ts:20](https://github.com/paritytech/txwrapper/blob/a7b5a55/src/methods/staking/payoutNominator.ts#L20)*

List of all validators that `who` had exposure to during `era`. If it is
incomplete, then less than the full reward will be paid out. It must not
exceed `MAX_NOMINATIONS`.
Loading