@revibase/core 0.7.2 → 0.7.4
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 +10 -12
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +88 -42
- package/dist/index.d.ts +88 -42
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ Create one or more user accounts. Each user is identified by a member key (e.g.
|
|
|
28
28
|
|
|
29
29
|
```ts
|
|
30
30
|
import { createUserAccounts, UserRole } from "@revibase/core";
|
|
31
|
-
import type { TransactionSigner } from "
|
|
31
|
+
import type { TransactionSigner } from "@solana/kit";
|
|
32
32
|
|
|
33
33
|
declare const payer: TransactionSigner;
|
|
34
34
|
declare const memberSigner: TransactionSigner;
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
getGlobalCounterAddress,
|
|
55
55
|
getSolanaRpc,
|
|
56
56
|
} from "@revibase/core";
|
|
57
|
-
import type { TransactionSigner } from "
|
|
57
|
+
import type { TransactionSigner } from "@solana/kit";
|
|
58
58
|
|
|
59
59
|
declare const payer: TransactionSigner;
|
|
60
60
|
declare const memberSigner: TransactionSigner;
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
getUserAddress,
|
|
103
103
|
getWalletAddressFromSettings,
|
|
104
104
|
} from "@revibase/core";
|
|
105
|
-
import type { TransactionSigner } from "
|
|
105
|
+
import type { TransactionSigner } from "@solana/kit";
|
|
106
106
|
|
|
107
107
|
declare const memberSigner: TransactionSigner;
|
|
108
108
|
|
|
@@ -132,7 +132,7 @@ import {
|
|
|
132
132
|
nativeTransferIntent,
|
|
133
133
|
retrieveTransactionManager,
|
|
134
134
|
} from "@revibase/core";
|
|
135
|
-
import type { TransactionSigner } from "
|
|
135
|
+
import type { TransactionSigner } from "@solana/kit";
|
|
136
136
|
|
|
137
137
|
declare const payer: TransactionSigner;
|
|
138
138
|
declare const memberSigner: TransactionSigner;
|
|
@@ -183,8 +183,8 @@ import {
|
|
|
183
183
|
retrieveTransactionManager,
|
|
184
184
|
tokenTransferIntent,
|
|
185
185
|
} from "@revibase/core";
|
|
186
|
-
import type { Address, TransactionSigner } from "
|
|
187
|
-
import { TOKEN_2022_PROGRAM_ADDRESS } from "
|
|
186
|
+
import type { Address, TransactionSigner } from "@solana/kit";
|
|
187
|
+
import { TOKEN_2022_PROGRAM_ADDRESS } from "@solana-program/token-2022";
|
|
188
188
|
|
|
189
189
|
declare const payer: TransactionSigner;
|
|
190
190
|
declare const memberSigner: TransactionSigner;
|
|
@@ -234,8 +234,6 @@ const instructions = await tokenTransferIntent({
|
|
|
234
234
|
- **Small tx size** → **sync**: `prepareTransactionMessage` → `prepareTransactionSync` → send
|
|
235
235
|
- **Larger tx size** → **chunked bundle**: `prepareTransactionMessage` → `prepareTransactionBundle` → send the returned transactions in order
|
|
236
236
|
|
|
237
|
-
In both cases, use `getSendAndConfirmTransaction()` (after `initialize()`) or your own Gill client to send.
|
|
238
|
-
|
|
239
237
|
Prerequisite: `settings`, `walletAddress`, and `settingsAccount` from [Resolve delegated wallet settings](#1-resolve-delegated-wallet-settings).
|
|
240
238
|
|
|
241
239
|
### Sync: prepareTransactionSync
|
|
@@ -256,8 +254,8 @@ import {
|
|
|
256
254
|
type Address,
|
|
257
255
|
type AddressesByLookupTableAddress,
|
|
258
256
|
type TransactionSigner,
|
|
259
|
-
} from "
|
|
260
|
-
import { getTransferSolInstruction } from "
|
|
257
|
+
} from "@solana/kit";
|
|
258
|
+
import { getTransferSolInstruction } from "@solana-program/system";
|
|
261
259
|
|
|
262
260
|
declare const destination: Address;
|
|
263
261
|
declare const payer: TransactionSigner;
|
|
@@ -337,8 +335,8 @@ import {
|
|
|
337
335
|
type Address,
|
|
338
336
|
type AddressesByLookupTableAddress,
|
|
339
337
|
type TransactionSigner,
|
|
340
|
-
} from "
|
|
341
|
-
import { getTransferSolInstruction } from "
|
|
338
|
+
} from "@solana/kit";
|
|
339
|
+
import { getTransferSolInstruction } from "@solana-program/system";
|
|
342
340
|
|
|
343
341
|
declare const destination: Address;
|
|
344
342
|
declare const payer: TransactionSigner;
|