Socket
Socket
Sign inDemoInstall

@solana/rpc-types

Package Overview
Dependencies
Maintainers
14
Versions
969
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solana/rpc-types - npm Package Compare versions

Comparing version 2.0.0-preview.4 to 2.0.0-preview.4.20240730223910.ce0933a9fc71c65f57d24eed219c71a9f02e8bf2

14

dist/types/lamports.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc