@xyo-network/react-storybook 2.40.35 → 2.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/dist/cjs/index.d.ts +1 -0
  2. package/dist/cjs/index.d.ts.map +1 -1
  3. package/dist/cjs/index.js +1 -0
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/sampleGasPricePayloads/blockNative.d.ts +68 -0
  6. package/dist/cjs/sampleGasPricePayloads/blockNative.d.ts.map +1 -0
  7. package/dist/cjs/sampleGasPricePayloads/blockNative.js +95 -0
  8. package/dist/cjs/sampleGasPricePayloads/blockNative.js.map +1 -0
  9. package/dist/cjs/sampleGasPricePayloads/ethGasStation.d.ts +19 -0
  10. package/dist/cjs/sampleGasPricePayloads/ethGasStation.d.ts.map +1 -0
  11. package/dist/cjs/sampleGasPricePayloads/ethGasStation.js +22 -0
  12. package/dist/cjs/sampleGasPricePayloads/ethGasStation.js.map +1 -0
  13. package/dist/cjs/sampleGasPricePayloads/etherchainV1.d.ts +11 -0
  14. package/dist/cjs/sampleGasPricePayloads/etherchainV1.d.ts.map +1 -0
  15. package/dist/cjs/sampleGasPricePayloads/etherchainV1.js +14 -0
  16. package/dist/cjs/sampleGasPricePayloads/etherchainV1.js.map +1 -0
  17. package/dist/cjs/sampleGasPricePayloads/etherchainV2.d.ts +14 -0
  18. package/dist/cjs/sampleGasPricePayloads/etherchainV2.d.ts.map +1 -0
  19. package/dist/cjs/sampleGasPricePayloads/etherchainV2.js +17 -0
  20. package/dist/cjs/sampleGasPricePayloads/etherchainV2.js.map +1 -0
  21. package/dist/cjs/sampleGasPricePayloads/ethers.d.ts +9 -0
  22. package/dist/cjs/sampleGasPricePayloads/ethers.d.ts.map +1 -0
  23. package/dist/cjs/sampleGasPricePayloads/ethers.js +12 -0
  24. package/dist/cjs/sampleGasPricePayloads/ethers.js.map +1 -0
  25. package/dist/cjs/sampleGasPricePayloads/etherscan.d.ts +15 -0
  26. package/dist/cjs/sampleGasPricePayloads/etherscan.d.ts.map +1 -0
  27. package/dist/cjs/sampleGasPricePayloads/etherscan.js +18 -0
  28. package/dist/cjs/sampleGasPricePayloads/etherscan.js.map +1 -0
  29. package/dist/cjs/sampleGasPricePayloads/index.d.ts +7 -0
  30. package/dist/cjs/sampleGasPricePayloads/index.d.ts.map +1 -0
  31. package/dist/cjs/sampleGasPricePayloads/index.js +10 -0
  32. package/dist/cjs/sampleGasPricePayloads/index.js.map +1 -0
  33. package/dist/docs.json +4565 -1734
  34. package/dist/esm/index.d.ts +1 -0
  35. package/dist/esm/index.d.ts.map +1 -1
  36. package/dist/esm/index.js +1 -0
  37. package/dist/esm/index.js.map +1 -1
  38. package/dist/esm/sampleGasPricePayloads/blockNative.d.ts +68 -0
  39. package/dist/esm/sampleGasPricePayloads/blockNative.d.ts.map +1 -0
  40. package/dist/esm/sampleGasPricePayloads/blockNative.js +92 -0
  41. package/dist/esm/sampleGasPricePayloads/blockNative.js.map +1 -0
  42. package/dist/esm/sampleGasPricePayloads/ethGasStation.d.ts +19 -0
  43. package/dist/esm/sampleGasPricePayloads/ethGasStation.d.ts.map +1 -0
  44. package/dist/esm/sampleGasPricePayloads/ethGasStation.js +19 -0
  45. package/dist/esm/sampleGasPricePayloads/ethGasStation.js.map +1 -0
  46. package/dist/esm/sampleGasPricePayloads/etherchainV1.d.ts +11 -0
  47. package/dist/esm/sampleGasPricePayloads/etherchainV1.d.ts.map +1 -0
  48. package/dist/esm/sampleGasPricePayloads/etherchainV1.js +11 -0
  49. package/dist/esm/sampleGasPricePayloads/etherchainV1.js.map +1 -0
  50. package/dist/esm/sampleGasPricePayloads/etherchainV2.d.ts +14 -0
  51. package/dist/esm/sampleGasPricePayloads/etherchainV2.d.ts.map +1 -0
  52. package/dist/esm/sampleGasPricePayloads/etherchainV2.js +14 -0
  53. package/dist/esm/sampleGasPricePayloads/etherchainV2.js.map +1 -0
  54. package/dist/esm/sampleGasPricePayloads/ethers.d.ts +9 -0
  55. package/dist/esm/sampleGasPricePayloads/ethers.d.ts.map +1 -0
  56. package/dist/esm/sampleGasPricePayloads/ethers.js +9 -0
  57. package/dist/esm/sampleGasPricePayloads/ethers.js.map +1 -0
  58. package/dist/esm/sampleGasPricePayloads/etherscan.d.ts +15 -0
  59. package/dist/esm/sampleGasPricePayloads/etherscan.d.ts.map +1 -0
  60. package/dist/esm/sampleGasPricePayloads/etherscan.js +15 -0
  61. package/dist/esm/sampleGasPricePayloads/etherscan.js.map +1 -0
  62. package/dist/esm/sampleGasPricePayloads/index.d.ts +7 -0
  63. package/dist/esm/sampleGasPricePayloads/index.d.ts.map +1 -0
  64. package/dist/esm/sampleGasPricePayloads/index.js +7 -0
  65. package/dist/esm/sampleGasPricePayloads/index.js.map +1 -0
  66. package/package.json +7 -7
  67. package/src/index.ts +1 -0
  68. package/src/sampleGasPricePayloads/blockNative.ts +91 -0
  69. package/src/sampleGasPricePayloads/ethGasStation.ts +18 -0
  70. package/src/sampleGasPricePayloads/etherchainV1.ts +10 -0
  71. package/src/sampleGasPricePayloads/etherchainV2.ts +13 -0
  72. package/src/sampleGasPricePayloads/ethers.ts +8 -0
  73. package/src/sampleGasPricePayloads/etherscan.ts +14 -0
  74. package/src/sampleGasPricePayloads/index.ts +6 -0
@@ -5,6 +5,7 @@ export * from './sampleAddressHistory';
5
5
  export * from './sampleBlock';
6
6
  export * from './sampleCoinGeckoPayload';
7
7
  export * from './sampleEthereumGasDivinerPayload';
8
+ export * from './sampleGasPricePayloads';
8
9
  export * from './samplePayload';
9
10
  export * from './sampleUniswapPayload';
10
11
  export * from './useAppThemeDecorator';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,eAAe,CAAA;AAC7B,cAAc,0BAA0B,CAAA;AACxC,cAAc,mCAAmC,CAAA;AACjD,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,wBAAwB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,eAAe,CAAA;AAC7B,cAAc,0BAA0B,CAAA;AACxC,cAAc,mCAAmC,CAAA;AACjD,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,wBAAwB,CAAA"}
package/dist/esm/index.js CHANGED
@@ -5,6 +5,7 @@ export * from './sampleAddressHistory';
5
5
  export * from './sampleBlock';
6
6
  export * from './sampleCoinGeckoPayload';
7
7
  export * from './sampleEthereumGasDivinerPayload';
8
+ export * from './sampleGasPricePayloads';
8
9
  export * from './samplePayload';
9
10
  export * from './sampleUniswapPayload';
10
11
  export * from './useAppThemeDecorator';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,eAAe,CAAA;AAC7B,cAAc,0BAA0B,CAAA;AACxC,cAAc,mCAAmC,CAAA;AACjD,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,wBAAwB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,eAAe,CAAA;AAC7B,cAAc,0BAA0B,CAAA;AACxC,cAAc,mCAAmC,CAAA;AACjD,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,wBAAwB,CAAA"}
@@ -0,0 +1,68 @@
1
+ export declare const sampleBlockNativeGasPricePayload: {
2
+ blockPrices: {
3
+ baseFeePerGas: number;
4
+ blockNumber: number;
5
+ estimatedPrices: {
6
+ confidence: number;
7
+ maxFeePerGas: number;
8
+ maxPriorityFeePerGas: number;
9
+ price: number;
10
+ }[];
11
+ estimatedTransactionCount: number;
12
+ }[];
13
+ currentBlockNumber: number;
14
+ estimatedBaseFees: ({
15
+ 'pending+1': {
16
+ baseFee: number;
17
+ confidence: number;
18
+ }[];
19
+ 'pending+2'?: undefined;
20
+ 'pending+3'?: undefined;
21
+ 'pending+4'?: undefined;
22
+ 'pending+5'?: undefined;
23
+ } | {
24
+ 'pending+2': {
25
+ baseFee: number;
26
+ confidence: number;
27
+ }[];
28
+ 'pending+1'?: undefined;
29
+ 'pending+3'?: undefined;
30
+ 'pending+4'?: undefined;
31
+ 'pending+5'?: undefined;
32
+ } | {
33
+ 'pending+3': {
34
+ baseFee: number;
35
+ confidence: number;
36
+ }[];
37
+ 'pending+1'?: undefined;
38
+ 'pending+2'?: undefined;
39
+ 'pending+4'?: undefined;
40
+ 'pending+5'?: undefined;
41
+ } | {
42
+ 'pending+4': {
43
+ baseFee: number;
44
+ confidence: number;
45
+ }[];
46
+ 'pending+1'?: undefined;
47
+ 'pending+2'?: undefined;
48
+ 'pending+3'?: undefined;
49
+ 'pending+5'?: undefined;
50
+ } | {
51
+ 'pending+5': {
52
+ baseFee: number;
53
+ confidence: number;
54
+ }[];
55
+ 'pending+1'?: undefined;
56
+ 'pending+2'?: undefined;
57
+ 'pending+3'?: undefined;
58
+ 'pending+4'?: undefined;
59
+ })[];
60
+ maxPrice: number;
61
+ msSinceLastBlock: number;
62
+ network: string;
63
+ schema: string;
64
+ system: string;
65
+ timestamp: number;
66
+ unit: string;
67
+ };
68
+ //# sourceMappingURL=blockNative.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blockNative.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/blockNative.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0F5C,CAAA"}
@@ -0,0 +1,92 @@
1
+ export const sampleBlockNativeGasPricePayload = {
2
+ blockPrices: [
3
+ {
4
+ baseFeePerGas: 26.32847478,
5
+ blockNumber: 16134624,
6
+ estimatedPrices: [
7
+ {
8
+ confidence: 99,
9
+ maxFeePerGas: 41.86,
10
+ maxPriorityFeePerGas: 1.18,
11
+ price: 27,
12
+ },
13
+ {
14
+ confidence: 95,
15
+ maxFeePerGas: 41.54,
16
+ maxPriorityFeePerGas: 0.86,
17
+ price: 27,
18
+ },
19
+ {
20
+ confidence: 90,
21
+ maxFeePerGas: 41.15,
22
+ maxPriorityFeePerGas: 0.47,
23
+ price: 26,
24
+ },
25
+ {
26
+ confidence: 80,
27
+ maxFeePerGas: 41,
28
+ maxPriorityFeePerGas: 0.32,
29
+ price: 26,
30
+ },
31
+ {
32
+ confidence: 70,
33
+ maxFeePerGas: 40.93,
34
+ maxPriorityFeePerGas: 0.25,
35
+ price: 26,
36
+ },
37
+ ],
38
+ estimatedTransactionCount: 186,
39
+ },
40
+ ],
41
+ currentBlockNumber: 16134623,
42
+ estimatedBaseFees: [
43
+ {
44
+ 'pending+1': [
45
+ {
46
+ baseFee: 29.62,
47
+ confidence: 99,
48
+ },
49
+ ],
50
+ },
51
+ {
52
+ 'pending+2': [
53
+ {
54
+ baseFee: 33.33,
55
+ confidence: 99,
56
+ },
57
+ ],
58
+ },
59
+ {
60
+ 'pending+3': [
61
+ {
62
+ baseFee: 37.4,
63
+ confidence: 99,
64
+ },
65
+ ],
66
+ },
67
+ {
68
+ 'pending+4': [
69
+ {
70
+ baseFee: 39.26,
71
+ confidence: 99,
72
+ },
73
+ ],
74
+ },
75
+ {
76
+ 'pending+5': [
77
+ {
78
+ baseFee: 40.68,
79
+ confidence: 99,
80
+ },
81
+ ],
82
+ },
83
+ ],
84
+ maxPrice: 64,
85
+ msSinceLastBlock: 9645,
86
+ network: 'main',
87
+ schema: 'network.xyo.blockchain.ethereum.gas.blocknative',
88
+ system: 'ethereum',
89
+ timestamp: 1670437800246,
90
+ unit: 'gwei',
91
+ };
92
+ //# sourceMappingURL=blockNative.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blockNative.js","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/blockNative.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,WAAW,EAAE;QACX;YACE,aAAa,EAAE,WAAW;YAC1B,WAAW,EAAE,QAAQ;YACrB,eAAe,EAAE;gBACf;oBACE,UAAU,EAAE,EAAE;oBACd,YAAY,EAAE,KAAK;oBACnB,oBAAoB,EAAE,IAAI;oBAC1B,KAAK,EAAE,EAAE;iBACV;gBACD;oBACE,UAAU,EAAE,EAAE;oBACd,YAAY,EAAE,KAAK;oBACnB,oBAAoB,EAAE,IAAI;oBAC1B,KAAK,EAAE,EAAE;iBACV;gBACD;oBACE,UAAU,EAAE,EAAE;oBACd,YAAY,EAAE,KAAK;oBACnB,oBAAoB,EAAE,IAAI;oBAC1B,KAAK,EAAE,EAAE;iBACV;gBACD;oBACE,UAAU,EAAE,EAAE;oBACd,YAAY,EAAE,EAAE;oBAChB,oBAAoB,EAAE,IAAI;oBAC1B,KAAK,EAAE,EAAE;iBACV;gBACD;oBACE,UAAU,EAAE,EAAE;oBACd,YAAY,EAAE,KAAK;oBACnB,oBAAoB,EAAE,IAAI;oBAC1B,KAAK,EAAE,EAAE;iBACV;aACF;YACD,yBAAyB,EAAE,GAAG;SAC/B;KACF;IACD,kBAAkB,EAAE,QAAQ;IAC5B,iBAAiB,EAAE;QACjB;YACE,WAAW,EAAE;gBACX;oBACE,OAAO,EAAE,KAAK;oBACd,UAAU,EAAE,EAAE;iBACf;aACF;SACF;QACD;YACE,WAAW,EAAE;gBACX;oBACE,OAAO,EAAE,KAAK;oBACd,UAAU,EAAE,EAAE;iBACf;aACF;SACF;QACD;YACE,WAAW,EAAE;gBACX;oBACE,OAAO,EAAE,IAAI;oBACb,UAAU,EAAE,EAAE;iBACf;aACF;SACF;QACD;YACE,WAAW,EAAE;gBACX;oBACE,OAAO,EAAE,KAAK;oBACd,UAAU,EAAE,EAAE;iBACf;aACF;SACF;QACD;YACE,WAAW,EAAE;gBACX;oBACE,OAAO,EAAE,KAAK;oBACd,UAAU,EAAE,EAAE;iBACf;aACF;SACF;KACF;IACD,QAAQ,EAAE,EAAE;IACZ,gBAAgB,EAAE,IAAI;IACtB,OAAO,EAAE,MAAM;IACf,MAAM,EAAE,iDAAiD;IACzD,MAAM,EAAE,UAAU;IAClB,SAAS,EAAE,aAAa;IACxB,IAAI,EAAE,MAAM;CACb,CAAA"}
@@ -0,0 +1,19 @@
1
+ export declare const sampleEthGasStationGasPricePayload: {
2
+ baseFee: number;
3
+ blockNumber: number;
4
+ blockTime: number;
5
+ gasPrice: {
6
+ fast: number;
7
+ instant: number;
8
+ standard: number;
9
+ };
10
+ nextBaseFee: number;
11
+ priorityFee: {
12
+ fast: number;
13
+ instant: number;
14
+ standard: number;
15
+ };
16
+ schema: string;
17
+ timestamp: number;
18
+ };
19
+ //# sourceMappingURL=ethGasStation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ethGasStation.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/ethGasStation.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;CAiB9C,CAAA"}
@@ -0,0 +1,19 @@
1
+ export const sampleEthGasStationGasPricePayload = {
2
+ baseFee: 37,
3
+ blockNumber: 16134572,
4
+ blockTime: 11.88,
5
+ gasPrice: {
6
+ fast: 84,
7
+ instant: 97,
8
+ standard: 53,
9
+ },
10
+ nextBaseFee: 37,
11
+ priorityFee: {
12
+ fast: 5,
13
+ instant: 14,
14
+ standard: 2,
15
+ },
16
+ schema: 'network.xyo.blockchain.ethereum.gas.ethgasstation',
17
+ timestamp: 1670437200687,
18
+ };
19
+ //# sourceMappingURL=ethGasStation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ethGasStation.js","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/ethGasStation.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kCAAkC,GAAG;IAChD,OAAO,EAAE,EAAE;IACX,WAAW,EAAE,QAAQ;IACrB,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,EAAE;QACR,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE,EAAE;IACf,WAAW,EAAE;QACX,IAAI,EAAE,CAAC;QACP,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,CAAC;KACZ;IACD,MAAM,EAAE,mDAAmD;IAC3D,SAAS,EAAE,aAAa;CACzB,CAAA"}
@@ -0,0 +1,11 @@
1
+ export declare const sampleEtherchainV1GasPricePayload: {
2
+ currentBaseFee: number;
3
+ fast: number;
4
+ fastest: number;
5
+ recommendedBaseFee: number;
6
+ safeLow: number;
7
+ schema: string;
8
+ standard: number;
9
+ timestamp: number;
10
+ };
11
+ //# sourceMappingURL=etherchainV1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"etherchainV1.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/etherchainV1.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iCAAiC;;;;;;;;;CAS7C,CAAA"}
@@ -0,0 +1,11 @@
1
+ export const sampleEtherchainV1GasPricePayload = {
2
+ currentBaseFee: 28.3,
3
+ fast: 0.9,
4
+ fastest: 1.5,
5
+ recommendedBaseFee: 57.5,
6
+ safeLow: 0.2,
7
+ schema: 'network.xyo.blockchain.ethereum.gas.etherchain.v1',
8
+ standard: 0.4,
9
+ timestamp: 1670437800313,
10
+ };
11
+ //# sourceMappingURL=etherchainV1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"etherchainV1.js","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/etherchainV1.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,cAAc,EAAE,IAAI;IACpB,IAAI,EAAE,GAAG;IACT,OAAO,EAAE,GAAG;IACZ,kBAAkB,EAAE,IAAI;IACxB,OAAO,EAAE,GAAG;IACZ,MAAM,EAAE,mDAAmD;IAC3D,QAAQ,EAAE,GAAG;IACb,SAAS,EAAE,aAAa;CACzB,CAAA"}
@@ -0,0 +1,14 @@
1
+ export declare const sampleEtherchainV2GasPricePayload: {
2
+ code: number;
3
+ data: {
4
+ fast: number;
5
+ priceUSD: number;
6
+ rapid: number;
7
+ slow: number;
8
+ standard: number;
9
+ timestamp: number;
10
+ };
11
+ schema: string;
12
+ timestamp: number;
13
+ };
14
+ //# sourceMappingURL=etherchainV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"etherchainV2.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/etherchainV2.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iCAAiC;;;;;;;;;;;;CAY7C,CAAA"}
@@ -0,0 +1,14 @@
1
+ export const sampleEtherchainV2GasPricePayload = {
2
+ code: 200,
3
+ data: {
4
+ fast: 26423463713,
5
+ priceUSD: 1229.43,
6
+ rapid: 37143856713,
7
+ slow: 13000000000,
8
+ standard: 21366997291,
9
+ timestamp: 1670437795342,
10
+ },
11
+ schema: 'network.xyo.blockchain.ethereum.gas.etherchain.v2',
12
+ timestamp: 1670437800338,
13
+ };
14
+ //# sourceMappingURL=etherchainV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"etherchainV2.js","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/etherchainV2.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,IAAI,EAAE,GAAG;IACT,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,OAAO;QACjB,KAAK,EAAE,WAAW;QAClB,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,WAAW;QACrB,SAAS,EAAE,aAAa;KACzB;IACD,MAAM,EAAE,mDAAmD;IAC3D,SAAS,EAAE,aAAa;CACzB,CAAA"}
@@ -0,0 +1,9 @@
1
+ export declare const sampleEthersGasPricePayload: {
2
+ gasPrice: number;
3
+ lastBaseFeePerGas: number;
4
+ maxFeePerGas: number;
5
+ maxPriorityFeePerGas: number;
6
+ schema: string;
7
+ timestamp: number;
8
+ };
9
+ //# sourceMappingURL=ethers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ethers.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/ethers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B;;;;;;;CAOvC,CAAA"}
@@ -0,0 +1,9 @@
1
+ export const sampleEthersGasPricePayload = {
2
+ gasPrice: 26770943129,
3
+ lastBaseFeePerGas: 26494335502,
4
+ maxFeePerGas: 54488671004,
5
+ maxPriorityFeePerGas: 1500000000,
6
+ schema: 'network.xyo.blockchain.ethereum.gas.ethers',
7
+ timestamp: 1670437800345,
8
+ };
9
+ //# sourceMappingURL=ethers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ethers.js","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/ethers.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,QAAQ,EAAE,WAAW;IACrB,iBAAiB,EAAE,WAAW;IAC9B,YAAY,EAAE,WAAW;IACzB,oBAAoB,EAAE,UAAU;IAChC,MAAM,EAAE,4CAA4C;IACpD,SAAS,EAAE,aAAa;CACzB,CAAA"}
@@ -0,0 +1,15 @@
1
+ export declare const sampleEtherscanGasPricePayload: {
2
+ message: string;
3
+ result: {
4
+ FastGasPrice: string;
5
+ LastBlock: string;
6
+ ProposeGasPrice: string;
7
+ SafeGasPrice: string;
8
+ gasUsedRatio: string;
9
+ suggestBaseFee: string;
10
+ };
11
+ schema: string;
12
+ status: string;
13
+ timestamp: number;
14
+ };
15
+ //# sourceMappingURL=etherscan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"etherscan.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/etherscan.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;CAa1C,CAAA"}
@@ -0,0 +1,15 @@
1
+ export const sampleEtherscanGasPricePayload = {
2
+ message: 'OK',
3
+ result: {
4
+ FastGasPrice: '35',
5
+ LastBlock: '16134573',
6
+ ProposeGasPrice: '35',
7
+ SafeGasPrice: '34',
8
+ gasUsedRatio: '0.4491729,0.440816333333333,0.480461266666667,0.373305033333333,0.322907566666667',
9
+ suggestBaseFee: '33.952097068',
10
+ },
11
+ schema: 'network.xyo.blockchain.ethereum.gas.etherscan',
12
+ status: '1',
13
+ timestamp: 1670437200510,
14
+ };
15
+ //# sourceMappingURL=etherscan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"etherscan.js","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/etherscan.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,OAAO,EAAE,IAAI;IACb,MAAM,EAAE;QACN,YAAY,EAAE,IAAI;QAClB,SAAS,EAAE,UAAU;QACrB,eAAe,EAAE,IAAI;QACrB,YAAY,EAAE,IAAI;QAClB,YAAY,EAAE,mFAAmF;QACjG,cAAc,EAAE,cAAc;KAC/B;IACD,MAAM,EAAE,+CAA+C;IACvD,MAAM,EAAE,GAAG;IACX,SAAS,EAAE,aAAa;CACzB,CAAA"}
@@ -0,0 +1,7 @@
1
+ export * from './blockNative';
2
+ export * from './etherchainV1';
3
+ export * from './etherchainV2';
4
+ export * from './ethers';
5
+ export * from './etherscan';
6
+ export * from './ethGasStation';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA"}
@@ -0,0 +1,7 @@
1
+ export * from './blockNative';
2
+ export * from './etherchainV1';
3
+ export * from './etherchainV2';
4
+ export * from './ethers';
5
+ export * from './etherscan';
6
+ export * from './ethGasStation';
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sampleGasPricePayloads/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA"}
package/package.json CHANGED
@@ -14,14 +14,14 @@
14
14
  "@xylabs/react-flexbox": "^2.15.2",
15
15
  "@xylabs/react-invertable-theme": "^2.15.2",
16
16
  "@xylabs/react-shared": "^2.15.2",
17
- "@xyo-network/react-api": "^2.40.35",
18
- "@xyo-network/react-auth": "^2.40.35",
19
- "@xyo-network/react-map": "^2.40.35",
20
- "@xyo-network/react-theme": "^2.40.35",
21
- "@xyo-network/react-wallet-service": "^2.40.35",
17
+ "@xyo-network/react-api": "^2.41.0",
18
+ "@xyo-network/react-auth": "^2.41.0",
19
+ "@xyo-network/react-map": "^2.41.0",
20
+ "@xyo-network/react-theme": "^2.41.0",
21
+ "@xyo-network/react-wallet-service": "^2.41.0",
22
22
  "lodash": "^4.17.21",
23
23
  "require-from-string": "^2.0.2",
24
- "storybook-dark-mode": "^1.1.2",
24
+ "storybook-dark-mode": "^2.0.4",
25
25
  "tslib": "^2.4.1"
26
26
  },
27
27
  "peerDependencies": {
@@ -98,5 +98,5 @@
98
98
  },
99
99
  "sideEffects": false,
100
100
  "types": "dist/esm/index.d.ts",
101
- "version": "2.40.35"
101
+ "version": "2.41.0"
102
102
  }
package/src/index.ts CHANGED
@@ -5,6 +5,7 @@ export * from './sampleAddressHistory'
5
5
  export * from './sampleBlock'
6
6
  export * from './sampleCoinGeckoPayload'
7
7
  export * from './sampleEthereumGasDivinerPayload'
8
+ export * from './sampleGasPricePayloads'
8
9
  export * from './samplePayload'
9
10
  export * from './sampleUniswapPayload'
10
11
  export * from './useAppThemeDecorator'
@@ -0,0 +1,91 @@
1
+ export const sampleBlockNativeGasPricePayload = {
2
+ blockPrices: [
3
+ {
4
+ baseFeePerGas: 26.32847478,
5
+ blockNumber: 16134624,
6
+ estimatedPrices: [
7
+ {
8
+ confidence: 99,
9
+ maxFeePerGas: 41.86,
10
+ maxPriorityFeePerGas: 1.18,
11
+ price: 27,
12
+ },
13
+ {
14
+ confidence: 95,
15
+ maxFeePerGas: 41.54,
16
+ maxPriorityFeePerGas: 0.86,
17
+ price: 27,
18
+ },
19
+ {
20
+ confidence: 90,
21
+ maxFeePerGas: 41.15,
22
+ maxPriorityFeePerGas: 0.47,
23
+ price: 26,
24
+ },
25
+ {
26
+ confidence: 80,
27
+ maxFeePerGas: 41,
28
+ maxPriorityFeePerGas: 0.32,
29
+ price: 26,
30
+ },
31
+ {
32
+ confidence: 70,
33
+ maxFeePerGas: 40.93,
34
+ maxPriorityFeePerGas: 0.25,
35
+ price: 26,
36
+ },
37
+ ],
38
+ estimatedTransactionCount: 186,
39
+ },
40
+ ],
41
+ currentBlockNumber: 16134623,
42
+ estimatedBaseFees: [
43
+ {
44
+ 'pending+1': [
45
+ {
46
+ baseFee: 29.62,
47
+ confidence: 99,
48
+ },
49
+ ],
50
+ },
51
+ {
52
+ 'pending+2': [
53
+ {
54
+ baseFee: 33.33,
55
+ confidence: 99,
56
+ },
57
+ ],
58
+ },
59
+ {
60
+ 'pending+3': [
61
+ {
62
+ baseFee: 37.4,
63
+ confidence: 99,
64
+ },
65
+ ],
66
+ },
67
+ {
68
+ 'pending+4': [
69
+ {
70
+ baseFee: 39.26,
71
+ confidence: 99,
72
+ },
73
+ ],
74
+ },
75
+ {
76
+ 'pending+5': [
77
+ {
78
+ baseFee: 40.68,
79
+ confidence: 99,
80
+ },
81
+ ],
82
+ },
83
+ ],
84
+ maxPrice: 64,
85
+ msSinceLastBlock: 9645,
86
+ network: 'main',
87
+ schema: 'network.xyo.blockchain.ethereum.gas.blocknative',
88
+ system: 'ethereum',
89
+ timestamp: 1670437800246,
90
+ unit: 'gwei',
91
+ }
@@ -0,0 +1,18 @@
1
+ export const sampleEthGasStationGasPricePayload = {
2
+ baseFee: 37,
3
+ blockNumber: 16134572,
4
+ blockTime: 11.88,
5
+ gasPrice: {
6
+ fast: 84,
7
+ instant: 97,
8
+ standard: 53,
9
+ },
10
+ nextBaseFee: 37,
11
+ priorityFee: {
12
+ fast: 5,
13
+ instant: 14,
14
+ standard: 2,
15
+ },
16
+ schema: 'network.xyo.blockchain.ethereum.gas.ethgasstation',
17
+ timestamp: 1670437200687,
18
+ }
@@ -0,0 +1,10 @@
1
+ export const sampleEtherchainV1GasPricePayload = {
2
+ currentBaseFee: 28.3,
3
+ fast: 0.9,
4
+ fastest: 1.5,
5
+ recommendedBaseFee: 57.5,
6
+ safeLow: 0.2,
7
+ schema: 'network.xyo.blockchain.ethereum.gas.etherchain.v1',
8
+ standard: 0.4,
9
+ timestamp: 1670437800313,
10
+ }
@@ -0,0 +1,13 @@
1
+ export const sampleEtherchainV2GasPricePayload = {
2
+ code: 200,
3
+ data: {
4
+ fast: 26423463713,
5
+ priceUSD: 1229.43,
6
+ rapid: 37143856713,
7
+ slow: 13000000000,
8
+ standard: 21366997291,
9
+ timestamp: 1670437795342,
10
+ },
11
+ schema: 'network.xyo.blockchain.ethereum.gas.etherchain.v2',
12
+ timestamp: 1670437800338,
13
+ }
@@ -0,0 +1,8 @@
1
+ export const sampleEthersGasPricePayload = {
2
+ gasPrice: 26770943129,
3
+ lastBaseFeePerGas: 26494335502,
4
+ maxFeePerGas: 54488671004,
5
+ maxPriorityFeePerGas: 1500000000,
6
+ schema: 'network.xyo.blockchain.ethereum.gas.ethers',
7
+ timestamp: 1670437800345,
8
+ }
@@ -0,0 +1,14 @@
1
+ export const sampleEtherscanGasPricePayload = {
2
+ message: 'OK',
3
+ result: {
4
+ FastGasPrice: '35',
5
+ LastBlock: '16134573',
6
+ ProposeGasPrice: '35',
7
+ SafeGasPrice: '34',
8
+ gasUsedRatio: '0.4491729,0.440816333333333,0.480461266666667,0.373305033333333,0.322907566666667',
9
+ suggestBaseFee: '33.952097068',
10
+ },
11
+ schema: 'network.xyo.blockchain.ethereum.gas.etherscan',
12
+ status: '1',
13
+ timestamp: 1670437200510,
14
+ }
@@ -0,0 +1,6 @@
1
+ export * from './blockNative'
2
+ export * from './etherchainV1'
3
+ export * from './etherchainV2'
4
+ export * from './ethers'
5
+ export * from './etherscan'
6
+ export * from './ethGasStation'