Files
Aaron Cox 679d30cbd3 v1.0.0 (#5)
* The `ui` option is now required for the SessionKit

* Split SessionKit initialization to both "args" and "options"

* Move `onSignComplete` to after all signing ops finish

* Allow restoring without serialized session

The restore method can now be used by just providing an actor, permission, and chainId - and will pull the session data out of the storage adapter to restore.

* Track and allow restoring a default account per-chain

Each individual chain now tracks a `default` value within its serialized storage, and the `restore()` function can now accept just a chain ID to restore the default account for that chain.

* Reapplied 4faab919a3154dc875279e54c3baf9448de7eefa

* Version 1.0.0-beta1

* Moved all mock data to its own repository

* Updating @wharfkit/mock-data and MOCK_DIR

* Fixing ci-test

* Updating @wharfkit/mock-data

* Allow manually passing in ABIDef for use in Sessions

* Version 1.0.0-beta2

* Version 1.0.0-beta3

* Renamed AbiProvider to ABICache since it's an extension of ESR

* Better defined ABICacheInterface

* Version 1.0.0-beta4

* Prevent uneeded get_info calls when resolving

* Linting of tests

* Adding tests for placeholder resolution

* Adding test data for placeholder resolution

* Unused test cleanup

* Linting

* Removing unused import

* Version 1.0.0-beta5

* Replacing @greymass/eosio with @wharfkit/antelope

* Version 1.0.0-beta6

* Cleanup of greymass/eosio continued

* Version 1.0.0-beta7

* Fixed badge path

* Removed internal ABICache and using @wharfkit/abicache

* Updating contract kit and abicache to optimize ABI loading

* Remove requirement of prefix on storage

* Change `appName` from Name to a string

Resolves #68

Still accept `NameType` as the parameter to maintain reverse compatibility with older versions and other app formats.

* Migrated data to wharfkit/common

* Adding test to ensure common chains can be passed

* Updating wharfkit/common

* Switching to `import type` for some @wharfkit/common elements

* Added package description

* Update README.md

* Updated @wharfkit/common

* Version 1.0.0-beta8

* Updating ABICache and Contract Kit

* Updating ESR library

* Version 1.0.0-beta9

* Dependency cleanup

* Updating private key plugin

* Version 1.0.0
2023-07-31 13:30:22 -07:00

2.2 KiB
Raw Permalink Blame History

@wharfkit/session

Unit Tests

Session Kit - An Antelope blockchain session management toolkit

Authenticate and persist sessions using blockchain accounts within JavaScript and TypeScript applications. Each session can be used to interact with smart contracts using the authenticated account.

Installation

The @wharfkit/session package is distributed on npm.

yarn add @wharfkit/session
# or
npm install --save @wharfkit/session

Usage

Please refer to the documentation on wharfkit.com.

Autodocs

Developing

You need Make, node.js and yarn installed.

The master branch will contain production release builds of the Session Kit. The dev branch will be where all development is performed and act as the staging area for the next release. All pull requests should be made against dev.

Clone the repository and run make to checkout all dependencies and build the project. The tests can be run using make test and can be continuously tested during development with make test/watch.

See the Makefile for other useful targets.

Before submitting a pull request make sure to run make check and make format.

Dependencies


Made with & ❤️ by Greymass.