Skip to content

Commit 42b3180

Browse files
committed
Run generation
1 parent a27048e commit 42b3180

File tree

10 files changed

+27
-30
lines changed

10 files changed

+27
-30
lines changed

clients/js/src/generated/accounts/config.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* This code was AUTOGENERATED using the codama library.
2+
* This code was AUTOGENERATED using the Codama library.
33
* Please DO NOT EDIT THIS FILE, instead use visitors
4-
* to add features, then rerun codama to update it.
4+
* to add features, then rerun Codama to update it.
55
*
66
* @see https://github.com/codama-idl/codama
77
*/
@@ -56,20 +56,23 @@ export type ConfigArgs = {
5656
data: ReadonlyUint8Array;
5757
};
5858

59+
/** Gets the encoder for {@link ConfigArgs} account data. */
5960
export function getConfigEncoder(): Encoder<ConfigArgs> {
6061
return getStructEncoder([
6162
['keys', getConfigKeysEncoder()],
6263
['data', getBytesEncoder()],
6364
]);
6465
}
6566

67+
/** Gets the decoder for {@link Config} account data. */
6668
export function getConfigDecoder(): Decoder<Config> {
6769
return getStructDecoder([
6870
['keys', getConfigKeysDecoder()],
6971
['data', getBytesDecoder()],
7072
]);
7173
}
7274

75+
/** Gets the codec for {@link Config} account data. */
7376
export function getConfigCodec(): Codec<ConfigArgs, Config> {
7477
return combineCodec(getConfigEncoder(), getConfigDecoder());
7578
}

clients/js/src/generated/accounts/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* This code was AUTOGENERATED using the codama library.
2+
* This code was AUTOGENERATED using the Codama library.
33
* Please DO NOT EDIT THIS FILE, instead use visitors
4-
* to add features, then rerun codama to update it.
4+
* to add features, then rerun Codama to update it.
55
*
66
* @see https://github.com/codama-idl/codama
77
*/

clients/js/src/generated/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* This code was AUTOGENERATED using the codama library.
2+
* This code was AUTOGENERATED using the Codama library.
33
* Please DO NOT EDIT THIS FILE, instead use visitors
4-
* to add features, then rerun codama to update it.
4+
* to add features, then rerun Codama to update it.
55
*
66
* @see https://github.com/codama-idl/codama
77
*/

clients/js/src/generated/instructions/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* This code was AUTOGENERATED using the codama library.
2+
* This code was AUTOGENERATED using the Codama library.
33
* Please DO NOT EDIT THIS FILE, instead use visitors
4-
* to add features, then rerun codama to update it.
4+
* to add features, then rerun Codama to update it.
55
*
66
* @see https://github.com/codama-idl/codama
77
*/

clients/js/src/generated/instructions/store.ts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* This code was AUTOGENERATED using the codama library.
2+
* This code was AUTOGENERATED using the Codama library.
33
* Please DO NOT EDIT THIS FILE, instead use visitors
4-
* to add features, then rerun codama to update it.
4+
* to add features, then rerun Codama to update it.
55
*
66
* @see https://github.com/codama-idl/codama
77
*/
@@ -150,21 +150,19 @@ export function getStoreInstruction<
150150
);
151151

152152
const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
153-
const instruction = {
153+
return Object.freeze({
154154
accounts: [getAccountMeta(accounts.configAccount), ...remainingAccounts],
155-
programAddress,
156155
data: getStoreInstructionDataEncoder().encode(
157156
args as StoreInstructionDataArgs
158157
),
158+
programAddress,
159159
} as StoreInstruction<
160160
TProgramAddress,
161161
(typeof input)['configAccount'] extends TransactionSigner<TAccountConfigAccount>
162162
? WritableSignerAccount<TAccountConfigAccount> &
163163
AccountSignerMeta<TAccountConfigAccount>
164164
: TAccountConfigAccount
165-
>;
166-
167-
return instruction;
165+
>);
168166
}
169167

170168
export type ParsedStoreInstruction<
@@ -178,7 +176,6 @@ export type ParsedStoreInstruction<
178176
* Must sign during the first call to `store` to initialize the account,
179177
* or if no signers are configured in the config data.
180178
*/
181-
182179
configAccount: TAccountMetas[0];
183180
};
184181
data: StoreInstructionData;
@@ -204,9 +201,7 @@ export function parseStoreInstruction<
204201
};
205202
return {
206203
programAddress: instruction.programAddress,
207-
accounts: {
208-
configAccount: getNextAccount(),
209-
},
204+
accounts: { configAccount: getNextAccount() },
210205
data: getStoreInstructionDataDecoder().decode(instruction.data),
211206
};
212207
}

clients/js/src/generated/programs/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* This code was AUTOGENERATED using the codama library.
2+
* This code was AUTOGENERATED using the Codama library.
33
* Please DO NOT EDIT THIS FILE, instead use visitors
4-
* to add features, then rerun codama to update it.
4+
* to add features, then rerun Codama to update it.
55
*
66
* @see https://github.com/codama-idl/codama
77
*/

clients/js/src/generated/programs/solanaConfig.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* This code was AUTOGENERATED using the codama library.
2+
* This code was AUTOGENERATED using the Codama library.
33
* Please DO NOT EDIT THIS FILE, instead use visitors
4-
* to add features, then rerun codama to update it.
4+
* to add features, then rerun Codama to update it.
55
*
66
* @see https://github.com/codama-idl/codama
77
*/

clients/js/src/generated/shared/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* This code was AUTOGENERATED using the codama library.
2+
* This code was AUTOGENERATED using the Codama library.
33
* Please DO NOT EDIT THIS FILE, instead use visitors
4-
* to add features, then rerun codama to update it.
4+
* to add features, then rerun Codama to update it.
55
*
66
* @see https://github.com/codama-idl/codama
77
*/

clients/js/src/generated/types/configKeys.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* This code was AUTOGENERATED using the codama library.
2+
* This code was AUTOGENERATED using the Codama library.
33
* Please DO NOT EDIT THIS FILE, instead use visitors
4-
* to add features, then rerun codama to update it.
4+
* to add features, then rerun Codama to update it.
55
*
66
* @see https://github.com/codama-idl/codama
77
*/
@@ -29,7 +29,6 @@ import {
2929
* Each key tuple comprises a unique `Pubkey` identifier,
3030
* and `bool` whether that key is a signer of the data.
3131
*/
32-
3332
export type ConfigKeys = Array<readonly [Address, boolean]>;
3433

3534
export type ConfigKeysArgs = ConfigKeys;

clients/js/src/generated/types/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* This code was AUTOGENERATED using the codama library.
2+
* This code was AUTOGENERATED using the Codama library.
33
* Please DO NOT EDIT THIS FILE, instead use visitors
4-
* to add features, then rerun codama to update it.
4+
* to add features, then rerun Codama to update it.
55
*
66
* @see https://github.com/codama-idl/codama
77
*/

0 commit comments

Comments
 (0)