fix: feat: strategy engine game theory tournaments (#5) (closes #217)
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Successful in 13s
Smoke Test / smoke (pull_request) Failing after 28s

This commit is contained in:
Alexander Whitestone
2026-04-21 23:35:43 -04:00
parent 729343e503
commit a1ae4bf59a
1794 changed files with 424267 additions and 18 deletions

14
node_modules/@exodus/bytes/bigint.js generated vendored Normal file
View File

@@ -0,0 +1,14 @@
import { toHex, fromHex } from '@exodus/bytes/hex.js'
import { assert } from './fallback/_utils.js'
const _0n = BigInt(0)
export function fromBigInt(x, { length, format } = {}) {
assert(Number.isSafeInteger(length) && length > 0, 'Expected length arg to be a positive integer')
assert(typeof x === 'bigint' && x >= _0n, 'Expected a non-negative bigint')
const hex = x.toString(16)
assert(length * 2 >= hex.length, `Can not fit supplied number into ${length} bytes`)
return fromHex(hex.padStart(length * 2, '0'), format)
}
export const toBigInt = (a) => BigInt('0x' + (toHex(a) || '0'))