@solana/web3.js 1.50.1 → 1.53.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/README.md +4 -0
- package/lib/index.browser.cjs.js +2903 -2809
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +2903 -2810
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +2903 -2809
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +870 -831
- package/lib/index.esm.js +2903 -2810
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +3631 -3537
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +3 -3
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +2905 -2811
- package/lib/index.native.js.map +1 -1
- package/package.json +2 -2
- package/src/account-data.ts +39 -0
- package/src/account.ts +1 -1
- package/src/connection.ts +56 -8
- package/src/fee-calculator.ts +2 -0
- package/src/index.ts +3 -14
- package/src/loader.ts +4 -5
- package/src/message/index.ts +32 -0
- package/src/{message.ts → message/legacy.ts} +7 -37
- package/src/nonce-account.ts +1 -1
- package/src/{address-lookup-table-program.ts → programs/address-lookup-table/index.ts} +8 -6
- package/src/programs/address-lookup-table/state.ts +84 -0
- package/src/{compute-budget.ts → programs/compute-budget.ts} +4 -4
- package/src/{ed25519-program.ts → programs/ed25519.ts} +4 -4
- package/src/programs/index.ts +7 -0
- package/src/{secp256k1-program.ts → programs/secp256k1.ts} +4 -4
- package/src/{stake-program.ts → programs/stake.ts} +7 -7
- package/src/{system-program.ts → programs/system.ts} +8 -8
- package/src/{vote-program.ts → programs/vote.ts} +7 -7
- package/src/publickey.ts +2 -2
- package/src/{transaction-constants.ts → transaction/constants.ts} +0 -0
- package/src/{util/tx-expiry-custom-errors.ts → transaction/expiry-custom-errors.ts} +0 -0
- package/src/transaction/index.ts +3 -0
- package/src/{transaction.ts → transaction/legacy.ts} +10 -13
- package/src/{util → utils}/__forks__/react-native/url-impl.ts +0 -0
- package/src/{util → utils}/assert.ts +0 -0
- package/src/{util → utils}/bigint.ts +0 -0
- package/src/{util → utils}/borsh-schema.ts +0 -0
- package/src/{util → utils}/cluster.ts +0 -0
- package/src/utils/index.ts +4 -0
- package/src/{util → utils}/makeWebsocketUrl.ts +0 -0
- package/src/{util → utils}/promise-timeout.ts +0 -0
- package/src/{util → utils}/send-and-confirm-raw-transaction.ts +0 -0
- package/src/{util → utils}/send-and-confirm-transaction.ts +0 -0
- package/src/{util → utils}/shortvec-encoding.ts +0 -0
- package/src/{util → utils}/sleep.ts +0 -0
- package/src/{util → utils}/to-buffer.ts +0 -0
- package/src/{util → utils}/url-impl.ts +0 -0
- package/src/validator-info.ts +1 -1
- package/src/vote-account.ts +1 -1
|
@@ -2,19 +2,16 @@ import nacl from 'tweetnacl';
|
|
|
2
2
|
import bs58 from 'bs58';
|
|
3
3
|
import {Buffer} from 'buffer';
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from '
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import type {Signer} from './keypair';
|
|
16
|
-
import type {Blockhash} from './blockhash';
|
|
17
|
-
import type {CompiledInstruction} from './message';
|
|
5
|
+
import {PACKET_DATA_SIZE, SIGNATURE_LENGTH_IN_BYTES} from './constants';
|
|
6
|
+
import {Connection} from '../connection';
|
|
7
|
+
import {Message} from '../message';
|
|
8
|
+
import {PublicKey} from '../publickey';
|
|
9
|
+
import * as shortvec from '../utils/shortvec-encoding';
|
|
10
|
+
import {toBuffer} from '../utils/to-buffer';
|
|
11
|
+
import invariant from '../utils/assert';
|
|
12
|
+
import type {Signer} from '../keypair';
|
|
13
|
+
import type {Blockhash} from '../blockhash';
|
|
14
|
+
import type {CompiledInstruction} from '../message';
|
|
18
15
|
|
|
19
16
|
/**
|
|
20
17
|
* Transaction signature as base-58 encoded string
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/validator-info.ts
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from 'superstruct';
|
|
8
8
|
|
|
9
9
|
import * as Layout from './layout';
|
|
10
|
-
import * as shortvec from './
|
|
10
|
+
import * as shortvec from './utils/shortvec-encoding';
|
|
11
11
|
import {PublicKey} from './publickey';
|
|
12
12
|
|
|
13
13
|
export const VALIDATOR_INFO_KEY = new PublicKey(
|
package/src/vote-account.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type {Buffer} from 'buffer';
|
|
|
3
3
|
|
|
4
4
|
import * as Layout from './layout';
|
|
5
5
|
import {PublicKey} from './publickey';
|
|
6
|
-
import {toBuffer} from './
|
|
6
|
+
import {toBuffer} from './utils/to-buffer';
|
|
7
7
|
|
|
8
8
|
export const VOTE_PROGRAM_ID = new PublicKey(
|
|
9
9
|
'Vote111111111111111111111111111111111111111',
|