mirror of
https://github.com/wharfkit/resources.git
synced 2026-07-21 18:03:39 +00:00
Rewrite math using bigDecimal and Antelope Integers (#16)
* Migrating some math to Antelope integers * v1.4.0-rc1 * v1.5.0-rc1 * v1.5.0-rc2 * v1.5.0-rc3 * A-B testing function rewrites * Update src/powerup/abstract.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Removed direct usage of bigDecimal * Fixed comparison operators * Removed unneeded casting * Removed legacy functions * Wipe test data * Fixed tests * v1.5.0-rc4 * Allowing passing min_payment to options, and check for requests with little CPU * v1.5.0-rc5 * v1.5.0 --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
+3
-3
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@wharfkit/resources",
|
||||
"description": "Library to assist in Antelope-blockchain resource calculations.",
|
||||
"version": "1.3.1",
|
||||
"version": "1.5.0",
|
||||
"homepage": "https://github.com/wharfkit/resources",
|
||||
"license": "BSD-3-Clause",
|
||||
"main": "lib/wharfkit-resources.js",
|
||||
@@ -20,7 +20,7 @@
|
||||
"prepare": "make"
|
||||
},
|
||||
"dependencies": {
|
||||
"@wharfkit/antelope": "^1.0.0",
|
||||
"@wharfkit/antelope": "^1.1.0",
|
||||
"bn.js": "^4.11.9",
|
||||
"js-big-decimal": "^2.0.7",
|
||||
"tslib": "^2.1.0"
|
||||
@@ -31,7 +31,7 @@
|
||||
"@types/node": "^14.14.28",
|
||||
"@typescript-eslint/eslint-plugin": "^4.15.1",
|
||||
"@typescript-eslint/parser": "^4.15.1",
|
||||
"@wharfkit/mock-data": "^1.2.0",
|
||||
"@wharfkit/mock-data": "^1.3.0",
|
||||
"assert": "^2.0.0",
|
||||
"eslint": "^7.19.0",
|
||||
"eslint-config-prettier": "^7.0.0",
|
||||
|
||||
+6
-1
@@ -1,9 +1,10 @@
|
||||
import {API, APIClient, APIClientOptions, FetchProvider, UInt128} from '@wharfkit/antelope'
|
||||
import {API, APIClient, APIClientOptions, FetchProvider, Int, UInt128} from '@wharfkit/antelope'
|
||||
import BN from 'bn.js'
|
||||
|
||||
import {PowerUpAPI} from './powerup'
|
||||
import {RAMAPI} from './ram'
|
||||
import {REXAPI} from './rex'
|
||||
import bigDecimal from 'js-big-decimal'
|
||||
|
||||
export * from './powerup'
|
||||
export * from './ram'
|
||||
@@ -85,3 +86,7 @@ function divCeil(num: BN, den: BN): UInt128 {
|
||||
}
|
||||
return UInt128.from(v)
|
||||
}
|
||||
|
||||
export function intToBigDecimal(value: Int | number) {
|
||||
return new bigDecimal(String(value))
|
||||
}
|
||||
|
||||
+52
-60
@@ -10,9 +10,8 @@ import {
|
||||
UInt8,
|
||||
} from '@wharfkit/antelope'
|
||||
|
||||
import BN from 'bn.js'
|
||||
import {intToBigDecimal} from '..'
|
||||
import {PowerUpStateOptions} from './options'
|
||||
import bigDecimal from 'js-big-decimal'
|
||||
|
||||
export abstract class PowerUpStateResource extends Struct {
|
||||
@Struct.field('uint8') version!: UInt8
|
||||
@@ -37,13 +36,13 @@ export abstract class PowerUpStateResource extends Struct {
|
||||
abstract per_day(options?: PowerUpStateOptions): number
|
||||
|
||||
// Get the current number of allocated units (shift from REX -> PowerUp)
|
||||
public get allocated() {
|
||||
return 1 - Number(this.weight_ratio) / Number(this.target_weight_ratio) / 100
|
||||
public get allocated(): number {
|
||||
return 1 - Number(this.weight_ratio.dividing(this.target_weight_ratio)) / 100
|
||||
}
|
||||
|
||||
// Get the current percentage of reserved units
|
||||
public get reserved() {
|
||||
return new BN(String(this.utilization)) / new BN(String(this.weight))
|
||||
public get reserved(): Int64 {
|
||||
return this.utilization.dividing(this.weight)
|
||||
}
|
||||
|
||||
// Get the symbol definition for the token
|
||||
@@ -51,78 +50,69 @@ export abstract class PowerUpStateResource extends Struct {
|
||||
return this.min_price.symbol
|
||||
}
|
||||
|
||||
// Common casting for typed values to numbers
|
||||
cast() {
|
||||
return {
|
||||
adjusted_utilization: Number(this.adjusted_utilization),
|
||||
decay_secs: Number(this.decay_secs.value),
|
||||
exponent: Number(this.exponent),
|
||||
utilization: Number(this.utilization),
|
||||
utilization_timestamp: Number(this.utilization_timestamp.value),
|
||||
weight: new BN(String(this.weight)),
|
||||
weight_ratio: Number(this.weight_ratio),
|
||||
}
|
||||
}
|
||||
|
||||
// Mimic: https://github.com/EOSIO/eosio.contracts/blob/d7bc0a5cc8c0c2edd4dc61b0126517d0cb46fd94/contracts/eosio.system/src/powerup.cpp#L358
|
||||
utilization_increase(sample: UInt128, frac) {
|
||||
const {weight} = this
|
||||
const frac128 = UInt128.from(frac)
|
||||
const utilization_increase =
|
||||
new BN(weight.value.mul(new BN(frac128.value))) / Math.pow(10, 15)
|
||||
return Math.ceil(utilization_increase)
|
||||
utilization_increase(frac: UInt128) {
|
||||
const base = intToBigDecimal(frac)
|
||||
const weight = intToBigDecimal(this.weight)
|
||||
const multiplier = intToBigDecimal(Math.pow(10, 15))
|
||||
return UInt128.from(base.multiply(weight).divide(multiplier, 15).ceil().getValue())
|
||||
}
|
||||
|
||||
// Mimic: https://github.com/EOSIO/eosio.contracts/blob/d7bc0a5cc8c0c2edd4dc61b0126517d0cb46fd94/contracts/eosio.system/src/powerup.cpp#L284-L298
|
||||
price_function(utilization: number): number {
|
||||
const {exponent, weight} = this.cast()
|
||||
const max_price: number = this.max_price.value
|
||||
const min_price: number = this.min_price.value
|
||||
let price = min_price
|
||||
const new_exponent = exponent - 1.0
|
||||
price_function(utilization: Int64): number {
|
||||
const {weight} = this
|
||||
let price = this.min_price.value
|
||||
const new_exponent = Number(this.exponent) - 1.0
|
||||
if (new_exponent <= 0.0) {
|
||||
return max_price
|
||||
return this.max_price.value
|
||||
} else {
|
||||
const util_weight = new BN(utilization) / weight
|
||||
price += (max_price - min_price) * Math.pow(util_weight, new_exponent)
|
||||
// const util_weight = utilization.dividing(weight)
|
||||
const util_weight = intToBigDecimal(utilization).divide(intToBigDecimal(weight), 18)
|
||||
const difference = this.max_price.value - this.min_price.value
|
||||
price += difference * Math.pow(Number(util_weight.getValue()), new_exponent)
|
||||
}
|
||||
return price
|
||||
}
|
||||
|
||||
// Mimic: https://github.com/EOSIO/eosio.contracts/blob/d7bc0a5cc8c0c2edd4dc61b0126517d0cb46fd94/contracts/eosio.system/src/powerup.cpp#L274-L280
|
||||
price_integral_delta(start_utilization: number, end_utilization: number): number {
|
||||
const {exponent, weight} = this.cast()
|
||||
const max_price: number = this.max_price.value
|
||||
const min_price: number = this.min_price.value
|
||||
const coefficient = (max_price - min_price) / exponent
|
||||
const start_u = new BN(start_utilization) / weight
|
||||
const end_u = new BN(end_utilization) / weight
|
||||
price_integral_delta(start_utilization: Int64, end_utilization: Int64): number {
|
||||
const difference = Asset.fromUnits(
|
||||
this.max_price.units.subtracting(this.min_price.units),
|
||||
this.symbol
|
||||
)
|
||||
const coefficient = difference.value / this.exponent.value
|
||||
const start_u = Number(start_utilization.dividing(this.weight))
|
||||
const end_u = Number(end_utilization.dividing(this.weight))
|
||||
const delta =
|
||||
min_price * end_u -
|
||||
min_price * start_u +
|
||||
coefficient * Math.pow(end_u, exponent) -
|
||||
coefficient * Math.pow(start_u, exponent)
|
||||
this.min_price.value * end_u -
|
||||
this.min_price.value * start_u +
|
||||
coefficient * Math.pow(end_u, this.exponent.value) -
|
||||
coefficient * Math.pow(start_u, this.exponent.value)
|
||||
return delta
|
||||
}
|
||||
|
||||
// Mimic: https://github.com/EOSIO/eosio.contracts/blob/d7bc0a5cc8c0c2edd4dc61b0126517d0cb46fd94/contracts/eosio.system/src/powerup.cpp#L262-L315
|
||||
fee(utilization_increase, adjusted_utilization) {
|
||||
const {utilization, weight} = this.cast()
|
||||
fee(utilization_increase: UInt128, adjusted_utilization: Int64) {
|
||||
const {utilization, weight} = this
|
||||
|
||||
let start_utilization: number = utilization
|
||||
const end_utilization: number = start_utilization + utilization_increase
|
||||
let start_utilization = Int64.from(utilization)
|
||||
const end_utilization = start_utilization.adding(utilization_increase)
|
||||
|
||||
let fee = 0
|
||||
if (start_utilization < adjusted_utilization) {
|
||||
const min = Math.min(utilization_increase, adjusted_utilization - start_utilization)
|
||||
if (start_utilization.lt(adjusted_utilization)) {
|
||||
const min = Math.min(
|
||||
Number(utilization_increase),
|
||||
Number(adjusted_utilization.subtracting(start_utilization))
|
||||
)
|
||||
fee += Number(
|
||||
new bigDecimal(this.price_function(adjusted_utilization) * min)
|
||||
.divide(new bigDecimal(weight.toString()))
|
||||
intToBigDecimal(this.price_function(adjusted_utilization) * min)
|
||||
.divide(intToBigDecimal(weight))
|
||||
.getValue()
|
||||
)
|
||||
|
||||
start_utilization = adjusted_utilization
|
||||
}
|
||||
if (start_utilization < end_utilization) {
|
||||
if (start_utilization.lt(end_utilization)) {
|
||||
fee += this.price_integral_delta(start_utilization, end_utilization)
|
||||
}
|
||||
return fee
|
||||
@@ -131,17 +121,19 @@ export abstract class PowerUpStateResource extends Struct {
|
||||
// Mimic: https://github.com/EOSIO/eosio.contracts/blob/d7bc0a5cc8c0c2edd4dc61b0126517d0cb46fd94/contracts/eosio.system/src/powerup.cpp#L105-L117
|
||||
determine_adjusted_utilization(options?: PowerUpStateOptions) {
|
||||
// Casting EOSIO types to usable formats for JS calculations
|
||||
const {decay_secs, utilization, utilization_timestamp} = this.cast()
|
||||
let {adjusted_utilization} = this.cast()
|
||||
const {decay_secs, utilization, utilization_timestamp} = this
|
||||
let {adjusted_utilization} = this
|
||||
// If utilization is less than adjusted, calculate real time value
|
||||
if (utilization < adjusted_utilization) {
|
||||
if (utilization.lt(adjusted_utilization)) {
|
||||
// Create now & adjust JS timestamp to match EOSIO timestamp values
|
||||
const ts = options && options.timestamp ? options.timestamp : new Date()
|
||||
const now = TimePointSec.from(ts).toMilliseconds() / 1000
|
||||
const diff: number = adjusted_utilization - utilization
|
||||
let delta: number = diff * Math.exp(-(now - utilization_timestamp) / decay_secs)
|
||||
const diff = adjusted_utilization.subtracting(utilization).toNumber()
|
||||
let delta: number =
|
||||
diff *
|
||||
Math.exp(-(now - utilization_timestamp.toMilliseconds()) / Number(decay_secs))
|
||||
delta = Math.min(Math.max(delta, 0), diff) // Clamp the delta
|
||||
adjusted_utilization = utilization + delta
|
||||
adjusted_utilization = utilization.adding(delta)
|
||||
}
|
||||
return adjusted_utilization
|
||||
}
|
||||
|
||||
+35
-17
@@ -1,9 +1,8 @@
|
||||
import {Struct, UInt128} from '@wharfkit/antelope'
|
||||
import {Asset, Int64, Int64Type, Struct, UInt128, UInt128Type} from '@wharfkit/antelope'
|
||||
|
||||
import {BNPrecision, SampleUsage} from '..'
|
||||
import {BNPrecision, intToBigDecimal, SampleUsage} from '..'
|
||||
import {PowerUpStateResource} from './abstract'
|
||||
import {PowerUpStateOptions} from './options'
|
||||
import BN from 'bn.js'
|
||||
|
||||
@Struct.type('powerupstateresourcecpu')
|
||||
export class PowerUpStateResourceCPU extends PowerUpStateResource {
|
||||
@@ -25,13 +24,15 @@ export class PowerUpStateResourceCPU extends PowerUpStateResource {
|
||||
}
|
||||
|
||||
// Convert weight to μs (microseconds)
|
||||
weight_to_us(sample: UInt128, weight: number): number {
|
||||
return Math.ceil((weight * Number(sample)) / BNPrecision)
|
||||
weight_to_us(sample: UInt128Type, weight: Int64Type): UInt128 {
|
||||
return UInt128.from(
|
||||
UInt128.from(weight).multiplying(Int64.from(sample)).dividing(BNPrecision, 'ceil')
|
||||
)
|
||||
}
|
||||
|
||||
// Convert μs (microseconds) to weight
|
||||
us_to_weight(sample: UInt128, us: number): number {
|
||||
return Math.floor((us / Number(sample)) * BNPrecision)
|
||||
us_to_weight(sample: UInt128, us: Int64Type): Int64 {
|
||||
return Int64.from(us).multiplying(BNPrecision).dividing(sample, 'floor')
|
||||
}
|
||||
|
||||
// Default frac generation by smallest unit type
|
||||
@@ -41,10 +42,13 @@ export class PowerUpStateResourceCPU extends PowerUpStateResource {
|
||||
frac_by_ms = (usage: SampleUsage, ms: number) => this.frac_by_us(usage, ms * 1000)
|
||||
|
||||
// Frac generation by μs (microseconds)
|
||||
frac_by_us(usage: SampleUsage, us: number) {
|
||||
const {weight} = this.cast()
|
||||
const frac = new BN(this.us_to_weight(usage.cpu, us)) / weight
|
||||
return Math.floor(frac * Math.pow(10, 15))
|
||||
frac_by_us(usage: SampleUsage, us: Int64Type): Int64 {
|
||||
const precision = 15
|
||||
const converted = intToBigDecimal(this.us_to_weight(usage.cpu, us))
|
||||
const current = intToBigDecimal(this.weight)
|
||||
const multiplier = intToBigDecimal(Math.pow(10, precision))
|
||||
const frac = converted.divide(current, precision).multiply(multiplier)
|
||||
return Int64.from(frac.getValue())
|
||||
}
|
||||
|
||||
// Price generation by smallest units, μs (microseconds)
|
||||
@@ -59,18 +63,32 @@ export class PowerUpStateResourceCPU extends PowerUpStateResource {
|
||||
price_per_us(usage: SampleUsage, us = 1000, options?: PowerUpStateOptions): number {
|
||||
// Determine the utilization increase by this action
|
||||
const frac = UInt128.from(this.frac(usage, us))
|
||||
const utilization_increase = this.utilization_increase(usage.cpu, frac)
|
||||
|
||||
const utilization_increase = this.utilization_increase(frac)
|
||||
// Determine the adjusted utilization if needed
|
||||
const adjusted_utilization = this.determine_adjusted_utilization(options)
|
||||
|
||||
// Derive the fee from the increase and utilization
|
||||
const fee = this.fee(utilization_increase, adjusted_utilization)
|
||||
|
||||
// Force the fee up to the next highest value of precision
|
||||
const precision = Math.pow(10, this.max_price.symbol.precision)
|
||||
const value = Math.ceil(fee * precision) / precision
|
||||
|
||||
const price = fee * precision
|
||||
const value = Math.ceil(price) / precision
|
||||
const asset = Asset.fromFloat(fee, this.symbol)
|
||||
if (price < 1) {
|
||||
throw new Error(
|
||||
`Price (${String(
|
||||
asset
|
||||
)}) for requested CPU amount (${us}us) below required precision, increase requested amount.`
|
||||
)
|
||||
}
|
||||
if (options && options.min_payment && options.min_payment.units.gt(asset.units)) {
|
||||
throw new Error(
|
||||
`Price (${String(
|
||||
asset
|
||||
)}) for requested CPU amount (${us}us) below minimum required payment (${String(
|
||||
options.min_payment
|
||||
)}), increase requested CPU amount.`
|
||||
)
|
||||
}
|
||||
// Return the modified fee
|
||||
return value
|
||||
}
|
||||
|
||||
+16
-12
@@ -1,9 +1,8 @@
|
||||
import {Struct, UInt128} from '@wharfkit/antelope'
|
||||
import {Int64, Int64Type, Struct, UInt128} from '@wharfkit/antelope'
|
||||
|
||||
import {BNPrecision, SampleUsage} from '..'
|
||||
import {BNPrecision, intToBigDecimal, SampleUsage} from '..'
|
||||
import {PowerUpStateResource} from './abstract'
|
||||
import {PowerUpStateOptions} from './options'
|
||||
import BN from 'bn.js'
|
||||
|
||||
@Struct.type('powerupstateresourcenet')
|
||||
export class PowerUpStateResourceNET extends PowerUpStateResource {
|
||||
@@ -25,13 +24,15 @@ export class PowerUpStateResourceNET extends PowerUpStateResource {
|
||||
}
|
||||
|
||||
// Convert weight to bytes
|
||||
weight_to_bytes(sample: UInt128, weight: number): number {
|
||||
return Math.ceil((weight * Number(sample)) / BNPrecision)
|
||||
weight_to_bytes(sample: UInt128, weight: number): UInt128 {
|
||||
return UInt128.from(
|
||||
UInt128.from(weight).multiplying(Int64.from(sample)).dividing(BNPrecision, 'ceil')
|
||||
)
|
||||
}
|
||||
|
||||
// Convert bytes to weight
|
||||
bytes_to_weight(sample: UInt128, bytes: number): number {
|
||||
return Math.floor((bytes / Number(sample)) * BNPrecision)
|
||||
bytes_to_weight(sample: UInt128, bytes: Int64Type): Int64 {
|
||||
return Int64.from(bytes).multiplying(BNPrecision).dividing(Int64.from(sample), 'floor')
|
||||
}
|
||||
|
||||
// Default frac generation by smallest unit type
|
||||
@@ -42,10 +43,13 @@ export class PowerUpStateResourceNET extends PowerUpStateResource {
|
||||
this.frac_by_bytes(usage, kilobytes * 1000)
|
||||
|
||||
// Frac generation by bytes
|
||||
frac_by_bytes(usage: SampleUsage, bytes: number) {
|
||||
const {weight} = this.cast()
|
||||
const frac = new BN(this.bytes_to_weight(usage.net, bytes)) / weight
|
||||
return Math.floor(frac * Math.pow(10, 15))
|
||||
frac_by_bytes(usage: SampleUsage, bytes: Int64Type): Int64 {
|
||||
const precision = 15
|
||||
const converted = intToBigDecimal(this.bytes_to_weight(usage.net, bytes))
|
||||
const current = intToBigDecimal(this.weight)
|
||||
const multiplier = intToBigDecimal(Math.pow(10, precision))
|
||||
const frac = converted.divide(current, precision).multiply(multiplier)
|
||||
return Int64.from(frac.getValue())
|
||||
}
|
||||
|
||||
// Price generation by smallest units, bytes
|
||||
@@ -60,7 +64,7 @@ export class PowerUpStateResourceNET extends PowerUpStateResource {
|
||||
price_per_byte(usage: SampleUsage, bytes = 1000, options?: PowerUpStateOptions): number {
|
||||
// Determine the utilization increase by this action
|
||||
const frac = UInt128.from(this.frac(usage, bytes))
|
||||
const utilization_increase = this.utilization_increase(usage.net, frac)
|
||||
const utilization_increase = this.utilization_increase(frac)
|
||||
|
||||
// Determine the adjusted utilization if needed
|
||||
const adjusted_utilization = this.determine_adjusted_utilization(options)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {TimePointType, UInt64} from '@wharfkit/antelope'
|
||||
import {Asset, TimePointType, UInt64} from '@wharfkit/antelope'
|
||||
|
||||
export interface PowerUpStateOptions {
|
||||
// timestamp to base adjusted_utilization off
|
||||
@@ -6,4 +6,6 @@ export interface PowerUpStateOptions {
|
||||
// blockchain resource limits for calculating usage
|
||||
virtual_block_cpu_limit?: UInt64
|
||||
virtual_block_net_limit?: UInt64
|
||||
// minimum payment amount
|
||||
min_payment?: Asset
|
||||
}
|
||||
|
||||
+10
-9
@@ -1,4 +1,4 @@
|
||||
import {BNPrecision, Resources, SampleUsage} from './'
|
||||
import {BNPrecision, intToBigDecimal, Resources, SampleUsage} from './'
|
||||
|
||||
import {Asset, Struct, UInt128, UInt64, UInt8} from '@wharfkit/antelope'
|
||||
|
||||
@@ -26,17 +26,18 @@ export class REXState extends Struct {
|
||||
}
|
||||
|
||||
public get value() {
|
||||
return (
|
||||
(Number(this.total_lent.units) + Number(this.total_unlent.units)) /
|
||||
Number(this.total_rex.units)
|
||||
)
|
||||
const lent = intToBigDecimal(this.total_lent.units)
|
||||
const unlent = intToBigDecimal(this.total_unlent.units)
|
||||
const rex = intToBigDecimal(this.total_rex.units)
|
||||
return Number(lent.add(unlent).divide(rex, 18).getValue())
|
||||
}
|
||||
|
||||
exchange(amount: Asset): Asset {
|
||||
return Asset.from(
|
||||
(amount.value * this.total_lendable.value) / this.total_rex.value,
|
||||
this.symbol
|
||||
)
|
||||
const value = intToBigDecimal(amount.units)
|
||||
const lendable = intToBigDecimal(this.total_lendable.units)
|
||||
const rex = intToBigDecimal(this.total_rex.units)
|
||||
const tokens = value.multiply(lendable).divide(rex, this.precision)
|
||||
return Asset.fromUnits(Number(tokens.getValue()), this.symbol)
|
||||
}
|
||||
|
||||
cpu_price_per_ms(sample: SampleUsage, ms = 1): number {
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
{
|
||||
"request": {
|
||||
"path": "https://eos.greymass.com/v1/chain/get_info",
|
||||
"params": {
|
||||
"method": "GET"
|
||||
}
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"server_version": "43873e82",
|
||||
"chain_id": "aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906",
|
||||
"head_block_num": 340895511,
|
||||
"last_irreversible_block_num": 340895176,
|
||||
"last_irreversible_block_id": "1451a5c88df252644e99a33ca328c3bd8d5e81361b9524b10a14b6901f6a2f55",
|
||||
"head_block_id": "1451a717d660644b1e45760e39f9cfab50a983bb926940325b6f543987ca7366",
|
||||
"head_block_time": "2023-11-10T17:36:11.000",
|
||||
"head_block_producer": "bitfinexeos1",
|
||||
"virtual_block_cpu_limit": 200000,
|
||||
"virtual_block_net_limit": 1048576000,
|
||||
"block_cpu_limit": 200000,
|
||||
"block_net_limit": 1048576,
|
||||
"server_version_string": "v3.2.3-hotfix",
|
||||
"fork_db_head_block_num": 340895511,
|
||||
"fork_db_head_block_id": "1451a717d660644b1e45760e39f9cfab50a983bb926940325b6f543987ca7366",
|
||||
"server_full_version_string": "v3.2.3-hotfix-43873e822160be5e5f364fd867e3c7d27162cd0c-dirty",
|
||||
"total_cpu_weight": "383322901692810",
|
||||
"total_net_weight": "96096575077807",
|
||||
"earliest_available_block_num": 340722102,
|
||||
"last_irreversible_block_time": "2023-11-10T17:33:23.500"
|
||||
},
|
||||
"text": "{\"server_version\":\"43873e82\",\"chain_id\":\"aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906\",\"head_block_num\":340895511,\"last_irreversible_block_num\":340895176,\"last_irreversible_block_id\":\"1451a5c88df252644e99a33ca328c3bd8d5e81361b9524b10a14b6901f6a2f55\",\"head_block_id\":\"1451a717d660644b1e45760e39f9cfab50a983bb926940325b6f543987ca7366\",\"head_block_time\":\"2023-11-10T17:36:11.000\",\"head_block_producer\":\"bitfinexeos1\",\"virtual_block_cpu_limit\":200000,\"virtual_block_net_limit\":1048576000,\"block_cpu_limit\":200000,\"block_net_limit\":1048576,\"server_version_string\":\"v3.2.3-hotfix\",\"fork_db_head_block_num\":340895511,\"fork_db_head_block_id\":\"1451a717d660644b1e45760e39f9cfab50a983bb926940325b6f543987ca7366\",\"server_full_version_string\":\"v3.2.3-hotfix-43873e822160be5e5f364fd867e3c7d27162cd0c-dirty\",\"total_cpu_weight\":\"383322901692810\",\"total_net_weight\":\"96096575077807\",\"earliest_available_block_num\":340722102,\"last_irreversible_block_time\":\"2023-11-10T17:33:23.500\"}"
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"headers": {
|
||||
"access-control-allow-headers": "X-Requested-With,Accept,Content-Type,Origin",
|
||||
"access-control-allow-methods": "GET, POST, OPTIONS",
|
||||
"access-control-allow-origin": "*",
|
||||
"connection": "close",
|
||||
"content-length": "554",
|
||||
"content-type": "application/json",
|
||||
"date": "Sat, 25 Sep 2021 08:01:05 GMT",
|
||||
"host": "jungle3.greymass.com",
|
||||
"server": "nginx"
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"rows": [
|
||||
"00005349b4ebb444030000a0724e18090000514ef29a7308000000a0724e1809000000a0724e180900004e84d3604e84d36000000000000000408051010040787d010000000004454f53000000008017b42c0000000004454f5300000000c64a4c5911000000619dacd73900000003d74e61001226d1aed3120d0000a0724e180900004639c96bce21000000a0724e1809000000a0724e180900004e84d3604e84d36000000000000000408051010040787d010000000004454f53000000008017b42c0000000004454f5300000000534599d71501000071fdd168b202000003d74e6101000000010000000000000004454f5300000000"
|
||||
],
|
||||
"more": false,
|
||||
"next_key": "",
|
||||
"next_key_bytes": ""
|
||||
},
|
||||
"text": "{\"rows\":[\"00005349b4ebb444030000a0724e18090000514ef29a7308000000a0724e1809000000a0724e180900004e84d3604e84d36000000000000000408051010040787d010000000004454f53000000008017b42c0000000004454f5300000000c64a4c5911000000619dacd73900000003d74e61001226d1aed3120d0000a0724e180900004639c96bce21000000a0724e1809000000a0724e180900004e84d3604e84d36000000000000000408051010040787d010000000004454f53000000008017b42c0000000004454f5300000000534599d71501000071fdd168b202000003d74e6101000000010000000000000004454f5300000000\"],\"more\":false,\"next_key\":\"\",\"next_key_bytes\":\"\"}"
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"headers": {
|
||||
"access-control-allow-headers": "X-Requested-With,Accept,Content-Type,Origin",
|
||||
"access-control-allow-methods": "GET, POST, OPTIONS",
|
||||
"access-control-allow-origin": "*",
|
||||
"connection": "close",
|
||||
"content-length": "168",
|
||||
"content-type": "application/json",
|
||||
"date": "Mon, 04 Sep 2023 19:09:10 GMT",
|
||||
"host": "eos.greymass.com",
|
||||
"server": "nginx",
|
||||
"x-cached": "MISS"
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"rows": [
|
||||
"00407a10f35a00000452414d434f52453e4e92cf4d0000000052414d00000000000000000000e03f97babe970c00000004454f5300000000000000000000e03f"
|
||||
],
|
||||
"more": false,
|
||||
"next_key": ""
|
||||
},
|
||||
"text": "{\"rows\":[\"00407a10f35a00000452414d434f52453e4e92cf4d0000000052414d00000000000000000000e03f97babe970c00000004454f5300000000000000000000e03f\"],\"more\":false,\"next_key\":\"\"}"
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
{
|
||||
"request": {
|
||||
"path": "https://wax.greymass.com/v1/chain/get_info",
|
||||
"params": {
|
||||
"method": "GET"
|
||||
}
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"server_version": "7aa24ce9",
|
||||
"chain_id": "1064487b3cd1a897ce03ae5b6a865651747e2e152090f99c1d19d44e01aea5a4",
|
||||
"head_block_num": 289066283,
|
||||
"last_irreversible_block_num": 289065947,
|
||||
"last_irreversible_block_id": "113acbdb0b088d60b5e6fb6c7c923ffdc1034ac6e452cc086b974248c7e82e5b",
|
||||
"head_block_id": "113acd2bcd90ab0d5c167340fb660ce3deafd23d7c6a9f3c777790bc278efa4f",
|
||||
"head_block_time": "2024-01-23T10:25:41.500",
|
||||
"head_block_producer": "alohaeosprod",
|
||||
"virtual_block_cpu_limit": 219406,
|
||||
"virtual_block_net_limit": 1048576000,
|
||||
"block_cpu_limit": 200000,
|
||||
"block_net_limit": 1048576,
|
||||
"server_version_string": "v5.0.0wax01",
|
||||
"fork_db_head_block_num": 289066283,
|
||||
"fork_db_head_block_id": "113acd2bcd90ab0d5c167340fb660ce3deafd23d7c6a9f3c777790bc278efa4f",
|
||||
"server_full_version_string": "v5.0.0wax01-7aa24ce9d98c744564840e23833bdbf7ec00af33",
|
||||
"total_cpu_weight": "41228592284233074",
|
||||
"total_net_weight": "133497145042255682",
|
||||
"earliest_available_block_num": 288892579,
|
||||
"last_irreversible_block_time": "2024-01-23T10:22:53.500"
|
||||
},
|
||||
"text": "{\"server_version\":\"7aa24ce9\",\"chain_id\":\"1064487b3cd1a897ce03ae5b6a865651747e2e152090f99c1d19d44e01aea5a4\",\"head_block_num\":289066283,\"last_irreversible_block_num\":289065947,\"last_irreversible_block_id\":\"113acbdb0b088d60b5e6fb6c7c923ffdc1034ac6e452cc086b974248c7e82e5b\",\"head_block_id\":\"113acd2bcd90ab0d5c167340fb660ce3deafd23d7c6a9f3c777790bc278efa4f\",\"head_block_time\":\"2024-01-23T10:25:41.500\",\"head_block_producer\":\"alohaeosprod\",\"virtual_block_cpu_limit\":219406,\"virtual_block_net_limit\":1048576000,\"block_cpu_limit\":200000,\"block_net_limit\":1048576,\"server_version_string\":\"v5.0.0wax01\",\"fork_db_head_block_num\":289066283,\"fork_db_head_block_id\":\"113acd2bcd90ab0d5c167340fb660ce3deafd23d7c6a9f3c777790bc278efa4f\",\"server_full_version_string\":\"v5.0.0wax01-7aa24ce9d98c744564840e23833bdbf7ec00af33\",\"total_cpu_weight\":\"41228592284233074\",\"total_net_weight\":\"133497145042255682\",\"earliest_available_block_num\":288892579,\"last_irreversible_block_time\":\"2024-01-23T10:22:53.500\"}"
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
{
|
||||
"headers": {
|
||||
"access-control-allow-headers": "X-Requested-With,Accept,Content-Type,Origin",
|
||||
"access-control-allow-methods": "GET, POST, OPTIONS",
|
||||
"access-control-allow-origin": "*",
|
||||
"connection": "close",
|
||||
"content-length": "853",
|
||||
"content-type": "application/json",
|
||||
"date": "Sat, 25 Sep 2021 08:01:05 GMT",
|
||||
"host": "jungle3.greymass.com",
|
||||
"server": "nginx"
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"server_version": "26a4d285",
|
||||
"chain_id": "2a02a0053e5a8cf73a56ba0fda11e4d92e0238a4a2aa74fccf46d5a910746840",
|
||||
"head_block_num": 100688669,
|
||||
"last_irreversible_block_num": 100688334,
|
||||
"last_irreversible_block_id": "060061ce3d5775fd99180ffc1a93c153d4ef6a4736a357111d99740a3a4855c4",
|
||||
"head_block_id": "0600631d1760b0a285d2db1b310c0fa20ada8882ef10ae786e53e135d7aa66f9",
|
||||
"head_block_time": "2021-09-25T08:01:05.000",
|
||||
"head_block_producer": "batinthedark",
|
||||
"virtual_block_cpu_limit": 200000000,
|
||||
"virtual_block_net_limit": 1048576000,
|
||||
"block_cpu_limit": 200000,
|
||||
"block_net_limit": 1048576,
|
||||
"server_version_string": "v2.1.0",
|
||||
"fork_db_head_block_num": 100688669,
|
||||
"fork_db_head_block_id": "0600631d1760b0a285d2db1b310c0fa20ada8882ef10ae786e53e135d7aa66f9",
|
||||
"server_full_version_string": "v2.1.0-26a4d285d0be1052d962149e431eb81500782991",
|
||||
"last_irreversible_block_time": "2021-09-25T07:58:17.500"
|
||||
},
|
||||
"text": "{\"server_version\":\"26a4d285\",\"chain_id\":\"2a02a0053e5a8cf73a56ba0fda11e4d92e0238a4a2aa74fccf46d5a910746840\",\"head_block_num\":100688669,\"last_irreversible_block_num\":100688334,\"last_irreversible_block_id\":\"060061ce3d5775fd99180ffc1a93c153d4ef6a4736a357111d99740a3a4855c4\",\"head_block_id\":\"0600631d1760b0a285d2db1b310c0fa20ada8882ef10ae786e53e135d7aa66f9\",\"head_block_time\":\"2021-09-25T08:01:05.000\",\"head_block_producer\":\"batinthedark\",\"virtual_block_cpu_limit\":200000000,\"virtual_block_net_limit\":1048576000,\"block_cpu_limit\":200000,\"block_net_limit\":1048576,\"server_version_string\":\"v2.1.0\",\"fork_db_head_block_num\":100688669,\"fork_db_head_block_id\":\"0600631d1760b0a285d2db1b310c0fa20ada8882ef10ae786e53e135d7aa66f9\",\"server_full_version_string\":\"v2.1.0-26a4d285d0be1052d962149e431eb81500782991\",\"last_irreversible_block_time\":\"2021-09-25T07:58:17.500\"}"
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
{
|
||||
"headers": {
|
||||
"access-control-allow-headers": "X-Requested-With,Accept,Content-Type,Origin",
|
||||
"access-control-allow-methods": "GET, POST, OPTIONS",
|
||||
"access-control-allow-origin": "*",
|
||||
"connection": "close",
|
||||
"content-length": "270",
|
||||
"content-type": "application/json",
|
||||
"date": "Sat, 25 Sep 2021 08:01:07 GMT",
|
||||
"host": "eos.greymass.com",
|
||||
"server": "nginx",
|
||||
"x-cached": "EXPIRED"
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"rows": [
|
||||
"00e0fa6f331300000004454f53000000006219f82a7000000004454f5300000000cb844c020000000004454f53000000004214685e8300000004454f530000000051f9aba540d313000452455800000000000000000000000004454f5300000000218a070000000000"
|
||||
],
|
||||
"more": false,
|
||||
"next_key": "",
|
||||
"next_key_bytes": ""
|
||||
},
|
||||
"text": "{\"rows\":[\"00e0fa6f331300000004454f53000000006219f82a7000000004454f5300000000cb844c020000000004454f53000000004214685e8300000004454f530000000051f9aba540d313000452455800000000000000000000000004454f5300000000218a070000000000\"],\"more\":false,\"next_key\":\"\",\"next_key_bytes\":\"\"}"
|
||||
}
|
||||
@@ -1,125 +0,0 @@
|
||||
{
|
||||
"headers": {
|
||||
"access-control-allow-headers": "X-Requested-With,Accept,Content-Type,Origin",
|
||||
"access-control-allow-methods": "GET, POST, OPTIONS",
|
||||
"access-control-allow-origin": "*",
|
||||
"connection": "close",
|
||||
"content-length": "1956",
|
||||
"content-type": "application/json",
|
||||
"date": "Sat, 25 Sep 2021 08:01:04 GMT",
|
||||
"host": "eos.greymass.com",
|
||||
"server": "nginx",
|
||||
"x-cached": "EXPIRED"
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"account_name": "b1",
|
||||
"head_block_num": 206790429,
|
||||
"head_block_time": "2021-09-25T08:01:04.500",
|
||||
"privileged": false,
|
||||
"last_code_update": "1970-01-01T00:00:00.000",
|
||||
"created": "2018-06-09T11:58:03.500",
|
||||
"core_liquid_balance": "1500000.0029 EOS",
|
||||
"ram_quota": "34307705487",
|
||||
"net_weight": "398984142967",
|
||||
"cpu_weight": "345999975142",
|
||||
"net_limit": {
|
||||
"used": 145,
|
||||
"available": "748210466963",
|
||||
"max": "748210467108",
|
||||
"last_usage_update_time": "2021-09-23T02:01:22.500",
|
||||
"current_used": 0
|
||||
},
|
||||
"cpu_limit": {
|
||||
"used": 1222,
|
||||
"available": 31097733,
|
||||
"max": 31098955,
|
||||
"last_usage_update_time": "2021-09-23T02:01:22.500",
|
||||
"current_used": 0
|
||||
},
|
||||
"ram_usage": 4786,
|
||||
"permissions": [
|
||||
{
|
||||
"perm_name": "active",
|
||||
"parent": "owner",
|
||||
"required_auth": {
|
||||
"threshold": 2,
|
||||
"keys": [
|
||||
{
|
||||
"key": "EOS6hQ6v8vut1V2giQCYha7J225GCzFJtF3o7fy8JYuN7k6fG4n23",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"key": "EOS6kY8kfmFHiXkVqxDNo1uRhW9g4SvHsfgdvfMu2N6Qz4A59rrjd",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"key": "EOS7RodmQofvAxgYBJzfNuwRKr6TWh5LbCBfB4uQ8tjrjQ8Ukkwqq",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"key": "EOS7c9jHNgbtTMYgpXvmTb1kW61oH6kwfGioWk75ugDMhsywe6rWu",
|
||||
"weight": 1
|
||||
}
|
||||
],
|
||||
"accounts": [],
|
||||
"waits": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"perm_name": "owner",
|
||||
"parent": "",
|
||||
"required_auth": {
|
||||
"threshold": 2,
|
||||
"keys": [
|
||||
{
|
||||
"key": "EOS6hQ6v8vut1V2giQCYha7J225GCzFJtF3o7fy8JYuN7k6fG4n23",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"key": "EOS6kY8kfmFHiXkVqxDNo1uRhW9g4SvHsfgdvfMu2N6Qz4A59rrjd",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"key": "EOS7RodmQofvAxgYBJzfNuwRKr6TWh5LbCBfB4uQ8tjrjQ8Ukkwqq",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"key": "EOS7c9jHNgbtTMYgpXvmTb1kW61oH6kwfGioWk75ugDMhsywe6rWu",
|
||||
"weight": 1
|
||||
}
|
||||
],
|
||||
"accounts": [],
|
||||
"waits": []
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_resources": {
|
||||
"owner": "b1",
|
||||
"net_weight": "39898414.2967 EOS",
|
||||
"cpu_weight": "34599997.5142 EOS",
|
||||
"ram_bytes": "34307704087"
|
||||
},
|
||||
"self_delegated_bandwidth": {
|
||||
"from": "b1",
|
||||
"to": "b1",
|
||||
"net_weight": "39898414.2967 EOS",
|
||||
"cpu_weight": "34599997.5142 EOS"
|
||||
},
|
||||
"refund_request": null,
|
||||
"voter_info": {
|
||||
"owner": "b1",
|
||||
"proxy": "sub2.b1",
|
||||
"producers": [],
|
||||
"staked": "745004118109",
|
||||
"last_vote_weight": "2698603975553012224.00000000000000000",
|
||||
"proxied_vote_weight": "0.00000000000000000",
|
||||
"is_proxy": 0,
|
||||
"flags1": 0,
|
||||
"reserved2": 0,
|
||||
"reserved3": "0.0000 EOS"
|
||||
},
|
||||
"rex_info": null
|
||||
},
|
||||
"text": "{\"account_name\":\"b1\",\"head_block_num\":206790429,\"head_block_time\":\"2021-09-25T08:01:04.500\",\"privileged\":false,\"last_code_update\":\"1970-01-01T00:00:00.000\",\"created\":\"2018-06-09T11:58:03.500\",\"core_liquid_balance\":\"1500000.0029 EOS\",\"ram_quota\":\"34307705487\",\"net_weight\":\"398984142967\",\"cpu_weight\":\"345999975142\",\"net_limit\":{\"used\":145,\"available\":\"748210466963\",\"max\":\"748210467108\",\"last_usage_update_time\":\"2021-09-23T02:01:22.500\",\"current_used\":0},\"cpu_limit\":{\"used\":1222,\"available\":31097733,\"max\":31098955,\"last_usage_update_time\":\"2021-09-23T02:01:22.500\",\"current_used\":0},\"ram_usage\":4786,\"permissions\":[{\"perm_name\":\"active\",\"parent\":\"owner\",\"required_auth\":{\"threshold\":2,\"keys\":[{\"key\":\"EOS6hQ6v8vut1V2giQCYha7J225GCzFJtF3o7fy8JYuN7k6fG4n23\",\"weight\":1},{\"key\":\"EOS6kY8kfmFHiXkVqxDNo1uRhW9g4SvHsfgdvfMu2N6Qz4A59rrjd\",\"weight\":1},{\"key\":\"EOS7RodmQofvAxgYBJzfNuwRKr6TWh5LbCBfB4uQ8tjrjQ8Ukkwqq\",\"weight\":1},{\"key\":\"EOS7c9jHNgbtTMYgpXvmTb1kW61oH6kwfGioWk75ugDMhsywe6rWu\",\"weight\":1}],\"accounts\":[],\"waits\":[]}},{\"perm_name\":\"owner\",\"parent\":\"\",\"required_auth\":{\"threshold\":2,\"keys\":[{\"key\":\"EOS6hQ6v8vut1V2giQCYha7J225GCzFJtF3o7fy8JYuN7k6fG4n23\",\"weight\":1},{\"key\":\"EOS6kY8kfmFHiXkVqxDNo1uRhW9g4SvHsfgdvfMu2N6Qz4A59rrjd\",\"weight\":1},{\"key\":\"EOS7RodmQofvAxgYBJzfNuwRKr6TWh5LbCBfB4uQ8tjrjQ8Ukkwqq\",\"weight\":1},{\"key\":\"EOS7c9jHNgbtTMYgpXvmTb1kW61oH6kwfGioWk75ugDMhsywe6rWu\",\"weight\":1}],\"accounts\":[],\"waits\":[]}}],\"total_resources\":{\"owner\":\"b1\",\"net_weight\":\"39898414.2967 EOS\",\"cpu_weight\":\"34599997.5142 EOS\",\"ram_bytes\":\"34307704087\"},\"self_delegated_bandwidth\":{\"from\":\"b1\",\"to\":\"b1\",\"net_weight\":\"39898414.2967 EOS\",\"cpu_weight\":\"34599997.5142 EOS\"},\"refund_request\":null,\"voter_info\":{\"owner\":\"b1\",\"proxy\":\"sub2.b1\",\"producers\":[],\"staked\":\"745004118109\",\"last_vote_weight\":\"2698603975553012224.00000000000000000\",\"proxied_vote_weight\":\"0.00000000000000000\",\"is_proxy\":0,\"flags1\":0,\"reserved2\":0,\"reserved3\":\"0.0000 EOS\"},\"rex_info\":null}"
|
||||
}
|
||||
+4
-3
@@ -3,16 +3,17 @@
|
||||
"path": "https://jungle4.greymass.com/v1/chain/get_table_rows",
|
||||
"params": {
|
||||
"method": "POST",
|
||||
"body": "{\"code\":\"eosio\",\"scope\":\"\",\"table\":\"powup.state\",\"key_type\":\"name\",\"json\":false}"
|
||||
"body": "{\"code\":\"eosio\",\"scope\":\"\",\"table\":\"powup.state\",\"key_type\":\"name\",\"json\":false}",
|
||||
"headers": {}
|
||||
}
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"rows": [
|
||||
"00000030d53b0a5a000000a0724e180900000010a5d4e800000000a0724e1809000000a0724e18090000dd751562dd751562000000000000004080510100809698000000000004454f5300000000002f68590000000004454f53000000002cf6c08e4c0000002cf3aa404a00000085ee4d65000030d53b0a5a000000a0724e180900000010a5d4e800000000a0724e1809000000a0724e18090000dd751562dd75156200000000000000408051010040787d010000000004454f53000000008017b42c0000000004454f53000000006e4a6642fd0100006e4750f4fa01000085ee4d6501000000e80300000000000004454f5300000000"
|
||||
"00000030d53b0a5a000000a0724e180900000010a5d4e800000000a0724e1809000000a0724e18090000dd751562dd751562000000000000004080510100809698000000000004454f5300000000002f68590000000004454f530000000045bc2962350b000098ddc5e5380b0000eef87768000030d53b0a5a000000a0724e180900000010a5d4e800000000a0724e1809000000a0724e18090000dd751562dd75156200000000000000408051010040787d010000000004454f53000000008017b42c0000000004454f5300000000c669d12b3822000034d205737a220000eef8776801000000e80300000000000004454f5300000000"
|
||||
],
|
||||
"more": false,
|
||||
"next_key": ""
|
||||
},
|
||||
"text": "{\"rows\":[\"00000030d53b0a5a000000a0724e180900000010a5d4e800000000a0724e1809000000a0724e18090000dd751562dd751562000000000000004080510100809698000000000004454f5300000000002f68590000000004454f53000000002cf6c08e4c0000002cf3aa404a00000085ee4d65000030d53b0a5a000000a0724e180900000010a5d4e800000000a0724e1809000000a0724e18090000dd751562dd75156200000000000000408051010040787d010000000004454f53000000008017b42c0000000004454f53000000006e4a6642fd0100006e4750f4fa01000085ee4d6501000000e80300000000000004454f5300000000\"],\"more\":false,\"next_key\":\"\"}"
|
||||
"text": "{\"rows\":[\"00000030d53b0a5a000000a0724e180900000010a5d4e800000000a0724e1809000000a0724e18090000dd751562dd751562000000000000004080510100809698000000000004454f5300000000002f68590000000004454f530000000045bc2962350b000098ddc5e5380b0000eef87768000030d53b0a5a000000a0724e180900000010a5d4e800000000a0724e1809000000a0724e18090000dd751562dd75156200000000000000408051010040787d010000000004454f53000000008017b42c0000000004454f5300000000c669d12b3822000034d205737a220000eef8776801000000e80300000000000004454f5300000000\"],\"more\":false,\"next_key\":\"\"}"
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"request": {
|
||||
"path": "https://eos.greymass.com/v1/chain/get_info",
|
||||
"params": {
|
||||
"method": "GET",
|
||||
"headers": {}
|
||||
}
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"server_version": "57465074",
|
||||
"chain_id": "aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906",
|
||||
"head_block_num": 446867844,
|
||||
"last_irreversible_block_num": 446867842,
|
||||
"last_irreversible_block_id": "1aa2a9829150573f8bd87bae1c9b91001331dac978002d5ad98481a6ab8efceb",
|
||||
"head_block_id": "1aa2a9844056231b55b8b1d3269b4a150fc37bc21d899c9abf63a2473ebaad71",
|
||||
"head_block_time": "2025-07-16T19:49:03.000",
|
||||
"head_block_producer": "aus1genereos",
|
||||
"virtual_block_cpu_limit": 200000,
|
||||
"virtual_block_net_limit": 1048576000,
|
||||
"block_cpu_limit": 200000,
|
||||
"block_net_limit": 1048576,
|
||||
"server_version_string": "v1.0.1",
|
||||
"fork_db_head_block_num": 446867844,
|
||||
"fork_db_head_block_id": "1aa2a9844056231b55b8b1d3269b4a150fc37bc21d899c9abf63a2473ebaad71",
|
||||
"server_full_version_string": "v1.0.1-574650744460373f635d48cac9aa6dee67dcbfdb",
|
||||
"total_cpu_weight": "382520753105234",
|
||||
"total_net_weight": "95689554310803",
|
||||
"earliest_available_block_num": 446693968,
|
||||
"last_irreversible_block_time": "2025-07-16T19:49:02.000"
|
||||
},
|
||||
"text": "{\"server_version\":\"57465074\",\"chain_id\":\"aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906\",\"head_block_num\":446867844,\"last_irreversible_block_num\":446867842,\"last_irreversible_block_id\":\"1aa2a9829150573f8bd87bae1c9b91001331dac978002d5ad98481a6ab8efceb\",\"head_block_id\":\"1aa2a9844056231b55b8b1d3269b4a150fc37bc21d899c9abf63a2473ebaad71\",\"head_block_time\":\"2025-07-16T19:49:03.000\",\"head_block_producer\":\"aus1genereos\",\"virtual_block_cpu_limit\":200000,\"virtual_block_net_limit\":1048576000,\"block_cpu_limit\":200000,\"block_net_limit\":1048576,\"server_version_string\":\"v1.0.1\",\"fork_db_head_block_num\":446867844,\"fork_db_head_block_id\":\"1aa2a9844056231b55b8b1d3269b4a150fc37bc21d899c9abf63a2473ebaad71\",\"server_full_version_string\":\"v1.0.1-574650744460373f635d48cac9aa6dee67dcbfdb\",\"total_cpu_weight\":\"382520753105234\",\"total_net_weight\":\"95689554310803\",\"earliest_available_block_num\":446693968,\"last_irreversible_block_time\":\"2025-07-16T19:49:02.000\"}"
|
||||
}
|
||||
@@ -1,130 +0,0 @@
|
||||
{
|
||||
"request": {
|
||||
"path": "https://eos.greymass.com/v1/chain/get_account",
|
||||
"params": {
|
||||
"method": "POST",
|
||||
"body": "{\"account_name\":\"b1\"}"
|
||||
}
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"account_name": "b1",
|
||||
"head_block_num": 340895515,
|
||||
"head_block_time": "2023-11-10T17:36:13.000",
|
||||
"privileged": false,
|
||||
"last_code_update": "1970-01-01T00:00:00.000",
|
||||
"created": "2018-06-09T11:58:03.500",
|
||||
"core_liquid_balance": "0.2966 EOS",
|
||||
"ram_quota": 9487,
|
||||
"net_weight": "350078512340",
|
||||
"cpu_weight": "296624975145",
|
||||
"net_limit": {
|
||||
"used": 271,
|
||||
"available": "660087025601",
|
||||
"max": "660087025872",
|
||||
"last_usage_update_time": "2022-08-23T01:41:35.000",
|
||||
"current_used": 0
|
||||
},
|
||||
"cpu_limit": {
|
||||
"used": 4647,
|
||||
"available": 26738756,
|
||||
"max": 26743403,
|
||||
"last_usage_update_time": "2022-08-23T01:41:35.000",
|
||||
"current_used": 0
|
||||
},
|
||||
"ram_usage": 5010,
|
||||
"permissions": [
|
||||
{
|
||||
"perm_name": "active",
|
||||
"parent": "owner",
|
||||
"required_auth": {
|
||||
"threshold": 2,
|
||||
"keys": [
|
||||
{
|
||||
"key": "EOS5BUDFbb2erXiRP8qHQAgVboCHgHGesbCubUfgXYJhnYZKSqNbD",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"key": "EOS6hQ6v8vut1V2giQCYha7J225GCzFJtF3o7fy8JYuN7k6fG4n23",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"key": "EOS7RodmQofvAxgYBJzfNuwRKr6TWh5LbCBfB4uQ8tjrjQ8Ukkwqq",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"key": "EOS7c9jHNgbtTMYgpXvmTb1kW61oH6kwfGioWk75ugDMhsywe6rWu",
|
||||
"weight": 1
|
||||
}
|
||||
],
|
||||
"accounts": [],
|
||||
"waits": []
|
||||
},
|
||||
"linked_actions": []
|
||||
},
|
||||
{
|
||||
"perm_name": "owner",
|
||||
"parent": "",
|
||||
"required_auth": {
|
||||
"threshold": 2,
|
||||
"keys": [
|
||||
{
|
||||
"key": "EOS5BUDFbb2erXiRP8qHQAgVboCHgHGesbCubUfgXYJhnYZKSqNbD",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"key": "EOS6hQ6v8vut1V2giQCYha7J225GCzFJtF3o7fy8JYuN7k6fG4n23",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"key": "EOS7RodmQofvAxgYBJzfNuwRKr6TWh5LbCBfB4uQ8tjrjQ8Ukkwqq",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"key": "EOS7c9jHNgbtTMYgpXvmTb1kW61oH6kwfGioWk75ugDMhsywe6rWu",
|
||||
"weight": 1
|
||||
}
|
||||
],
|
||||
"accounts": [],
|
||||
"waits": []
|
||||
},
|
||||
"linked_actions": []
|
||||
}
|
||||
],
|
||||
"total_resources": {
|
||||
"owner": "b1",
|
||||
"net_weight": "35007851.2340 EOS",
|
||||
"cpu_weight": "29662497.5145 EOS",
|
||||
"ram_bytes": 8087
|
||||
},
|
||||
"self_delegated_bandwidth": {
|
||||
"from": "b1",
|
||||
"to": "b1",
|
||||
"net_weight": "35007851.2340 EOS",
|
||||
"cpu_weight": "29662497.5145 EOS"
|
||||
},
|
||||
"refund_request": null,
|
||||
"voter_info": {
|
||||
"owner": "b1",
|
||||
"proxy": "",
|
||||
"producers": [],
|
||||
"staked": "646723487485",
|
||||
"last_vote_weight": "2768257912613634048.00000000000000000",
|
||||
"proxied_vote_weight": "0.00000000000000000",
|
||||
"is_proxy": 0,
|
||||
"flags1": 0,
|
||||
"reserved2": 0,
|
||||
"reserved3": "0.0000 EOS"
|
||||
},
|
||||
"rex_info": null,
|
||||
"subjective_cpu_bill_limit": {
|
||||
"used": 0,
|
||||
"available": 0,
|
||||
"max": 0,
|
||||
"last_usage_update_time": "2000-01-01T00:00:00.000",
|
||||
"current_used": 0
|
||||
},
|
||||
"eosio_any_linked_actions": []
|
||||
},
|
||||
"text": "{\"account_name\":\"b1\",\"head_block_num\":340895515,\"head_block_time\":\"2023-11-10T17:36:13.000\",\"privileged\":false,\"last_code_update\":\"1970-01-01T00:00:00.000\",\"created\":\"2018-06-09T11:58:03.500\",\"core_liquid_balance\":\"0.2966 EOS\",\"ram_quota\":9487,\"net_weight\":\"350078512340\",\"cpu_weight\":\"296624975145\",\"net_limit\":{\"used\":271,\"available\":\"660087025601\",\"max\":\"660087025872\",\"last_usage_update_time\":\"2022-08-23T01:41:35.000\",\"current_used\":0},\"cpu_limit\":{\"used\":4647,\"available\":26738756,\"max\":26743403,\"last_usage_update_time\":\"2022-08-23T01:41:35.000\",\"current_used\":0},\"ram_usage\":5010,\"permissions\":[{\"perm_name\":\"active\",\"parent\":\"owner\",\"required_auth\":{\"threshold\":2,\"keys\":[{\"key\":\"EOS5BUDFbb2erXiRP8qHQAgVboCHgHGesbCubUfgXYJhnYZKSqNbD\",\"weight\":1},{\"key\":\"EOS6hQ6v8vut1V2giQCYha7J225GCzFJtF3o7fy8JYuN7k6fG4n23\",\"weight\":1},{\"key\":\"EOS7RodmQofvAxgYBJzfNuwRKr6TWh5LbCBfB4uQ8tjrjQ8Ukkwqq\",\"weight\":1},{\"key\":\"EOS7c9jHNgbtTMYgpXvmTb1kW61oH6kwfGioWk75ugDMhsywe6rWu\",\"weight\":1}],\"accounts\":[],\"waits\":[]},\"linked_actions\":[]},{\"perm_name\":\"owner\",\"parent\":\"\",\"required_auth\":{\"threshold\":2,\"keys\":[{\"key\":\"EOS5BUDFbb2erXiRP8qHQAgVboCHgHGesbCubUfgXYJhnYZKSqNbD\",\"weight\":1},{\"key\":\"EOS6hQ6v8vut1V2giQCYha7J225GCzFJtF3o7fy8JYuN7k6fG4n23\",\"weight\":1},{\"key\":\"EOS7RodmQofvAxgYBJzfNuwRKr6TWh5LbCBfB4uQ8tjrjQ8Ukkwqq\",\"weight\":1},{\"key\":\"EOS7c9jHNgbtTMYgpXvmTb1kW61oH6kwfGioWk75ugDMhsywe6rWu\",\"weight\":1}],\"accounts\":[],\"waits\":[]},\"linked_actions\":[]}],\"total_resources\":{\"owner\":\"b1\",\"net_weight\":\"35007851.2340 EOS\",\"cpu_weight\":\"29662497.5145 EOS\",\"ram_bytes\":8087},\"self_delegated_bandwidth\":{\"from\":\"b1\",\"to\":\"b1\",\"net_weight\":\"35007851.2340 EOS\",\"cpu_weight\":\"29662497.5145 EOS\"},\"refund_request\":null,\"voter_info\":{\"owner\":\"b1\",\"proxy\":\"\",\"producers\":[],\"staked\":\"646723487485\",\"last_vote_weight\":\"2768257912613634048.00000000000000000\",\"proxied_vote_weight\":\"0.00000000000000000\",\"is_proxy\":0,\"flags1\":0,\"reserved2\":0,\"reserved3\":\"0.0000 EOS\"},\"rex_info\":null,\"subjective_cpu_bill_limit\":{\"used\":0,\"available\":0,\"max\":0,\"last_usage_update_time\":\"2000-01-01T00:00:00.000\",\"current_used\":0},\"eosio_any_linked_actions\":[]}"
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"request": {
|
||||
"path": "https://eos.greymass.com/v1/chain/get_table_rows",
|
||||
"params": {
|
||||
"method": "POST",
|
||||
"body": "{\"code\":\"eosio\",\"scope\":\"eosio\",\"table\":\"rexpool\",\"key_type\":\"name\",\"json\":false}",
|
||||
"headers": {}
|
||||
}
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"rows": [
|
||||
"0074c75f460500000004454f5300000000b08252dbd002000004454f5300000000abfa25020000000004454f5300000000244ab221d602000004454f5300000000e681c9da2d5f53000452455800000000000000000000000004454f53000000002eb7070000000000"
|
||||
],
|
||||
"more": false,
|
||||
"next_key": ""
|
||||
},
|
||||
"text": "{\"rows\":[\"0074c75f460500000004454f5300000000b08252dbd002000004454f5300000000abfa25020000000004454f5300000000244ab221d602000004454f5300000000e681c9da2d5f53000452455800000000000000000000000004454f53000000002eb7070000000000\"],\"more\":false,\"next_key\":\"\"}"
|
||||
}
|
||||
+27
-18
@@ -3,36 +3,37 @@
|
||||
"path": "https://wax.greymass.com/v1/chain/get_account",
|
||||
"params": {
|
||||
"method": "POST",
|
||||
"body": "{\"account_name\":\"boost.wax\"}"
|
||||
"body": "{\"account_name\":\"boost.wax\"}",
|
||||
"headers": {}
|
||||
}
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"account_name": "boost.wax",
|
||||
"head_block_num": 289066137,
|
||||
"head_block_time": "2024-01-23T10:24:28.500",
|
||||
"head_block_num": 382431930,
|
||||
"head_block_time": "2025-07-16T19:49:06.500",
|
||||
"privileged": false,
|
||||
"last_code_update": "2022-11-01T21:44:57.500",
|
||||
"created": "2020-04-09T20:28:34.500",
|
||||
"core_liquid_balance": "3796281.54208477 WAX",
|
||||
"core_liquid_balance": "3796281.62693477 WAX",
|
||||
"ram_quota": 106721149,
|
||||
"net_weight": "30001100000000",
|
||||
"cpu_weight": "770055200000000",
|
||||
"net_limit": {
|
||||
"used": 2960305,
|
||||
"available": "40717140941",
|
||||
"max": "40720101246",
|
||||
"last_usage_update_time": "2024-01-23T10:24:26.000",
|
||||
"current_used": 2960219
|
||||
"used": 3488768,
|
||||
"available": "14054767267",
|
||||
"max": "14058256035",
|
||||
"last_usage_update_time": "2025-07-16T19:48:41.500",
|
||||
"current_used": 3487758
|
||||
},
|
||||
"cpu_limit": {
|
||||
"used": 10699884,
|
||||
"available": 890363982,
|
||||
"max": 901063866,
|
||||
"last_usage_update_time": "2024-01-23T10:24:26.000",
|
||||
"current_used": 10699574
|
||||
"used": 2491680,
|
||||
"available": 196529461,
|
||||
"max": 199021141,
|
||||
"last_usage_update_time": "2025-07-16T19:48:41.500",
|
||||
"current_used": 2490958
|
||||
},
|
||||
"ram_usage": 13138871,
|
||||
"ram_usage": 13138903,
|
||||
"permissions": [
|
||||
{
|
||||
"perm_name": "active",
|
||||
@@ -118,7 +119,15 @@
|
||||
"weight": 1
|
||||
}
|
||||
],
|
||||
"accounts": [],
|
||||
"accounts": [
|
||||
{
|
||||
"permission": {
|
||||
"actor": "oracle.wax",
|
||||
"permission": "rngops"
|
||||
},
|
||||
"weight": 1
|
||||
}
|
||||
],
|
||||
"waits": []
|
||||
},
|
||||
"linked_actions": [
|
||||
@@ -155,7 +164,7 @@
|
||||
},
|
||||
"rex_info": null,
|
||||
"subjective_cpu_bill_limit": {
|
||||
"used": 55504,
|
||||
"used": 57962,
|
||||
"available": 0,
|
||||
"max": 0,
|
||||
"last_usage_update_time": "2000-01-01T00:00:00.000",
|
||||
@@ -163,5 +172,5 @@
|
||||
},
|
||||
"eosio_any_linked_actions": []
|
||||
},
|
||||
"text": "{\"account_name\":\"boost.wax\",\"head_block_num\":289066137,\"head_block_time\":\"2024-01-23T10:24:28.500\",\"privileged\":false,\"last_code_update\":\"2022-11-01T21:44:57.500\",\"created\":\"2020-04-09T20:28:34.500\",\"core_liquid_balance\":\"3796281.54208477 WAX\",\"ram_quota\":106721149,\"net_weight\":\"30001100000000\",\"cpu_weight\":\"770055200000000\",\"net_limit\":{\"used\":2960305,\"available\":\"40717140941\",\"max\":\"40720101246\",\"last_usage_update_time\":\"2024-01-23T10:24:26.000\",\"current_used\":2960219},\"cpu_limit\":{\"used\":10699884,\"available\":890363982,\"max\":901063866,\"last_usage_update_time\":\"2024-01-23T10:24:26.000\",\"current_used\":10699574},\"ram_usage\":13138871,\"permissions\":[{\"perm_name\":\"active\",\"parent\":\"owner\",\"required_auth\":{\"threshold\":1,\"keys\":[],\"accounts\":[{\"permission\":{\"actor\":\"admin.wax\",\"permission\":\"active\"},\"weight\":1},{\"permission\":{\"actor\":\"boost.wax\",\"permission\":\"eosio.code\"},\"weight\":1}],\"waits\":[]},\"linked_actions\":[]},{\"perm_name\":\"deploy\",\"parent\":\"active\",\"required_auth\":{\"threshold\":1,\"keys\":[],\"accounts\":[{\"permission\":{\"actor\":\"deploy.wax\",\"permission\":\"all\"},\"weight\":1}],\"waits\":[]},\"linked_actions\":[{\"account\":\"eosio\",\"action\":\"setcode\"},{\"account\":\"eosio\",\"action\":\"setabi\"}]},{\"perm_name\":\"owner\",\"parent\":\"\",\"required_auth\":{\"threshold\":1,\"keys\":[],\"accounts\":[{\"permission\":{\"actor\":\"admin.wax\",\"permission\":\"active\"},\"weight\":1}],\"waits\":[]},\"linked_actions\":[]},{\"perm_name\":\"paybw\",\"parent\":\"active\",\"required_auth\":{\"threshold\":1,\"keys\":[{\"key\":\"EOS5B2c2wNjaq342758aYvE71dTxpBVqHocnRU1aWxUdZAuxbgM6f\",\"weight\":1}],\"accounts\":[],\"waits\":[]},\"linked_actions\":[{\"account\":\"boost.wax\",\"action\":\"noop\"}]}],\"total_resources\":{\"owner\":\"boost.wax\",\"net_weight\":\"300011.00000000 WAX\",\"cpu_weight\":\"7700552.00000000 WAX\",\"ram_bytes\":106719749},\"self_delegated_bandwidth\":null,\"refund_request\":null,\"voter_info\":{\"owner\":\"boost.wax\",\"proxy\":\"\",\"producers\":[],\"staked\":0,\"unpaid_voteshare\":\"0.00000000000000000\",\"unpaid_voteshare_last_updated\":\"1970-01-01T00:00:00.000\",\"unpaid_voteshare_change_rate\":\"0.00000000000000000\",\"last_claim_time\":\"1970-01-01T00:00:00.000\",\"last_vote_weight\":\"0.00000000000000000\",\"proxied_vote_weight\":\"0.00000000000000000\",\"is_proxy\":0,\"flags1\":0,\"reserved2\":0,\"reserved3\":\"0 \"},\"rex_info\":null,\"subjective_cpu_bill_limit\":{\"used\":55504,\"available\":0,\"max\":0,\"last_usage_update_time\":\"2000-01-01T00:00:00.000\",\"current_used\":0},\"eosio_any_linked_actions\":[]}"
|
||||
"text": "{\"account_name\":\"boost.wax\",\"head_block_num\":382431930,\"head_block_time\":\"2025-07-16T19:49:06.500\",\"privileged\":false,\"last_code_update\":\"2022-11-01T21:44:57.500\",\"created\":\"2020-04-09T20:28:34.500\",\"core_liquid_balance\":\"3796281.62693477 WAX\",\"ram_quota\":106721149,\"net_weight\":\"30001100000000\",\"cpu_weight\":\"770055200000000\",\"net_limit\":{\"used\":3488768,\"available\":\"14054767267\",\"max\":\"14058256035\",\"last_usage_update_time\":\"2025-07-16T19:48:41.500\",\"current_used\":3487758},\"cpu_limit\":{\"used\":2491680,\"available\":196529461,\"max\":199021141,\"last_usage_update_time\":\"2025-07-16T19:48:41.500\",\"current_used\":2490958},\"ram_usage\":13138903,\"permissions\":[{\"perm_name\":\"active\",\"parent\":\"owner\",\"required_auth\":{\"threshold\":1,\"keys\":[],\"accounts\":[{\"permission\":{\"actor\":\"admin.wax\",\"permission\":\"active\"},\"weight\":1},{\"permission\":{\"actor\":\"boost.wax\",\"permission\":\"eosio.code\"},\"weight\":1}],\"waits\":[]},\"linked_actions\":[]},{\"perm_name\":\"deploy\",\"parent\":\"active\",\"required_auth\":{\"threshold\":1,\"keys\":[],\"accounts\":[{\"permission\":{\"actor\":\"deploy.wax\",\"permission\":\"all\"},\"weight\":1}],\"waits\":[]},\"linked_actions\":[{\"account\":\"eosio\",\"action\":\"setcode\"},{\"account\":\"eosio\",\"action\":\"setabi\"}]},{\"perm_name\":\"owner\",\"parent\":\"\",\"required_auth\":{\"threshold\":1,\"keys\":[],\"accounts\":[{\"permission\":{\"actor\":\"admin.wax\",\"permission\":\"active\"},\"weight\":1}],\"waits\":[]},\"linked_actions\":[]},{\"perm_name\":\"paybw\",\"parent\":\"active\",\"required_auth\":{\"threshold\":1,\"keys\":[{\"key\":\"EOS5B2c2wNjaq342758aYvE71dTxpBVqHocnRU1aWxUdZAuxbgM6f\",\"weight\":1}],\"accounts\":[{\"permission\":{\"actor\":\"oracle.wax\",\"permission\":\"rngops\"},\"weight\":1}],\"waits\":[]},\"linked_actions\":[{\"account\":\"boost.wax\",\"action\":\"noop\"}]}],\"total_resources\":{\"owner\":\"boost.wax\",\"net_weight\":\"300011.00000000 WAX\",\"cpu_weight\":\"7700552.00000000 WAX\",\"ram_bytes\":106719749},\"self_delegated_bandwidth\":null,\"refund_request\":null,\"voter_info\":{\"owner\":\"boost.wax\",\"proxy\":\"\",\"producers\":[],\"staked\":0,\"unpaid_voteshare\":\"0.00000000000000000\",\"unpaid_voteshare_last_updated\":\"1970-01-01T00:00:00.000\",\"unpaid_voteshare_change_rate\":\"0.00000000000000000\",\"last_claim_time\":\"1970-01-01T00:00:00.000\",\"last_vote_weight\":\"0.00000000000000000\",\"proxied_vote_weight\":\"0.00000000000000000\",\"is_proxy\":0,\"flags1\":0,\"reserved2\":0,\"reserved3\":\"0 \"},\"rex_info\":null,\"subjective_cpu_bill_limit\":{\"used\":57962,\"available\":0,\"max\":0,\"last_usage_update_time\":\"2000-01-01T00:00:00.000\",\"current_used\":0},\"eosio_any_linked_actions\":[]}"
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
{
|
||||
"request": {
|
||||
"path": "https://wax.greymass.com/v1/chain/get_table_rows",
|
||||
"params": {
|
||||
"method": "POST",
|
||||
"body": "{\"code\":\"eosio\",\"scope\":\"\",\"table\":\"powup.state\",\"key_type\":\"name\",\"json\":false}"
|
||||
}
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"rows": [
|
||||
"0000ea70c0561920340000404c948b32030042f8c30ce420d5010080c6a47e8d030000404c948b320300411caf6500f6b265000000000000004080510100006e10bacb000000085741580000000000e4eccddf1700000857415800000000c9dc94f2d9000000d881d7e7650100008c30ea65001e5867a10122100000404c948b3203001619a2ac0e3291000080c6a47e8d030000404c948b320300411caf6500f6b265000000000000004080510100006e10bacb000000085741580000000000e4eccddf1700000857415800000000e5eba314f0d9010086d44d5355fd01008c30ea650100000001000000000000000857415800000000"
|
||||
],
|
||||
"more": false,
|
||||
"next_key": ""
|
||||
},
|
||||
"text": "{\"rows\":[\"0000ea70c0561920340000404c948b32030042f8c30ce420d5010080c6a47e8d030000404c948b320300411caf6500f6b265000000000000004080510100006e10bacb000000085741580000000000e4eccddf1700000857415800000000c9dc94f2d9000000d881d7e7650100008c30ea65001e5867a10122100000404c948b3203001619a2ac0e3291000080c6a47e8d030000404c948b320300411caf6500f6b265000000000000004080510100006e10bacb000000085741580000000000e4eccddf1700000857415800000000e5eba314f0d9010086d44d5355fd01008c30ea650100000001000000000000000857415800000000\"],\"more\":false,\"next_key\":\"\"}"
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"request": {
|
||||
"path": "https://wax.greymass.com/v1/chain/get_info",
|
||||
"params": {
|
||||
"method": "GET",
|
||||
"headers": {}
|
||||
}
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"server_version": "b18375f7",
|
||||
"chain_id": "1064487b3cd1a897ce03ae5b6a865651747e2e152090f99c1d19d44e01aea5a4",
|
||||
"head_block_num": 382431929,
|
||||
"last_irreversible_block_num": 382431604,
|
||||
"last_irreversible_block_id": "16cb71744c10bcbb15db4c6bd31de2bc8b636202573377a7133af48fbb7d4d81",
|
||||
"head_block_id": "16cb72b9bf09a6ed082aa91d31d3eff20e56b6905b888f023dea997153a085ca",
|
||||
"head_block_time": "2025-07-16T19:49:06.000",
|
||||
"head_block_producer": "wombatblockx",
|
||||
"virtual_block_cpu_limit": 200000,
|
||||
"virtual_block_net_limit": 1048576000,
|
||||
"block_cpu_limit": 200000,
|
||||
"block_net_limit": 1048576,
|
||||
"server_version_string": "v5.0.3wax01",
|
||||
"fork_db_head_block_num": 382431929,
|
||||
"fork_db_head_block_id": "16cb72b9bf09a6ed082aa91d31d3eff20e56b6905b888f023dea997153a085ca",
|
||||
"server_full_version_string": "v5.0.3wax01-b18375f72cde5e3dbc31bcff1d4f546065975d1a",
|
||||
"total_cpu_weight": "133720003227304002",
|
||||
"total_net_weight": "386677926721957765",
|
||||
"earliest_available_block_num": 382258379,
|
||||
"last_irreversible_block_time": "2025-07-16T19:46:23.500"
|
||||
},
|
||||
"text": "{\"server_version\":\"b18375f7\",\"chain_id\":\"1064487b3cd1a897ce03ae5b6a865651747e2e152090f99c1d19d44e01aea5a4\",\"head_block_num\":382431929,\"last_irreversible_block_num\":382431604,\"last_irreversible_block_id\":\"16cb71744c10bcbb15db4c6bd31de2bc8b636202573377a7133af48fbb7d4d81\",\"head_block_id\":\"16cb72b9bf09a6ed082aa91d31d3eff20e56b6905b888f023dea997153a085ca\",\"head_block_time\":\"2025-07-16T19:49:06.000\",\"head_block_producer\":\"wombatblockx\",\"virtual_block_cpu_limit\":200000,\"virtual_block_net_limit\":1048576000,\"block_cpu_limit\":200000,\"block_net_limit\":1048576,\"server_version_string\":\"v5.0.3wax01\",\"fork_db_head_block_num\":382431929,\"fork_db_head_block_id\":\"16cb72b9bf09a6ed082aa91d31d3eff20e56b6905b888f023dea997153a085ca\",\"server_full_version_string\":\"v5.0.3wax01-b18375f72cde5e3dbc31bcff1d4f546065975d1a\",\"total_cpu_weight\":\"133720003227304002\",\"total_net_weight\":\"386677926721957765\",\"earliest_available_block_num\":382258379,\"last_irreversible_block_time\":\"2025-07-16T19:46:23.500\"}"
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
{
|
||||
"request": {
|
||||
"path": "https://eos.greymass.com/v1/chain/get_account",
|
||||
"params": {
|
||||
"method": "POST",
|
||||
"body": "{\"account_name\":\"greymassfuel\"}",
|
||||
"headers": {}
|
||||
}
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"account_name": "greymassfuel",
|
||||
"head_block_num": 446867848,
|
||||
"head_block_time": "2025-07-16T19:49:05.000",
|
||||
"privileged": false,
|
||||
"last_code_update": "1970-01-01T00:00:00.000",
|
||||
"created": "2019-11-01T22:31:13.500",
|
||||
"core_liquid_balance": "544.7766 EOS",
|
||||
"ram_quota": 9229,
|
||||
"net_weight": 5281058,
|
||||
"cpu_weight": "8302889400",
|
||||
"net_limit": {
|
||||
"used": 247869,
|
||||
"available": 9752132,
|
||||
"max": 10000001,
|
||||
"last_usage_update_time": "2025-07-16T19:47:02.000",
|
||||
"current_used": 247516
|
||||
},
|
||||
"cpu_limit": {
|
||||
"used": 579523,
|
||||
"available": 170626,
|
||||
"max": 750149,
|
||||
"last_usage_update_time": "2025-07-16T19:47:02.000",
|
||||
"current_used": 578698
|
||||
},
|
||||
"ram_usage": 4547,
|
||||
"permissions": [
|
||||
{
|
||||
"perm_name": "active",
|
||||
"parent": "owner",
|
||||
"required_auth": {
|
||||
"threshold": 1,
|
||||
"keys": [
|
||||
{
|
||||
"key": "EOS8VE4hVEP4pNdFUwPf2u8inCscVeFGMf1MUt1ec8tfKHaiTJGQk",
|
||||
"weight": 1
|
||||
}
|
||||
],
|
||||
"accounts": [],
|
||||
"waits": []
|
||||
},
|
||||
"linked_actions": []
|
||||
},
|
||||
{
|
||||
"perm_name": "buyram",
|
||||
"parent": "active",
|
||||
"required_auth": {
|
||||
"threshold": 1,
|
||||
"keys": [
|
||||
{
|
||||
"key": "EOS82EHUh2YMR51Hu6JRJWpQUhWQA3KarnePHuyi29AF9iJmoe6nK",
|
||||
"weight": 1
|
||||
}
|
||||
],
|
||||
"accounts": [],
|
||||
"waits": []
|
||||
},
|
||||
"linked_actions": [
|
||||
{
|
||||
"account": "eosio",
|
||||
"action": "buyrambytes"
|
||||
},
|
||||
{
|
||||
"account": "eosio",
|
||||
"action": "buyram"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"perm_name": "cosign",
|
||||
"parent": "active",
|
||||
"required_auth": {
|
||||
"threshold": 1,
|
||||
"keys": [
|
||||
{
|
||||
"key": "EOS8Ym3MwFnAgPgDZUB9J9FwW3SrMNhr3JDv9qZA3R7nUC7DnBvm4",
|
||||
"weight": 1
|
||||
}
|
||||
],
|
||||
"accounts": [],
|
||||
"waits": []
|
||||
},
|
||||
"linked_actions": [
|
||||
{
|
||||
"account": "greymassnoop",
|
||||
"action": "noop"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"perm_name": "owner",
|
||||
"parent": "",
|
||||
"required_auth": {
|
||||
"threshold": 1,
|
||||
"keys": [
|
||||
{
|
||||
"key": "EOS6sLkWkqLZKPWEKpRqWU8oS8Tu7Ebjv4B8L82ViDb6r9fgZVYDx",
|
||||
"weight": 1
|
||||
}
|
||||
],
|
||||
"accounts": [],
|
||||
"waits": []
|
||||
},
|
||||
"linked_actions": []
|
||||
}
|
||||
],
|
||||
"total_resources": {
|
||||
"owner": "greymassfuel",
|
||||
"net_weight": "528.1058 EOS",
|
||||
"cpu_weight": "830288.9400 EOS",
|
||||
"ram_bytes": 7829
|
||||
},
|
||||
"self_delegated_bandwidth": null,
|
||||
"refund_request": null,
|
||||
"voter_info": {
|
||||
"owner": "greymassfuel",
|
||||
"proxy": "",
|
||||
"producers": [],
|
||||
"staked": 0,
|
||||
"last_vote_weight": "0.00000000000000000",
|
||||
"proxied_vote_weight": "0.00000000000000000",
|
||||
"is_proxy": 0,
|
||||
"flags1": 0,
|
||||
"reserved2": 0,
|
||||
"reserved3": "0 "
|
||||
},
|
||||
"rex_info": null,
|
||||
"subjective_cpu_bill_limit": {
|
||||
"used": 0,
|
||||
"available": 0,
|
||||
"max": 0,
|
||||
"last_usage_update_time": "2000-01-01T00:00:00.000",
|
||||
"current_used": 0
|
||||
},
|
||||
"eosio_any_linked_actions": []
|
||||
},
|
||||
"text": "{\"account_name\":\"greymassfuel\",\"head_block_num\":446867848,\"head_block_time\":\"2025-07-16T19:49:05.000\",\"privileged\":false,\"last_code_update\":\"1970-01-01T00:00:00.000\",\"created\":\"2019-11-01T22:31:13.500\",\"core_liquid_balance\":\"544.7766 EOS\",\"ram_quota\":9229,\"net_weight\":5281058,\"cpu_weight\":\"8302889400\",\"net_limit\":{\"used\":247869,\"available\":9752132,\"max\":10000001,\"last_usage_update_time\":\"2025-07-16T19:47:02.000\",\"current_used\":247516},\"cpu_limit\":{\"used\":579523,\"available\":170626,\"max\":750149,\"last_usage_update_time\":\"2025-07-16T19:47:02.000\",\"current_used\":578698},\"ram_usage\":4547,\"permissions\":[{\"perm_name\":\"active\",\"parent\":\"owner\",\"required_auth\":{\"threshold\":1,\"keys\":[{\"key\":\"EOS8VE4hVEP4pNdFUwPf2u8inCscVeFGMf1MUt1ec8tfKHaiTJGQk\",\"weight\":1}],\"accounts\":[],\"waits\":[]},\"linked_actions\":[]},{\"perm_name\":\"buyram\",\"parent\":\"active\",\"required_auth\":{\"threshold\":1,\"keys\":[{\"key\":\"EOS82EHUh2YMR51Hu6JRJWpQUhWQA3KarnePHuyi29AF9iJmoe6nK\",\"weight\":1}],\"accounts\":[],\"waits\":[]},\"linked_actions\":[{\"account\":\"eosio\",\"action\":\"buyrambytes\"},{\"account\":\"eosio\",\"action\":\"buyram\"}]},{\"perm_name\":\"cosign\",\"parent\":\"active\",\"required_auth\":{\"threshold\":1,\"keys\":[{\"key\":\"EOS8Ym3MwFnAgPgDZUB9J9FwW3SrMNhr3JDv9qZA3R7nUC7DnBvm4\",\"weight\":1}],\"accounts\":[],\"waits\":[]},\"linked_actions\":[{\"account\":\"greymassnoop\",\"action\":\"noop\"}]},{\"perm_name\":\"owner\",\"parent\":\"\",\"required_auth\":{\"threshold\":1,\"keys\":[{\"key\":\"EOS6sLkWkqLZKPWEKpRqWU8oS8Tu7Ebjv4B8L82ViDb6r9fgZVYDx\",\"weight\":1}],\"accounts\":[],\"waits\":[]},\"linked_actions\":[]}],\"total_resources\":{\"owner\":\"greymassfuel\",\"net_weight\":\"528.1058 EOS\",\"cpu_weight\":\"830288.9400 EOS\",\"ram_bytes\":7829},\"self_delegated_bandwidth\":null,\"refund_request\":null,\"voter_info\":{\"owner\":\"greymassfuel\",\"proxy\":\"\",\"producers\":[],\"staked\":0,\"last_vote_weight\":\"0.00000000000000000\",\"proxied_vote_weight\":\"0.00000000000000000\",\"is_proxy\":0,\"flags1\":0,\"reserved2\":0,\"reserved3\":\"0 \"},\"rex_info\":null,\"subjective_cpu_bill_limit\":{\"used\":0,\"available\":0,\"max\":0,\"last_usage_update_time\":\"2000-01-01T00:00:00.000\",\"current_used\":0},\"eosio_any_linked_actions\":[]}"
|
||||
}
|
||||
+4
-3
@@ -3,16 +3,17 @@
|
||||
"path": "https://eos.greymass.com/v1/chain/get_table_rows",
|
||||
"params": {
|
||||
"method": "POST",
|
||||
"body": "{\"code\":\"eosio\",\"scope\":\"eosio\",\"table\":\"rammarket\",\"key_type\":\"name\",\"json\":false}"
|
||||
"body": "{\"code\":\"eosio\",\"scope\":\"eosio\",\"table\":\"rammarket\",\"key_type\":\"name\",\"json\":false}",
|
||||
"headers": {}
|
||||
}
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"rows": [
|
||||
"00407a10f35a00000452414d434f5245ffcd4f55500000000052414d00000000000000000000e03ffce056a10c00000004454f5300000000000000000000e03f"
|
||||
"00407a10f35a00000452414d434f52459dbe9c830e0000000052414d00000000000000000000e03f92d7903b4700000004454f5300000000000000000000e03f"
|
||||
],
|
||||
"more": false,
|
||||
"next_key": ""
|
||||
},
|
||||
"text": "{\"rows\":[\"00407a10f35a00000452414d434f5245ffcd4f55500000000052414d00000000000000000000e03ffce056a10c00000004454f5300000000000000000000e03f\"],\"more\":false,\"next_key\":\"\"}"
|
||||
"text": "{\"rows\":[\"00407a10f35a00000452414d434f52459dbe9c830e0000000052414d00000000000000000000e03f92d7903b4700000004454f5300000000000000000000e03f\"],\"more\":false,\"next_key\":\"\"}"
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
{
|
||||
"request": {
|
||||
"path": "https://eos.greymass.com/v1/chain/get_table_rows",
|
||||
"params": {
|
||||
"method": "POST",
|
||||
"body": "{\"code\":\"eosio\",\"scope\":\"eosio\",\"table\":\"rexpool\",\"key_type\":\"name\",\"json\":false}"
|
||||
}
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"rows": [
|
||||
"003c6ed8140700000004454f5300000000c6cb1eb08700000004454f5300000000fef112020000000004454f5300000000023af7c48e00000004454f5300000000aeec1953f67015000452455800000000000000000000000004454f5300000000f2ad070000000000"
|
||||
],
|
||||
"more": false,
|
||||
"next_key": ""
|
||||
},
|
||||
"text": "{\"rows\":[\"003c6ed8140700000004454f5300000000c6cb1eb08700000004454f5300000000fef112020000000004454f5300000000023af7c48e00000004454f5300000000aeec1953f67015000452455800000000000000000000000004454f5300000000f2ad070000000000\"],\"more\":false,\"next_key\":\"\"}"
|
||||
}
|
||||
+4
-3
@@ -3,16 +3,17 @@
|
||||
"path": "https://eos.greymass.com/v1/chain/get_table_rows",
|
||||
"params": {
|
||||
"method": "POST",
|
||||
"body": "{\"code\":\"eosio\",\"scope\":\"\",\"table\":\"powup.state\",\"key_type\":\"name\",\"json\":false}"
|
||||
"body": "{\"code\":\"eosio\",\"scope\":\"\",\"table\":\"powup.state\",\"key_type\":\"name\",\"json\":false}",
|
||||
"headers": {}
|
||||
}
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"rows": [
|
||||
"00002ae97f9fd056000000a0724e180900004e79bb7de00000000080c6a47e8d030000a0724e1809000093c83560e8b96e6000000000000000408051010040787d010000000004454f53000000008017b42c0000000004454f5300000000076ba22b5b0000009ece299b75000000e7694e6500a8a4ff7d425b010000a0724e1809000038e5edf6810300000080c6a47e8d030000a0724e1809000093c83560e8b96e6000000000000000408051010040787d010000000004454f53000000008017b42c0000000004454f530000000091b4bf6d671b00000724ec6d6c1b0000e7694e6501000000010000000000000004454f5300000000"
|
||||
"00002ae97f9fd056000000a0724e180900004e79bb7de00000000080c6a47e8d030000a0724e1809000093c83560e8b96e6000000000000000408051010040787d010000000004454f53000000008017b42c0000000004454f5300000000633d6f0618000000ba7ab8732d0000002900786800a8a4ff7d425b010000a0724e1809000038e5edf6810300000080c6a47e8d030000a0724e1809000093c83560e8b96e6000000000000000408051010040787d010000000004454f53000000008017b42c0000000004454f53000000007d495ef5071500005c705853091500002900786801000000010000000000000004454f5300000000"
|
||||
],
|
||||
"more": false,
|
||||
"next_key": ""
|
||||
},
|
||||
"text": "{\"rows\":[\"00002ae97f9fd056000000a0724e180900004e79bb7de00000000080c6a47e8d030000a0724e1809000093c83560e8b96e6000000000000000408051010040787d010000000004454f53000000008017b42c0000000004454f5300000000076ba22b5b0000009ece299b75000000e7694e6500a8a4ff7d425b010000a0724e1809000038e5edf6810300000080c6a47e8d030000a0724e1809000093c83560e8b96e6000000000000000408051010040787d010000000004454f53000000008017b42c0000000004454f530000000091b4bf6d671b00000724ec6d6c1b0000e7694e6501000000010000000000000004454f5300000000\"],\"more\":false,\"next_key\":\"\"}"
|
||||
"text": "{\"rows\":[\"00002ae97f9fd056000000a0724e180900004e79bb7de00000000080c6a47e8d030000a0724e1809000093c83560e8b96e6000000000000000408051010040787d010000000004454f53000000008017b42c0000000004454f5300000000633d6f0618000000ba7ab8732d0000002900786800a8a4ff7d425b010000a0724e1809000038e5edf6810300000080c6a47e8d030000a0724e1809000093c83560e8b96e6000000000000000408051010040787d010000000004454f53000000008017b42c0000000004454f53000000007d495ef5071500005c705853091500002900786801000000010000000000000004454f5300000000\"],\"more\":false,\"next_key\":\"\"}"
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"request": {
|
||||
"path": "https://jungle4.greymass.com/v1/chain/get_info",
|
||||
"params": {
|
||||
"method": "GET",
|
||||
"headers": {}
|
||||
}
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"server_version": "13356212",
|
||||
"chain_id": "73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d",
|
||||
"head_block_num": 213686587,
|
||||
"last_irreversible_block_num": 213686585,
|
||||
"last_irreversible_block_id": "0cbc9939b1a3a69846291eb183630ed576fca0474be4ea243ab16fb58cb48091",
|
||||
"head_block_id": "0cbc993bce0149896cdf722aa77d88a1a62f0634aa70d57e39795a1a3a6451d8",
|
||||
"head_block_time": "2025-07-16T19:49:04.000",
|
||||
"head_block_producer": "atticlabeosb",
|
||||
"virtual_block_cpu_limit": 200000000,
|
||||
"virtual_block_net_limit": 1048576000,
|
||||
"block_cpu_limit": 200000,
|
||||
"block_net_limit": 1048576,
|
||||
"server_version_string": "v1.1.5",
|
||||
"fork_db_head_block_num": 213686587,
|
||||
"fork_db_head_block_id": "0cbc993bce0149896cdf722aa77d88a1a62f0634aa70d57e39795a1a3a6451d8",
|
||||
"server_full_version_string": "v1.1.5-13356212245054c35b1e1e7e20a9bd43ced48c4d",
|
||||
"total_cpu_weight": "120570397011713",
|
||||
"total_net_weight": "117540055017865",
|
||||
"earliest_available_block_num": 213508721,
|
||||
"last_irreversible_block_time": "2025-07-16T19:49:03.000"
|
||||
},
|
||||
"text": "{\"server_version\":\"13356212\",\"chain_id\":\"73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d\",\"head_block_num\":213686587,\"last_irreversible_block_num\":213686585,\"last_irreversible_block_id\":\"0cbc9939b1a3a69846291eb183630ed576fca0474be4ea243ab16fb58cb48091\",\"head_block_id\":\"0cbc993bce0149896cdf722aa77d88a1a62f0634aa70d57e39795a1a3a6451d8\",\"head_block_time\":\"2025-07-16T19:49:04.000\",\"head_block_producer\":\"atticlabeosb\",\"virtual_block_cpu_limit\":200000000,\"virtual_block_net_limit\":1048576000,\"block_cpu_limit\":200000,\"block_net_limit\":1048576,\"server_version_string\":\"v1.1.5\",\"fork_db_head_block_num\":213686587,\"fork_db_head_block_id\":\"0cbc993bce0149896cdf722aa77d88a1a62f0634aa70d57e39795a1a3a6451d8\",\"server_full_version_string\":\"v1.1.5-13356212245054c35b1e1e7e20a9bd43ced48c4d\",\"total_cpu_weight\":\"120570397011713\",\"total_net_weight\":\"117540055017865\",\"earliest_available_block_num\":213508721,\"last_irreversible_block_time\":\"2025-07-16T19:49:03.000\"}"
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
{
|
||||
"request": {
|
||||
"path": "https://jungle4.greymass.com/v1/chain/get_info",
|
||||
"params": {
|
||||
"method": "GET"
|
||||
}
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"server_version": "905c5cc9",
|
||||
"chain_id": "73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d",
|
||||
"head_block_num": 107761721,
|
||||
"last_irreversible_block_num": 107761390,
|
||||
"last_irreversible_block_id": "066c4eee01dd56004d35613ee759811dad7a7db92b3e691fd822f9bef3b78850",
|
||||
"head_block_id": "066c503946353b4af42adf1c0705d8aea8b62a41dc85cb7e43510289c0f2060e",
|
||||
"head_block_time": "2023-11-10T17:42:27.000",
|
||||
"head_block_producer": "eosamsterdam",
|
||||
"virtual_block_cpu_limit": 184188825,
|
||||
"virtual_block_net_limit": 1048576000,
|
||||
"block_cpu_limit": 200000,
|
||||
"block_net_limit": 1048576,
|
||||
"server_version_string": "v3.1.3",
|
||||
"fork_db_head_block_num": 107761721,
|
||||
"fork_db_head_block_id": "066c503946353b4af42adf1c0705d8aea8b62a41dc85cb7e43510289c0f2060e",
|
||||
"server_full_version_string": "v3.1.3-905c5cc900b4e88aed4ab6912009127bf9f4f140",
|
||||
"total_cpu_weight": "120613298869319",
|
||||
"total_net_weight": "117529300091371",
|
||||
"earliest_available_block_num": 107585477,
|
||||
"last_irreversible_block_time": "2023-11-10T17:39:41.500"
|
||||
},
|
||||
"text": "{\"server_version\":\"905c5cc9\",\"chain_id\":\"73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d\",\"head_block_num\":107761721,\"last_irreversible_block_num\":107761390,\"last_irreversible_block_id\":\"066c4eee01dd56004d35613ee759811dad7a7db92b3e691fd822f9bef3b78850\",\"head_block_id\":\"066c503946353b4af42adf1c0705d8aea8b62a41dc85cb7e43510289c0f2060e\",\"head_block_time\":\"2023-11-10T17:42:27.000\",\"head_block_producer\":\"eosamsterdam\",\"virtual_block_cpu_limit\":184188825,\"virtual_block_net_limit\":1048576000,\"block_cpu_limit\":200000,\"block_net_limit\":1048576,\"server_version_string\":\"v3.1.3\",\"fork_db_head_block_num\":107761721,\"fork_db_head_block_id\":\"066c503946353b4af42adf1c0705d8aea8b62a41dc85cb7e43510289c0f2060e\",\"server_full_version_string\":\"v3.1.3-905c5cc900b4e88aed4ab6912009127bf9f4f140\",\"total_cpu_weight\":\"120613298869319\",\"total_net_weight\":\"117529300091371\",\"earliest_available_block_num\":107585477,\"last_irreversible_block_time\":\"2023-11-10T17:39:41.500\"}"
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"request": {
|
||||
"path": "https://wax.greymass.com/v1/chain/get_table_rows",
|
||||
"params": {
|
||||
"method": "POST",
|
||||
"body": "{\"code\":\"eosio\",\"scope\":\"\",\"table\":\"powup.state\",\"key_type\":\"name\",\"json\":false}",
|
||||
"headers": {}
|
||||
}
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"rows": [
|
||||
"00004443c91d14a2460400c06e31d910010042f8c30ce420d5010000e941cc6b010000c06e31d910010072936e6870597368000000000000004080510100006e10bacb000000085741580000000000e4eccddf17000008574158000000006203403c74e82c000fdcdee069032d003002786800883a7a3d22ca520100c06e31d91001001619a2ac0e3291000000e941cc6b010000c06e31d910010072936e6870597368000000000000004080510100006e10bacb000000085741580000000000e4eccddf17000008574158000000001799528dd68f2300d96c445087c92400300278680100000001000000000000000857415800000000"
|
||||
],
|
||||
"more": false,
|
||||
"next_key": ""
|
||||
},
|
||||
"text": "{\"rows\":[\"00004443c91d14a2460400c06e31d910010042f8c30ce420d5010000e941cc6b010000c06e31d910010072936e6870597368000000000000004080510100006e10bacb000000085741580000000000e4eccddf17000008574158000000006203403c74e82c000fdcdee069032d003002786800883a7a3d22ca520100c06e31d91001001619a2ac0e3291000000e941cc6b010000c06e31d910010072936e6870597368000000000000004080510100006e10bacb000000085741580000000000e4eccddf17000008574158000000001799528dd68f2300d96c445087c92400300278680100000001000000000000000857415800000000\"],\"more\":false,\"next_key\":\"\"}"
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
{
|
||||
"headers": {
|
||||
"access-control-allow-headers": "X-Requested-With,Accept,Content-Type,Origin",
|
||||
"access-control-allow-methods": "GET, POST, OPTIONS",
|
||||
"access-control-allow-origin": "*",
|
||||
"connection": "close",
|
||||
"content-length": "554",
|
||||
"content-type": "application/json",
|
||||
"date": "Sat, 25 Sep 2021 08:01:03 GMT",
|
||||
"host": "eos.greymass.com",
|
||||
"server": "nginx",
|
||||
"x-cached": "EXPIRED"
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"rows": [
|
||||
"00002ae97f9fd056000000a0724e180900004e79bb7de00000000080c6a47e8d030000a0724e1809000093c83560e8b96e6000000000000000408051010040787d010000000004454f53000000008017b42c0000000004454f5300000000bac8bf620b000000ec7cb3750b0000001dd74e6100a8a4ff7d425b010000a0724e1809000038e5edf6810300000080c6a47e8d030000a0724e1809000093c83560e8b96e6000000000000000408051010040787d010000000004454f53000000008017b42c0000000004454f530000000054decad5400d0000091ac9dd490e00001dd74e6101000000010000000000000004454f5300000000"
|
||||
],
|
||||
"more": false,
|
||||
"next_key": "",
|
||||
"next_key_bytes": ""
|
||||
},
|
||||
"text": "{\"rows\":[\"00002ae97f9fd056000000a0724e180900004e79bb7de00000000080c6a47e8d030000a0724e1809000093c83560e8b96e6000000000000000408051010040787d010000000004454f53000000008017b42c0000000004454f5300000000bac8bf620b000000ec7cb3750b0000001dd74e6100a8a4ff7d425b010000a0724e1809000038e5edf6810300000080c6a47e8d030000a0724e1809000093c83560e8b96e6000000000000000408051010040787d010000000004454f53000000008017b42c0000000004454f530000000054decad5400d0000091ac9dd490e00001dd74e6101000000010000000000000004454f5300000000\"],\"more\":false,\"next_key\":\"\",\"next_key_bytes\":\"\"}"
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
{
|
||||
"headers": {
|
||||
"access-control-allow-headers": "X-Requested-With,Accept,Content-Type,Origin",
|
||||
"access-control-allow-methods": "GET, POST, OPTIONS",
|
||||
"access-control-allow-origin": "*",
|
||||
"connection": "close",
|
||||
"content-length": "845",
|
||||
"content-type": "application/json",
|
||||
"date": "Sat, 25 Sep 2021 08:01:03 GMT",
|
||||
"host": "eos.greymass.com",
|
||||
"server": "nginx",
|
||||
"x-cached": "HIT"
|
||||
},
|
||||
"status": 200,
|
||||
"json": {
|
||||
"server_version": "26a4d285",
|
||||
"chain_id": "aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906",
|
||||
"head_block_num": 206790424,
|
||||
"last_irreversible_block_num": 206790095,
|
||||
"last_irreversible_block_id": "0c535dcfb7c6f6665a7f289f7e9f26b4256b1db383645cec984c66314888d593",
|
||||
"head_block_id": "0c535f18a25aa05dab742542a22c47facd358ac013c4a1489e1db44131565380",
|
||||
"head_block_time": "2021-09-25T08:01:02.000",
|
||||
"head_block_producer": "big.one",
|
||||
"virtual_block_cpu_limit": 200000,
|
||||
"virtual_block_net_limit": 1048576000,
|
||||
"block_cpu_limit": 200000,
|
||||
"block_net_limit": 1048576,
|
||||
"server_version_string": "v2.1.0",
|
||||
"fork_db_head_block_num": 206790424,
|
||||
"fork_db_head_block_id": "0c535f18a25aa05dab742542a22c47facd358ac013c4a1489e1db44131565380",
|
||||
"server_full_version_string": "v2.1.0-26a4d285d0be1052d962149e431eb81500782991",
|
||||
"last_irreversible_block_time": "2021-09-25T07:58:17.500"
|
||||
},
|
||||
"text": "{\"server_version\":\"26a4d285\",\"chain_id\":\"aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906\",\"head_block_num\":206790424,\"last_irreversible_block_num\":206790095,\"last_irreversible_block_id\":\"0c535dcfb7c6f6665a7f289f7e9f26b4256b1db383645cec984c66314888d593\",\"head_block_id\":\"0c535f18a25aa05dab742542a22c47facd358ac013c4a1489e1db44131565380\",\"head_block_time\":\"2021-09-25T08:01:02.000\",\"head_block_producer\":\"big.one\",\"virtual_block_cpu_limit\":200000,\"virtual_block_net_limit\":1048576000,\"block_cpu_limit\":200000,\"block_net_limit\":1048576,\"server_version_string\":\"v2.1.0\",\"fork_db_head_block_num\":206790424,\"fork_db_head_block_id\":\"0c535f18a25aa05dab742542a22c47facd358ac013c4a1489e1db44131565380\",\"server_full_version_string\":\"v2.1.0-26a4d285d0be1052d962149e431eb81500782991\",\"last_irreversible_block_time\":\"2021-09-25T07:58:17.500\"}"
|
||||
}
|
||||
+59
-50
@@ -44,12 +44,20 @@ suite('[eos] powerup - cpu calculations', function () {
|
||||
test('powerup.cpu.us_to_weight', async function () {
|
||||
const powerup = await resources_eos.v1.powerup.get_state()
|
||||
const sample = await resources_eos.getSampledUsage()
|
||||
assert.equal(powerup.cpu.us_to_weight(sample.cpu, 35868), 397914355)
|
||||
assert.equal(
|
||||
powerup.cpu.us_to_weight(sample.cpu, 35868).equals(397077382),
|
||||
true,
|
||||
`got ${powerup.cpu.us_to_weight(sample.cpu, 35868)} instead of 397077382`
|
||||
)
|
||||
})
|
||||
test('powerup.cpu.weight_to_us', async function () {
|
||||
const powerup = await resources_eos.v1.powerup.get_state()
|
||||
const sample = await resources_eos.getSampledUsage()
|
||||
assert.equal(powerup.cpu.weight_to_us(sample.cpu, 12930064), 1166)
|
||||
assert.equal(
|
||||
powerup.cpu.weight_to_us(sample.cpu, 12930064).equals(1168),
|
||||
true,
|
||||
`got ${powerup.cpu.weight_to_us(sample.cpu, 12930064)} instead of 1168`
|
||||
)
|
||||
})
|
||||
test('powerup.cpu.allocated', async function () {
|
||||
const powerup = await resources_eos.v1.powerup.get_state()
|
||||
@@ -60,21 +68,18 @@ suite('[eos] powerup - cpu calculations', function () {
|
||||
test('powerup.cpu.reserved', async function () {
|
||||
const powerup = await resources_eos.v1.powerup.get_state()
|
||||
|
||||
assert.equal(powerup.cpu.reserved, 0.07891504719871277)
|
||||
assert.equal(
|
||||
powerup.cpu.reserved.equals(0.07891504719871277),
|
||||
true,
|
||||
`got ${powerup.cpu.reserved} instead of 0.07891504719871277`
|
||||
)
|
||||
// 7.891504719871277% represented as float
|
||||
})
|
||||
test('powerup.cpu.price_per_us(60)', async function () {
|
||||
const powerup = await resources_eos.v1.powerup.get_state()
|
||||
const sample = await resources_eos.getSampledUsage()
|
||||
const price = powerup.cpu.price_per_ms(sample, 60, this.testFixture)
|
||||
assert.equal(price, 0.0144)
|
||||
})
|
||||
test('powerup.cpu.price_per_us(1)', async function () {
|
||||
const powerup = await resources_eos.v1.powerup.get_state()
|
||||
const sample = await resources_eos.getSampledUsage()
|
||||
|
||||
const price = powerup.cpu.price_per_us(sample, 1, this.testFixture)
|
||||
assert.equal(price, 0.0001)
|
||||
assert.equal(price, 0.012)
|
||||
})
|
||||
test('powerup.cpu.price_per_us(1000)', async function () {
|
||||
const powerup = await resources_eos.v1.powerup.get_state()
|
||||
@@ -84,41 +89,41 @@ suite('[eos] powerup - cpu calculations', function () {
|
||||
const price_ms = powerup.cpu.price_per_ms(sample, 1, this.testFixture)
|
||||
|
||||
assert.equal(price_us, price_ms)
|
||||
assert.equal(price_us, 0.0003)
|
||||
assert.equal(price_us, 0.0002)
|
||||
})
|
||||
test('powerup.cpu.price_per_ms(1)', async function () {
|
||||
const powerup = await resources_eos.v1.powerup.get_state()
|
||||
const sample = await resources_eos.getSampledUsage()
|
||||
|
||||
const price = powerup.cpu.price_per_ms(sample, 1, this.testFixture)
|
||||
assert.equal(price, 0.0003)
|
||||
assert.equal(price, 0.0002)
|
||||
|
||||
const asset = Asset.from(price, '4,EOS')
|
||||
assert.equal(String(asset), '0.0003 EOS')
|
||||
assert.equal(asset.value, 0.0003)
|
||||
assert.equal(Number(asset.units), 3)
|
||||
assert.equal(String(asset), '0.0002 EOS')
|
||||
assert.equal(asset.value, 0.0002)
|
||||
assert.equal(Number(asset.units), 2)
|
||||
})
|
||||
test('powerup.cpu.price_per_ms(1000)', async function () {
|
||||
const powerup = await resources_eos.v1.powerup.get_state()
|
||||
const sample = await resources_eos.getSampledUsage()
|
||||
|
||||
const price = powerup.cpu.price_per_ms(sample, 1000, this.testFixture)
|
||||
assert.equal(price, 0.239)
|
||||
assert.equal(price, 0.106)
|
||||
|
||||
const asset = Asset.from(price, '4,EOS')
|
||||
assert.equal(String(asset), '0.2390 EOS')
|
||||
assert.equal(asset.value, 0.239)
|
||||
assert.equal(Number(asset.units), 2390)
|
||||
assert.equal(String(asset), '0.1060 EOS')
|
||||
assert.equal(asset.value, 0.106)
|
||||
assert.equal(Number(asset.units), 1060)
|
||||
})
|
||||
test('powerup.cpu.frac()', async function () {
|
||||
const powerup = await resources_eos.v1.powerup.get_state()
|
||||
const sample = await resources_eos.getSampledUsage()
|
||||
|
||||
const frac1 = powerup.cpu.frac(sample, 100)
|
||||
assert.equal(frac1, 2905547)
|
||||
assert.equal(frac1.equals(2899435), true, `got ${frac1} instead of 2899435`)
|
||||
|
||||
const frac1000 = powerup.cpu.frac(sample, 1000000)
|
||||
assert.equal(frac1000, 29055489074)
|
||||
assert.equal(frac1000.equals(28994373800), true, `got ${frac1000} instead of 28994373800`)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -140,7 +145,11 @@ suite('[eos] powerup - net calculations', function () {
|
||||
test('powerup.net.reserved', async function () {
|
||||
const powerup = await resources_eos.v1.powerup.get_state()
|
||||
|
||||
assert.equal(powerup.net.reserved, 0.004102226924904269)
|
||||
assert.equal(
|
||||
powerup.net.reserved.equals(0.004102226924904269),
|
||||
true,
|
||||
`got ${powerup.net.reserved} instead of 0.004102226924904269`
|
||||
)
|
||||
// 0.4102226924904269% represented as float
|
||||
})
|
||||
test('powerup.net.price_per_kb(1000000000000)', async function () {
|
||||
@@ -160,7 +169,7 @@ suite('[eos] powerup - net calculations', function () {
|
||||
const sample = await resources_eos.getSampledUsage()
|
||||
|
||||
const frac1000 = powerup.net.frac(sample, 1000000)
|
||||
assert.equal(frac1000, 5556098)
|
||||
assert.equal(frac1000.equals(5532558), true, `got ${frac1000} instead of 5556098`)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -182,7 +191,7 @@ suite('[jungle] powerup - cpu calculations', function () {
|
||||
test('powerup.cpu.reserved', async function () {
|
||||
const powerup = await resources_jungle.v1.powerup.get_state()
|
||||
|
||||
assert.equal(powerup.cpu.reserved, 0.022093458117636362)
|
||||
assert.equal(powerup.cpu.reserved.equals(0.022093458117636362), true)
|
||||
// 0.032428358627099564% represented as float
|
||||
})
|
||||
test('powerup.cpu.price_per_us(1000000)', async function () {
|
||||
@@ -192,31 +201,31 @@ suite('[jungle] powerup - cpu calculations', function () {
|
||||
const price_us = powerup.cpu.price_per_us(sample, 1000000, this.testFixture)
|
||||
const price_ms = powerup.cpu.price_per_ms(sample, 1000, this.testFixture)
|
||||
assert.equal(price_us, price_ms)
|
||||
assert.equal(price_ms, 0.4601)
|
||||
assert.equal(price_ms, 3.384)
|
||||
})
|
||||
test('powerup.cpu.price_per_ms(1000)', async function () {
|
||||
const powerup = await resources_jungle.v1.powerup.get_state()
|
||||
const sample = await resources_eos.getSampledUsage()
|
||||
|
||||
const price = powerup.cpu.price_per_ms(sample, 1000, this.testFixture)
|
||||
assert.equal(price, 0.4601)
|
||||
assert.equal(price, 3.384)
|
||||
|
||||
const asset = Asset.from(price, '4,EOS')
|
||||
assert.equal(String(asset), '0.4601 EOS')
|
||||
assert.equal(asset.value, 0.4601)
|
||||
assert.equal(Number(asset.units), 4601)
|
||||
assert.equal(String(asset), '3.3840 EOS')
|
||||
assert.equal(asset.value, 3.384)
|
||||
assert.equal(Number(asset.units), 33840)
|
||||
})
|
||||
test('powerup.cpu.price_per_ms(1000000)', async function () {
|
||||
const powerup = await resources_jungle.v1.powerup.get_state()
|
||||
const sample = await resources_eos.getSampledUsage()
|
||||
|
||||
const price = powerup.cpu.price_per_ms(sample, 1000000, this.testFixture)
|
||||
assert.equal(price, 914.8417)
|
||||
assert.equal(price, 87.0144)
|
||||
|
||||
const asset = Asset.from(price, '4,EOS')
|
||||
assert.equal(String(asset), '914.8417 EOS')
|
||||
assert.equal(asset.value, 914.8417)
|
||||
assert.equal(Number(asset.units), 9148417)
|
||||
assert.equal(String(asset), '87.0144 EOS')
|
||||
assert.equal(asset.value, 87.0144)
|
||||
assert.equal(Number(asset.units), 870144)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -237,7 +246,7 @@ suite('[wax] powerup - cpu calculations', function () {
|
||||
test('powerup.cpu.reserved', async function () {
|
||||
const powerup = await resources_wax.v1.powerup.get_state()
|
||||
|
||||
assert.equal(powerup.cpu.reserved, 0.1147547419042913)
|
||||
assert.equal(powerup.cpu.reserved.equals(0.1147547419042913), true)
|
||||
})
|
||||
test('powerup.cpu.price_per_us(1000000)', async function () {
|
||||
const powerup = await resources_wax.v1.powerup.get_state()
|
||||
@@ -246,31 +255,31 @@ suite('[wax] powerup - cpu calculations', function () {
|
||||
const price_us = powerup.cpu.price_per_us(sample, 1000000, this.testFixture)
|
||||
const price_ms = powerup.cpu.price_per_ms(sample, 1000, this.testFixture)
|
||||
assert.equal(price_us, price_ms)
|
||||
assert.equal(price_ms, 7.6019681)
|
||||
assert.equal(price_ms, 1.58622407)
|
||||
})
|
||||
test('powerup.cpu.price_per_ms(1000)', async function () {
|
||||
const powerup = await resources_wax.v1.powerup.get_state()
|
||||
const sample = await resources_wax.getSampledUsage()
|
||||
|
||||
const price = powerup.cpu.price_per_ms(sample, 1000, this.testFixture)
|
||||
assert.equal(price, 7.6019681)
|
||||
assert.equal(price, 1.58622407)
|
||||
|
||||
const asset = Asset.from(price, '8,WAX')
|
||||
assert.equal(String(asset), '7.60196810 WAX')
|
||||
assert.equal(asset.value, 7.6019681)
|
||||
assert.equal(Number(asset.units), 760196810)
|
||||
assert.equal(String(asset), '1.58622407 WAX')
|
||||
assert.equal(asset.value, 1.58622407)
|
||||
assert.equal(Number(asset.units), 158622407)
|
||||
})
|
||||
test('powerup.cpu.price_per_ms(1000000)', async function () {
|
||||
const powerup = await resources_wax.v1.powerup.get_state()
|
||||
const sample = await resources_wax.getSampledUsage()
|
||||
|
||||
const price = powerup.cpu.price_per_ms(sample, 1000000, this.testFixture)
|
||||
assert.equal(price, 11770.99029685)
|
||||
assert.equal(price, 131.30369093)
|
||||
|
||||
const asset = Asset.from(price, '8,WAX')
|
||||
assert.equal(String(asset), '11770.99029685 WAX')
|
||||
assert.equal(asset.value, 11770.99029685)
|
||||
assert.equal(Number(asset.units), 1177099029685)
|
||||
assert.equal(String(asset), '131.30369093 WAX')
|
||||
assert.equal(asset.value, 131.30369093)
|
||||
assert.equal(Number(asset.units), 13130369093)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -291,25 +300,25 @@ suite('[wax] powerup - net calculations', function () {
|
||||
test('powerup.net.reserved', async function () {
|
||||
const powerup = await resources_wax.v1.powerup.get_state()
|
||||
|
||||
assert.equal(powerup.net.reserved, 0.00006380031736302496)
|
||||
assert.equal(powerup.net.reserved.equals(0.00006380031736302496), true)
|
||||
})
|
||||
test('powerup.net.price_per_kb(1000000000000)', async function () {
|
||||
const powerup = await resources_wax.v1.powerup.get_state()
|
||||
const sample = await resources_wax.getSampledUsage()
|
||||
|
||||
const price = powerup.net.price_per_kb(sample, 1000, this.testFixture)
|
||||
assert.equal(price, 0.00044073)
|
||||
assert.equal(price, 0.00013288)
|
||||
|
||||
const asset = Asset.from(price, '8,WAX')
|
||||
assert.equal(String(asset), '0.00044073 WAX')
|
||||
assert.equal(asset.value, 0.00044073)
|
||||
assert.equal(Number(asset.units), 44073)
|
||||
assert.equal(String(asset), '0.00013288 WAX')
|
||||
assert.equal(asset.value, 0.00013288)
|
||||
assert.equal(Number(asset.units), 13288)
|
||||
})
|
||||
test('powerup.net.frac()', async function () {
|
||||
const powerup = await resources_wax.v1.powerup.get_state()
|
||||
const sample = await resources_wax.getSampledUsage()
|
||||
|
||||
const frac1000 = powerup.net.frac(sample, 1000000)
|
||||
assert.equal(frac1000, 50216295)
|
||||
assert.equal(frac1000.equals(6926405), true, `got ${frac1000} instead of 6926405`)
|
||||
})
|
||||
})
|
||||
|
||||
+4
-4
@@ -14,18 +14,18 @@ suite('[eos] ram calculations', function () {
|
||||
})
|
||||
test('ram.price_per(100)', async function () {
|
||||
const ram = await resources.v1.ram.get_state()
|
||||
assert.equal(ram.price_per(100).value, 0.0016)
|
||||
assert.equal(ram.price_per(100).value, 0.0491)
|
||||
})
|
||||
test('ram.price_per(100000)', async function () {
|
||||
const ram = await resources.v1.ram.get_state()
|
||||
assert.equal(ram.price_per(100000).value, 1.5723)
|
||||
assert.equal(ram.price_per(100000).value, 49.0784)
|
||||
})
|
||||
test('ram.price_per_kb(1)', async function () {
|
||||
const ram = await resources.v1.ram.get_state()
|
||||
const control = ram.price_per(1000)
|
||||
const actual = ram.price_per_kb(1)
|
||||
assert.equal(control.value, 0.0158)
|
||||
assert.equal(actual.value, 0.0158)
|
||||
assert.equal(control.value, 0.4908)
|
||||
assert.equal(actual.value, 0.4908)
|
||||
assert.equal(actual.equals(control), true)
|
||||
})
|
||||
})
|
||||
|
||||
+12
-14
@@ -16,19 +16,17 @@ suite('[eos] rex calculations', function () {
|
||||
})
|
||||
test('rex.reserved', async function () {
|
||||
const rex = await resources.v1.rex.get_state()
|
||||
assert.equal(rex.reserved, 0.04960045779382111)
|
||||
// 04.960045779382111% represented as float
|
||||
assert.equal(rex.reserved, 0.007264384002969463)
|
||||
})
|
||||
test('rex.value', async function () {
|
||||
const rex = await resources.v1.rex.get_state()
|
||||
assert.equal(rex.value, 0.00010160262316038182)
|
||||
// 0.00010160262316038182 EOS/REX
|
||||
assert.equal(rex.value, 0.000132897336944197)
|
||||
})
|
||||
test('rex.exchange', async function () {
|
||||
const rex = await resources.v1.rex.get_state()
|
||||
const amount = Asset.from('493874015.6505 REX')
|
||||
const tokens = rex.exchange(amount)
|
||||
assert.equal(tokens.value, 50178.8955)
|
||||
assert.equal(tokens.value, 65634.5414)
|
||||
})
|
||||
test('rex.price_per(1000)', async function () {
|
||||
const rex = await resources.v1.rex.get_state()
|
||||
@@ -36,9 +34,9 @@ suite('[eos] rex calculations', function () {
|
||||
const price = rex.price_per(usage, 1000)
|
||||
|
||||
const asset = Asset.from(price, '4,EOS')
|
||||
assert.equal(String(asset), '0.0662 EOS')
|
||||
assert.equal(asset.value, 0.0662)
|
||||
assert.equal(Number(asset.units), 662)
|
||||
assert.equal(String(asset), '0.0129 EOS')
|
||||
assert.equal(asset.value, 0.0129)
|
||||
assert.equal(Number(asset.units), 129)
|
||||
})
|
||||
test('rex.price_per(10000)', async function () {
|
||||
const rex = await resources.v1.rex.get_state()
|
||||
@@ -46,9 +44,9 @@ suite('[eos] rex calculations', function () {
|
||||
const price = rex.price_per(usage, 10000)
|
||||
|
||||
const asset = Asset.from(price, '4,EOS')
|
||||
assert.equal(String(asset), '0.6624 EOS')
|
||||
assert.equal(asset.value, 0.6624)
|
||||
assert.equal(Number(asset.units), 6624)
|
||||
assert.equal(String(asset), '0.1289 EOS')
|
||||
assert.equal(asset.value, 0.1289)
|
||||
assert.equal(Number(asset.units), 1289)
|
||||
})
|
||||
test('rex.price_per(1000000)', async function () {
|
||||
const rex = await resources.v1.rex.get_state()
|
||||
@@ -56,8 +54,8 @@ suite('[eos] rex calculations', function () {
|
||||
const price = rex.price_per(usage, 1000000)
|
||||
|
||||
const asset = Asset.from(price, '4,EOS')
|
||||
assert.equal(String(asset), '66.2386 EOS')
|
||||
assert.equal(asset.value, 66.2386)
|
||||
assert.equal(Number(asset.units), 662386)
|
||||
assert.equal(String(asset), '12.8880 EOS')
|
||||
assert.equal(asset.value, 12.888)
|
||||
assert.equal(Number(asset.units), 128880)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -348,12 +348,12 @@
|
||||
resolved "https://registry.yarnpkg.com/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz#aa58042711d6e3275dd37dc597e5d31e8c290a44"
|
||||
integrity sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==
|
||||
|
||||
"@wharfkit/abicache@^1.2.0":
|
||||
version "1.2.0"
|
||||
resolved "https://registry.yarnpkg.com/@wharfkit/abicache/-/abicache-1.2.0.tgz#f67f7bbd854adc443c3e363d5fbe3d27ac4f8383"
|
||||
integrity sha512-1+564ODM1KhUs7chE8KpYhnxShuPLC1MvqYcXVuLosxXXwcYC4IiJ1V3VuikLG+xfBDp1GZivGjHQwv1awE2Zw==
|
||||
"@wharfkit/abicache@^1.2.1":
|
||||
version "1.2.2"
|
||||
resolved "https://registry.yarnpkg.com/@wharfkit/abicache/-/abicache-1.2.2.tgz#c3d83485e3e3782ac94ced460915bad1ceee0be9"
|
||||
integrity sha512-yOsYz2qQpQy7Nb8XZj62pZqp8YnmWDqFlrenYksBb9jl+1aWIpFhWd+14VEez4tUAezRH4UWW+w1SX5vhmUY9A==
|
||||
dependencies:
|
||||
"@wharfkit/antelope" "^1.0.0"
|
||||
"@wharfkit/antelope" "^1.0.2"
|
||||
"@wharfkit/signing-request" "^3.1.0"
|
||||
pako "^2.0.4"
|
||||
tslib "^2.1.0"
|
||||
@@ -370,6 +370,18 @@
|
||||
pako "^2.1.0"
|
||||
tslib "^2.0.3"
|
||||
|
||||
"@wharfkit/antelope@^1.0.11", "@wharfkit/antelope@^1.0.2", "@wharfkit/antelope@^1.0.5", "@wharfkit/antelope@^1.1.0":
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/@wharfkit/antelope/-/antelope-1.1.0.tgz#653f9a234a4e151b4fa3c25b476a5326124da0c3"
|
||||
integrity sha512-/+zwJq/gFSvIpw3fwFPtpafLqoiipg7lkL1FROrKPyJbrQEaqB1BsCos2+hhWccY6qwKqmdE/iEmY2TZ9gfTPQ==
|
||||
dependencies:
|
||||
bn.js "^4.11.9"
|
||||
brorand "^1.1.0"
|
||||
elliptic "^6.5.4"
|
||||
hash.js "^1.0.0"
|
||||
pako "^2.1.0"
|
||||
tslib "^2.0.3"
|
||||
|
||||
"@wharfkit/common@^1.2.0":
|
||||
version "1.2.0"
|
||||
resolved "https://registry.yarnpkg.com/@wharfkit/common/-/common-1.2.0.tgz#147f783f2ba5cc6fa7dd75863ba98dd05880a9aa"
|
||||
@@ -377,24 +389,24 @@
|
||||
dependencies:
|
||||
tslib "^2.1.0"
|
||||
|
||||
"@wharfkit/mock-data@^1.2.0":
|
||||
version "1.2.0"
|
||||
resolved "https://registry.yarnpkg.com/@wharfkit/mock-data/-/mock-data-1.2.0.tgz#fa5749f1332e413ecd4126dedf1d17724840df41"
|
||||
integrity sha512-R779GKbzVeJFvO/VMLnjSua4YteQiuJ1WX/MjEeo2ftP0aPgaLNEoFKGa7veAvYEv/6mgEcS4Sm5gyFi1Enxhg==
|
||||
"@wharfkit/mock-data@^1.3.0":
|
||||
version "1.3.0"
|
||||
resolved "https://registry.yarnpkg.com/@wharfkit/mock-data/-/mock-data-1.3.0.tgz#7a9caa7c7fb2ad839bc12593de1b7a546b673ae6"
|
||||
integrity sha512-LkhAkrUOvG6o+lPWb2Q6JCrs9++F2XowGK42PODh35Xu9an5H+THMGjpUhTC1sPiYkfjhkmBbAzMpZbHjkXj4w==
|
||||
dependencies:
|
||||
"@wharfkit/antelope" "^1.0.0"
|
||||
"@wharfkit/session" "^1.1.0-rcfinal"
|
||||
"@wharfkit/wallet-plugin-privatekey" "^1.0.0"
|
||||
"@wharfkit/antelope" "^1.0.5"
|
||||
"@wharfkit/session" "^1.2.7"
|
||||
"@wharfkit/wallet-plugin-privatekey" "^1.1.0"
|
||||
node-fetch "^2.6.1"
|
||||
tslib "^2.1.0"
|
||||
|
||||
"@wharfkit/session@^1.1.0-rcfinal":
|
||||
version "1.1.0-rcfinal"
|
||||
resolved "https://registry.yarnpkg.com/@wharfkit/session/-/session-1.1.0-rcfinal.tgz#29a9f40dca8557e96d5e44c1498b09eb641f47e1"
|
||||
integrity sha512-UijDlP2yE8WoprAXz8EpAyz1GyxWv9OloRGApTUKM/lMuSk1U2d7vefQzyXTn14f1npd7bfBzeTQ5piTerBHww==
|
||||
"@wharfkit/session@^1.2.7":
|
||||
version "1.6.0"
|
||||
resolved "https://registry.yarnpkg.com/@wharfkit/session/-/session-1.6.0.tgz#8863feb83fc71f55e49a0729aceabf1c688e216a"
|
||||
integrity sha512-yrCDcW42Dqd387usVHa3qjnttc65OzHK3REKovzo6wLpQsPn709xzx4J6B9e9Xjb0WC/GQLghtr9EX+T+rRH6w==
|
||||
dependencies:
|
||||
"@wharfkit/abicache" "^1.2.0"
|
||||
"@wharfkit/antelope" "^1.0.0"
|
||||
"@wharfkit/abicache" "^1.2.1"
|
||||
"@wharfkit/antelope" "^1.0.11"
|
||||
"@wharfkit/common" "^1.2.0"
|
||||
"@wharfkit/signing-request" "^3.1.0"
|
||||
pako "^2.0.4"
|
||||
@@ -408,7 +420,7 @@
|
||||
"@wharfkit/antelope" "^1.0.0"
|
||||
tslib "^2.0.3"
|
||||
|
||||
"@wharfkit/wallet-plugin-privatekey@^1.0.0":
|
||||
"@wharfkit/wallet-plugin-privatekey@^1.1.0":
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/@wharfkit/wallet-plugin-privatekey/-/wallet-plugin-privatekey-1.1.0.tgz#5985bff61895c54d2afbef359cd42da4f3871c7d"
|
||||
integrity sha512-45LPj7AOVDm4RugDEhy0fnQX/BcMffeJPjGUCUrLazJ2S0Sti8nNk4nqiJqyme84c/0gq7d65vvwlmVfGtPVEg==
|
||||
|
||||
Reference in New Issue
Block a user