mirror of
https://github.com/wharfkit/resources.git
synced 2026-07-21 18:03:39 +00:00
Switched to wharfkit/antelope
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
|
||||
## Installation
|
||||
|
||||
The `@greymass/eosio-resources` package is distributed as a module on [npm](https://www.npmjs.com/package/eosio-resources).
|
||||
The `@wharfkit/resources` package is distributed on [npm](https://www.npmjs.com/package/@wharfkit/resources).
|
||||
|
||||
```
|
||||
yarn add @greymass/eosio-resources
|
||||
yarn add @wharfkit/resources
|
||||
# or
|
||||
npm install --save @greymass/eosio-resources
|
||||
npm install --save @wharfkit/resources
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
+8
-8
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@greymass/eosio-resources",
|
||||
"description": "Library to assist in EOSIO Resource calculations.",
|
||||
"version": "0.9.0",
|
||||
"homepage": "https://github.com/greymass/eosio-resources",
|
||||
"name": "@wharfkit/resources",
|
||||
"description": "Library to assist in Antelope-blockchain resource calculations.",
|
||||
"version": "1.0.0",
|
||||
"homepage": "https://github.com/wharfkit/resources",
|
||||
"license": "BSD-3-Clause",
|
||||
"main": "lib/eosio-resources.js",
|
||||
"module": "lib/eosio-resources.m.js",
|
||||
"types": "lib/eosio-resources.d.ts",
|
||||
"main": "lib/wharfkit-resources.js",
|
||||
"module": "lib/wharfkit-resources.m.js",
|
||||
"types": "lib/wharfkit-resources.d.ts",
|
||||
"browser": {
|
||||
"buffer": false,
|
||||
"crypto": false
|
||||
@@ -20,7 +20,7 @@
|
||||
"prepare": "make"
|
||||
},
|
||||
"dependencies": {
|
||||
"@greymass/eosio": "^0.6.9",
|
||||
"@wharfkit/antelope": "^0.7.3",
|
||||
"bn.js": "^4.11.9",
|
||||
"tslib": "^2.1.0"
|
||||
},
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import {API, APIClient, APIClientOptions, FetchProvider, UInt128} from '@greymass/eosio'
|
||||
import {API, APIClient, APIClientOptions, FetchProvider, UInt128} from '@wharfkit/antelope'
|
||||
import BN from 'bn.js'
|
||||
|
||||
import {PowerUpAPI} from './powerup'
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import {Asset, Struct, UInt32, UInt8} from '@greymass/eosio'
|
||||
import {Asset, Struct, UInt32, UInt8} from '@wharfkit/antelope'
|
||||
|
||||
import {Resources} from '.'
|
||||
import {PowerUpStateResourceCPU} from './powerup/cpu'
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
UInt32,
|
||||
UInt64,
|
||||
UInt8,
|
||||
} from '@greymass/eosio'
|
||||
} from '@wharfkit/antelope'
|
||||
|
||||
import BN from 'bn.js'
|
||||
import {PowerUpStateOptions} from './options'
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import {Struct, UInt128} from '@greymass/eosio'
|
||||
import {Struct, UInt128} from '@wharfkit/antelope'
|
||||
|
||||
import {BNPrecision, SampleUsage} from '..'
|
||||
import {PowerUpStateResource} from './abstract'
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import {Struct, UInt128} from '@greymass/eosio'
|
||||
import {Struct, UInt128} from '@wharfkit/antelope'
|
||||
|
||||
import {BNPrecision, SampleUsage} from '..'
|
||||
import {PowerUpStateResource} from './abstract'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {TimePointType, UInt64} from '@greymass/eosio'
|
||||
import {TimePointType, UInt64} from '@wharfkit/antelope'
|
||||
|
||||
export interface PowerUpStateOptions {
|
||||
// timestamp to base adjusted_utilization off
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import {Resources} from './'
|
||||
|
||||
import {Asset, Float64, Struct} from '@greymass/eosio'
|
||||
import {Asset, Float64, Struct} from '@wharfkit/antelope'
|
||||
|
||||
@Struct.type('connector')
|
||||
export class Connector extends Struct {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import {BNPrecision, Resources, SampleUsage} from './'
|
||||
|
||||
import {Asset, Struct, UInt64, UInt8} from '@greymass/eosio'
|
||||
import {Asset, Struct, UInt64, UInt8} from '@wharfkit/antelope'
|
||||
|
||||
@Struct.type('rexstate')
|
||||
export class REXState extends Struct {
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ import 'mocha'
|
||||
import {strict as assert} from 'assert'
|
||||
import fetch from 'node-fetch'
|
||||
|
||||
import {Asset, APIClient} from '@greymass/eosio'
|
||||
import {Asset, APIClient} from '@wharfkit/antelope'
|
||||
|
||||
import {PowerUpState, Resources} from '../src'
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ import {strict as assert} from 'assert'
|
||||
import {join as joinPath} from 'path'
|
||||
import fetch from 'node-fetch'
|
||||
|
||||
import {APIClient, Asset} from '@greymass/eosio'
|
||||
import {APIClient, Asset} from '@wharfkit/antelope'
|
||||
import {MockProvider} from './utils/mock-provider'
|
||||
|
||||
import {PowerUpState, Resources} from '../src'
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ import 'mocha'
|
||||
import {strict as assert} from 'assert'
|
||||
import {join as joinPath} from 'path'
|
||||
|
||||
import {APIClient} from '@greymass/eosio'
|
||||
import {APIClient} from '@wharfkit/antelope'
|
||||
import {MockProvider} from './utils/mock-provider'
|
||||
|
||||
import {RAMState, Resources} from '../src'
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ import 'mocha'
|
||||
import {strict as assert} from 'assert'
|
||||
import {join as joinPath} from 'path'
|
||||
|
||||
import {APIClient, Asset} from '@greymass/eosio'
|
||||
import {APIClient, Asset} from '@wharfkit/antelope'
|
||||
import {MockProvider} from './utils/mock-provider'
|
||||
|
||||
import {Resources, REXState} from '../src'
|
||||
|
||||
@@ -6,7 +6,7 @@ import {readFile as _readFile, writeFile as _writeFile} from 'fs'
|
||||
const readFile = promisify(_readFile)
|
||||
const writeFile = promisify(_writeFile)
|
||||
|
||||
import {APIProvider, Bytes, Checksum160, FetchProvider} from '@greymass/eosio'
|
||||
import {APIProvider, Bytes, Checksum160, FetchProvider} from '@wharfkit/antelope'
|
||||
|
||||
export class MockProvider implements APIProvider {
|
||||
recordProvider = new FetchProvider(this.api, {fetch})
|
||||
|
||||
@@ -199,17 +199,6 @@
|
||||
minimatch "^3.0.4"
|
||||
strip-json-comments "^3.1.1"
|
||||
|
||||
"@greymass/eosio@^0.6.9":
|
||||
version "0.6.9"
|
||||
resolved "https://registry.yarnpkg.com/@greymass/eosio/-/eosio-0.6.9.tgz#e5475dfb6f1507da6ec2f9f0065e19684e8d4b70"
|
||||
integrity sha512-Xd6X3sesStFQiw3+6+8tD1IauW3WX25GQnHa/zhUqIE1cB23bjzLqn89JDTcyQYKJ4R24L1rERqko/u6p7RizA==
|
||||
dependencies:
|
||||
bn.js "^4.11.9"
|
||||
brorand "^1.1.0"
|
||||
elliptic "^6.5.4"
|
||||
hash.js "^1.0.0"
|
||||
tslib "^2.0.3"
|
||||
|
||||
"@istanbuljs/load-nyc-config@^1.0.0":
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced"
|
||||
@@ -359,6 +348,17 @@
|
||||
resolved "https://registry.yarnpkg.com/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz#aa58042711d6e3275dd37dc597e5d31e8c290a44"
|
||||
integrity sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==
|
||||
|
||||
"@wharfkit/antelope@^0.7.3":
|
||||
version "0.7.3"
|
||||
resolved "https://registry.yarnpkg.com/@wharfkit/antelope/-/antelope-0.7.3.tgz#408f6c587f4f5990d4b55596c10be2e976798641"
|
||||
integrity sha512-pyUmuXUpLQh1RVpJVIcbVUHTwV/DQ+MI0nlfWDBHIICdYf6XidZtQmaHB7JEXiFzlS8T7S9Xc5VOTOQU8dnl3Q==
|
||||
dependencies:
|
||||
bn.js "^4.11.9"
|
||||
brorand "^1.1.0"
|
||||
elliptic "^6.5.4"
|
||||
hash.js "^1.0.0"
|
||||
tslib "^2.0.3"
|
||||
|
||||
acorn-jsx@^5.3.1:
|
||||
version "5.3.1"
|
||||
resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.1.tgz#fc8661e11b7ac1539c47dbfea2e72b3af34d267b"
|
||||
@@ -2490,9 +2490,9 @@ tslib@^1.8.1:
|
||||
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
|
||||
|
||||
tslib@^2.0.3:
|
||||
version "2.4.0"
|
||||
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3"
|
||||
integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==
|
||||
version "2.6.1"
|
||||
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.1.tgz#fd8c9a0ff42590b25703c0acb3de3d3f4ede0410"
|
||||
integrity sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig==
|
||||
|
||||
tslib@^2.1.0:
|
||||
version "2.1.0"
|
||||
|
||||
Reference in New Issue
Block a user