@renegade-fi/core
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -333,2 +333,4 @@ /// Header name for the HTTP auth signature | ||
process.env.VERCEL_ENV === 'preview' || | ||
process.env.NEXT_PUBLIC_VERCEL_ENV === 'development' || | ||
process.env.NEXT_PUBLIC_VERCEL_ENV === 'preview' || | ||
process.env.NODE_ENV === 'development'; | ||
@@ -335,0 +337,0 @@ export const tokenMapping = isDevelopment |
@@ -5,3 +5,3 @@ import type { Address } from 'viem'; | ||
state: TaskState; | ||
created_at: number; | ||
created_at: bigint; | ||
task_info: TaskInfo; | ||
@@ -8,0 +8,0 @@ }; |
@@ -5,22 +5,8 @@ import type { Address, Hex } from 'viem'; | ||
id: string; | ||
public_share_nullifier: number[]; | ||
public_share_nullifier: bigint[]; | ||
local: boolean; | ||
cluster: string; | ||
state: string; | ||
validity_proofs: (ValidityProof | number[])[]; | ||
timestamp: number; | ||
timestamp: bigint; | ||
}; | ||
type ValidityProof = { | ||
statement: { | ||
original_shares_nullifier?: number[]; | ||
reblinded_private_share_commitment?: number[]; | ||
merkle_root?: number[]; | ||
indices?: { | ||
balance_send: number; | ||
balance_receive: number; | ||
order: number; | ||
}; | ||
}; | ||
proof: string; | ||
}; | ||
export type Order = { | ||
@@ -31,3 +17,3 @@ id: string; | ||
side: 'Buy' | 'Sell'; | ||
type: 'Midpoint'; | ||
type: string; | ||
worst_case_price: string; | ||
@@ -80,6 +66,5 @@ amount: bigint; | ||
filled: bigint; | ||
created: number; | ||
created: bigint; | ||
data: Order; | ||
}; | ||
export {}; | ||
//# sourceMappingURL=wallet.d.ts.map |
@@ -43,3 +43,6 @@ import axios from 'axios'; | ||
try { | ||
return JSONBigint({ useNativeBigInt: true }).parse(data); | ||
return JSONBigint({ | ||
useNativeBigInt: true, | ||
alwaysParseAsBig: true, | ||
}).parse(data); | ||
} | ||
@@ -46,0 +49,0 @@ catch (_error) { |
{ | ||
"name": "@renegade-fi/core", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "VanillaJS library for Renegade", | ||
@@ -21,3 +21,3 @@ "files": [ | ||
"@types/json-bigint": "^1.0.4", | ||
"@renegade-fi/test": "0.0.17" | ||
"@renegade-fi/test": "0.0.18" | ||
}, | ||
@@ -24,0 +24,0 @@ "dependencies": { |
@@ -385,2 +385,4 @@ import type { Address } from 'viem' | ||
process.env.VERCEL_ENV === 'preview' || | ||
process.env.NEXT_PUBLIC_VERCEL_ENV === 'development' || | ||
process.env.NEXT_PUBLIC_VERCEL_ENV === 'preview' || | ||
process.env.NODE_ENV === 'development' | ||
@@ -387,0 +389,0 @@ |
@@ -6,3 +6,3 @@ import type { Address } from 'viem' | ||
state: TaskState | ||
created_at: number | ||
created_at: bigint | ||
task_info: TaskInfo | ||
@@ -9,0 +9,0 @@ } |
@@ -7,24 +7,9 @@ import type { Address, Hex } from 'viem' | ||
id: string | ||
public_share_nullifier: number[] | ||
public_share_nullifier: bigint[] | ||
local: boolean | ||
cluster: string | ||
state: string | ||
validity_proofs: (ValidityProof | number[])[] | ||
timestamp: number | ||
timestamp: bigint | ||
} | ||
type ValidityProof = { | ||
statement: { | ||
original_shares_nullifier?: number[] | ||
reblinded_private_share_commitment?: number[] | ||
merkle_root?: number[] | ||
indices?: { | ||
balance_send: number | ||
balance_receive: number | ||
order: number | ||
} | ||
} | ||
proof: string | ||
} | ||
export type Order = { | ||
@@ -35,3 +20,3 @@ id: string | ||
side: 'Buy' | 'Sell' | ||
type: 'Midpoint' | ||
type: string | ||
worst_case_price: string | ||
@@ -91,4 +76,4 @@ amount: bigint | ||
filled: bigint | ||
created: number | ||
created: bigint | ||
data: Order | ||
} |
@@ -48,3 +48,6 @@ import axios from 'axios' | ||
try { | ||
return JSONBigint({ useNativeBigInt: true }).parse(data) | ||
return JSONBigint({ | ||
useNativeBigInt: true, | ||
alwaysParseAsBig: true, | ||
}).parse(data) | ||
} catch (_error) { | ||
@@ -51,0 +54,0 @@ return data |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
287102
5373