Skip to content

Commit

Permalink
Merge pull request #5 from danielvo11/increase-precision
Browse files Browse the repository at this point in the history
increase precision
  • Loading branch information
aaroncox authored Jan 23, 2024
2 parents 077c361 + 75bda7d commit 01566e3
Show file tree
Hide file tree
Showing 10 changed files with 283 additions and 283 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface SampleUsage {
net: UInt128
}

export const BNPrecision = new BN(1000 * 1000)
export const BNPrecision = new BN(100 * 1000 * 1000)

export class Resources {
static __className = 'Resources'
Expand Down
28 changes: 0 additions & 28 deletions test/data/0c060e2d23b39ecbea079594cfe71e9386e73d4d.json

This file was deleted.

138 changes: 0 additions & 138 deletions test/data/16e404e60cd35e9c913a791415a2b52624827dcf.json

This file was deleted.

32 changes: 32 additions & 0 deletions test/data/207db8a082add2a0239f42aed4a1d2aa2435b27a.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"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\"}"
}
32 changes: 0 additions & 32 deletions test/data/4c61f669fd81c11ba85e234f2fc529f966cb2ec6.json

This file was deleted.

18 changes: 18 additions & 0 deletions test/data/714c990e6ea2e283c39d1f3a8d1b7680fedaed53.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"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": [
"000092a87508d51305009f1c75a7c183030042f8c30ce420d5010080c6a47e8d030000404c948b320300411caf6500f6b265000000000000004080510100006e10bacb000000085741580000000000e4eccddf170000085741580000000048628c5a000000008c93765a00000000cd85af6500cf8c9e7e4c9201009f1c75a7c18303001619a2ac0e3291000080c6a47e8d030000404c948b320300411caf6500f6b265000000000000004080510100006e10bacb000000085741580000000000e4eccddf17000008574158000000004bb34c9000000000a356344100000000cd85af650100000001000000000000000857415800000000"
],
"more": false,
"next_key": ""
},
"text": "{\"rows\":[\"000092a87508d51305009f1c75a7c183030042f8c30ce420d5010080c6a47e8d030000404c948b320300411caf6500f6b265000000000000004080510100006e10bacb000000085741580000000000e4eccddf170000085741580000000048628c5a000000008c93765a00000000cd85af6500cf8c9e7e4c9201009f1c75a7c18303001619a2ac0e3291000080c6a47e8d030000404c948b320300411caf6500f6b265000000000000004080510100006e10bacb000000085741580000000000e4eccddf17000008574158000000004bb34c9000000000a356344100000000cd85af650100000001000000000000000857415800000000\"],\"more\":false,\"next_key\":\"\"}"
}
18 changes: 0 additions & 18 deletions test/data/a5741863b9726fdd5151ef0a057fbc41ce5b1b1a.json

This file was deleted.

Loading

0 comments on commit 01566e3

Please sign in to comment.