@meteora-ag/cp-amm-sdk 1.0.0-rc.9 → 1.0.1-1.rc-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.
- package/dist/index.d.mts +1266 -332
- package/dist/index.d.ts +1266 -332
- package/dist/index.js +1231 -362
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1248 -379
- package/dist/index.mjs.map +1 -1
- package/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +19 -24
- package/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +178 -210
- package/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +19 -24
- package/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +178 -210
- package/node_modules/@babel/runtime/package.json +1 -4
- package/node_modules/@coral-xyz/anchor/dist/browser/index.js +11 -12
- package/node_modules/@coral-xyz/anchor/dist/browser/index.js.map +1 -1
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/idl.d.ts.map +1 -1
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/idl.d.ts.map +1 -1
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/idl.js +8 -9
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/idl.js.map +1 -1
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/accounts-resolver.js +3 -3
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/accounts-resolver.js.map +1 -1
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/idl.d.ts.map +1 -1
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/idl.js +8 -9
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/idl.js.map +1 -1
- package/node_modules/@coral-xyz/anchor/dist/esm/program/accounts-resolver.js +3 -3
- package/node_modules/@coral-xyz/anchor/dist/esm/program/accounts-resolver.js.map +1 -1
- package/node_modules/@coral-xyz/anchor/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/node_modules/@coral-xyz/anchor/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@coral-xyz/anchor/package.json +3 -3
- package/node_modules/@coral-xyz/anchor-errors/package.json +1 -1
- package/node_modules/@coral-xyz/borsh/package.json +1 -1
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/README.md +321 -436
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/_shortw_utils.d.ts +2 -2
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/_shortw_utils.js +2 -2
- package/node_modules/{@solana/web3.js/node_modules/@noble/curves/esm → @noble/curves}/abstract/bls.d.ts +5 -5
- package/node_modules/@noble/curves/abstract/bls.d.ts.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/abstract/bls.js +15 -16
- package/node_modules/@noble/curves/abstract/bls.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble/curves/esm → @noble/curves}/abstract/curve.d.ts +11 -3
- package/node_modules/@noble/curves/abstract/curve.d.ts.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/abstract/curve.js +93 -81
- package/node_modules/@noble/curves/abstract/curve.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/abstract/edwards.d.ts +2 -2
- package/node_modules/@noble/curves/abstract/edwards.d.ts.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/abstract/edwards.js +72 -72
- package/node_modules/@noble/curves/abstract/edwards.js.map +1 -0
- package/node_modules/@noble/curves/abstract/fft.d.ts +120 -0
- package/node_modules/@noble/curves/abstract/fft.d.ts.map +1 -0
- package/node_modules/@noble/curves/abstract/fft.js +439 -0
- package/node_modules/@noble/curves/abstract/fft.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble/curves/esm → @noble/curves}/abstract/hash-to-curve.d.ts +15 -9
- package/node_modules/@noble/curves/abstract/hash-to-curve.d.ts.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/abstract/hash-to-curve.js +49 -39
- package/node_modules/@noble/curves/abstract/hash-to-curve.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble/curves/esm → @noble/curves}/abstract/modular.d.ts +13 -12
- package/node_modules/@noble/curves/abstract/modular.d.ts.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/abstract/modular.js +167 -167
- package/node_modules/@noble/curves/abstract/modular.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble/curves/esm → @noble/curves}/abstract/montgomery.d.ts +4 -9
- package/node_modules/@noble/curves/abstract/montgomery.d.ts.map +1 -0
- package/node_modules/@noble/curves/abstract/montgomery.js +140 -0
- package/node_modules/@noble/curves/abstract/montgomery.js.map +1 -0
- package/node_modules/@noble/curves/abstract/poseidon.d.ts +76 -0
- package/node_modules/@noble/curves/abstract/poseidon.d.ts.map +1 -0
- package/node_modules/@noble/curves/abstract/poseidon.js +300 -0
- package/node_modules/@noble/curves/abstract/poseidon.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble/curves/esm → @noble/curves}/abstract/tower.d.ts +2 -2
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/abstract/tower.d.ts.map +1 -1
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/abstract/tower.js +17 -18
- package/node_modules/@noble/curves/abstract/tower.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/abstract/utils.d.ts +5 -2
- package/node_modules/@noble/curves/abstract/utils.d.ts.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/abstract/utils.js +27 -14
- package/node_modules/@noble/curves/abstract/utils.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/abstract/weierstrass.d.ts +45 -10
- package/node_modules/@noble/curves/abstract/weierstrass.d.ts.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/abstract/weierstrass.js +153 -117
- package/node_modules/@noble/curves/abstract/weierstrass.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble/curves/esm → @noble/curves}/bls12-381.d.ts +1 -1
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/bls12-381.d.ts.map +1 -1
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/bls12-381.js +50 -64
- package/node_modules/@noble/curves/bls12-381.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/bn254.d.ts +3 -2
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/bn254.d.ts.map +1 -1
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/bn254.js +39 -29
- package/node_modules/@noble/curves/bn254.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble/curves/esm → @noble/curves}/ed25519.d.ts +26 -10
- package/node_modules/@noble/curves/ed25519.d.ts.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/ed25519.js +93 -83
- package/node_modules/@noble/curves/ed25519.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/ed448.d.ts +26 -10
- package/node_modules/@noble/curves/ed448.d.ts.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/ed448.js +92 -82
- package/node_modules/@noble/curves/ed448.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/_shortw_utils.d.ts +2 -2
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/_shortw_utils.js +1 -1
- package/node_modules/{@solana/web3.js/node_modules/@noble/curves → @noble/curves/esm}/abstract/bls.d.ts +5 -5
- package/node_modules/@noble/curves/esm/abstract/bls.d.ts.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/abstract/bls.js +6 -7
- package/node_modules/@noble/curves/esm/abstract/bls.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble/curves → @noble/curves/esm}/abstract/curve.d.ts +11 -3
- package/node_modules/@noble/curves/esm/abstract/curve.d.ts.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/abstract/curve.js +90 -78
- package/node_modules/@noble/curves/esm/abstract/curve.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/abstract/edwards.d.ts +2 -2
- package/node_modules/@noble/curves/esm/abstract/edwards.d.ts.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/abstract/edwards.js +53 -53
- package/node_modules/@noble/curves/esm/abstract/edwards.js.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/fft.d.ts +120 -0
- package/node_modules/@noble/curves/esm/abstract/fft.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/fft.js +426 -0
- package/node_modules/@noble/curves/esm/abstract/fft.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble/curves → @noble/curves/esm}/abstract/hash-to-curve.d.ts +15 -9
- package/node_modules/@noble/curves/esm/abstract/hash-to-curve.d.ts.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/abstract/hash-to-curve.js +33 -23
- package/node_modules/@noble/curves/esm/abstract/hash-to-curve.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble/curves → @noble/curves/esm}/abstract/modular.d.ts +13 -12
- package/node_modules/@noble/curves/esm/abstract/modular.d.ts.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/abstract/modular.js +159 -159
- package/node_modules/@noble/curves/esm/abstract/modular.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble/curves → @noble/curves/esm}/abstract/montgomery.d.ts +4 -9
- package/node_modules/@noble/curves/esm/abstract/montgomery.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/montgomery.js +137 -0
- package/node_modules/@noble/curves/esm/abstract/montgomery.js.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/poseidon.d.ts +76 -0
- package/node_modules/@noble/curves/esm/abstract/poseidon.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/poseidon.js +291 -0
- package/node_modules/@noble/curves/esm/abstract/poseidon.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble/curves → @noble/curves/esm}/abstract/tower.d.ts +2 -2
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/abstract/tower.d.ts.map +1 -1
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/abstract/tower.js +9 -10
- package/node_modules/@noble/curves/esm/abstract/tower.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/abstract/utils.d.ts +5 -2
- package/node_modules/@noble/curves/esm/abstract/utils.d.ts.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/abstract/utils.js +26 -13
- package/node_modules/@noble/curves/esm/abstract/utils.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/abstract/weierstrass.d.ts +45 -10
- package/node_modules/@noble/curves/esm/abstract/weierstrass.d.ts.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/abstract/weierstrass.js +127 -91
- package/node_modules/@noble/curves/esm/abstract/weierstrass.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble/curves → @noble/curves/esm}/bls12-381.d.ts +1 -1
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/bls12-381.d.ts.map +1 -1
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/bls12-381.js +18 -32
- package/node_modules/@noble/curves/esm/bls12-381.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/bn254.d.ts +3 -2
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/bn254.d.ts.map +1 -1
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/bn254.js +17 -7
- package/node_modules/@noble/curves/esm/bn254.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble/curves → @noble/curves/esm}/ed25519.d.ts +26 -10
- package/node_modules/@noble/curves/esm/ed25519.d.ts.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/ed25519.js +48 -38
- package/node_modules/@noble/curves/esm/ed25519.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/ed448.d.ts +26 -10
- package/node_modules/@noble/curves/esm/ed448.d.ts.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/ed448.js +59 -49
- package/node_modules/@noble/curves/esm/ed448.js.map +1 -0
- package/node_modules/@noble/curves/esm/jubjub.d.ts +12 -0
- package/node_modules/@noble/curves/esm/jubjub.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/jubjub.js +12 -0
- package/node_modules/@noble/curves/esm/jubjub.js.map +1 -0
- package/node_modules/@noble/curves/esm/misc.d.ts +21 -0
- package/node_modules/@noble/curves/esm/misc.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/misc.js +107 -0
- package/node_modules/@noble/curves/esm/misc.js.map +1 -0
- package/node_modules/@noble/curves/esm/nist.d.ts +30 -0
- package/node_modules/@noble/curves/esm/nist.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/nist.js +121 -0
- package/node_modules/@noble/curves/esm/nist.js.map +1 -0
- package/node_modules/@noble/curves/esm/p256.d.ts +12 -0
- package/node_modules/@noble/curves/esm/p256.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/p256.js +12 -0
- package/node_modules/@noble/curves/esm/p256.js.map +1 -0
- package/node_modules/@noble/curves/esm/p384.d.ts +13 -0
- package/node_modules/@noble/curves/esm/p384.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/p384.js +13 -0
- package/node_modules/@noble/curves/esm/p384.js.map +1 -0
- package/node_modules/@noble/curves/esm/p521.d.ts +12 -0
- package/node_modules/@noble/curves/esm/p521.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/p521.js +12 -0
- package/node_modules/@noble/curves/esm/p521.js.map +1 -0
- package/node_modules/@noble/curves/esm/pasta.d.ts +10 -0
- package/node_modules/@noble/curves/esm/pasta.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/pasta.js +10 -0
- package/node_modules/@noble/curves/esm/pasta.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/secp256k1.d.ts +15 -10
- package/node_modules/@noble/curves/esm/secp256k1.d.ts.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/secp256k1.js +23 -20
- package/node_modules/@noble/curves/esm/secp256k1.js.map +1 -0
- package/node_modules/@noble/curves/jubjub.d.ts +12 -0
- package/node_modules/@noble/curves/jubjub.d.ts.map +1 -0
- package/node_modules/@noble/curves/jubjub.js +15 -0
- package/node_modules/@noble/curves/jubjub.js.map +1 -0
- package/node_modules/@noble/curves/misc.d.ts +21 -0
- package/node_modules/@noble/curves/misc.d.ts.map +1 -0
- package/node_modules/@noble/curves/misc.js +112 -0
- package/node_modules/@noble/curves/misc.js.map +1 -0
- package/node_modules/@noble/curves/nist.d.ts +30 -0
- package/node_modules/@noble/curves/nist.d.ts.map +1 -0
- package/node_modules/@noble/curves/nist.js +124 -0
- package/node_modules/@noble/curves/nist.js.map +1 -0
- package/node_modules/@noble/curves/p256.d.ts +12 -0
- package/node_modules/@noble/curves/p256.d.ts.map +1 -0
- package/node_modules/@noble/curves/p256.js +9 -0
- package/node_modules/@noble/curves/p256.js.map +1 -0
- package/node_modules/@noble/curves/p384.d.ts +13 -0
- package/node_modules/@noble/curves/p384.d.ts.map +1 -0
- package/node_modules/@noble/curves/p384.js +10 -0
- package/node_modules/@noble/curves/p384.js.map +1 -0
- package/node_modules/@noble/curves/p521.d.ts +12 -0
- package/node_modules/@noble/curves/p521.d.ts.map +1 -0
- package/node_modules/@noble/curves/p521.js +9 -0
- package/node_modules/@noble/curves/p521.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/package.json +126 -13
- package/node_modules/@noble/curves/pasta.d.ts +10 -0
- package/node_modules/@noble/curves/pasta.d.ts.map +1 -0
- package/node_modules/@noble/curves/pasta.js +13 -0
- package/node_modules/@noble/curves/pasta.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/secp256k1.d.ts +15 -10
- package/node_modules/@noble/curves/secp256k1.d.ts.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/secp256k1.js +62 -59
- package/node_modules/@noble/curves/secp256k1.js.map +1 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/src/_shortw_utils.ts +2 -2
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/src/abstract/bls.ts +10 -10
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/src/abstract/curve.ts +99 -85
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/src/abstract/edwards.ts +71 -64
- package/node_modules/@noble/curves/src/abstract/fft.ts +508 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/src/abstract/hash-to-curve.ts +49 -39
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/src/abstract/modular.ts +155 -154
- package/node_modules/@noble/curves/src/abstract/montgomery.ts +165 -0
- package/node_modules/@noble/curves/src/abstract/poseidon.ts +331 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/src/abstract/tower.ts +10 -11
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/src/abstract/utils.ts +28 -15
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/src/abstract/weierstrass.ts +182 -120
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/src/bls12-381.ts +21 -37
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/src/bn254.ts +18 -8
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/src/ed25519.ts +55 -40
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/src/ed448.ts +105 -88
- package/node_modules/@noble/curves/src/jubjub.ts +12 -0
- package/node_modules/@noble/curves/src/misc.ts +123 -0
- package/node_modules/@noble/curves/src/nist.ts +155 -0
- package/node_modules/@noble/curves/src/p256.ts +11 -0
- package/node_modules/@noble/curves/src/p384.ts +13 -0
- package/node_modules/@noble/curves/src/p521.ts +11 -0
- package/node_modules/@noble/curves/src/pasta.ts +9 -0
- package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/src/secp256k1.ts +27 -22
- package/node_modules/@noble/hashes/README.md +217 -268
- package/node_modules/@noble/hashes/_assert.d.ts +12 -18
- package/node_modules/@noble/hashes/_assert.d.ts.map +1 -1
- package/node_modules/@noble/hashes/_assert.js +12 -44
- package/node_modules/@noble/hashes/_assert.js.map +1 -1
- package/node_modules/@noble/hashes/_blake.d.ts +8 -28
- package/node_modules/@noble/hashes/_blake.d.ts.map +1 -1
- package/node_modules/@noble/hashes/_blake.js +19 -106
- package/node_modules/@noble/hashes/_blake.js.map +1 -1
- package/node_modules/@noble/hashes/_md.d.ts +22 -5
- package/node_modules/@noble/hashes/_md.d.ts.map +1 -1
- package/node_modules/@noble/hashes/_md.js +43 -18
- package/node_modules/@noble/hashes/_md.js.map +1 -1
- package/node_modules/@noble/hashes/_u64.d.ts +1 -1
- package/node_modules/@noble/hashes/_u64.d.ts.map +1 -1
- package/node_modules/@noble/hashes/_u64.js +6 -5
- package/node_modules/@noble/hashes/_u64.js.map +1 -1
- package/node_modules/@noble/hashes/argon2.d.ts +9 -9
- package/node_modules/@noble/hashes/argon2.d.ts.map +1 -1
- package/node_modules/@noble/hashes/argon2.js +62 -57
- package/node_modules/@noble/hashes/argon2.js.map +1 -1
- package/node_modules/@noble/hashes/blake1.d.ts +19 -39
- package/node_modules/@noble/hashes/blake1.d.ts.map +1 -1
- package/node_modules/@noble/hashes/blake1.js +107 -119
- package/node_modules/@noble/hashes/blake1.js.map +1 -1
- package/node_modules/@noble/hashes/blake2.d.ts +116 -0
- package/node_modules/@noble/hashes/blake2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/blake2.js +420 -0
- package/node_modules/@noble/hashes/blake2.js.map +1 -0
- package/node_modules/@noble/hashes/blake2b.d.ts +6 -48
- package/node_modules/@noble/hashes/blake2b.d.ts.map +1 -1
- package/node_modules/@noble/hashes/blake2b.js +6 -189
- package/node_modules/@noble/hashes/blake2b.js.map +1 -1
- package/node_modules/@noble/hashes/blake2s.d.ts +14 -55
- package/node_modules/@noble/hashes/blake2s.d.ts.map +1 -1
- package/node_modules/@noble/hashes/blake2s.js +17 -125
- package/node_modules/@noble/hashes/blake2s.js.map +1 -1
- package/node_modules/@noble/hashes/blake3.d.ts +6 -6
- package/node_modules/@noble/hashes/blake3.d.ts.map +1 -1
- package/node_modules/@noble/hashes/blake3.js +62 -62
- package/node_modules/@noble/hashes/blake3.js.map +1 -1
- package/node_modules/@noble/hashes/eskdf.d.ts.map +1 -1
- package/node_modules/@noble/hashes/eskdf.js +18 -20
- package/node_modules/@noble/hashes/eskdf.js.map +1 -1
- package/node_modules/@noble/hashes/esm/_assert.d.ts +12 -18
- package/node_modules/@noble/hashes/esm/_assert.d.ts.map +1 -1
- package/node_modules/@noble/hashes/esm/_assert.js +10 -39
- package/node_modules/@noble/hashes/esm/_assert.js.map +1 -1
- package/node_modules/@noble/hashes/esm/_blake.d.ts +8 -28
- package/node_modules/@noble/hashes/esm/_blake.d.ts.map +1 -1
- package/node_modules/@noble/hashes/esm/_blake.js +16 -104
- package/node_modules/@noble/hashes/esm/_blake.js.map +1 -1
- package/node_modules/@noble/hashes/esm/_md.d.ts +22 -5
- package/node_modules/@noble/hashes/esm/_md.d.ts.map +1 -1
- package/node_modules/@noble/hashes/esm/_md.js +35 -10
- package/node_modules/@noble/hashes/esm/_md.js.map +1 -1
- package/node_modules/@noble/hashes/esm/_u64.d.ts +1 -1
- package/node_modules/@noble/hashes/esm/_u64.d.ts.map +1 -1
- package/node_modules/@noble/hashes/esm/_u64.js +5 -4
- package/node_modules/@noble/hashes/esm/_u64.js.map +1 -1
- package/node_modules/@noble/hashes/esm/argon2.d.ts +9 -9
- package/node_modules/@noble/hashes/esm/argon2.d.ts.map +1 -1
- package/node_modules/@noble/hashes/esm/argon2.js +44 -39
- package/node_modules/@noble/hashes/esm/argon2.js.map +1 -1
- package/node_modules/@noble/hashes/esm/blake1.d.ts +19 -39
- package/node_modules/@noble/hashes/esm/blake1.d.ts.map +1 -1
- package/node_modules/@noble/hashes/esm/blake1.js +84 -96
- package/node_modules/@noble/hashes/esm/blake1.js.map +1 -1
- package/node_modules/@noble/hashes/esm/blake2.d.ts +116 -0
- package/node_modules/@noble/hashes/esm/blake2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/blake2.js +413 -0
- package/node_modules/@noble/hashes/esm/blake2.js.map +1 -0
- package/node_modules/@noble/hashes/esm/blake2b.d.ts +6 -48
- package/node_modules/@noble/hashes/esm/blake2b.d.ts.map +1 -1
- package/node_modules/@noble/hashes/esm/blake2b.js +6 -188
- package/node_modules/@noble/hashes/esm/blake2b.js.map +1 -1
- package/node_modules/@noble/hashes/esm/blake2s.d.ts +14 -55
- package/node_modules/@noble/hashes/esm/blake2s.d.ts.map +1 -1
- package/node_modules/@noble/hashes/esm/blake2s.js +16 -120
- package/node_modules/@noble/hashes/esm/blake2s.js.map +1 -1
- package/node_modules/@noble/hashes/esm/blake3.d.ts +6 -6
- package/node_modules/@noble/hashes/esm/blake3.d.ts.map +1 -1
- package/node_modules/@noble/hashes/esm/blake3.js +46 -57
- package/node_modules/@noble/hashes/esm/blake3.js.map +1 -1
- package/node_modules/@noble/hashes/esm/eskdf.d.ts.map +1 -1
- package/node_modules/@noble/hashes/esm/eskdf.js +9 -11
- package/node_modules/@noble/hashes/esm/eskdf.js.map +1 -1
- package/node_modules/@noble/hashes/esm/hkdf.d.ts +1 -1
- package/node_modules/@noble/hashes/esm/hkdf.d.ts.map +1 -1
- package/node_modules/@noble/hashes/esm/hkdf.js +10 -11
- package/node_modules/@noble/hashes/esm/hkdf.js.map +1 -1
- package/node_modules/@noble/hashes/esm/hmac.d.ts +6 -1
- package/node_modules/@noble/hashes/esm/hmac.d.ts.map +1 -1
- package/node_modules/@noble/hashes/esm/hmac.js +5 -3
- package/node_modules/@noble/hashes/esm/hmac.js.map +1 -1
- package/node_modules/@noble/hashes/esm/index.js +3 -5
- package/node_modules/@noble/hashes/esm/index.js.map +1 -1
- package/node_modules/@noble/hashes/esm/legacy.d.ts +71 -0
- package/node_modules/@noble/hashes/esm/legacy.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/legacy.js +281 -0
- package/node_modules/@noble/hashes/esm/legacy.js.map +1 -0
- package/node_modules/@noble/hashes/esm/pbkdf2.d.ts +4 -4
- package/node_modules/@noble/hashes/esm/pbkdf2.d.ts.map +1 -1
- package/node_modules/@noble/hashes/esm/pbkdf2.js +8 -8
- package/node_modules/@noble/hashes/esm/pbkdf2.js.map +1 -1
- package/node_modules/@noble/hashes/esm/ripemd160.d.ts +6 -17
- package/node_modules/@noble/hashes/esm/ripemd160.d.ts.map +1 -1
- package/node_modules/@noble/hashes/esm/ripemd160.js +6 -96
- package/node_modules/@noble/hashes/esm/ripemd160.js.map +1 -1
- package/node_modules/@noble/hashes/esm/scrypt.d.ts +3 -3
- package/node_modules/@noble/hashes/esm/scrypt.d.ts.map +1 -1
- package/node_modules/@noble/hashes/esm/scrypt.js +14 -19
- package/node_modules/@noble/hashes/esm/scrypt.js.map +1 -1
- package/node_modules/@noble/hashes/esm/sha1.d.ts +6 -17
- package/node_modules/@noble/hashes/esm/sha1.d.ts.map +1 -1
- package/node_modules/@noble/hashes/esm/sha1.js +6 -79
- package/node_modules/@noble/hashes/esm/sha1.js.map +1 -1
- package/node_modules/@noble/hashes/esm/sha2.d.ts +155 -3
- package/node_modules/@noble/hashes/esm/sha2.d.ts.map +1 -1
- package/node_modules/@noble/hashes/esm/sha2.js +371 -4
- package/node_modules/@noble/hashes/esm/sha2.js.map +1 -1
- package/node_modules/@noble/hashes/esm/sha256.d.ts +10 -22
- package/node_modules/@noble/hashes/esm/sha256.d.ts.map +1 -1
- package/node_modules/@noble/hashes/esm/sha256.js +10 -120
- package/node_modules/@noble/hashes/esm/sha256.js.map +1 -1
- package/node_modules/@noble/hashes/esm/sha3-addons.d.ts +16 -4
- package/node_modules/@noble/hashes/esm/sha3-addons.d.ts.map +1 -1
- package/node_modules/@noble/hashes/esm/sha3-addons.js +27 -21
- package/node_modules/@noble/hashes/esm/sha3-addons.js.map +1 -1
- package/node_modules/@noble/hashes/esm/sha3.d.ts +7 -6
- package/node_modules/@noble/hashes/esm/sha3.d.ts.map +1 -1
- package/node_modules/@noble/hashes/esm/sha3.js +42 -35
- package/node_modules/@noble/hashes/esm/sha3.js.map +1 -1
- package/node_modules/@noble/hashes/esm/sha512.d.ts +18 -108
- package/node_modules/@noble/hashes/esm/sha512.d.ts.map +1 -1
- package/node_modules/@noble/hashes/esm/sha512.js +18 -234
- package/node_modules/@noble/hashes/esm/sha512.js.map +1 -1
- package/node_modules/@noble/hashes/esm/utils.d.ts +60 -19
- package/node_modules/@noble/hashes/esm/utils.d.ts.map +1 -1
- package/node_modules/@noble/hashes/esm/utils.js +94 -25
- package/node_modules/@noble/hashes/esm/utils.js.map +1 -1
- package/node_modules/@noble/hashes/hkdf.d.ts +1 -1
- package/node_modules/@noble/hashes/hkdf.d.ts.map +1 -1
- package/node_modules/@noble/hashes/hkdf.js +15 -16
- package/node_modules/@noble/hashes/hkdf.js.map +1 -1
- package/node_modules/@noble/hashes/hmac.d.ts +6 -1
- package/node_modules/@noble/hashes/hmac.d.ts.map +1 -1
- package/node_modules/@noble/hashes/hmac.js +11 -9
- package/node_modules/@noble/hashes/hmac.js.map +1 -1
- package/node_modules/@noble/hashes/index.js +3 -5
- package/node_modules/@noble/hashes/index.js.map +1 -1
- package/node_modules/@noble/hashes/legacy.d.ts +71 -0
- package/node_modules/@noble/hashes/legacy.d.ts.map +1 -0
- package/node_modules/@noble/hashes/legacy.js +287 -0
- package/node_modules/@noble/hashes/legacy.js.map +1 -0
- package/node_modules/@noble/hashes/package.json +104 -6
- package/node_modules/@noble/hashes/pbkdf2.d.ts +4 -4
- package/node_modules/@noble/hashes/pbkdf2.d.ts.map +1 -1
- package/node_modules/@noble/hashes/pbkdf2.js +17 -17
- package/node_modules/@noble/hashes/pbkdf2.js.map +1 -1
- package/node_modules/@noble/hashes/ripemd160.d.ts +6 -17
- package/node_modules/@noble/hashes/ripemd160.d.ts.map +1 -1
- package/node_modules/@noble/hashes/ripemd160.js +6 -97
- package/node_modules/@noble/hashes/ripemd160.js.map +1 -1
- package/node_modules/@noble/hashes/scrypt.d.ts +3 -3
- package/node_modules/@noble/hashes/scrypt.d.ts.map +1 -1
- package/node_modules/@noble/hashes/scrypt.js +60 -65
- package/node_modules/@noble/hashes/scrypt.js.map +1 -1
- package/node_modules/@noble/hashes/sha1.d.ts +6 -17
- package/node_modules/@noble/hashes/sha1.d.ts.map +1 -1
- package/node_modules/@noble/hashes/sha1.js +6 -80
- package/node_modules/@noble/hashes/sha1.js.map +1 -1
- package/node_modules/@noble/hashes/sha2.d.ts +155 -3
- package/node_modules/@noble/hashes/sha2.d.ts.map +1 -1
- package/node_modules/@noble/hashes/sha2.js +378 -11
- package/node_modules/@noble/hashes/sha2.js.map +1 -1
- package/node_modules/@noble/hashes/sha256.d.ts +10 -22
- package/node_modules/@noble/hashes/sha256.d.ts.map +1 -1
- package/node_modules/@noble/hashes/sha256.js +11 -122
- package/node_modules/@noble/hashes/sha256.js.map +1 -1
- package/node_modules/@noble/hashes/sha3-addons.d.ts +16 -4
- package/node_modules/@noble/hashes/sha3-addons.d.ts.map +1 -1
- package/node_modules/@noble/hashes/sha3-addons.js +41 -35
- package/node_modules/@noble/hashes/sha3-addons.js.map +1 -1
- package/node_modules/@noble/hashes/sha3.d.ts +7 -6
- package/node_modules/@noble/hashes/sha3.d.ts.map +1 -1
- package/node_modules/@noble/hashes/sha3.js +52 -45
- package/node_modules/@noble/hashes/sha3.js.map +1 -1
- package/node_modules/@noble/hashes/sha512.d.ts +18 -108
- package/node_modules/@noble/hashes/sha512.d.ts.map +1 -1
- package/node_modules/@noble/hashes/sha512.js +19 -239
- package/node_modules/@noble/hashes/sha512.js.map +1 -1
- package/node_modules/@noble/hashes/src/_assert.ts +18 -50
- package/node_modules/@noble/hashes/src/_blake.ts +18 -115
- package/node_modules/@noble/hashes/src/_md.ts +47 -12
- package/node_modules/@noble/hashes/src/_u64.ts +5 -9
- package/node_modules/@noble/hashes/src/argon2.ts +60 -49
- package/node_modules/@noble/hashes/src/blake1.ts +112 -126
- package/node_modules/@noble/hashes/src/blake2.ts +486 -0
- package/node_modules/@noble/hashes/src/blake2b.ts +6 -205
- package/node_modules/@noble/hashes/src/blake2s.ts +16 -150
- package/node_modules/@noble/hashes/src/blake3.ts +53 -62
- package/node_modules/@noble/hashes/src/eskdf.ts +9 -11
- package/node_modules/@noble/hashes/src/hkdf.ts +10 -11
- package/node_modules/@noble/hashes/src/hmac.ts +5 -3
- package/node_modules/@noble/hashes/src/index.ts +3 -5
- package/node_modules/@noble/hashes/src/legacy.ts +293 -0
- package/node_modules/@noble/hashes/src/pbkdf2.ts +20 -18
- package/node_modules/@noble/hashes/src/ripemd160.ts +6 -103
- package/node_modules/@noble/hashes/src/scrypt.ts +25 -20
- package/node_modules/@noble/hashes/src/sha1.ts +6 -79
- package/node_modules/@noble/hashes/src/sha2.ts +399 -4
- package/node_modules/@noble/hashes/src/sha256.ts +15 -127
- package/node_modules/@noble/hashes/src/sha3-addons.ts +34 -23
- package/node_modules/@noble/hashes/src/sha3.ts +59 -45
- package/node_modules/@noble/hashes/src/sha512.ts +27 -250
- package/node_modules/@noble/hashes/src/utils.ts +132 -42
- package/node_modules/@noble/hashes/utils.d.ts +60 -19
- package/node_modules/@noble/hashes/utils.d.ts.map +1 -1
- package/node_modules/@noble/hashes/utils.js +110 -33
- package/node_modules/@noble/hashes/utils.js.map +1 -1
- package/node_modules/{file-uri-to-path → @solana/codecs-core}/LICENSE +8 -8
- package/node_modules/@solana/codecs-core/README.md +662 -0
- package/node_modules/@solana/codecs-core/dist/index.browser.cjs +504 -0
- package/node_modules/@solana/codecs-core/dist/index.browser.cjs.map +1 -0
- package/node_modules/@solana/codecs-core/dist/index.browser.mjs +460 -0
- package/node_modules/@solana/codecs-core/dist/index.browser.mjs.map +1 -0
- package/node_modules/@solana/codecs-core/dist/index.native.mjs +460 -0
- package/node_modules/@solana/codecs-core/dist/index.native.mjs.map +1 -0
- package/node_modules/@solana/codecs-core/dist/index.node.cjs +504 -0
- package/node_modules/@solana/codecs-core/dist/index.node.cjs.map +1 -0
- package/node_modules/@solana/codecs-core/dist/index.node.mjs +460 -0
- package/node_modules/@solana/codecs-core/dist/index.node.mjs.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/add-codec-sentinel.d.ts +70 -0
- package/node_modules/@solana/codecs-core/dist/types/add-codec-sentinel.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/add-codec-size-prefix.d.ts +67 -0
- package/node_modules/@solana/codecs-core/dist/types/add-codec-size-prefix.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/assertions.d.ts +62 -0
- package/node_modules/@solana/codecs-core/dist/types/assertions.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/bytes.d.ts +92 -0
- package/node_modules/@solana/codecs-core/dist/types/bytes.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/codec.d.ts +827 -0
- package/node_modules/@solana/codecs-core/dist/types/codec.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/combine-codec.d.ts +75 -0
- package/node_modules/@solana/codecs-core/dist/types/combine-codec.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/fix-codec-size.d.ts +111 -0
- package/node_modules/@solana/codecs-core/dist/types/fix-codec-size.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/index.d.ts +667 -0
- package/node_modules/@solana/codecs-core/dist/types/index.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/offset-codec.d.ts +328 -0
- package/node_modules/@solana/codecs-core/dist/types/offset-codec.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/pad-codec.d.ts +162 -0
- package/node_modules/@solana/codecs-core/dist/types/pad-codec.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/readonly-uint8array.d.ts +19 -0
- package/node_modules/@solana/codecs-core/dist/types/readonly-uint8array.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/resize-codec.d.ts +129 -0
- package/node_modules/@solana/codecs-core/dist/types/resize-codec.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/reverse-codec.d.ts +92 -0
- package/node_modules/@solana/codecs-core/dist/types/reverse-codec.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/transform-codec.d.ts +114 -0
- package/node_modules/@solana/codecs-core/dist/types/transform-codec.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/package.json +83 -0
- package/node_modules/@solana/codecs-numbers/LICENSE +20 -0
- package/node_modules/@solana/codecs-numbers/README.md +130 -0
- package/node_modules/@solana/codecs-numbers/dist/index.browser.cjs +331 -0
- package/node_modules/@solana/codecs-numbers/dist/index.browser.cjs.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/index.browser.mjs +289 -0
- package/node_modules/@solana/codecs-numbers/dist/index.browser.mjs.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/index.native.mjs +289 -0
- package/node_modules/@solana/codecs-numbers/dist/index.native.mjs.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/index.node.cjs +331 -0
- package/node_modules/@solana/codecs-numbers/dist/index.node.cjs.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/index.node.mjs +289 -0
- package/node_modules/@solana/codecs-numbers/dist/index.node.mjs.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/assertions.d.ts +27 -0
- package/node_modules/@solana/codecs-numbers/dist/types/assertions.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/common.d.ts +84 -0
- package/node_modules/@solana/codecs-numbers/dist/types/common.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/f32.d.ts +87 -0
- package/node_modules/@solana/codecs-numbers/dist/types/f32.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/f64.d.ts +87 -0
- package/node_modules/@solana/codecs-numbers/dist/types/f64.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/i128.d.ts +91 -0
- package/node_modules/@solana/codecs-numbers/dist/types/i128.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/i16.d.ts +87 -0
- package/node_modules/@solana/codecs-numbers/dist/types/i16.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/i32.d.ts +87 -0
- package/node_modules/@solana/codecs-numbers/dist/types/i32.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/i64.d.ts +90 -0
- package/node_modules/@solana/codecs-numbers/dist/types/i64.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/i8.d.ts +75 -0
- package/node_modules/@solana/codecs-numbers/dist/types/i8.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/index.d.ts +26 -0
- package/node_modules/@solana/codecs-numbers/dist/types/index.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/short-u16.d.ts +96 -0
- package/node_modules/@solana/codecs-numbers/dist/types/short-u16.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/u128.d.ts +87 -0
- package/node_modules/@solana/codecs-numbers/dist/types/u128.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/u16.d.ts +85 -0
- package/node_modules/@solana/codecs-numbers/dist/types/u16.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/u32.d.ts +85 -0
- package/node_modules/@solana/codecs-numbers/dist/types/u32.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/u64.d.ts +88 -0
- package/node_modules/@solana/codecs-numbers/dist/types/u64.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/u8.d.ts +71 -0
- package/node_modules/@solana/codecs-numbers/dist/types/u8.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/utils.d.ts +18 -0
- package/node_modules/@solana/codecs-numbers/dist/types/utils.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/package.json +83 -0
- package/node_modules/@solana/errors/LICENSE +20 -0
- package/node_modules/@solana/errors/README.md +87 -0
- package/node_modules/@solana/errors/bin/cli.mjs +7 -0
- package/node_modules/@solana/errors/dist/cli.mjs +570 -0
- package/node_modules/@solana/errors/dist/index.browser.cjs +1084 -0
- package/node_modules/@solana/errors/dist/index.browser.cjs.map +1 -0
- package/node_modules/@solana/errors/dist/index.browser.mjs +852 -0
- package/node_modules/@solana/errors/dist/index.browser.mjs.map +1 -0
- package/node_modules/@solana/errors/dist/index.native.mjs +852 -0
- package/node_modules/@solana/errors/dist/index.native.mjs.map +1 -0
- package/node_modules/@solana/errors/dist/index.node.cjs +1084 -0
- package/node_modules/@solana/errors/dist/index.node.cjs.map +1 -0
- package/node_modules/@solana/errors/dist/index.node.mjs +852 -0
- package/node_modules/@solana/errors/dist/index.node.mjs.map +1 -0
- package/node_modules/@solana/errors/dist/types/codes.d.ts +275 -0
- package/node_modules/@solana/errors/dist/types/codes.d.ts.map +1 -0
- package/node_modules/@solana/errors/dist/types/context.d.ts +398 -0
- package/node_modules/@solana/errors/dist/types/context.d.ts.map +1 -0
- package/node_modules/@solana/errors/dist/types/error.d.ts +75 -0
- package/node_modules/@solana/errors/dist/types/error.d.ts.map +1 -0
- package/node_modules/@solana/errors/dist/types/index.d.ts +72 -0
- package/node_modules/@solana/errors/dist/types/index.d.ts.map +1 -0
- package/node_modules/@solana/errors/dist/types/instruction-error.d.ts +9 -0
- package/node_modules/@solana/errors/dist/types/instruction-error.d.ts.map +1 -0
- package/node_modules/@solana/errors/dist/types/json-rpc-error.d.ts +51 -0
- package/node_modules/@solana/errors/dist/types/json-rpc-error.d.ts.map +1 -0
- package/node_modules/@solana/errors/dist/types/message-formatter.d.ts +4 -0
- package/node_modules/@solana/errors/dist/types/message-formatter.d.ts.map +1 -0
- package/node_modules/@solana/errors/dist/types/messages.d.ts +16 -0
- package/node_modules/@solana/errors/dist/types/messages.d.ts.map +1 -0
- package/node_modules/@solana/errors/dist/types/rpc-enum-errors.d.ts +31 -0
- package/node_modules/@solana/errors/dist/types/rpc-enum-errors.d.ts.map +1 -0
- package/node_modules/@solana/errors/dist/types/stack-trace.d.ts +2 -0
- package/node_modules/@solana/errors/dist/types/stack-trace.d.ts.map +1 -0
- package/node_modules/@solana/errors/dist/types/transaction-error.d.ts +5 -0
- package/node_modules/@solana/errors/dist/types/transaction-error.d.ts.map +1 -0
- package/node_modules/@solana/errors/node_modules/chalk/package.json +83 -0
- package/node_modules/@solana/errors/node_modules/chalk/readme.md +297 -0
- package/node_modules/@solana/errors/node_modules/chalk/source/index.d.ts +325 -0
- package/node_modules/@solana/errors/node_modules/chalk/source/index.js +225 -0
- package/node_modules/@solana/errors/node_modules/chalk/source/utilities.js +33 -0
- package/node_modules/@solana/errors/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/node_modules/@solana/errors/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/node_modules/@solana/errors/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/node_modules/@solana/errors/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
- package/node_modules/@solana/errors/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/node_modules/@solana/errors/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/node_modules/{bindings/LICENSE.md → @solana/errors/node_modules/commander/LICENSE} +1 -1
- package/node_modules/@solana/errors/node_modules/commander/Readme.md +1149 -0
- package/node_modules/@solana/errors/node_modules/commander/esm.mjs +16 -0
- package/node_modules/@solana/errors/node_modules/commander/index.js +24 -0
- package/node_modules/@solana/errors/node_modules/commander/lib/argument.js +149 -0
- package/node_modules/@solana/errors/node_modules/commander/lib/command.js +2662 -0
- package/node_modules/@solana/errors/node_modules/commander/lib/error.js +39 -0
- package/node_modules/@solana/errors/node_modules/commander/lib/help.js +709 -0
- package/node_modules/@solana/errors/node_modules/commander/lib/option.js +367 -0
- package/node_modules/@solana/errors/node_modules/commander/lib/suggestSimilar.js +101 -0
- package/node_modules/@solana/errors/node_modules/commander/package-support.json +16 -0
- package/node_modules/@solana/errors/node_modules/commander/package.json +82 -0
- package/node_modules/@solana/errors/node_modules/commander/typings/esm.d.mts +3 -0
- package/node_modules/@solana/errors/node_modules/commander/typings/index.d.ts +1045 -0
- package/node_modules/@solana/errors/package.json +84 -0
- package/node_modules/@solana/web3.js/README.md +4 -4
- package/node_modules/@solana/web3.js/lib/index.browser.cjs.js +10 -20
- package/node_modules/@solana/web3.js/lib/index.browser.cjs.js.map +1 -1
- package/node_modules/@solana/web3.js/lib/index.browser.esm.js +8 -18
- package/node_modules/@solana/web3.js/lib/index.browser.esm.js.map +1 -1
- package/node_modules/@solana/web3.js/lib/index.cjs.js +10 -20
- package/node_modules/@solana/web3.js/lib/index.cjs.js.map +1 -1
- package/node_modules/@solana/web3.js/lib/index.esm.js +8 -18
- package/node_modules/@solana/web3.js/lib/index.esm.js.map +1 -1
- package/node_modules/@solana/web3.js/lib/index.iife.js +213 -88
- package/node_modules/@solana/web3.js/lib/index.iife.js.map +1 -1
- package/node_modules/@solana/web3.js/lib/index.iife.min.js +2 -2
- package/node_modules/@solana/web3.js/lib/index.iife.min.js.map +1 -1
- package/node_modules/@solana/web3.js/lib/index.native.js +10 -20
- package/node_modules/@solana/web3.js/lib/index.native.js.map +1 -1
- package/node_modules/@solana/web3.js/package.json +5 -5
- package/node_modules/@solana/web3.js/src/programs/address-lookup-table/index.ts +5 -2
- package/node_modules/@solana/web3.js/src/utils/bigint.ts +14 -33
- package/node_modules/@swc/helpers/_/_overload_yield/package.json +4 -0
- package/node_modules/@swc/helpers/cjs/_async_generator.cjs +10 -12
- package/node_modules/@swc/helpers/cjs/_async_generator_delegate.cjs +11 -7
- package/node_modules/@swc/helpers/cjs/_await_async_generator.cjs +2 -2
- package/node_modules/@swc/helpers/cjs/_overload_yield.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/index.cjs +4 -0
- package/node_modules/@swc/helpers/esm/_async_generator.js +10 -12
- package/node_modules/@swc/helpers/esm/_async_generator_delegate.js +11 -7
- package/node_modules/@swc/helpers/esm/_await_async_generator.js +2 -2
- package/node_modules/@swc/helpers/esm/_overload_yield.js +6 -0
- package/node_modules/@swc/helpers/esm/index.js +1 -0
- package/node_modules/@swc/helpers/package.json +219 -1
- package/node_modules/@swc/helpers/scripts/build.js +15 -3
- package/node_modules/@swc/helpers/src/_overload_yield.mjs +1 -0
- package/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/node/assert.d.ts +7 -48
- package/node_modules/@types/node/async_hooks.d.ts +64 -2
- package/node_modules/@types/node/buffer.buffer.d.ts +3 -0
- package/node_modules/@types/node/buffer.d.ts +2 -2
- package/node_modules/@types/node/cluster.d.ts +1 -1
- package/node_modules/@types/node/crypto.d.ts +8 -9
- package/node_modules/@types/node/diagnostics_channel.d.ts +20 -1
- package/node_modules/@types/node/fs/promises.d.ts +21 -24
- package/node_modules/@types/node/fs.d.ts +93 -9
- package/node_modules/@types/node/globals.d.ts +141 -281
- package/node_modules/@types/node/http.d.ts +22 -1
- package/node_modules/@types/node/http2.d.ts +3 -4
- package/node_modules/@types/node/inspector.d.ts +36 -0
- package/node_modules/@types/node/module.d.ts +25 -0
- package/node_modules/@types/node/net.d.ts +14 -8
- package/node_modules/@types/node/package.json +7 -2
- package/node_modules/@types/node/process.d.ts +22 -0
- package/node_modules/@types/node/querystring.d.ts +2 -3
- package/node_modules/@types/node/readline.d.ts +6 -1
- package/node_modules/@types/node/sqlite.d.ts +36 -13
- package/node_modules/@types/node/stream/web.d.ts +3 -3
- package/node_modules/@types/node/test.d.ts +54 -6
- package/node_modules/@types/node/tls.d.ts +34 -1
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +3 -0
- package/node_modules/@types/node/util.d.ts +232 -94
- package/node_modules/@types/node/v8.d.ts +81 -0
- package/node_modules/@types/node/vm.d.ts +20 -5
- package/node_modules/@types/node/zlib.d.ts +167 -36
- package/node_modules/bn.js/README.md +2 -2
- package/node_modules/bn.js/lib/bn.js +1 -0
- package/node_modules/bn.js/package.json +1 -1
- package/node_modules/{jsonparse/README.markdown → camelcase/license} +2 -4
- package/node_modules/jayson/lib/utils.js +11 -8
- package/node_modules/jayson/package.json +10 -7
- package/node_modules/rpc-websockets/node_modules/ws/lib/permessage-deflate.js +14 -0
- package/node_modules/rpc-websockets/node_modules/ws/lib/websocket.js +1 -1
- package/node_modules/rpc-websockets/node_modules/ws/package.json +2 -2
- package/node_modules/stream-chain/LICENSE +11 -0
- package/node_modules/stream-chain/README.md +334 -0
- package/node_modules/stream-chain/defs.js +22 -0
- package/node_modules/stream-chain/index.js +203 -0
- package/node_modules/stream-chain/package.json +31 -0
- package/node_modules/stream-chain/utils/FromIterable.js +94 -0
- package/node_modules/stream-chain/utils/Reduce.js +40 -0
- package/node_modules/stream-chain/utils/asFun.js +85 -0
- package/node_modules/stream-chain/utils/asGen.js +77 -0
- package/node_modules/stream-chain/utils/comp.js +20 -0
- package/node_modules/stream-chain/utils/fold.js +43 -0
- package/node_modules/stream-chain/utils/gen.js +24 -0
- package/node_modules/stream-chain/utils/scan.js +41 -0
- package/node_modules/stream-chain/utils/skip.js +32 -0
- package/node_modules/stream-chain/utils/skipWhile.js +46 -0
- package/node_modules/stream-chain/utils/take.js +39 -0
- package/node_modules/stream-chain/utils/takeWhile.js +47 -0
- package/node_modules/stream-json/Assembler.js +154 -0
- package/node_modules/stream-json/Disassembler.js +209 -0
- package/node_modules/stream-json/Emitter.js +22 -0
- package/node_modules/stream-json/LICENSE +34 -0
- package/node_modules/stream-json/Parser.js +545 -0
- package/node_modules/stream-json/README.md +128 -0
- package/node_modules/stream-json/Stringer.js +153 -0
- package/node_modules/stream-json/filters/Filter.js +130 -0
- package/node_modules/stream-json/filters/FilterBase.js +201 -0
- package/node_modules/stream-json/filters/Ignore.js +24 -0
- package/node_modules/stream-json/filters/Pick.js +58 -0
- package/node_modules/stream-json/filters/Replace.js +115 -0
- package/node_modules/stream-json/index.js +11 -0
- package/node_modules/stream-json/jsonl/Parser.js +131 -0
- package/node_modules/stream-json/jsonl/Stringer.js +29 -0
- package/node_modules/stream-json/package.json +45 -0
- package/node_modules/stream-json/streamers/StreamArray.js +44 -0
- package/node_modules/stream-json/streamers/StreamBase.js +101 -0
- package/node_modules/stream-json/streamers/StreamObject.js +43 -0
- package/node_modules/stream-json/streamers/StreamValues.js +33 -0
- package/node_modules/stream-json/utils/Batch.js +44 -0
- package/node_modules/stream-json/utils/Utf8Stream.js +53 -0
- package/node_modules/stream-json/utils/Verifier.js +485 -0
- package/node_modules/stream-json/utils/emit.js +5 -0
- package/node_modules/stream-json/utils/withParser.js +10 -0
- package/package.json +2 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/abstract/bls.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/abstract/bls.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/abstract/curve.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/abstract/curve.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/abstract/edwards.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/abstract/edwards.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/abstract/hash-to-curve.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/abstract/hash-to-curve.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/abstract/modular.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/abstract/modular.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/abstract/montgomery.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/abstract/montgomery.js +0 -160
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/abstract/montgomery.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/abstract/poseidon.d.ts +0 -39
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/abstract/poseidon.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/abstract/poseidon.js +0 -121
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/abstract/poseidon.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/abstract/tower.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/abstract/utils.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/abstract/utils.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/abstract/weierstrass.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/abstract/weierstrass.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/bls12-381.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/bn254.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/ed25519.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/ed25519.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/ed448.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/ed448.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/abstract/bls.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/abstract/bls.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/abstract/curve.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/abstract/curve.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/abstract/edwards.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/abstract/edwards.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/abstract/hash-to-curve.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/abstract/hash-to-curve.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/abstract/modular.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/abstract/modular.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/abstract/montgomery.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/abstract/montgomery.js +0 -157
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/abstract/montgomery.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/abstract/poseidon.d.ts +0 -39
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/abstract/poseidon.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/abstract/poseidon.js +0 -116
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/abstract/poseidon.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/abstract/tower.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/abstract/utils.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/abstract/utils.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/abstract/weierstrass.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/abstract/weierstrass.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/bls12-381.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/bn254.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/ed25519.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/ed25519.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/ed448.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/ed448.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/jubjub.d.ts +0 -5
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/jubjub.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/jubjub.js +0 -61
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/jubjub.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/p256.d.ts +0 -11
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/p256.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/p256.js +0 -49
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/p256.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/p384.d.ts +0 -11
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/p384.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/p384.js +0 -53
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/p384.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/p521.d.ts +0 -12
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/p521.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/p521.js +0 -61
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/p521.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/pasta.d.ts +0 -8
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/pasta.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/pasta.js +0 -34
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/pasta.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/secp256k1.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/esm/secp256k1.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/jubjub.d.ts +0 -5
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/jubjub.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/jubjub.js +0 -66
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/jubjub.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/p256.d.ts +0 -11
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/p256.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/p256.js +0 -52
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/p256.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/p384.d.ts +0 -11
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/p384.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/p384.js +0 -56
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/p384.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/p521.d.ts +0 -12
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/p521.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/p521.js +0 -64
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/p521.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/pasta.d.ts +0 -8
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/pasta.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/pasta.js +0 -37
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/pasta.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/secp256k1.d.ts.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/secp256k1.js.map +0 -1
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/src/abstract/montgomery.ts +0 -196
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/src/abstract/poseidon.ts +0 -136
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/src/jubjub.ts +0 -63
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/src/p256.ts +0 -54
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/src/p384.ts +0 -58
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/src/p521.ts +0 -75
- package/node_modules/@solana/web3.js/node_modules/@noble/curves/src/pasta.ts +0 -39
- package/node_modules/JSONStream/.travis.yml +0 -8
- package/node_modules/JSONStream/LICENSE.APACHE2 +0 -15
- package/node_modules/JSONStream/LICENSE.MIT +0 -24
- package/node_modules/JSONStream/bin.js +0 -12
- package/node_modules/JSONStream/examples/all_docs.js +0 -13
- package/node_modules/JSONStream/index.js +0 -247
- package/node_modules/JSONStream/package.json +0 -40
- package/node_modules/JSONStream/readme.markdown +0 -207
- package/node_modules/JSONStream/test/bool.js +0 -41
- package/node_modules/JSONStream/test/browser.js +0 -18
- package/node_modules/JSONStream/test/destroy_missing.js +0 -27
- package/node_modules/JSONStream/test/doubledot1.js +0 -29
- package/node_modules/JSONStream/test/doubledot2.js +0 -30
- package/node_modules/JSONStream/test/empty.js +0 -44
- package/node_modules/JSONStream/test/error_contents.js +0 -45
- package/node_modules/JSONStream/test/fixtures/all_npm.json +0 -4030
- package/node_modules/JSONStream/test/fixtures/couch_sample.json +0 -18
- package/node_modules/JSONStream/test/fixtures/depth.json +0 -15
- package/node_modules/JSONStream/test/fixtures/error.json +0 -1
- package/node_modules/JSONStream/test/fixtures/header_footer.json +0 -19
- package/node_modules/JSONStream/test/fn.js +0 -39
- package/node_modules/JSONStream/test/gen.js +0 -135
- package/node_modules/JSONStream/test/header_footer.js +0 -55
- package/node_modules/JSONStream/test/issues.js +0 -34
- package/node_modules/JSONStream/test/keys.js +0 -105
- package/node_modules/JSONStream/test/map.js +0 -40
- package/node_modules/JSONStream/test/multiple_objects.js +0 -36
- package/node_modules/JSONStream/test/multiple_objects_error.js +0 -29
- package/node_modules/JSONStream/test/null.js +0 -28
- package/node_modules/JSONStream/test/parsejson.js +0 -29
- package/node_modules/JSONStream/test/run.js +0 -13
- package/node_modules/JSONStream/test/stringify.js +0 -41
- package/node_modules/JSONStream/test/stringify_object.js +0 -47
- package/node_modules/JSONStream/test/test.js +0 -35
- package/node_modules/JSONStream/test/test2.js +0 -29
- package/node_modules/JSONStream/test/two-ways.js +0 -41
- package/node_modules/bigint-buffer/.travis.yml +0 -51
- package/node_modules/bigint-buffer/LICENSE +0 -202
- package/node_modules/bigint-buffer/README.md +0 -121
- package/node_modules/bigint-buffer/binding.gyp +0 -8
- package/node_modules/bigint-buffer/build/Makefile +0 -347
- package/node_modules/bigint-buffer/build/Release/.deps/Release/bigint_buffer.node.d +0 -1
- package/node_modules/bigint-buffer/build/Release/.deps/Release/obj.target/bigint_buffer/src/bigint-buffer.o.d +0 -12
- package/node_modules/bigint-buffer/build/Release/bigint_buffer.node +0 -0
- package/node_modules/bigint-buffer/build/Release/obj.target/bigint_buffer/src/bigint-buffer.o +0 -0
- package/node_modules/bigint-buffer/build/bigint_buffer.target.mk +0 -180
- package/node_modules/bigint-buffer/build/binding.Makefile +0 -6
- package/node_modules/bigint-buffer/build/config.gypi +0 -450
- package/node_modules/bigint-buffer/build/gyp-mac-tool +0 -772
- package/node_modules/bigint-buffer/dist/browser.js +0 -69
- package/node_modules/bigint-buffer/dist/index.bench.d.ts +0 -1
- package/node_modules/bigint-buffer/dist/index.d.ts +0 -27
- package/node_modules/bigint-buffer/dist/index.spec.d.ts +0 -1
- package/node_modules/bigint-buffer/dist/node.js +0 -77
- package/node_modules/bigint-buffer/helper/bigint.d.ts +0 -3
- package/node_modules/bigint-buffer/karma.conf.js +0 -62
- package/node_modules/bigint-buffer/package.json +0 -89
- package/node_modules/bigint-buffer/rollup.config.js +0 -13
- package/node_modules/bigint-buffer/src/bigint-buffer.c +0 -203
- package/node_modules/bigint-buffer/src/index.bench.ts +0 -207
- package/node_modules/bigint-buffer/src/index.spec.ts +0 -288
- package/node_modules/bigint-buffer/src/index.ts +0 -84
- package/node_modules/bigint-buffer/tsconfig.json +0 -19
- package/node_modules/bindings/README.md +0 -98
- package/node_modules/bindings/bindings.js +0 -221
- package/node_modules/bindings/package.json +0 -28
- package/node_modules/file-uri-to-path/.npmignore +0 -1
- package/node_modules/file-uri-to-path/.travis.yml +0 -30
- package/node_modules/file-uri-to-path/History.md +0 -21
- package/node_modules/file-uri-to-path/README.md +0 -74
- package/node_modules/file-uri-to-path/index.d.ts +0 -2
- package/node_modules/file-uri-to-path/index.js +0 -66
- package/node_modules/file-uri-to-path/package.json +0 -32
- package/node_modules/file-uri-to-path/test/test.js +0 -24
- package/node_modules/file-uri-to-path/test/tests.json +0 -13
- package/node_modules/jsonparse/.npmignore +0 -1
- package/node_modules/jsonparse/LICENSE +0 -24
- package/node_modules/jsonparse/bench.js +0 -26
- package/node_modules/jsonparse/examples/twitterfeed.js +0 -30
- package/node_modules/jsonparse/jsonparse.js +0 -413
- package/node_modules/jsonparse/package.json +0 -22
- package/node_modules/jsonparse/samplejson/basic.json +0 -167
- package/node_modules/jsonparse/samplejson/basic2.json +0 -180
- package/node_modules/jsonparse/test/big-token.js +0 -24
- package/node_modules/jsonparse/test/boundary.js +0 -110
- package/node_modules/jsonparse/test/offset.js +0 -67
- package/node_modules/jsonparse/test/primitives.js +0 -57
- package/node_modules/jsonparse/test/surrogate.js +0 -26
- package/node_modules/jsonparse/test/unvalid.js +0 -15
- package/node_modules/jsonparse/test/utf8.js +0 -38
- package/node_modules/regenerator-runtime/LICENSE +0 -21
- package/node_modules/regenerator-runtime/README.md +0 -31
- package/node_modules/regenerator-runtime/package.json +0 -19
- package/node_modules/regenerator-runtime/path.js +0 -11
- package/node_modules/regenerator-runtime/runtime.js +0 -761
- package/node_modules/through/.travis.yml +0 -5
- package/node_modules/through/LICENSE.APACHE2 +0 -15
- package/node_modules/through/LICENSE.MIT +0 -24
- package/node_modules/through/index.js +0 -108
- package/node_modules/through/package.json +0 -36
- package/node_modules/through/readme.markdown +0 -64
- package/node_modules/through/test/async.js +0 -28
- package/node_modules/through/test/auto-destroy.js +0 -30
- package/node_modules/through/test/buffering.js +0 -71
- package/node_modules/through/test/end.js +0 -45
- package/node_modules/through/test/index.js +0 -133
- /package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/LICENSE +0 -0
- /package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/_shortw_utils.d.ts.map +0 -0
- /package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/_shortw_utils.js.map +0 -0
- /package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/_shortw_utils.d.ts.map +0 -0
- /package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/_shortw_utils.js.map +0 -0
- /package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/index.d.ts +0 -0
- /package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/index.d.ts.map +0 -0
- /package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/index.js +0 -0
- /package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/index.js.map +0 -0
- /package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/esm/package.json +0 -0
- /package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/index.d.ts +0 -0
- /package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/index.d.ts.map +0 -0
- /package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/index.js +0 -0
- /package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/index.js.map +0 -0
- /package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/src/index.ts +0 -0
- /package/node_modules/{@solana/web3.js/node_modules/@noble → @noble}/curves/src/package.json +0 -0
- /package/node_modules/{@coral-xyz/anchor/node_modules/camelcase → @solana/errors/node_modules/chalk}/license +0 -0
- /package/node_modules/{@coral-xyz/anchor/node_modules/camelcase → camelcase}/index.d.ts +0 -0
- /package/node_modules/{@coral-xyz/anchor/node_modules/camelcase → camelcase}/index.js +0 -0
- /package/node_modules/{@coral-xyz/anchor/node_modules/camelcase → camelcase}/package.json +0 -0
- /package/node_modules/{@coral-xyz/anchor/node_modules/camelcase → camelcase}/readme.md +0 -0
- /package/node_modules/{@swc/helpers/node_modules/tslib → tslib}/CopyrightNotice.txt +0 -0
- /package/node_modules/{@swc/helpers/node_modules/tslib → tslib}/LICENSE.txt +0 -0
- /package/node_modules/{@swc/helpers/node_modules/tslib → tslib}/README.md +0 -0
- /package/node_modules/{@swc/helpers/node_modules/tslib → tslib}/SECURITY.md +0 -0
- /package/node_modules/{@swc/helpers/node_modules/tslib → tslib}/modules/index.d.ts +0 -0
- /package/node_modules/{@swc/helpers/node_modules/tslib → tslib}/modules/index.js +0 -0
- /package/node_modules/{@swc/helpers/node_modules/tslib → tslib}/modules/package.json +0 -0
- /package/node_modules/{@swc/helpers/node_modules/tslib → tslib}/package.json +0 -0
- /package/node_modules/{@swc/helpers/node_modules/tslib → tslib}/tslib.d.ts +0 -0
- /package/node_modules/{@swc/helpers/node_modules/tslib → tslib}/tslib.es6.html +0 -0
- /package/node_modules/{@swc/helpers/node_modules/tslib → tslib}/tslib.es6.js +0 -0
- /package/node_modules/{@swc/helpers/node_modules/tslib → tslib}/tslib.es6.mjs +0 -0
- /package/node_modules/{@swc/helpers/node_modules/tslib → tslib}/tslib.html +0 -0
- /package/node_modules/{@swc/helpers/node_modules/tslib → tslib}/tslib.js +0 -0
|
@@ -1,772 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
# Generated by gyp. Do not edit.
|
|
3
|
-
# Copyright (c) 2012 Google Inc. All rights reserved.
|
|
4
|
-
# Use of this source code is governed by a BSD-style license that can be
|
|
5
|
-
# found in the LICENSE file.
|
|
6
|
-
|
|
7
|
-
"""Utility functions to perform Xcode-style build steps.
|
|
8
|
-
|
|
9
|
-
These functions are executed via gyp-mac-tool when using the Makefile generator.
|
|
10
|
-
"""
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import fcntl
|
|
14
|
-
import fnmatch
|
|
15
|
-
import glob
|
|
16
|
-
import json
|
|
17
|
-
import os
|
|
18
|
-
import plistlib
|
|
19
|
-
import re
|
|
20
|
-
import shutil
|
|
21
|
-
import struct
|
|
22
|
-
import subprocess
|
|
23
|
-
import sys
|
|
24
|
-
import tempfile
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
def main(args):
|
|
28
|
-
executor = MacTool()
|
|
29
|
-
exit_code = executor.Dispatch(args)
|
|
30
|
-
if exit_code is not None:
|
|
31
|
-
sys.exit(exit_code)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
class MacTool:
|
|
35
|
-
"""This class performs all the Mac tooling steps. The methods can either be
|
|
36
|
-
executed directly, or dispatched from an argument list."""
|
|
37
|
-
|
|
38
|
-
def Dispatch(self, args):
|
|
39
|
-
"""Dispatches a string command to a method."""
|
|
40
|
-
if len(args) < 1:
|
|
41
|
-
raise Exception("Not enough arguments")
|
|
42
|
-
|
|
43
|
-
method = "Exec%s" % self._CommandifyName(args[0])
|
|
44
|
-
return getattr(self, method)(*args[1:])
|
|
45
|
-
|
|
46
|
-
def _CommandifyName(self, name_string):
|
|
47
|
-
"""Transforms a tool name like copy-info-plist to CopyInfoPlist"""
|
|
48
|
-
return name_string.title().replace("-", "")
|
|
49
|
-
|
|
50
|
-
def ExecCopyBundleResource(self, source, dest, convert_to_binary):
|
|
51
|
-
"""Copies a resource file to the bundle/Resources directory, performing any
|
|
52
|
-
necessary compilation on each resource."""
|
|
53
|
-
convert_to_binary = convert_to_binary == "True"
|
|
54
|
-
extension = os.path.splitext(source)[1].lower()
|
|
55
|
-
if os.path.isdir(source):
|
|
56
|
-
# Copy tree.
|
|
57
|
-
# TODO(thakis): This copies file attributes like mtime, while the
|
|
58
|
-
# single-file branch below doesn't. This should probably be changed to
|
|
59
|
-
# be consistent with the single-file branch.
|
|
60
|
-
if os.path.exists(dest):
|
|
61
|
-
shutil.rmtree(dest)
|
|
62
|
-
shutil.copytree(source, dest)
|
|
63
|
-
elif extension == ".xib":
|
|
64
|
-
return self._CopyXIBFile(source, dest)
|
|
65
|
-
elif extension == ".storyboard":
|
|
66
|
-
return self._CopyXIBFile(source, dest)
|
|
67
|
-
elif extension == ".strings" and not convert_to_binary:
|
|
68
|
-
self._CopyStringsFile(source, dest)
|
|
69
|
-
else:
|
|
70
|
-
if os.path.exists(dest):
|
|
71
|
-
os.unlink(dest)
|
|
72
|
-
shutil.copy(source, dest)
|
|
73
|
-
|
|
74
|
-
if convert_to_binary and extension in (".plist", ".strings"):
|
|
75
|
-
self._ConvertToBinary(dest)
|
|
76
|
-
|
|
77
|
-
def _CopyXIBFile(self, source, dest):
|
|
78
|
-
"""Compiles a XIB file with ibtool into a binary plist in the bundle."""
|
|
79
|
-
|
|
80
|
-
# ibtool sometimes crashes with relative paths. See crbug.com/314728.
|
|
81
|
-
base = os.path.dirname(os.path.realpath(__file__))
|
|
82
|
-
if os.path.relpath(source):
|
|
83
|
-
source = os.path.join(base, source)
|
|
84
|
-
if os.path.relpath(dest):
|
|
85
|
-
dest = os.path.join(base, dest)
|
|
86
|
-
|
|
87
|
-
args = ["xcrun", "ibtool", "--errors", "--warnings", "--notices"]
|
|
88
|
-
|
|
89
|
-
if os.environ["XCODE_VERSION_ACTUAL"] > "0700":
|
|
90
|
-
args.extend(["--auto-activate-custom-fonts"])
|
|
91
|
-
if "IPHONEOS_DEPLOYMENT_TARGET" in os.environ:
|
|
92
|
-
args.extend(
|
|
93
|
-
[
|
|
94
|
-
"--target-device",
|
|
95
|
-
"iphone",
|
|
96
|
-
"--target-device",
|
|
97
|
-
"ipad",
|
|
98
|
-
"--minimum-deployment-target",
|
|
99
|
-
os.environ["IPHONEOS_DEPLOYMENT_TARGET"],
|
|
100
|
-
]
|
|
101
|
-
)
|
|
102
|
-
else:
|
|
103
|
-
args.extend(
|
|
104
|
-
[
|
|
105
|
-
"--target-device",
|
|
106
|
-
"mac",
|
|
107
|
-
"--minimum-deployment-target",
|
|
108
|
-
os.environ["MACOSX_DEPLOYMENT_TARGET"],
|
|
109
|
-
]
|
|
110
|
-
)
|
|
111
|
-
|
|
112
|
-
args.extend(
|
|
113
|
-
["--output-format", "human-readable-text", "--compile", dest, source]
|
|
114
|
-
)
|
|
115
|
-
|
|
116
|
-
ibtool_section_re = re.compile(r"/\*.*\*/")
|
|
117
|
-
ibtool_re = re.compile(r".*note:.*is clipping its content")
|
|
118
|
-
try:
|
|
119
|
-
stdout = subprocess.check_output(args)
|
|
120
|
-
except subprocess.CalledProcessError as e:
|
|
121
|
-
print(e.output)
|
|
122
|
-
raise
|
|
123
|
-
current_section_header = None
|
|
124
|
-
for line in stdout.splitlines():
|
|
125
|
-
if ibtool_section_re.match(line):
|
|
126
|
-
current_section_header = line
|
|
127
|
-
elif not ibtool_re.match(line):
|
|
128
|
-
if current_section_header:
|
|
129
|
-
print(current_section_header)
|
|
130
|
-
current_section_header = None
|
|
131
|
-
print(line)
|
|
132
|
-
return 0
|
|
133
|
-
|
|
134
|
-
def _ConvertToBinary(self, dest):
|
|
135
|
-
subprocess.check_call(
|
|
136
|
-
["xcrun", "plutil", "-convert", "binary1", "-o", dest, dest]
|
|
137
|
-
)
|
|
138
|
-
|
|
139
|
-
def _CopyStringsFile(self, source, dest):
|
|
140
|
-
"""Copies a .strings file using iconv to reconvert the input into UTF-16."""
|
|
141
|
-
input_code = self._DetectInputEncoding(source) or "UTF-8"
|
|
142
|
-
|
|
143
|
-
# Xcode's CpyCopyStringsFile / builtin-copyStrings seems to call
|
|
144
|
-
# CFPropertyListCreateFromXMLData() behind the scenes; at least it prints
|
|
145
|
-
# CFPropertyListCreateFromXMLData(): Old-style plist parser: missing
|
|
146
|
-
# semicolon in dictionary.
|
|
147
|
-
# on invalid files. Do the same kind of validation.
|
|
148
|
-
import CoreFoundation
|
|
149
|
-
|
|
150
|
-
with open(source, "rb") as in_file:
|
|
151
|
-
s = in_file.read()
|
|
152
|
-
d = CoreFoundation.CFDataCreate(None, s, len(s))
|
|
153
|
-
_, error = CoreFoundation.CFPropertyListCreateFromXMLData(None, d, 0, None)
|
|
154
|
-
if error:
|
|
155
|
-
return
|
|
156
|
-
|
|
157
|
-
with open(dest, "wb") as fp:
|
|
158
|
-
fp.write(s.decode(input_code).encode("UTF-16"))
|
|
159
|
-
|
|
160
|
-
def _DetectInputEncoding(self, file_name):
|
|
161
|
-
"""Reads the first few bytes from file_name and tries to guess the text
|
|
162
|
-
encoding. Returns None as a guess if it can't detect it."""
|
|
163
|
-
with open(file_name, "rb") as fp:
|
|
164
|
-
try:
|
|
165
|
-
header = fp.read(3)
|
|
166
|
-
except Exception:
|
|
167
|
-
return None
|
|
168
|
-
if header.startswith(b"\xFE\xFF"):
|
|
169
|
-
return "UTF-16"
|
|
170
|
-
elif header.startswith(b"\xFF\xFE"):
|
|
171
|
-
return "UTF-16"
|
|
172
|
-
elif header.startswith(b"\xEF\xBB\xBF"):
|
|
173
|
-
return "UTF-8"
|
|
174
|
-
else:
|
|
175
|
-
return None
|
|
176
|
-
|
|
177
|
-
def ExecCopyInfoPlist(self, source, dest, convert_to_binary, *keys):
|
|
178
|
-
"""Copies the |source| Info.plist to the destination directory |dest|."""
|
|
179
|
-
# Read the source Info.plist into memory.
|
|
180
|
-
with open(source) as fd:
|
|
181
|
-
lines = fd.read()
|
|
182
|
-
|
|
183
|
-
# Insert synthesized key/value pairs (e.g. BuildMachineOSBuild).
|
|
184
|
-
plist = plistlib.readPlistFromString(lines)
|
|
185
|
-
if keys:
|
|
186
|
-
plist.update(json.loads(keys[0]))
|
|
187
|
-
lines = plistlib.writePlistToString(plist)
|
|
188
|
-
|
|
189
|
-
# Go through all the environment variables and replace them as variables in
|
|
190
|
-
# the file.
|
|
191
|
-
IDENT_RE = re.compile(r"[_/\s]")
|
|
192
|
-
for key in os.environ:
|
|
193
|
-
if key.startswith("_"):
|
|
194
|
-
continue
|
|
195
|
-
evar = "${%s}" % key
|
|
196
|
-
evalue = os.environ[key]
|
|
197
|
-
lines = lines.replace(lines, evar, evalue)
|
|
198
|
-
|
|
199
|
-
# Xcode supports various suffices on environment variables, which are
|
|
200
|
-
# all undocumented. :rfc1034identifier is used in the standard project
|
|
201
|
-
# template these days, and :identifier was used earlier. They are used to
|
|
202
|
-
# convert non-url characters into things that look like valid urls --
|
|
203
|
-
# except that the replacement character for :identifier, '_' isn't valid
|
|
204
|
-
# in a URL either -- oops, hence :rfc1034identifier was born.
|
|
205
|
-
evar = "${%s:identifier}" % key
|
|
206
|
-
evalue = IDENT_RE.sub("_", os.environ[key])
|
|
207
|
-
lines = lines.replace(lines, evar, evalue)
|
|
208
|
-
|
|
209
|
-
evar = "${%s:rfc1034identifier}" % key
|
|
210
|
-
evalue = IDENT_RE.sub("-", os.environ[key])
|
|
211
|
-
lines = lines.replace(lines, evar, evalue)
|
|
212
|
-
|
|
213
|
-
# Remove any keys with values that haven't been replaced.
|
|
214
|
-
lines = lines.splitlines()
|
|
215
|
-
for i in range(len(lines)):
|
|
216
|
-
if lines[i].strip().startswith("<string>${"):
|
|
217
|
-
lines[i] = None
|
|
218
|
-
lines[i - 1] = None
|
|
219
|
-
lines = "\n".join(line for line in lines if line is not None)
|
|
220
|
-
|
|
221
|
-
# Write out the file with variables replaced.
|
|
222
|
-
with open(dest, "w") as fd:
|
|
223
|
-
fd.write(lines)
|
|
224
|
-
|
|
225
|
-
# Now write out PkgInfo file now that the Info.plist file has been
|
|
226
|
-
# "compiled".
|
|
227
|
-
self._WritePkgInfo(dest)
|
|
228
|
-
|
|
229
|
-
if convert_to_binary == "True":
|
|
230
|
-
self._ConvertToBinary(dest)
|
|
231
|
-
|
|
232
|
-
def _WritePkgInfo(self, info_plist):
|
|
233
|
-
"""This writes the PkgInfo file from the data stored in Info.plist."""
|
|
234
|
-
plist = plistlib.readPlist(info_plist)
|
|
235
|
-
if not plist:
|
|
236
|
-
return
|
|
237
|
-
|
|
238
|
-
# Only create PkgInfo for executable types.
|
|
239
|
-
package_type = plist["CFBundlePackageType"]
|
|
240
|
-
if package_type != "APPL":
|
|
241
|
-
return
|
|
242
|
-
|
|
243
|
-
# The format of PkgInfo is eight characters, representing the bundle type
|
|
244
|
-
# and bundle signature, each four characters. If that is missing, four
|
|
245
|
-
# '?' characters are used instead.
|
|
246
|
-
signature_code = plist.get("CFBundleSignature", "????")
|
|
247
|
-
if len(signature_code) != 4: # Wrong length resets everything, too.
|
|
248
|
-
signature_code = "?" * 4
|
|
249
|
-
|
|
250
|
-
dest = os.path.join(os.path.dirname(info_plist), "PkgInfo")
|
|
251
|
-
with open(dest, "w") as fp:
|
|
252
|
-
fp.write(f"{package_type}{signature_code}")
|
|
253
|
-
|
|
254
|
-
def ExecFlock(self, lockfile, *cmd_list):
|
|
255
|
-
"""Emulates the most basic behavior of Linux's flock(1)."""
|
|
256
|
-
# Rely on exception handling to report errors.
|
|
257
|
-
fd = os.open(lockfile, os.O_RDONLY | os.O_NOCTTY | os.O_CREAT, 0o666)
|
|
258
|
-
fcntl.flock(fd, fcntl.LOCK_EX)
|
|
259
|
-
return subprocess.call(cmd_list)
|
|
260
|
-
|
|
261
|
-
def ExecFilterLibtool(self, *cmd_list):
|
|
262
|
-
"""Calls libtool and filters out '/path/to/libtool: file: foo.o has no
|
|
263
|
-
symbols'."""
|
|
264
|
-
libtool_re = re.compile(
|
|
265
|
-
r"^.*libtool: (?:for architecture: \S* )?" r"file: .* has no symbols$"
|
|
266
|
-
)
|
|
267
|
-
libtool_re5 = re.compile(
|
|
268
|
-
r"^.*libtool: warning for library: "
|
|
269
|
-
+ r".* the table of contents is empty "
|
|
270
|
-
+ r"\(no object file members in the library define global symbols\)$"
|
|
271
|
-
)
|
|
272
|
-
env = os.environ.copy()
|
|
273
|
-
# Ref:
|
|
274
|
-
# http://www.opensource.apple.com/source/cctools/cctools-809/misc/libtool.c
|
|
275
|
-
# The problem with this flag is that it resets the file mtime on the file to
|
|
276
|
-
# epoch=0, e.g. 1970-1-1 or 1969-12-31 depending on timezone.
|
|
277
|
-
env["ZERO_AR_DATE"] = "1"
|
|
278
|
-
libtoolout = subprocess.Popen(cmd_list, stderr=subprocess.PIPE, env=env)
|
|
279
|
-
err = libtoolout.communicate()[1].decode("utf-8")
|
|
280
|
-
for line in err.splitlines():
|
|
281
|
-
if not libtool_re.match(line) and not libtool_re5.match(line):
|
|
282
|
-
print(line, file=sys.stderr)
|
|
283
|
-
# Unconditionally touch the output .a file on the command line if present
|
|
284
|
-
# and the command succeeded. A bit hacky.
|
|
285
|
-
if not libtoolout.returncode:
|
|
286
|
-
for i in range(len(cmd_list) - 1):
|
|
287
|
-
if cmd_list[i] == "-o" and cmd_list[i + 1].endswith(".a"):
|
|
288
|
-
os.utime(cmd_list[i + 1], None)
|
|
289
|
-
break
|
|
290
|
-
return libtoolout.returncode
|
|
291
|
-
|
|
292
|
-
def ExecPackageIosFramework(self, framework):
|
|
293
|
-
# Find the name of the binary based on the part before the ".framework".
|
|
294
|
-
binary = os.path.basename(framework).split(".")[0]
|
|
295
|
-
module_path = os.path.join(framework, "Modules")
|
|
296
|
-
if not os.path.exists(module_path):
|
|
297
|
-
os.mkdir(module_path)
|
|
298
|
-
module_template = (
|
|
299
|
-
"framework module %s {\n"
|
|
300
|
-
' umbrella header "%s.h"\n'
|
|
301
|
-
"\n"
|
|
302
|
-
" export *\n"
|
|
303
|
-
" module * { export * }\n"
|
|
304
|
-
"}\n" % (binary, binary)
|
|
305
|
-
)
|
|
306
|
-
|
|
307
|
-
with open(os.path.join(module_path, "module.modulemap"), "w") as module_file:
|
|
308
|
-
module_file.write(module_template)
|
|
309
|
-
|
|
310
|
-
def ExecPackageFramework(self, framework, version):
|
|
311
|
-
"""Takes a path to Something.framework and the Current version of that and
|
|
312
|
-
sets up all the symlinks."""
|
|
313
|
-
# Find the name of the binary based on the part before the ".framework".
|
|
314
|
-
binary = os.path.basename(framework).split(".")[0]
|
|
315
|
-
|
|
316
|
-
CURRENT = "Current"
|
|
317
|
-
RESOURCES = "Resources"
|
|
318
|
-
VERSIONS = "Versions"
|
|
319
|
-
|
|
320
|
-
if not os.path.exists(os.path.join(framework, VERSIONS, version, binary)):
|
|
321
|
-
# Binary-less frameworks don't seem to contain symlinks (see e.g.
|
|
322
|
-
# chromium's out/Debug/org.chromium.Chromium.manifest/ bundle).
|
|
323
|
-
return
|
|
324
|
-
|
|
325
|
-
# Move into the framework directory to set the symlinks correctly.
|
|
326
|
-
pwd = os.getcwd()
|
|
327
|
-
os.chdir(framework)
|
|
328
|
-
|
|
329
|
-
# Set up the Current version.
|
|
330
|
-
self._Relink(version, os.path.join(VERSIONS, CURRENT))
|
|
331
|
-
|
|
332
|
-
# Set up the root symlinks.
|
|
333
|
-
self._Relink(os.path.join(VERSIONS, CURRENT, binary), binary)
|
|
334
|
-
self._Relink(os.path.join(VERSIONS, CURRENT, RESOURCES), RESOURCES)
|
|
335
|
-
|
|
336
|
-
# Back to where we were before!
|
|
337
|
-
os.chdir(pwd)
|
|
338
|
-
|
|
339
|
-
def _Relink(self, dest, link):
|
|
340
|
-
"""Creates a symlink to |dest| named |link|. If |link| already exists,
|
|
341
|
-
it is overwritten."""
|
|
342
|
-
if os.path.lexists(link):
|
|
343
|
-
os.remove(link)
|
|
344
|
-
os.symlink(dest, link)
|
|
345
|
-
|
|
346
|
-
def ExecCompileIosFrameworkHeaderMap(self, out, framework, *all_headers):
|
|
347
|
-
framework_name = os.path.basename(framework).split(".")[0]
|
|
348
|
-
all_headers = [os.path.abspath(header) for header in all_headers]
|
|
349
|
-
filelist = {}
|
|
350
|
-
for header in all_headers:
|
|
351
|
-
filename = os.path.basename(header)
|
|
352
|
-
filelist[filename] = header
|
|
353
|
-
filelist[os.path.join(framework_name, filename)] = header
|
|
354
|
-
WriteHmap(out, filelist)
|
|
355
|
-
|
|
356
|
-
def ExecCopyIosFrameworkHeaders(self, framework, *copy_headers):
|
|
357
|
-
header_path = os.path.join(framework, "Headers")
|
|
358
|
-
if not os.path.exists(header_path):
|
|
359
|
-
os.makedirs(header_path)
|
|
360
|
-
for header in copy_headers:
|
|
361
|
-
shutil.copy(header, os.path.join(header_path, os.path.basename(header)))
|
|
362
|
-
|
|
363
|
-
def ExecCompileXcassets(self, keys, *inputs):
|
|
364
|
-
"""Compiles multiple .xcassets files into a single .car file.
|
|
365
|
-
|
|
366
|
-
This invokes 'actool' to compile all the inputs .xcassets files. The
|
|
367
|
-
|keys| arguments is a json-encoded dictionary of extra arguments to
|
|
368
|
-
pass to 'actool' when the asset catalogs contains an application icon
|
|
369
|
-
or a launch image.
|
|
370
|
-
|
|
371
|
-
Note that 'actool' does not create the Assets.car file if the asset
|
|
372
|
-
catalogs does not contains imageset.
|
|
373
|
-
"""
|
|
374
|
-
command_line = [
|
|
375
|
-
"xcrun",
|
|
376
|
-
"actool",
|
|
377
|
-
"--output-format",
|
|
378
|
-
"human-readable-text",
|
|
379
|
-
"--compress-pngs",
|
|
380
|
-
"--notices",
|
|
381
|
-
"--warnings",
|
|
382
|
-
"--errors",
|
|
383
|
-
]
|
|
384
|
-
is_iphone_target = "IPHONEOS_DEPLOYMENT_TARGET" in os.environ
|
|
385
|
-
if is_iphone_target:
|
|
386
|
-
platform = os.environ["CONFIGURATION"].split("-")[-1]
|
|
387
|
-
if platform not in ("iphoneos", "iphonesimulator"):
|
|
388
|
-
platform = "iphonesimulator"
|
|
389
|
-
command_line.extend(
|
|
390
|
-
[
|
|
391
|
-
"--platform",
|
|
392
|
-
platform,
|
|
393
|
-
"--target-device",
|
|
394
|
-
"iphone",
|
|
395
|
-
"--target-device",
|
|
396
|
-
"ipad",
|
|
397
|
-
"--minimum-deployment-target",
|
|
398
|
-
os.environ["IPHONEOS_DEPLOYMENT_TARGET"],
|
|
399
|
-
"--compile",
|
|
400
|
-
os.path.abspath(os.environ["CONTENTS_FOLDER_PATH"]),
|
|
401
|
-
]
|
|
402
|
-
)
|
|
403
|
-
else:
|
|
404
|
-
command_line.extend(
|
|
405
|
-
[
|
|
406
|
-
"--platform",
|
|
407
|
-
"macosx",
|
|
408
|
-
"--target-device",
|
|
409
|
-
"mac",
|
|
410
|
-
"--minimum-deployment-target",
|
|
411
|
-
os.environ["MACOSX_DEPLOYMENT_TARGET"],
|
|
412
|
-
"--compile",
|
|
413
|
-
os.path.abspath(os.environ["UNLOCALIZED_RESOURCES_FOLDER_PATH"]),
|
|
414
|
-
]
|
|
415
|
-
)
|
|
416
|
-
if keys:
|
|
417
|
-
keys = json.loads(keys)
|
|
418
|
-
for key, value in keys.items():
|
|
419
|
-
arg_name = "--" + key
|
|
420
|
-
if isinstance(value, bool):
|
|
421
|
-
if value:
|
|
422
|
-
command_line.append(arg_name)
|
|
423
|
-
elif isinstance(value, list):
|
|
424
|
-
for v in value:
|
|
425
|
-
command_line.append(arg_name)
|
|
426
|
-
command_line.append(str(v))
|
|
427
|
-
else:
|
|
428
|
-
command_line.append(arg_name)
|
|
429
|
-
command_line.append(str(value))
|
|
430
|
-
# Note: actool crashes if inputs path are relative, so use os.path.abspath
|
|
431
|
-
# to get absolute path name for inputs.
|
|
432
|
-
command_line.extend(map(os.path.abspath, inputs))
|
|
433
|
-
subprocess.check_call(command_line)
|
|
434
|
-
|
|
435
|
-
def ExecMergeInfoPlist(self, output, *inputs):
|
|
436
|
-
"""Merge multiple .plist files into a single .plist file."""
|
|
437
|
-
merged_plist = {}
|
|
438
|
-
for path in inputs:
|
|
439
|
-
plist = self._LoadPlistMaybeBinary(path)
|
|
440
|
-
self._MergePlist(merged_plist, plist)
|
|
441
|
-
plistlib.writePlist(merged_plist, output)
|
|
442
|
-
|
|
443
|
-
def ExecCodeSignBundle(self, key, entitlements, provisioning, path, preserve):
|
|
444
|
-
"""Code sign a bundle.
|
|
445
|
-
|
|
446
|
-
This function tries to code sign an iOS bundle, following the same
|
|
447
|
-
algorithm as Xcode:
|
|
448
|
-
1. pick the provisioning profile that best match the bundle identifier,
|
|
449
|
-
and copy it into the bundle as embedded.mobileprovision,
|
|
450
|
-
2. copy Entitlements.plist from user or SDK next to the bundle,
|
|
451
|
-
3. code sign the bundle.
|
|
452
|
-
"""
|
|
453
|
-
substitutions, overrides = self._InstallProvisioningProfile(
|
|
454
|
-
provisioning, self._GetCFBundleIdentifier()
|
|
455
|
-
)
|
|
456
|
-
entitlements_path = self._InstallEntitlements(
|
|
457
|
-
entitlements, substitutions, overrides
|
|
458
|
-
)
|
|
459
|
-
|
|
460
|
-
args = ["codesign", "--force", "--sign", key]
|
|
461
|
-
if preserve == "True":
|
|
462
|
-
args.extend(["--deep", "--preserve-metadata=identifier,entitlements"])
|
|
463
|
-
else:
|
|
464
|
-
args.extend(["--entitlements", entitlements_path])
|
|
465
|
-
args.extend(["--timestamp=none", path])
|
|
466
|
-
subprocess.check_call(args)
|
|
467
|
-
|
|
468
|
-
def _InstallProvisioningProfile(self, profile, bundle_identifier):
|
|
469
|
-
"""Installs embedded.mobileprovision into the bundle.
|
|
470
|
-
|
|
471
|
-
Args:
|
|
472
|
-
profile: string, optional, short name of the .mobileprovision file
|
|
473
|
-
to use, if empty or the file is missing, the best file installed
|
|
474
|
-
will be used
|
|
475
|
-
bundle_identifier: string, value of CFBundleIdentifier from Info.plist
|
|
476
|
-
|
|
477
|
-
Returns:
|
|
478
|
-
A tuple containing two dictionary: variables substitutions and values
|
|
479
|
-
to overrides when generating the entitlements file.
|
|
480
|
-
"""
|
|
481
|
-
source_path, provisioning_data, team_id = self._FindProvisioningProfile(
|
|
482
|
-
profile, bundle_identifier
|
|
483
|
-
)
|
|
484
|
-
target_path = os.path.join(
|
|
485
|
-
os.environ["BUILT_PRODUCTS_DIR"],
|
|
486
|
-
os.environ["CONTENTS_FOLDER_PATH"],
|
|
487
|
-
"embedded.mobileprovision",
|
|
488
|
-
)
|
|
489
|
-
shutil.copy2(source_path, target_path)
|
|
490
|
-
substitutions = self._GetSubstitutions(bundle_identifier, team_id + ".")
|
|
491
|
-
return substitutions, provisioning_data["Entitlements"]
|
|
492
|
-
|
|
493
|
-
def _FindProvisioningProfile(self, profile, bundle_identifier):
|
|
494
|
-
"""Finds the .mobileprovision file to use for signing the bundle.
|
|
495
|
-
|
|
496
|
-
Checks all the installed provisioning profiles (or if the user specified
|
|
497
|
-
the PROVISIONING_PROFILE variable, only consult it) and select the most
|
|
498
|
-
specific that correspond to the bundle identifier.
|
|
499
|
-
|
|
500
|
-
Args:
|
|
501
|
-
profile: string, optional, short name of the .mobileprovision file
|
|
502
|
-
to use, if empty or the file is missing, the best file installed
|
|
503
|
-
will be used
|
|
504
|
-
bundle_identifier: string, value of CFBundleIdentifier from Info.plist
|
|
505
|
-
|
|
506
|
-
Returns:
|
|
507
|
-
A tuple of the path to the selected provisioning profile, the data of
|
|
508
|
-
the embedded plist in the provisioning profile and the team identifier
|
|
509
|
-
to use for code signing.
|
|
510
|
-
|
|
511
|
-
Raises:
|
|
512
|
-
SystemExit: if no .mobileprovision can be used to sign the bundle.
|
|
513
|
-
"""
|
|
514
|
-
profiles_dir = os.path.join(
|
|
515
|
-
os.environ["HOME"], "Library", "MobileDevice", "Provisioning Profiles"
|
|
516
|
-
)
|
|
517
|
-
if not os.path.isdir(profiles_dir):
|
|
518
|
-
print(
|
|
519
|
-
"cannot find mobile provisioning for %s" % (bundle_identifier),
|
|
520
|
-
file=sys.stderr,
|
|
521
|
-
)
|
|
522
|
-
sys.exit(1)
|
|
523
|
-
provisioning_profiles = None
|
|
524
|
-
if profile:
|
|
525
|
-
profile_path = os.path.join(profiles_dir, profile + ".mobileprovision")
|
|
526
|
-
if os.path.exists(profile_path):
|
|
527
|
-
provisioning_profiles = [profile_path]
|
|
528
|
-
if not provisioning_profiles:
|
|
529
|
-
provisioning_profiles = glob.glob(
|
|
530
|
-
os.path.join(profiles_dir, "*.mobileprovision")
|
|
531
|
-
)
|
|
532
|
-
valid_provisioning_profiles = {}
|
|
533
|
-
for profile_path in provisioning_profiles:
|
|
534
|
-
profile_data = self._LoadProvisioningProfile(profile_path)
|
|
535
|
-
app_id_pattern = profile_data.get("Entitlements", {}).get(
|
|
536
|
-
"application-identifier", ""
|
|
537
|
-
)
|
|
538
|
-
for team_identifier in profile_data.get("TeamIdentifier", []):
|
|
539
|
-
app_id = f"{team_identifier}.{bundle_identifier}"
|
|
540
|
-
if fnmatch.fnmatch(app_id, app_id_pattern):
|
|
541
|
-
valid_provisioning_profiles[app_id_pattern] = (
|
|
542
|
-
profile_path,
|
|
543
|
-
profile_data,
|
|
544
|
-
team_identifier,
|
|
545
|
-
)
|
|
546
|
-
if not valid_provisioning_profiles:
|
|
547
|
-
print(
|
|
548
|
-
"cannot find mobile provisioning for %s" % (bundle_identifier),
|
|
549
|
-
file=sys.stderr,
|
|
550
|
-
)
|
|
551
|
-
sys.exit(1)
|
|
552
|
-
# If the user has multiple provisioning profiles installed that can be
|
|
553
|
-
# used for ${bundle_identifier}, pick the most specific one (ie. the
|
|
554
|
-
# provisioning profile whose pattern is the longest).
|
|
555
|
-
selected_key = max(valid_provisioning_profiles, key=lambda v: len(v))
|
|
556
|
-
return valid_provisioning_profiles[selected_key]
|
|
557
|
-
|
|
558
|
-
def _LoadProvisioningProfile(self, profile_path):
|
|
559
|
-
"""Extracts the plist embedded in a provisioning profile.
|
|
560
|
-
|
|
561
|
-
Args:
|
|
562
|
-
profile_path: string, path to the .mobileprovision file
|
|
563
|
-
|
|
564
|
-
Returns:
|
|
565
|
-
Content of the plist embedded in the provisioning profile as a dictionary.
|
|
566
|
-
"""
|
|
567
|
-
with tempfile.NamedTemporaryFile() as temp:
|
|
568
|
-
subprocess.check_call(
|
|
569
|
-
["security", "cms", "-D", "-i", profile_path, "-o", temp.name]
|
|
570
|
-
)
|
|
571
|
-
return self._LoadPlistMaybeBinary(temp.name)
|
|
572
|
-
|
|
573
|
-
def _MergePlist(self, merged_plist, plist):
|
|
574
|
-
"""Merge |plist| into |merged_plist|."""
|
|
575
|
-
for key, value in plist.items():
|
|
576
|
-
if isinstance(value, dict):
|
|
577
|
-
merged_value = merged_plist.get(key, {})
|
|
578
|
-
if isinstance(merged_value, dict):
|
|
579
|
-
self._MergePlist(merged_value, value)
|
|
580
|
-
merged_plist[key] = merged_value
|
|
581
|
-
else:
|
|
582
|
-
merged_plist[key] = value
|
|
583
|
-
else:
|
|
584
|
-
merged_plist[key] = value
|
|
585
|
-
|
|
586
|
-
def _LoadPlistMaybeBinary(self, plist_path):
|
|
587
|
-
"""Loads into a memory a plist possibly encoded in binary format.
|
|
588
|
-
|
|
589
|
-
This is a wrapper around plistlib.readPlist that tries to convert the
|
|
590
|
-
plist to the XML format if it can't be parsed (assuming that it is in
|
|
591
|
-
the binary format).
|
|
592
|
-
|
|
593
|
-
Args:
|
|
594
|
-
plist_path: string, path to a plist file, in XML or binary format
|
|
595
|
-
|
|
596
|
-
Returns:
|
|
597
|
-
Content of the plist as a dictionary.
|
|
598
|
-
"""
|
|
599
|
-
try:
|
|
600
|
-
# First, try to read the file using plistlib that only supports XML,
|
|
601
|
-
# and if an exception is raised, convert a temporary copy to XML and
|
|
602
|
-
# load that copy.
|
|
603
|
-
return plistlib.readPlist(plist_path)
|
|
604
|
-
except Exception:
|
|
605
|
-
pass
|
|
606
|
-
with tempfile.NamedTemporaryFile() as temp:
|
|
607
|
-
shutil.copy2(plist_path, temp.name)
|
|
608
|
-
subprocess.check_call(["plutil", "-convert", "xml1", temp.name])
|
|
609
|
-
return plistlib.readPlist(temp.name)
|
|
610
|
-
|
|
611
|
-
def _GetSubstitutions(self, bundle_identifier, app_identifier_prefix):
|
|
612
|
-
"""Constructs a dictionary of variable substitutions for Entitlements.plist.
|
|
613
|
-
|
|
614
|
-
Args:
|
|
615
|
-
bundle_identifier: string, value of CFBundleIdentifier from Info.plist
|
|
616
|
-
app_identifier_prefix: string, value for AppIdentifierPrefix
|
|
617
|
-
|
|
618
|
-
Returns:
|
|
619
|
-
Dictionary of substitutions to apply when generating Entitlements.plist.
|
|
620
|
-
"""
|
|
621
|
-
return {
|
|
622
|
-
"CFBundleIdentifier": bundle_identifier,
|
|
623
|
-
"AppIdentifierPrefix": app_identifier_prefix,
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
def _GetCFBundleIdentifier(self):
|
|
627
|
-
"""Extracts CFBundleIdentifier value from Info.plist in the bundle.
|
|
628
|
-
|
|
629
|
-
Returns:
|
|
630
|
-
Value of CFBundleIdentifier in the Info.plist located in the bundle.
|
|
631
|
-
"""
|
|
632
|
-
info_plist_path = os.path.join(
|
|
633
|
-
os.environ["TARGET_BUILD_DIR"], os.environ["INFOPLIST_PATH"]
|
|
634
|
-
)
|
|
635
|
-
info_plist_data = self._LoadPlistMaybeBinary(info_plist_path)
|
|
636
|
-
return info_plist_data["CFBundleIdentifier"]
|
|
637
|
-
|
|
638
|
-
def _InstallEntitlements(self, entitlements, substitutions, overrides):
|
|
639
|
-
"""Generates and install the ${BundleName}.xcent entitlements file.
|
|
640
|
-
|
|
641
|
-
Expands variables "$(variable)" pattern in the source entitlements file,
|
|
642
|
-
add extra entitlements defined in the .mobileprovision file and the copy
|
|
643
|
-
the generated plist to "${BundlePath}.xcent".
|
|
644
|
-
|
|
645
|
-
Args:
|
|
646
|
-
entitlements: string, optional, path to the Entitlements.plist template
|
|
647
|
-
to use, defaults to "${SDKROOT}/Entitlements.plist"
|
|
648
|
-
substitutions: dictionary, variable substitutions
|
|
649
|
-
overrides: dictionary, values to add to the entitlements
|
|
650
|
-
|
|
651
|
-
Returns:
|
|
652
|
-
Path to the generated entitlements file.
|
|
653
|
-
"""
|
|
654
|
-
source_path = entitlements
|
|
655
|
-
target_path = os.path.join(
|
|
656
|
-
os.environ["BUILT_PRODUCTS_DIR"], os.environ["PRODUCT_NAME"] + ".xcent"
|
|
657
|
-
)
|
|
658
|
-
if not source_path:
|
|
659
|
-
source_path = os.path.join(os.environ["SDKROOT"], "Entitlements.plist")
|
|
660
|
-
shutil.copy2(source_path, target_path)
|
|
661
|
-
data = self._LoadPlistMaybeBinary(target_path)
|
|
662
|
-
data = self._ExpandVariables(data, substitutions)
|
|
663
|
-
if overrides:
|
|
664
|
-
for key in overrides:
|
|
665
|
-
if key not in data:
|
|
666
|
-
data[key] = overrides[key]
|
|
667
|
-
plistlib.writePlist(data, target_path)
|
|
668
|
-
return target_path
|
|
669
|
-
|
|
670
|
-
def _ExpandVariables(self, data, substitutions):
|
|
671
|
-
"""Expands variables "$(variable)" in data.
|
|
672
|
-
|
|
673
|
-
Args:
|
|
674
|
-
data: object, can be either string, list or dictionary
|
|
675
|
-
substitutions: dictionary, variable substitutions to perform
|
|
676
|
-
|
|
677
|
-
Returns:
|
|
678
|
-
Copy of data where each references to "$(variable)" has been replaced
|
|
679
|
-
by the corresponding value found in substitutions, or left intact if
|
|
680
|
-
the key was not found.
|
|
681
|
-
"""
|
|
682
|
-
if isinstance(data, str):
|
|
683
|
-
for key, value in substitutions.items():
|
|
684
|
-
data = data.replace("$(%s)" % key, value)
|
|
685
|
-
return data
|
|
686
|
-
if isinstance(data, list):
|
|
687
|
-
return [self._ExpandVariables(v, substitutions) for v in data]
|
|
688
|
-
if isinstance(data, dict):
|
|
689
|
-
return {k: self._ExpandVariables(data[k], substitutions) for k in data}
|
|
690
|
-
return data
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
def NextGreaterPowerOf2(x):
|
|
694
|
-
return 2 ** (x).bit_length()
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
def WriteHmap(output_name, filelist):
|
|
698
|
-
"""Generates a header map based on |filelist|.
|
|
699
|
-
|
|
700
|
-
Per Mark Mentovai:
|
|
701
|
-
A header map is structured essentially as a hash table, keyed by names used
|
|
702
|
-
in #includes, and providing pathnames to the actual files.
|
|
703
|
-
|
|
704
|
-
The implementation below and the comment above comes from inspecting:
|
|
705
|
-
http://www.opensource.apple.com/source/distcc/distcc-2503/distcc_dist/include_server/headermap.py?txt
|
|
706
|
-
while also looking at the implementation in clang in:
|
|
707
|
-
https://llvm.org/svn/llvm-project/cfe/trunk/lib/Lex/HeaderMap.cpp
|
|
708
|
-
"""
|
|
709
|
-
magic = 1751998832
|
|
710
|
-
version = 1
|
|
711
|
-
_reserved = 0
|
|
712
|
-
count = len(filelist)
|
|
713
|
-
capacity = NextGreaterPowerOf2(count)
|
|
714
|
-
strings_offset = 24 + (12 * capacity)
|
|
715
|
-
max_value_length = max(len(value) for value in filelist.values())
|
|
716
|
-
|
|
717
|
-
out = open(output_name, "wb")
|
|
718
|
-
out.write(
|
|
719
|
-
struct.pack(
|
|
720
|
-
"<LHHLLLL",
|
|
721
|
-
magic,
|
|
722
|
-
version,
|
|
723
|
-
_reserved,
|
|
724
|
-
strings_offset,
|
|
725
|
-
count,
|
|
726
|
-
capacity,
|
|
727
|
-
max_value_length,
|
|
728
|
-
)
|
|
729
|
-
)
|
|
730
|
-
|
|
731
|
-
# Create empty hashmap buckets.
|
|
732
|
-
buckets = [None] * capacity
|
|
733
|
-
for file, path in filelist.items():
|
|
734
|
-
key = 0
|
|
735
|
-
for c in file:
|
|
736
|
-
key += ord(c.lower()) * 13
|
|
737
|
-
|
|
738
|
-
# Fill next empty bucket.
|
|
739
|
-
while buckets[key & capacity - 1] is not None:
|
|
740
|
-
key = key + 1
|
|
741
|
-
buckets[key & capacity - 1] = (file, path)
|
|
742
|
-
|
|
743
|
-
next_offset = 1
|
|
744
|
-
for bucket in buckets:
|
|
745
|
-
if bucket is None:
|
|
746
|
-
out.write(struct.pack("<LLL", 0, 0, 0))
|
|
747
|
-
else:
|
|
748
|
-
(file, path) = bucket
|
|
749
|
-
key_offset = next_offset
|
|
750
|
-
prefix_offset = key_offset + len(file) + 1
|
|
751
|
-
suffix_offset = prefix_offset + len(os.path.dirname(path) + os.sep) + 1
|
|
752
|
-
next_offset = suffix_offset + len(os.path.basename(path)) + 1
|
|
753
|
-
out.write(struct.pack("<LLL", key_offset, prefix_offset, suffix_offset))
|
|
754
|
-
|
|
755
|
-
# Pad byte since next offset starts at 1.
|
|
756
|
-
out.write(struct.pack("<x"))
|
|
757
|
-
|
|
758
|
-
for bucket in buckets:
|
|
759
|
-
if bucket is not None:
|
|
760
|
-
(file, path) = bucket
|
|
761
|
-
out.write(struct.pack("<%ds" % len(file), file))
|
|
762
|
-
out.write(struct.pack("<s", "\0"))
|
|
763
|
-
base = os.path.dirname(path) + os.sep
|
|
764
|
-
out.write(struct.pack("<%ds" % len(base), base))
|
|
765
|
-
out.write(struct.pack("<s", "\0"))
|
|
766
|
-
path = os.path.basename(path)
|
|
767
|
-
out.write(struct.pack("<%ds" % len(path), path))
|
|
768
|
-
out.write(struct.pack("<s", "\0"))
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
if __name__ == "__main__":
|
|
772
|
-
sys.exit(main(sys.argv[1:]))
|