|
1 | 1 | /** |
2 | | - * This code was AUTOGENERATED using the kinobi library. |
| 2 | + * This code was AUTOGENERATED using the codama library. |
3 | 3 | * Please DO NOT EDIT THIS FILE, instead use visitors |
4 | | - * to add features, then rerun kinobi to update it. |
| 4 | + * to add features, then rerun codama to update it. |
5 | 5 | * |
6 | | - * @see https://github.com/kinobi-so/kinobi |
| 6 | + * @see https://github.com/codama-idl/codama |
7 | 7 | */ |
8 | 8 |
|
9 | 9 | import { |
@@ -154,18 +154,20 @@ export type ApplyConfidentialPendingBalanceInput< |
154 | 154 | export function getApplyConfidentialPendingBalanceInstruction< |
155 | 155 | TAccountToken extends string, |
156 | 156 | TAccountAuthority extends string, |
| 157 | + TProgramAddress extends Address = typeof TOKEN_2022_PROGRAM_ADDRESS, |
157 | 158 | >( |
158 | | - input: ApplyConfidentialPendingBalanceInput<TAccountToken, TAccountAuthority> |
| 159 | + input: ApplyConfidentialPendingBalanceInput<TAccountToken, TAccountAuthority>, |
| 160 | + config?: { programAddress?: TProgramAddress } |
159 | 161 | ): ApplyConfidentialPendingBalanceInstruction< |
160 | | - typeof TOKEN_2022_PROGRAM_ADDRESS, |
| 162 | + TProgramAddress, |
161 | 163 | TAccountToken, |
162 | 164 | (typeof input)['authority'] extends TransactionSigner<TAccountAuthority> |
163 | 165 | ? ReadonlySignerAccount<TAccountAuthority> & |
164 | 166 | IAccountSignerMeta<TAccountAuthority> |
165 | 167 | : TAccountAuthority |
166 | 168 | > { |
167 | 169 | // Program address. |
168 | | - const programAddress = TOKEN_2022_PROGRAM_ADDRESS; |
| 170 | + const programAddress = config?.programAddress ?? TOKEN_2022_PROGRAM_ADDRESS; |
169 | 171 |
|
170 | 172 | // Original accounts. |
171 | 173 | const originalAccounts = { |
@@ -201,7 +203,7 @@ export function getApplyConfidentialPendingBalanceInstruction< |
201 | 203 | args as ApplyConfidentialPendingBalanceInstructionDataArgs |
202 | 204 | ), |
203 | 205 | } as ApplyConfidentialPendingBalanceInstruction< |
204 | | - typeof TOKEN_2022_PROGRAM_ADDRESS, |
| 206 | + TProgramAddress, |
205 | 207 | TAccountToken, |
206 | 208 | (typeof input)['authority'] extends TransactionSigner<TAccountAuthority> |
207 | 209 | ? ReadonlySignerAccount<TAccountAuthority> & |
|
0 commit comments