solana-messenger-sdk 0.8.0 → 1.0.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 CHANGED
@@ -5,7 +5,8 @@
5
5
 
6
6
  TypeScript SDK for **solana-messenger** — encrypted agent-to-agent messaging on Solana.
7
7
 
8
- **Program:** `msg1jhfewu1hGDnQKGhXDmqas6JZTq7Lg7PbSX5jY9y` ([mainnet](https://solscan.io/account/msg1jhfewu1hGDnQKGhXDmqas6JZTq7Lg7PbSX5jY9y))
8
+ **Program (mainnet):** `msg1jhfewu1hGDnQKGhXDmqas6JZTq7Lg7PbSX5jY9y` ([solscan](https://solscan.io/account/msg1jhfewu1hGDnQKGhXDmqas6JZTq7Lg7PbSX5jY9y))
9
+ **Program (devnet):** `GfmUqbubmwFbZSscdnJotpCd41QxGyFFJ7kgQuoQaEAC`
9
10
 
10
11
  ## Install
11
12
 
package/dist/index.d.ts CHANGED
@@ -1,10 +1,11 @@
1
- export { buildSendMessageInstruction, buildRegisterInstruction, buildUpdateEncryptionKeyInstruction, buildDeregisterInstruction, buildSetMinFeeInstruction, buildInitializeConfigInstruction, buildUpdateConfigInstruction, buildMigrateRegistryInstruction, buildCreateGroupInstruction, buildUpdateGroupInstruction, buildSendGroupMessageInstruction, buildCloseGroupInstruction, } from "./instructions";
2
- export { deriveRegistryPda, deriveConfigPda, deriveGroupPda } from "./pda";
1
+ export { buildInitializeConfigInstruction, buildUpdateConfigInstruction, buildRegisterInstruction, buildUpdateEncryptionKeyInstruction, buildDeregisterInstruction, buildSetMinFeeInstruction, buildSendMessageInstruction, buildCreateServerInstruction, buildJoinServerInstruction, buildRemoveServerMemberInstruction, buildLeaveServerInstruction, buildUpdateServerInstruction, buildCloseServerInstruction, buildCreateChannelInstruction, buildSendChannelMessageInstruction, buildAddChannelMembersInstruction, buildRemoveChannelMembersInstruction, buildCloseChannelInstruction, } from "./instructions";
2
+ export { deriveConfigPda, deriveRegistryPda, deriveServerPda, deriveServerMemberPda, deriveChannelPda, deriveChannelMemberPda, } from "./pda";
3
3
  export { lookupEncryptionKey } from "./registry";
4
4
  export { loadOrGenerateEncryptionKeypair } from "./keys";
5
5
  export { convertEd25519ToX25519, encrypt, decrypt, decryptRaw, encodeMessage, decodeMessage, } from "./crypto";
6
6
  export { parseMessageSentEvents } from "./events";
7
- export type { EncryptedPayload, DecodedMessage, MessageSentEvent, Message, } from "./types";
7
+ export type { EncryptedPayload, DecodedMessage, MessageSentEvent, ChannelMessageSentEvent, Message, ChannelMessage, KeyWrap, ServerInfo, ChannelInfo, } from "./types";
8
+ export { ChannelType, Role } from "./types";
8
9
  export { SolanaMessenger } from "./messenger";
9
10
  export type { SolanaMessengerConfig, SelfCustodyConfig, ExternalSignerConfig, ExternalSignerFn, } from "./messenger";
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,EACxB,mCAAmC,EACnC,0BAA0B,EAC1B,yBAAyB,EACzB,gCAAgC,EAChC,4BAA4B,EAC5B,+BAA+B,EAC/B,2BAA2B,EAC3B,2BAA2B,EAC3B,gCAAgC,EAChC,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGjD,OAAO,EAAE,+BAA+B,EAAE,MAAM,QAAQ,CAAC;AAGzD,OAAO,EACL,sBAAsB,EACtB,OAAO,EACP,OAAO,EACP,UAAU,EACV,aAAa,EACb,aAAa,GACd,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAGlD,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,OAAO,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pB,gBAAgB,GACjB,MAAM,aAAa,CAAC"}
package/dist/index.js CHANGED
@@ -1,25 +1,39 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SolanaMessenger = exports.parseMessageSentEvents = exports.decodeMessage = exports.encodeMessage = exports.decryptRaw = exports.decrypt = exports.encrypt = exports.convertEd25519ToX25519 = exports.loadOrGenerateEncryptionKeypair = exports.lookupEncryptionKey = exports.deriveGroupPda = exports.deriveConfigPda = exports.deriveRegistryPda = exports.buildCloseGroupInstruction = exports.buildSendGroupMessageInstruction = exports.buildUpdateGroupInstruction = exports.buildCreateGroupInstruction = exports.buildMigrateRegistryInstruction = exports.buildUpdateConfigInstruction = exports.buildInitializeConfigInstruction = exports.buildSetMinFeeInstruction = exports.buildDeregisterInstruction = exports.buildUpdateEncryptionKeyInstruction = exports.buildRegisterInstruction = exports.buildSendMessageInstruction = void 0;
4
- // Instruction builders (core — use these for custom signing)
3
+ exports.SolanaMessenger = exports.Role = exports.ChannelType = exports.parseMessageSentEvents = exports.decodeMessage = exports.encodeMessage = exports.decryptRaw = exports.decrypt = exports.encrypt = exports.convertEd25519ToX25519 = exports.loadOrGenerateEncryptionKeypair = exports.lookupEncryptionKey = exports.deriveChannelMemberPda = exports.deriveChannelPda = exports.deriveServerMemberPda = exports.deriveServerPda = exports.deriveRegistryPda = exports.deriveConfigPda = exports.buildCloseChannelInstruction = exports.buildRemoveChannelMembersInstruction = exports.buildAddChannelMembersInstruction = exports.buildSendChannelMessageInstruction = exports.buildCreateChannelInstruction = exports.buildCloseServerInstruction = exports.buildUpdateServerInstruction = exports.buildLeaveServerInstruction = exports.buildRemoveServerMemberInstruction = exports.buildJoinServerInstruction = exports.buildCreateServerInstruction = exports.buildSendMessageInstruction = exports.buildSetMinFeeInstruction = exports.buildDeregisterInstruction = exports.buildUpdateEncryptionKeyInstruction = exports.buildRegisterInstruction = exports.buildUpdateConfigInstruction = exports.buildInitializeConfigInstruction = void 0;
4
+ // Instruction builders
5
5
  var instructions_1 = require("./instructions");
6
- Object.defineProperty(exports, "buildSendMessageInstruction", { enumerable: true, get: function () { return instructions_1.buildSendMessageInstruction; } });
6
+ // Platform
7
+ Object.defineProperty(exports, "buildInitializeConfigInstruction", { enumerable: true, get: function () { return instructions_1.buildInitializeConfigInstruction; } });
8
+ Object.defineProperty(exports, "buildUpdateConfigInstruction", { enumerable: true, get: function () { return instructions_1.buildUpdateConfigInstruction; } });
9
+ // Identity
7
10
  Object.defineProperty(exports, "buildRegisterInstruction", { enumerable: true, get: function () { return instructions_1.buildRegisterInstruction; } });
8
11
  Object.defineProperty(exports, "buildUpdateEncryptionKeyInstruction", { enumerable: true, get: function () { return instructions_1.buildUpdateEncryptionKeyInstruction; } });
9
12
  Object.defineProperty(exports, "buildDeregisterInstruction", { enumerable: true, get: function () { return instructions_1.buildDeregisterInstruction; } });
10
13
  Object.defineProperty(exports, "buildSetMinFeeInstruction", { enumerable: true, get: function () { return instructions_1.buildSetMinFeeInstruction; } });
11
- Object.defineProperty(exports, "buildInitializeConfigInstruction", { enumerable: true, get: function () { return instructions_1.buildInitializeConfigInstruction; } });
12
- Object.defineProperty(exports, "buildUpdateConfigInstruction", { enumerable: true, get: function () { return instructions_1.buildUpdateConfigInstruction; } });
13
- Object.defineProperty(exports, "buildMigrateRegistryInstruction", { enumerable: true, get: function () { return instructions_1.buildMigrateRegistryInstruction; } });
14
- Object.defineProperty(exports, "buildCreateGroupInstruction", { enumerable: true, get: function () { return instructions_1.buildCreateGroupInstruction; } });
15
- Object.defineProperty(exports, "buildUpdateGroupInstruction", { enumerable: true, get: function () { return instructions_1.buildUpdateGroupInstruction; } });
16
- Object.defineProperty(exports, "buildSendGroupMessageInstruction", { enumerable: true, get: function () { return instructions_1.buildSendGroupMessageInstruction; } });
17
- Object.defineProperty(exports, "buildCloseGroupInstruction", { enumerable: true, get: function () { return instructions_1.buildCloseGroupInstruction; } });
18
- // PDA
14
+ // DMs
15
+ Object.defineProperty(exports, "buildSendMessageInstruction", { enumerable: true, get: function () { return instructions_1.buildSendMessageInstruction; } });
16
+ // Servers
17
+ Object.defineProperty(exports, "buildCreateServerInstruction", { enumerable: true, get: function () { return instructions_1.buildCreateServerInstruction; } });
18
+ Object.defineProperty(exports, "buildJoinServerInstruction", { enumerable: true, get: function () { return instructions_1.buildJoinServerInstruction; } });
19
+ Object.defineProperty(exports, "buildRemoveServerMemberInstruction", { enumerable: true, get: function () { return instructions_1.buildRemoveServerMemberInstruction; } });
20
+ Object.defineProperty(exports, "buildLeaveServerInstruction", { enumerable: true, get: function () { return instructions_1.buildLeaveServerInstruction; } });
21
+ Object.defineProperty(exports, "buildUpdateServerInstruction", { enumerable: true, get: function () { return instructions_1.buildUpdateServerInstruction; } });
22
+ Object.defineProperty(exports, "buildCloseServerInstruction", { enumerable: true, get: function () { return instructions_1.buildCloseServerInstruction; } });
23
+ // Channels
24
+ Object.defineProperty(exports, "buildCreateChannelInstruction", { enumerable: true, get: function () { return instructions_1.buildCreateChannelInstruction; } });
25
+ Object.defineProperty(exports, "buildSendChannelMessageInstruction", { enumerable: true, get: function () { return instructions_1.buildSendChannelMessageInstruction; } });
26
+ Object.defineProperty(exports, "buildAddChannelMembersInstruction", { enumerable: true, get: function () { return instructions_1.buildAddChannelMembersInstruction; } });
27
+ Object.defineProperty(exports, "buildRemoveChannelMembersInstruction", { enumerable: true, get: function () { return instructions_1.buildRemoveChannelMembersInstruction; } });
28
+ Object.defineProperty(exports, "buildCloseChannelInstruction", { enumerable: true, get: function () { return instructions_1.buildCloseChannelInstruction; } });
29
+ // PDA derivation
19
30
  var pda_1 = require("./pda");
20
- Object.defineProperty(exports, "deriveRegistryPda", { enumerable: true, get: function () { return pda_1.deriveRegistryPda; } });
21
31
  Object.defineProperty(exports, "deriveConfigPda", { enumerable: true, get: function () { return pda_1.deriveConfigPda; } });
22
- Object.defineProperty(exports, "deriveGroupPda", { enumerable: true, get: function () { return pda_1.deriveGroupPda; } });
32
+ Object.defineProperty(exports, "deriveRegistryPda", { enumerable: true, get: function () { return pda_1.deriveRegistryPda; } });
33
+ Object.defineProperty(exports, "deriveServerPda", { enumerable: true, get: function () { return pda_1.deriveServerPda; } });
34
+ Object.defineProperty(exports, "deriveServerMemberPda", { enumerable: true, get: function () { return pda_1.deriveServerMemberPda; } });
35
+ Object.defineProperty(exports, "deriveChannelPda", { enumerable: true, get: function () { return pda_1.deriveChannelPda; } });
36
+ Object.defineProperty(exports, "deriveChannelMemberPda", { enumerable: true, get: function () { return pda_1.deriveChannelMemberPda; } });
23
37
  // Registry lookup
24
38
  var registry_1 = require("./registry");
25
39
  Object.defineProperty(exports, "lookupEncryptionKey", { enumerable: true, get: function () { return registry_1.lookupEncryptionKey; } });
@@ -37,6 +51,9 @@ Object.defineProperty(exports, "decodeMessage", { enumerable: true, get: functio
37
51
  // Events
38
52
  var events_1 = require("./events");
39
53
  Object.defineProperty(exports, "parseMessageSentEvents", { enumerable: true, get: function () { return events_1.parseMessageSentEvents; } });
54
+ var types_1 = require("./types");
55
+ Object.defineProperty(exports, "ChannelType", { enumerable: true, get: function () { return types_1.ChannelType; } });
56
+ Object.defineProperty(exports, "Role", { enumerable: true, get: function () { return types_1.Role; } });
40
57
  // Convenience class
41
58
  var messenger_1 = require("./messenger");
42
59
  Object.defineProperty(exports, "SolanaMessenger", { enumerable: true, get: function () { return messenger_1.SolanaMessenger; } });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,6DAA6D;AAC7D,+CAawB;AAZtB,2HAAA,2BAA2B,OAAA;AAC3B,wHAAA,wBAAwB,OAAA;AACxB,mIAAA,mCAAmC,OAAA;AACnC,0HAAA,0BAA0B,OAAA;AAC1B,yHAAA,yBAAyB,OAAA;AACzB,gIAAA,gCAAgC,OAAA;AAChC,4HAAA,4BAA4B,OAAA;AAC5B,+HAAA,+BAA+B,OAAA;AAC/B,2HAAA,2BAA2B,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;AACpC,4HAAA,4BAA4B,OAAA;AAG9B,iBAAiB;AACjB,6BAOe;AANb,sGAAA,eAAe,OAAA;AACf,wGAAA,iBAAiB,OAAA;AACjB,sGAAA,eAAe,OAAA;AACf,4GAAA,qBAAqB,OAAA;AACrB,uGAAA,gBAAgB,OAAA;AAChB,6GAAA,sBAAsB,OAAA;AAGxB,kBAAkB;AAClB,uCAAiD;AAAxC,+GAAA,mBAAmB,OAAA;AAE5B,iBAAiB;AACjB,+BAAyD;AAAhD,uHAAA,+BAA+B,OAAA;AAExC,SAAS;AACT,mCAOkB;AANhB,gHAAA,sBAAsB,OAAA;AACtB,iGAAA,OAAO,OAAA;AACP,iGAAA,OAAO,OAAA;AACP,oGAAA,UAAU,OAAA;AACV,uGAAA,aAAa,OAAA;AACb,uGAAA,aAAa,OAAA;AAGf,SAAS;AACT,mCAAkD;AAAzC,gHAAA,sBAAsB,OAAA;AAc/B,iCAA4C;AAAnC,oGAAA,WAAW,OAAA;AAAE,6FAAA,IAAI,OAAA;AAE1B,oBAAoB;AACpB,yCAA8C;AAArC,4GAAA,eAAe,OAAA"}
@@ -1,137 +1,163 @@
1
1
  import { address } from "@solana/kit";
2
- export declare function buildSendMessageInstruction(params: {
3
- sender: string;
4
- recipient: string;
5
- ciphertext: Uint8Array;
6
- nonce: Uint8Array;
7
- configPda: string;
8
- feeVault: string;
9
- recipientRegistryPda: string;
10
- payer?: string;
11
- programId?: string;
12
- }): {
2
+ type Instruction = {
13
3
  programAddress: ReturnType<typeof address>;
14
4
  accounts: any[];
15
5
  data: Uint8Array;
16
6
  };
7
+ export declare function buildInitializeConfigInstruction(params: {
8
+ authority: string;
9
+ configPda: string;
10
+ feeVault: string;
11
+ protocolFee: bigint;
12
+ payer?: string;
13
+ programId?: string;
14
+ }): Instruction;
15
+ export declare function buildUpdateConfigInstruction(params: {
16
+ authority: string;
17
+ configPda: string;
18
+ feeVault?: string;
19
+ protocolFee?: bigint;
20
+ programId?: string;
21
+ }): Instruction;
17
22
  export declare function buildRegisterInstruction(params: {
18
23
  owner: string;
19
24
  encryptionPubkey: Uint8Array;
20
25
  registryPda: string;
21
26
  payer?: string;
22
27
  programId?: string;
23
- }): {
24
- programAddress: ReturnType<typeof address>;
25
- accounts: any[];
26
- data: Uint8Array;
27
- };
28
+ }): Instruction;
28
29
  export declare function buildUpdateEncryptionKeyInstruction(params: {
29
30
  owner: string;
30
31
  newEncryptionPubkey: Uint8Array;
31
32
  registryPda: string;
32
33
  programId?: string;
33
- }): {
34
- programAddress: ReturnType<typeof address>;
35
- accounts: any[];
36
- data: Uint8Array;
37
- };
34
+ }): Instruction;
38
35
  export declare function buildSetMinFeeInstruction(params: {
39
36
  owner: string;
40
37
  registryPda: string;
41
38
  minFee: bigint;
42
39
  programId?: string;
43
- }): {
44
- programAddress: ReturnType<typeof address>;
45
- accounts: any[];
46
- data: Uint8Array;
47
- };
48
- export declare function buildInitializeConfigInstruction(params: {
49
- authority: string;
40
+ }): Instruction;
41
+ export declare function buildDeregisterInstruction(params: {
42
+ owner: string;
43
+ registryPda: string;
44
+ programId?: string;
45
+ }): Instruction;
46
+ export declare function buildSendMessageInstruction(params: {
47
+ sender: string;
48
+ recipient: string;
49
+ ciphertext: Uint8Array;
50
+ nonce: Uint8Array;
50
51
  configPda: string;
51
52
  feeVault: string;
52
- protocolFee: bigint;
53
+ recipientRegistryPda: string;
53
54
  payer?: string;
54
55
  programId?: string;
55
- }): {
56
- programAddress: ReturnType<typeof address>;
57
- accounts: any[];
58
- data: Uint8Array;
59
- };
60
- export declare function buildUpdateConfigInstruction(params: {
61
- authority: string;
62
- configPda: string;
63
- feeVault?: string;
64
- protocolFee?: bigint;
56
+ }): Instruction;
57
+ export declare function buildCreateServerInstruction(params: {
58
+ creator: string;
59
+ serverPda: string;
60
+ serverId: string;
61
+ name: Uint8Array;
62
+ ownerKeyWrap: Uint8Array;
63
+ ownerKeyNonce: Uint8Array;
64
+ ownerServerMemberPda: string;
65
+ payer?: string;
65
66
  programId?: string;
66
- }): {
67
- programAddress: ReturnType<typeof address>;
68
- accounts: any[];
69
- data: Uint8Array;
70
- };
71
- export declare function buildMigrateRegistryInstruction(params: {
72
- owner: string;
73
- registryPda: string;
67
+ }): Instruction;
68
+ export declare function buildJoinServerInstruction(params: {
69
+ serverId: string;
70
+ serverPda: string;
71
+ member: string;
72
+ serverMemberPda: string;
73
+ keyWraps: Uint8Array[];
74
+ keyNonces: Uint8Array[];
74
75
  payer?: string;
75
76
  programId?: string;
76
- }): {
77
- programAddress: ReturnType<typeof address>;
78
- accounts: any[];
79
- data: Uint8Array;
80
- };
81
- export declare function buildCreateGroupInstruction(params: {
82
- creator: string;
83
- groupPda: string;
84
- groupId: Uint8Array;
85
- members: string[];
77
+ }): Instruction;
78
+ export declare function buildRemoveServerMemberInstruction(params: {
79
+ serverId: string;
80
+ serverPda: string;
81
+ admin: string;
82
+ adminMemberPda: string;
83
+ removedMember: string;
84
+ removedMemberPda: string;
85
+ remainingMemberPdas: string[];
86
+ newKeyWraps: Uint8Array[];
87
+ newKeyNonces: Uint8Array[];
86
88
  payer?: string;
87
89
  programId?: string;
88
- }): {
89
- programAddress: ReturnType<typeof address>;
90
- accounts: any[];
91
- data: Uint8Array;
92
- };
93
- export declare function buildUpdateGroupInstruction(params: {
90
+ }): Instruction;
91
+ export declare function buildLeaveServerInstruction(params: {
92
+ serverId: string;
93
+ serverPda: string;
94
+ member: string;
95
+ serverMemberPda: string;
96
+ programId?: string;
97
+ }): Instruction;
98
+ export declare function buildUpdateServerInstruction(params: {
99
+ serverPda: string;
100
+ owner: string;
101
+ name: Uint8Array;
102
+ programId?: string;
103
+ }): Instruction;
104
+ export declare function buildCloseServerInstruction(params: {
105
+ serverPda: string;
106
+ owner: string;
107
+ memberPubkeys: string[];
108
+ memberPdas: string[];
109
+ programId?: string;
110
+ }): Instruction;
111
+ export declare function buildCreateChannelInstruction(params: {
94
112
  creator: string;
95
- groupPda: string;
113
+ channelPda: string;
114
+ channelId: string;
115
+ serverId?: string;
116
+ channelType: number;
96
117
  members: string[];
118
+ keyWraps: Uint8Array[];
119
+ keyNonces: Uint8Array[];
120
+ channelMemberPdas: string[];
121
+ payer?: string;
97
122
  programId?: string;
98
- }): {
99
- programAddress: ReturnType<typeof address>;
100
- accounts: any[];
101
- data: Uint8Array;
102
- };
103
- export declare function buildSendGroupMessageInstruction(params: {
123
+ }): Instruction;
124
+ export declare function buildSendChannelMessageInstruction(params: {
104
125
  sender: string;
105
- groupPda: string;
126
+ channelPda: string;
106
127
  configPda: string;
107
128
  feeVault: string;
108
129
  ciphertext: Uint8Array;
109
130
  nonce: Uint8Array;
110
- keyWraps: Uint8Array[];
111
- keyNonces: Uint8Array[];
112
131
  payer?: string;
113
132
  programId?: string;
114
- }): {
115
- programAddress: ReturnType<typeof address>;
116
- accounts: any[];
117
- data: Uint8Array;
118
- };
119
- export declare function buildCloseGroupInstruction(params: {
133
+ }): Instruction;
134
+ export declare function buildAddChannelMembersInstruction(params: {
120
135
  creator: string;
121
- groupPda: string;
136
+ channelPda: string;
137
+ newMembers: string[];
138
+ keyWraps: Uint8Array[][];
139
+ keyNonces: Uint8Array[][];
140
+ channelMemberPdas: string[];
141
+ payer?: string;
122
142
  programId?: string;
123
- }): {
124
- programAddress: ReturnType<typeof address>;
125
- accounts: any[];
126
- data: Uint8Array;
127
- };
128
- export declare function buildDeregisterInstruction(params: {
129
- owner: string;
130
- registryPda: string;
143
+ }): Instruction;
144
+ export declare function buildRemoveChannelMembersInstruction(params: {
145
+ creator: string;
146
+ oldChannelPda: string;
147
+ newChannelPda: string;
148
+ removeList: string[];
149
+ newKeyWraps: Uint8Array[];
150
+ newKeyNonces: Uint8Array[];
151
+ removedMemberPdas: string[];
152
+ remainingMemberPdas: string[];
153
+ payer?: string;
131
154
  programId?: string;
132
- }): {
133
- programAddress: ReturnType<typeof address>;
134
- accounts: any[];
135
- data: Uint8Array;
136
- };
155
+ }): Instruction;
156
+ export declare function buildCloseChannelInstruction(params: {
157
+ creator: string;
158
+ channelPda: string;
159
+ channelMemberPdas: string[];
160
+ programId?: string;
161
+ }): Instruction;
162
+ export {};
137
163
  //# sourceMappingURL=instructions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"instructions.d.ts","sourceRoot":"","sources":["../src/instructions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,MAAM,aAAa,CAAC;AA2CnD,wBAAgB,2BAA2B,CAAC,MAAM,EAAE;IAClD,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,EAAE,UAAU,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG;IAAE,cAAc,EAAE,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;IAAC,QAAQ,EAAE,GAAG,EAAE,CAAC;IAAC,IAAI,EAAE,UAAU,CAAA;CAAE,CAmBpF;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,UAAU,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG;IAAE,cAAc,EAAE,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;IAAC,QAAQ,EAAE,GAAG,EAAE,CAAC;IAAC,IAAI,EAAE,UAAU,CAAA;CAAE,CAiBpF;AAED,wBAAgB,mCAAmC,CAAC,MAAM,EAAE;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,EAAE,UAAU,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;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