Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@solana/rpc-types

Package Overview
Dependencies
Maintainers
14
Versions
1054
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-canary-20240827200741 to 2.0.0-canary-20240827201010

8

dist/types/unix-timestamp.d.ts

@@ -1,7 +0,7 @@

export type UnixTimestamp = bigint & {
export type UnixTimestampUnsafeBeyond2Pow53Minus1 = bigint & {
readonly __brand: unique symbol;
};
export declare function isUnixTimestamp(putativeTimestamp: bigint): putativeTimestamp is UnixTimestamp;
export declare function assertIsUnixTimestamp(putativeTimestamp: bigint): asserts putativeTimestamp is UnixTimestamp;
export declare function unixTimestamp(putativeTimestamp: bigint): UnixTimestamp;
export declare function isUnixTimestamp(putativeTimestamp: bigint): putativeTimestamp is UnixTimestampUnsafeBeyond2Pow53Minus1;
export declare function assertIsUnixTimestamp(putativeTimestamp: bigint): asserts putativeTimestamp is UnixTimestampUnsafeBeyond2Pow53Minus1;
export declare function unixTimestamp(putativeTimestamp: bigint): UnixTimestampUnsafeBeyond2Pow53Minus1;
//# sourceMappingURL=unix-timestamp.d.ts.map
{
"name": "@solana/rpc-types",
"version": "2.0.0-canary-20240827200741",
"version": "2.0.0-canary-20240827201010",
"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-canary-20240827200741",
"@solana/codecs-core": "2.0.0-canary-20240827200741",
"@solana/codecs-numbers": "2.0.0-canary-20240827200741",
"@solana/errors": "2.0.0-canary-20240827200741",
"@solana/codecs-strings": "2.0.0-canary-20240827200741"
"@solana/addresses": "2.0.0-canary-20240827201010",
"@solana/codecs-core": "2.0.0-canary-20240827201010",
"@solana/codecs-numbers": "2.0.0-canary-20240827201010",
"@solana/errors": "2.0.0-canary-20240827201010",
"@solana/codecs-strings": "2.0.0-canary-20240827201010"
},

@@ -56,0 +56,0 @@ "peerDependencies": {

@@ -39,3 +39,3 @@ [![npm][npm-image]][npm-url]

### `UnixTimestamp`
### `UnixTimestampUnsafeBeyond2Pow53Minus1`

@@ -89,5 +89,5 @@ This type represents a number in the range $[-8.64 \times 10^{15}, 8.64 \times 10^{15}]$. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#the_epoch_timestamps_and_invalid_date

Timestamps returned from the RPC API conform to the type `UnixTimestamp`.
Timestamps returned from the RPC API conform to the type `UnixTimestampUnsafeBeyond2Pow53Minus1`.
From time to time you might acquire a number that you suspect might validate as a `UnixTimestamp`, from an untrusted network API or user input. To assert that such an arbitrary number is usable as a `UnixTimestamp`, use the `assertIsUnixTimestamp` function.
From time to time you might acquire a number that you suspect might validate as a `UnixTimestampUnsafeBeyond2Pow53Minus1`, from an untrusted network API or user input. To assert that such an arbitrary number is usable as a `UnixTimestampUnsafeBeyond2Pow53Minus1`, use the `assertIsUnixTimestamp` function.

@@ -160,2 +160,2 @@ See [`assertIsLamports()`](#assertislamports) for an example of how to use an assertion function.

This helper combines _asserting_ that a number is in the Unix timestamp range with _coercing_ it to the `UnixTimestamp` type. It's best used with untrusted input.
This helper combines _asserting_ that a number is in the Unix timestamp range with _coercing_ it to the `UnixTimestampUnsafeBeyond2Pow53Minus1` type. It's best used with untrusted input.

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