@solana/rpc-types
Advanced tools
Comparing version 2.0.0-preview.4 to 2.0.0-preview.4.20240730223910.ce0933a9fc71c65f57d24eed219c71a9f02e8bf2
@@ -1,2 +0,3 @@ | ||
import { FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder } from '@solana/codecs-core'; | ||
import { Codec, Decoder, Encoder, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder } from '@solana/codecs-core'; | ||
import { NumberCodec, NumberDecoder, NumberEncoder } from '@solana/codecs-numbers'; | ||
export type LamportsUnsafeBeyond2Pow53Minus1 = bigint & { | ||
@@ -8,5 +9,10 @@ readonly __brand: unique symbol; | ||
export declare function lamports(putativeLamports: bigint): LamportsUnsafeBeyond2Pow53Minus1; | ||
export declare function getLamportsEncoder(): FixedSizeEncoder<LamportsUnsafeBeyond2Pow53Minus1, 8>; | ||
export declare function getLamportsDecoder(): FixedSizeDecoder<LamportsUnsafeBeyond2Pow53Minus1, 8>; | ||
export declare function getLamportsCodec(): FixedSizeCodec<LamportsUnsafeBeyond2Pow53Minus1, LamportsUnsafeBeyond2Pow53Minus1, 8>; | ||
type ExtractAdditionalProps<T, U> = Omit<T, keyof U>; | ||
export declare function getDefaultLamportsEncoder(): FixedSizeEncoder<LamportsUnsafeBeyond2Pow53Minus1, 8>; | ||
export declare function getLamportsEncoder<TEncoder extends NumberEncoder>(innerEncoder: TEncoder): Encoder<LamportsUnsafeBeyond2Pow53Minus1> & ExtractAdditionalProps<TEncoder, NumberEncoder>; | ||
export declare function getDefaultLamportsDecoder(): FixedSizeDecoder<LamportsUnsafeBeyond2Pow53Minus1, 8>; | ||
export declare function getLamportsDecoder<TDecoder extends NumberDecoder>(innerDecoder: TDecoder): Decoder<LamportsUnsafeBeyond2Pow53Minus1> & ExtractAdditionalProps<TDecoder, NumberDecoder>; | ||
export declare function getDefaultLamportsCodec(): FixedSizeCodec<LamportsUnsafeBeyond2Pow53Minus1, LamportsUnsafeBeyond2Pow53Minus1, 8>; | ||
export declare function getLamportsCodec<TCodec extends NumberCodec>(innerCodec: TCodec): Codec<LamportsUnsafeBeyond2Pow53Minus1, LamportsUnsafeBeyond2Pow53Minus1> & ExtractAdditionalProps<TCodec, NumberCodec>; | ||
export {}; | ||
//# sourceMappingURL=lamports.d.ts.map |
{ | ||
"name": "@solana/rpc-types", | ||
"version": "2.0.0-preview.4", | ||
"version": "2.0.0-preview.4.20240730223910.ce0933a9fc71c65f57d24eed219c71a9f02e8bf2", | ||
"description": "Type definitions for values used in the Solana RPC, and helper functions for working with them", | ||
@@ -49,7 +49,7 @@ "exports": { | ||
"dependencies": { | ||
"@solana/addresses": "2.0.0-preview.4", | ||
"@solana/codecs-core": "2.0.0-preview.4", | ||
"@solana/codecs-numbers": "2.0.0-preview.4", | ||
"@solana/codecs-strings": "2.0.0-preview.4", | ||
"@solana/errors": "2.0.0-preview.4" | ||
"@solana/addresses": "2.0.0-preview.4.20240730223910.ce0933a9fc71c65f57d24eed219c71a9f02e8bf2", | ||
"@solana/codecs-core": "2.0.0-preview.4.20240730223910.ce0933a9fc71c65f57d24eed219c71a9f02e8bf2", | ||
"@solana/codecs-numbers": "2.0.0-preview.4.20240730223910.ce0933a9fc71c65f57d24eed219c71a9f02e8bf2", | ||
"@solana/codecs-strings": "2.0.0-preview.4.20240730223910.ce0933a9fc71c65f57d24eed219c71a9f02e8bf2", | ||
"@solana/errors": "2.0.0-preview.4.20240730223910.ce0933a9fc71c65f57d24eed219c71a9f02e8bf2" | ||
}, | ||
@@ -74,4 +74,4 @@ "peerDependencies": { | ||
"style:fix": "pnpm eslint --fix src/* && pnpm prettier --log-level warn --ignore-unknown --write ./*", | ||
"test:lint": "jest -c ../../node_modules/@solana/test-config/jest-lint.config.ts --rootDir . --silent", | ||
"test:prettier": "jest -c ../../node_modules/@solana/test-config/jest-prettier.config.ts --rootDir . --silent", | ||
"test:lint": "TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-lint.config.ts --rootDir . --silent", | ||
"test:prettier": "TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-prettier.config.ts --rootDir . --silent", | ||
"test:treeshakability:browser": "agadoo dist/index.browser.mjs", | ||
@@ -81,5 +81,5 @@ "test:treeshakability:native": "agadoo dist/index.native.mjs", | ||
"test:typecheck": "tsc --noEmit", | ||
"test:unit:browser": "jest -c ../../node_modules/@solana/test-config/jest-unit.config.browser.ts --globalSetup @solana/test-config/test-validator-setup.js --globalTeardown @solana/test-config/test-validator-teardown.js --rootDir . --silent", | ||
"test:unit:node": "jest -c ../../node_modules/@solana/test-config/jest-unit.config.node.ts --globalSetup @solana/test-config/test-validator-setup.js --globalTeardown @solana/test-config/test-validator-teardown.js --rootDir . --silent" | ||
"test:unit:browser": "TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-unit.config.browser.ts --globalSetup @solana/test-config/test-validator-setup.js --globalTeardown @solana/test-config/test-validator-teardown.js --rootDir . --silent", | ||
"test:unit:node": "TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@solana/test-config/jest-unit.config.node.ts --globalSetup @solana/test-config/test-validator-setup.js --globalTeardown @solana/test-config/test-validator-teardown.js --rootDir . --silent" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
175846
1555
+ Added@solana/addresses@2.0.0-preview.4.20240730223910.ce0933a9fc71c65f57d24eed219c71a9f02e8bf2(transitive)
+ Added@solana/assertions@2.0.0-preview.4.20240730223910.ce0933a9fc71c65f57d24eed219c71a9f02e8bf2(transitive)
+ Added@solana/codecs-core@2.0.0-preview.4.20240730223910.ce0933a9fc71c65f57d24eed219c71a9f02e8bf2(transitive)
+ Added@solana/codecs-numbers@2.0.0-preview.4.20240730223910.ce0933a9fc71c65f57d24eed219c71a9f02e8bf2(transitive)
+ Added@solana/codecs-strings@2.0.0-preview.4.20240730223910.ce0933a9fc71c65f57d24eed219c71a9f02e8bf2(transitive)
+ Added@solana/errors@2.0.0-preview.4.20240730223910.ce0933a9fc71c65f57d24eed219c71a9f02e8bf2(transitive)
- Removed@solana/addresses@2.0.0-preview.4(transitive)
- Removed@solana/assertions@2.0.0-preview.4(transitive)
- Removed@solana/codecs-core@2.0.0-preview.4(transitive)
- Removed@solana/codecs-numbers@2.0.0-preview.4(transitive)
- Removed@solana/codecs-strings@2.0.0-preview.4(transitive)
- Removed@solana/errors@2.0.0-preview.4(transitive)
Updated@solana/addresses@2.0.0-preview.4.20240730223910.ce0933a9fc71c65f57d24eed219c71a9f02e8bf2
Updated@solana/codecs-core@2.0.0-preview.4.20240730223910.ce0933a9fc71c65f57d24eed219c71a9f02e8bf2
Updated@solana/codecs-numbers@2.0.0-preview.4.20240730223910.ce0933a9fc71c65f57d24eed219c71a9f02e8bf2
Updated@solana/codecs-strings@2.0.0-preview.4.20240730223910.ce0933a9fc71c65f57d24eed219c71a9f02e8bf2
Updated@solana/errors@2.0.0-preview.4.20240730223910.ce0933a9fc71c65f57d24eed219c71a9f02e8bf2