@solana/instructions 2.0.0-experimental.fc4e943 → 2.0.0-experimental.fcff844
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/dist/types/accounts.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Address } from '@solana/addresses';
|
|
2
2
|
import { AccountRole } from './roles';
|
|
3
3
|
export interface IAccountMeta<TAddress extends string = string> {
|
|
4
|
-
readonly address:
|
|
4
|
+
readonly address: Address<TAddress>;
|
|
5
5
|
readonly role: AccountRole;
|
|
6
6
|
}
|
|
7
7
|
export type ReadonlyAccount<TAddress extends string = string> = IAccountMeta<TAddress> & {
|
|
@@ -17,9 +17,9 @@ export type WritableSignerAccount<TAddress extends string = string> = IAccountMe
|
|
|
17
17
|
role: AccountRole.WRITABLE_SIGNER;
|
|
18
18
|
};
|
|
19
19
|
export interface IAccountLookupMeta<TAddress extends string = string, TLookupTableAddress extends string = string> {
|
|
20
|
-
readonly address:
|
|
20
|
+
readonly address: Address<TAddress>;
|
|
21
21
|
readonly addressIndex: number;
|
|
22
|
-
readonly lookupTableAddress:
|
|
22
|
+
readonly lookupTableAddress: Address<TLookupTableAddress>;
|
|
23
23
|
readonly role: AccountRole.READONLY | AccountRole.WRITABLE;
|
|
24
24
|
}
|
|
25
25
|
export type ReadonlyAccountLookup<TAddress extends string = string, TLookupTableAddress extends string = string> = IAccountLookupMeta<TAddress, TLookupTableAddress> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE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M,EAChC,mBAAmB,SAAS,MAAM,GAAG,MAAM,IAC3C,kBAAkB,CAAC,QAAQ,EAAE,mBAAmB,CAAC,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAA;CAAE,CAAC;AAChG,MAAM,MAAM,qBAAqB,CAC7B,QAAQ,SAAS,MAAM,GAAG,MAAM,EAChC,mBAAmB,SAAS,MAAM,GAAG,MAAM,IAC3C,kBAAkB,CAAC,QAAQ,EAAE,mBAAmB,CAAC,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAA;CAAE,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Address } from '@solana/addresses';
|
|
2
2
|
import { IAccountLookupMeta, IAccountMeta } from './accounts';
|
|
3
|
-
export interface IInstruction<TProgramAddress extends string = string> {
|
|
4
|
-
readonly accounts?:
|
|
3
|
+
export interface IInstruction<TProgramAddress extends string = string, TAccounts extends readonly (IAccountMeta | IAccountLookupMeta)[] = readonly (IAccountMeta | IAccountLookupMeta)[]> {
|
|
4
|
+
readonly accounts?: TAccounts;
|
|
5
5
|
readonly data?: Uint8Array;
|
|
6
|
-
readonly programAddress:
|
|
6
|
+
readonly programAddress: Address<TProgramAddress>;
|
|
7
7
|
}
|
|
8
8
|
export interface IInstructionWithAccounts<TAccounts extends readonly (IAccountMeta | IAccountLookupMeta)[]> extends IInstruction {
|
|
9
9
|
readonly accounts: TAccounts;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instruction.d.ts","sourceRoot":"","sources":["../../src/instruction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"instruction.d.ts","sourceRoot":"","sources":["../../src/instruction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE9D,MAAM,WAAW,YAAY,CACzB,eAAe,SAAS,MAAM,GAAG,MAAM,EACvC,SAAS,SAAS,SAAS,CAAC,YAAY,GAAG,kBAAkB,CAAC,EAAE,GAAG,SAAS,CAAC,YAAY,GAAG,kBAAkB,CAAC,EAAE;IAEjH,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;CACrD;AAED,MAAM,WAAW,wBAAwB,CAAC,SAAS,SAAS,SAAS,CAAC,YAAY,GAAG,kBAAkB,CAAC,EAAE,CACtG,SAAQ,YAAY;IACpB,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;CAChC;AAED,MAAM,WAAW,oBAAoB,CAAC,KAAK,SAAS,UAAU,CAAE,SAAQ,YAAY;IAChF,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC;CACxB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/instructions",
|
|
3
|
-
"version": "2.0.0-experimental.
|
|
3
|
+
"version": "2.0.0-experimental.fcff844",
|
|
4
4
|
"description": "Helpers for creating transaction instructions",
|
|
5
5
|
"exports": {
|
|
6
6
|
"browser": {
|
|
@@ -47,21 +47,21 @@
|
|
|
47
47
|
],
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@solana/eslint-config-solana": "^1.0.2",
|
|
50
|
-
"@swc/jest": "^0.2.
|
|
51
|
-
"@types/jest": "^29.5.
|
|
50
|
+
"@swc/jest": "^0.2.29",
|
|
51
|
+
"@types/jest": "^29.5.6",
|
|
52
52
|
"@typescript-eslint/eslint-plugin": "^6.7.0",
|
|
53
53
|
"@typescript-eslint/parser": "^6.3.0",
|
|
54
54
|
"agadoo": "^3.0.0",
|
|
55
55
|
"eslint": "^8.45.0",
|
|
56
56
|
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
57
57
|
"jest": "^29.7.0",
|
|
58
|
-
"jest-runner-eslint": "^2.1.
|
|
58
|
+
"jest-runner-eslint": "^2.1.2",
|
|
59
59
|
"jest-runner-prettier": "^1.0.0",
|
|
60
|
-
"prettier": "^
|
|
61
|
-
"tsup": "
|
|
60
|
+
"prettier": "^3.1",
|
|
61
|
+
"tsup": "^8.0.1",
|
|
62
62
|
"typescript": "^5.2.2",
|
|
63
63
|
"version-from-git": "^1.1.1",
|
|
64
|
-
"@solana/addresses": "2.0.0-experimental.
|
|
64
|
+
"@solana/addresses": "2.0.0-experimental.fcff844",
|
|
65
65
|
"build-scripts": "0.0.0",
|
|
66
66
|
"test-config": "0.0.0",
|
|
67
67
|
"tsconfig": "0.0.0"
|