@0xtorch/evm 0.0.3 → 0.0.4

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 (76) hide show
  1. package/package.json +1 -1
  2. package/dist/import/absoluteValue.d.mts +0 -3
  3. package/dist/import/absoluteValue.d.mts.map +0 -1
  4. package/dist/import/absoluteValue.d.ts +0 -3
  5. package/dist/import/absoluteValue.d.ts.map +0 -1
  6. package/dist/import/createBigDecimal.d.mts +0 -6
  7. package/dist/import/createBigDecimal.d.mts.map +0 -1
  8. package/dist/import/createBigDecimal.d.ts +0 -3
  9. package/dist/import/createBigDecimal.d.ts.map +0 -1
  10. package/dist/import/divide.d.mts +0 -8
  11. package/dist/import/divide.d.mts.map +0 -1
  12. package/dist/import/divide.d.ts +0 -3
  13. package/dist/import/divide.d.ts.map +0 -1
  14. package/dist/import/equals.d.mts +0 -3
  15. package/dist/import/equals.d.mts.map +0 -1
  16. package/dist/import/equals.d.ts +0 -3
  17. package/dist/import/equals.d.ts.map +0 -1
  18. package/dist/import/fix.d.mts +0 -7
  19. package/dist/import/fix.d.mts.map +0 -1
  20. package/dist/import/fix.d.ts +0 -3
  21. package/dist/import/fix.d.ts.map +0 -1
  22. package/dist/import/greaterThan.d.mts +0 -3
  23. package/dist/import/greaterThan.d.mts.map +0 -1
  24. package/dist/import/greaterThan.d.ts +0 -3
  25. package/dist/import/greaterThan.d.ts.map +0 -1
  26. package/dist/import/index.d.ts +0 -11
  27. package/dist/import/index.d.ts.map +0 -1
  28. package/dist/import/index.mjs +0 -1
  29. package/dist/import/minus.d.mts +0 -3
  30. package/dist/import/minus.d.mts.map +0 -1
  31. package/dist/import/minus.d.ts +0 -3
  32. package/dist/import/minus.d.ts.map +0 -1
  33. package/dist/import/plus.d.mts +0 -3
  34. package/dist/import/plus.d.mts.map +0 -1
  35. package/dist/import/plus.d.ts +0 -3
  36. package/dist/import/plus.d.ts.map +0 -1
  37. package/dist/import/removeTrailingZeros.d.mts +0 -6
  38. package/dist/import/removeTrailingZeros.d.mts.map +0 -1
  39. package/dist/import/removeTrailingZeros.d.ts +0 -3
  40. package/dist/import/removeTrailingZeros.d.ts.map +0 -1
  41. package/dist/import/times.d.ts +0 -3
  42. package/dist/import/times.d.ts.map +0 -1
  43. package/dist/import/toStringBigDecimal.d.mts +0 -6
  44. package/dist/import/toStringBigDecimal.d.mts.map +0 -1
  45. package/dist/import/toStringBigDecimal.d.ts +0 -3
  46. package/dist/import/toStringBigDecimal.d.ts.map +0 -1
  47. package/dist/import/type.d.mts +0 -5
  48. package/dist/import/type.d.mts.map +0 -1
  49. package/dist/import/type.d.ts +0 -5
  50. package/dist/import/type.d.ts.map +0 -1
  51. package/dist/require/absoluteValue.d.ts +0 -3
  52. package/dist/require/absoluteValue.d.ts.map +0 -1
  53. package/dist/require/createBigDecimal.d.ts +0 -6
  54. package/dist/require/createBigDecimal.d.ts.map +0 -1
  55. package/dist/require/divide.d.ts +0 -2
  56. package/dist/require/divide.d.ts.map +0 -1
  57. package/dist/require/equals.d.ts +0 -3
  58. package/dist/require/equals.d.ts.map +0 -1
  59. package/dist/require/fix.d.ts +0 -7
  60. package/dist/require/fix.d.ts.map +0 -1
  61. package/dist/require/greaterThan.d.ts +0 -3
  62. package/dist/require/greaterThan.d.ts.map +0 -1
  63. package/dist/require/index.d.ts +0 -11
  64. package/dist/require/index.d.ts.map +0 -1
  65. package/dist/require/minus.d.ts +0 -3
  66. package/dist/require/minus.d.ts.map +0 -1
  67. package/dist/require/plus.d.ts +0 -3
  68. package/dist/require/plus.d.ts.map +0 -1
  69. package/dist/require/removeTrailingZeros.d.ts +0 -6
  70. package/dist/require/removeTrailingZeros.d.ts.map +0 -1
  71. package/dist/require/times.d.ts +0 -8
  72. package/dist/require/times.d.ts.map +0 -1
  73. package/dist/require/toStringBigDecimal.d.ts +0 -6
  74. package/dist/require/toStringBigDecimal.d.ts.map +0 -1
  75. package/dist/require/type.d.ts +0 -5
  76. package/dist/require/type.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xtorch/evm",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Cryptorch EVM extension",
5
5
  "keywords": [
6
6
  "cryptorch",
@@ -1,3 +0,0 @@
1
- import type { BigDecimal } from './type'
2
- export declare const absoluteValue: (value: BigDecimal) => BigDecimal
3
- //# sourceMappingURL=absoluteValue.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"absoluteValue.d.mts","sourceRoot":"","sources":["../../src/absoluteValue.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,eAAO,MAAM,aAAa,UAAW,UAAU,KAAG,UAM3C,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { BigDecimal } from './type';
2
- export declare const absoluteValue: (value: BigDecimal) => BigDecimal;
3
- //# sourceMappingURL=absoluteValue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"absoluteValue.d.ts","sourceRoot":"","sources":["../../src/absoluteValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,aAAa,UAAW,UAAU,KAAG,UAM3C,CAAA"}
@@ -1,6 +0,0 @@
1
- import type { BigDecimal } from './type'
2
- export declare const createBigDecimal: (
3
- value: string | number | bigint,
4
- decimals?: number,
5
- ) => BigDecimal
6
- //# sourceMappingURL=createBigDecimal.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createBigDecimal.d.mts","sourceRoot":"","sources":["../../src/createBigDecimal.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,eAAO,MAAM,gBAAgB,UACpB,MAAM,GAAG,MAAM,GAAG,MAAM,aACpB,MAAM,KAChB,UAOF,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { BigDecimal } from './type';
2
- export declare const createBigDecimal: (value: string | number | bigint, decimals?: number) => BigDecimal;
3
- //# sourceMappingURL=createBigDecimal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createBigDecimal.d.ts","sourceRoot":"","sources":["../../src/createBigDecimal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,gBAAgB,UACpB,MAAM,GAAG,MAAM,GAAG,MAAM,aACpB,MAAM,KAChB,UAOF,CAAA"}
@@ -1,8 +0,0 @@
1
- import type { BigDecimal } from './type'
2
- export declare const divide: (
3
- x: BigDecimal,
4
- y: BigDecimal,
5
- fixDecimals?: number,
6
- rounding?: 'round' | 'floor' | 'ceil',
7
- ) => BigDecimal
8
- //# sourceMappingURL=divide.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"divide.d.mts","sourceRoot":"","sources":["../../src/divide.mts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,eAAO,MAAM,MAAM,MACd,UAAU,KACV,UAAU,gBACC,MAAM,aACV,OAAO,GAAG,OAAO,GAAG,MAAM,KACnC,UAoBF,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { BigDecimal } from './type';
2
- export declare const divide: (x: BigDecimal, y: BigDecimal, fixDecimals?: number, rounding?: 'round' | 'floor' | 'ceil') => BigDecimal;
3
- //# sourceMappingURL=divide.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"divide.d.ts","sourceRoot":"","sources":["../../src/divide.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,MAAM,MACd,UAAU,KACV,UAAU,gBACC,MAAM,aACV,OAAO,GAAG,OAAO,GAAG,MAAM,KACnC,UAoBF,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { BigDecimal } from './type'
2
- export declare const equals: (x: BigDecimal, y: BigDecimal) => boolean
3
- //# sourceMappingURL=equals.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"equals.d.mts","sourceRoot":"","sources":["../../src/equals.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,eAAO,MAAM,MAAM,MAAO,UAAU,KAAK,UAAU,KAAG,OAMrD,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { BigDecimal } from './type';
2
- export declare const equals: (x: BigDecimal, y: BigDecimal) => boolean;
3
- //# sourceMappingURL=equals.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../src/equals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,MAAM,MAAO,UAAU,KAAK,UAAU,KAAG,OAMrD,CAAA"}
@@ -1,7 +0,0 @@
1
- import type { BigDecimal } from './type'
2
- export declare const fix: (
3
- { value, decimals }: BigDecimal,
4
- fixDecimals: number,
5
- rounding: 'round' | 'floor' | 'ceil',
6
- ) => BigDecimal
7
- //# sourceMappingURL=fix.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fix.d.mts","sourceRoot":"","sources":["../../src/fix.mts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,eAAO,MAAM,GAAG,wBACO,UAAU,eAClB,MAAM,YACT,OAAO,GAAG,OAAO,GAAG,MAAM,KACnC,UAYF,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { BigDecimal } from './type';
2
- export declare const fix: ({ value, decimals }: BigDecimal, fixDecimals: number, rounding: 'round' | 'floor' | 'ceil') => BigDecimal;
3
- //# sourceMappingURL=fix.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fix.d.ts","sourceRoot":"","sources":["../../src/fix.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,GAAG,wBACO,UAAU,eAClB,MAAM,YACT,OAAO,GAAG,OAAO,GAAG,MAAM,KACnC,UAYF,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { BigDecimal } from './type'
2
- export declare const greaterThan: (x: BigDecimal, y: BigDecimal) => boolean
3
- //# sourceMappingURL=greaterThan.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"greaterThan.d.mts","sourceRoot":"","sources":["../../src/greaterThan.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,eAAO,MAAM,WAAW,MAAO,UAAU,KAAK,UAAU,KAAG,OAM1D,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { BigDecimal } from './type';
2
- export declare const greaterThan: (x: BigDecimal, y: BigDecimal) => boolean;
3
- //# sourceMappingURL=greaterThan.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"greaterThan.d.ts","sourceRoot":"","sources":["../../src/greaterThan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,WAAW,MAAO,UAAU,KAAK,UAAU,KAAG,OAM1D,CAAA"}
@@ -1,11 +0,0 @@
1
- export { absoluteValue } from './absoluteValue'
2
- export { createBigDecimal } from './createBigDecimal'
3
- export { divide } from './divide'
4
- export { equals } from './equals'
5
- export { greaterThan } from './greaterThan'
6
- export { minus } from './minus'
7
- export { plus } from './plus'
8
- export { times } from './times'
9
- export { toStringBigDecimal } from './toStringBigDecimal'
10
- export type { BigDecimal } from './type'
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA"}
@@ -1 +0,0 @@
1
- var h=e=>e.value>=0?e:{value:-e.value,decimals:e.decimals};var T=(e,t)=>typeof e=="string"?D(e,t):typeof e=="number"?D(e.toString(),t):I(e,t),D=(e,t)=>{let i=e.split("e"),n=i[0],r=i[1],o=n.startsWith("-"),a=(o?n.slice(1):n).replaceAll(",","").replaceAll("_",""),[m,c]=a.split("."),d=/^\d+$/;if(!d.test(m)||c!==void 0&&c.length>0&&!d.test(c))throw new Error(`Invalid decimal format value: ${n}`);let B=c!==void 0&&c.length>0?c.replace(/0+$/,""):"",f=B.length,b=y(t,B,f),g=BigInt(`${o?"-":""}${m}${b}`),v=t===void 0?f:t;if(r===void 0)return{value:g,decimals:v};let x=Number(r),p=v-x;return p<0?{value:g*10n**BigInt(-p),decimals:0}:{value:g,decimals:p}},y=(e,t,i)=>e===void 0?t:e>i?t.padEnd(e,"0"):e<i?t.slice(0,e):t,I=(e,t)=>({value:e,decimals:t??0});var l=({value:e,decimals:t})=>{let i=e,n=t;for(;i%10n===0n&&n>0;)i/=10n,n-=1;return{value:i,decimals:n}};var s=({value:e,decimals:t},i,n)=>{if(t<=i)return l({value:e,decimals:t});let r=e/10n**BigInt(t-i-1),o=$(r,n);return l({value:o,decimals:i})},$=(e,t)=>{switch(t){case"ceil":return(e+9n)/10n;case"floor":return e/10n;case"round":return(e+5n)/10n}};var V=(e,t,i,n="round")=>{let r=i===void 0||i<e.decimals?e.decimals:i+1,u=(i===void 0||i<e.decimals?e.value:e.value*10n**BigInt(i+1-e.decimals))*10n**BigInt(t.decimals),a=t.value,m=u/a;return i===void 0?l({value:m,decimals:r}):s({value:m,decimals:r},i,n)};var X=(e,t)=>{let i=Math.max(e.decimals,t.decimals),n=e.value*10n**BigInt(i-e.decimals),r=t.value*10n**BigInt(i-t.decimals);return n===r};var S=(e,t)=>{let i=Math.max(e.decimals,t.decimals),n=e.value*10n**BigInt(i-e.decimals),r=t.value*10n**BigInt(i-t.decimals);return n>r};var Z=(e,t)=>{let i=Math.max(e.decimals,t.decimals),n=e.value*10n**BigInt(i-e.decimals),r=t.value*10n**BigInt(i-t.decimals),o=n-r;return l({value:o,decimals:i})};var Y=(e,t)=>{let i=Math.max(e.decimals,t.decimals),n=e.value*10n**BigInt(i-e.decimals),r=t.value*10n**BigInt(i-t.decimals),o=n+r;return l({value:o,decimals:i})};var w=(e,t,i,n="round")=>{let r=e.decimals+t.decimals,o=e.value*t.value;return i===void 0?l({value:o,decimals:r}):s({value:o,decimals:r},i,n)};var E=({value:e,decimals:t})=>{let i=e.toString(),n=i.length,r=t;if(n<=r)return`0.${i.padStart(r,"0")}`;let o=i.slice(0,n-r),a=i.slice(n-r).replace(/0+$/,"");return a.length===0?o:`${o}.${a}`};export{h as absoluteValue,T as createBigDecimal,V as divide,X as equals,S as greaterThan,Z as minus,Y as plus,w as times,E as toStringBigDecimal};
@@ -1,3 +0,0 @@
1
- import type { BigDecimal } from './type'
2
- export declare const minus: (x: BigDecimal, y: BigDecimal) => BigDecimal
3
- //# sourceMappingURL=minus.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"minus.d.mts","sourceRoot":"","sources":["../../src/minus.mts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,eAAO,MAAM,KAAK,MAAO,UAAU,KAAK,UAAU,KAAG,UAQpD,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { BigDecimal } from './type';
2
- export declare const minus: (x: BigDecimal, y: BigDecimal) => BigDecimal;
3
- //# sourceMappingURL=minus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"minus.d.ts","sourceRoot":"","sources":["../../src/minus.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,KAAK,MAAO,UAAU,KAAK,UAAU,KAAG,UAQpD,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { BigDecimal } from './type'
2
- export declare const plus: (x: BigDecimal, y: BigDecimal) => BigDecimal
3
- //# sourceMappingURL=plus.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plus.d.mts","sourceRoot":"","sources":["../../src/plus.mts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,eAAO,MAAM,IAAI,MAAO,UAAU,KAAK,UAAU,KAAG,UAQnD,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { BigDecimal } from './type';
2
- export declare const plus: (x: BigDecimal, y: BigDecimal) => BigDecimal;
3
- //# sourceMappingURL=plus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plus.d.ts","sourceRoot":"","sources":["../../src/plus.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,IAAI,MAAO,UAAU,KAAK,UAAU,KAAG,UAQnD,CAAA"}
@@ -1,6 +0,0 @@
1
- import type { BigDecimal } from './type'
2
- export declare const removeTrailingZeros: ({
3
- value,
4
- decimals,
5
- }: BigDecimal) => BigDecimal
6
- //# sourceMappingURL=removeTrailingZeros.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"removeTrailingZeros.d.mts","sourceRoot":"","sources":["../../src/removeTrailingZeros.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,eAAO,MAAM,mBAAmB,yBAG7B,UAAU,KAAG,UAWf,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { BigDecimal } from './type';
2
- export declare const removeTrailingZeros: ({ value, decimals, }: BigDecimal) => BigDecimal;
3
- //# sourceMappingURL=removeTrailingZeros.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"removeTrailingZeros.d.ts","sourceRoot":"","sources":["../../src/removeTrailingZeros.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,mBAAmB,yBAG7B,UAAU,KAAG,UAWf,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { BigDecimal } from './type';
2
- export declare const times: (x: BigDecimal, y: BigDecimal, fixDecimals?: number, rounding?: 'round' | 'floor' | 'ceil') => BigDecimal;
3
- //# sourceMappingURL=times.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"times.d.ts","sourceRoot":"","sources":["../../src/times.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,KAAK,MACb,UAAU,KACV,UAAU,gBACC,MAAM,aACV,OAAO,GAAG,OAAO,GAAG,MAAM,KACnC,UAWF,CAAA"}
@@ -1,6 +0,0 @@
1
- import type { BigDecimal } from './type'
2
- export declare const toStringBigDecimal: ({
3
- value,
4
- decimals,
5
- }: BigDecimal) => string
6
- //# sourceMappingURL=toStringBigDecimal.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toStringBigDecimal.d.mts","sourceRoot":"","sources":["../../src/toStringBigDecimal.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,eAAO,MAAM,kBAAkB,wBAAyB,UAAU,KAAG,MAepE,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { BigDecimal } from './type';
2
- export declare const toStringBigDecimal: ({ value, decimals }: BigDecimal) => string;
3
- //# sourceMappingURL=toStringBigDecimal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toStringBigDecimal.d.ts","sourceRoot":"","sources":["../../src/toStringBigDecimal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,kBAAkB,wBAAyB,UAAU,KAAG,MAepE,CAAA"}
@@ -1,5 +0,0 @@
1
- export type BigDecimal = {
2
- readonly value: bigint;
3
- readonly decimals: number;
4
- };
5
- //# sourceMappingURL=type.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.mts","sourceRoot":"","sources":["../../src/type.mts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAC1B,CAAA"}
@@ -1,5 +0,0 @@
1
- export type BigDecimal = {
2
- readonly value: bigint;
3
- readonly decimals: number;
4
- };
5
- //# sourceMappingURL=type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAC1B,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { BigDecimal } from './type.mts'
2
- export declare const absoluteValue: (value: BigDecimal) => BigDecimal
3
- //# sourceMappingURL=absoluteValue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"absoluteValue.d.ts","sourceRoot":"","sources":["../../src/absoluteValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,aAAa,UAAW,UAAU,KAAG,UAM3C,CAAA"}
@@ -1,6 +0,0 @@
1
- import type { BigDecimal } from './type.mts'
2
- export declare const createBigDecimal: (
3
- value: string | number | bigint,
4
- decimals?: number,
5
- ) => BigDecimal
6
- //# sourceMappingURL=createBigDecimal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createBigDecimal.d.ts","sourceRoot":"","sources":["../../src/createBigDecimal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,gBAAgB,UACpB,MAAM,GAAG,MAAM,GAAG,MAAM,aACpB,MAAM,KAChB,UAOF,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const divide: (x: BigDecimal, y: BigDecimal, fixDecimals?: number, rounding?: 'round' | 'floor' | 'ceil') => BigDecimal;
2
- //# sourceMappingURL=divide.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"divide.d.ts","sourceRoot":"","sources":["../../src/divide.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,+CAGH,MAAM,aACV,OAAO,GAAG,OAAO,GAAG,MAAM,eAqBrC,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { BigDecimal } from './type.mts'
2
- export declare const equals: (x: BigDecimal, y: BigDecimal) => boolean
3
- //# sourceMappingURL=equals.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../src/equals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,MAAM,MAAO,UAAU,KAAK,UAAU,KAAG,OAMrD,CAAA"}
@@ -1,7 +0,0 @@
1
- import type { BigDecimal } from './type.mts'
2
- export declare const fix: (
3
- { value, decimals }: BigDecimal,
4
- fixDecimals: number,
5
- rounding: 'round' | 'floor' | 'ceil',
6
- ) => BigDecimal
7
- //# sourceMappingURL=fix.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fix.d.ts","sourceRoot":"","sources":["../../src/fix.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,GAAG,wBACO,UAAU,eAClB,MAAM,YACT,OAAO,GAAG,OAAO,GAAG,MAAM,KACnC,UAYF,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { BigDecimal } from './type.mts'
2
- export declare const greaterThan: (x: BigDecimal, y: BigDecimal) => boolean
3
- //# sourceMappingURL=greaterThan.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"greaterThan.d.ts","sourceRoot":"","sources":["../../src/greaterThan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,WAAW,MAAO,UAAU,KAAK,UAAU,KAAG,OAM1D,CAAA"}
@@ -1,11 +0,0 @@
1
- export { absoluteValue } from './absoluteValue.mts'
2
- export { createBigDecimal } from './createBigDecimal.mts'
3
- export { divide } from './divide.mts'
4
- export { equals } from './equals.mts'
5
- export { greaterThan } from './greaterThan.mts'
6
- export { minus } from './minus.mts'
7
- export { plus } from './plus.mts'
8
- export { times } from './times'
9
- export { toStringBigDecimal } from './toStringBigDecimal.mts'
10
- export type { BigDecimal } from './type.mts'
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { BigDecimal } from './type.mts'
2
- export declare const minus: (x: BigDecimal, y: BigDecimal) => BigDecimal
3
- //# sourceMappingURL=minus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"minus.d.ts","sourceRoot":"","sources":["../../src/minus.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,KAAK,MAAO,UAAU,KAAK,UAAU,KAAG,UAQpD,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { BigDecimal } from './type.mts'
2
- export declare const plus: (x: BigDecimal, y: BigDecimal) => BigDecimal
3
- //# sourceMappingURL=plus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plus.d.ts","sourceRoot":"","sources":["../../src/plus.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,IAAI,MAAO,UAAU,KAAK,UAAU,KAAG,UAQnD,CAAA"}
@@ -1,6 +0,0 @@
1
- import type { BigDecimal } from './type.mts'
2
- export declare const removeTrailingZeros: ({
3
- value,
4
- decimals,
5
- }: BigDecimal) => BigDecimal
6
- //# sourceMappingURL=removeTrailingZeros.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"removeTrailingZeros.d.ts","sourceRoot":"","sources":["../../src/removeTrailingZeros.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,mBAAmB,yBAG7B,UAAU,KAAG,UAWf,CAAA"}
@@ -1,8 +0,0 @@
1
- import type { BigDecimal } from './type.mts'
2
- export declare const times: (
3
- x: BigDecimal,
4
- y: BigDecimal,
5
- fixDecimals?: number,
6
- rounding?: 'round' | 'floor' | 'ceil',
7
- ) => BigDecimal
8
- //# sourceMappingURL=times.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"times.d.ts","sourceRoot":"","sources":["../../src/times.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,KAAK,MACb,UAAU,KACV,UAAU,gBACC,MAAM,aACV,OAAO,GAAG,OAAO,GAAG,MAAM,KACnC,UAWF,CAAA"}
@@ -1,6 +0,0 @@
1
- import type { BigDecimal } from './type.mts'
2
- export declare const toStringBigDecimal: ({
3
- value,
4
- decimals,
5
- }: BigDecimal) => string
6
- //# sourceMappingURL=toStringBigDecimal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toStringBigDecimal.d.ts","sourceRoot":"","sources":["../../src/toStringBigDecimal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,kBAAkB,wBAAyB,UAAU,KAAG,MAepE,CAAA"}
@@ -1,5 +0,0 @@
1
- export type BigDecimal = {
2
- readonly value: bigint;
3
- readonly decimals: number;
4
- };
5
- //# sourceMappingURL=type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAC1B,CAAA"}