diff --git a/.changeset/blue-sheep-fly.md b/.changeset/blue-sheep-fly.md new file mode 100644 index 000000000..c92e2bf36 --- /dev/null +++ b/.changeset/blue-sheep-fly.md @@ -0,0 +1,5 @@ +--- +"@metaplex-foundation/kinobi": patch +--- + +Update prettier dependency for JS renderers diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..ac91baee0 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +*.njk diff --git a/package.json b/package.json index c9679d2bd..18a8342a7 100644 --- a/package.json +++ b/package.json @@ -58,12 +58,13 @@ "vercel": "^28.16.2" }, "dependencies": { - "@noble/hashes": "^1.1.5", - "@solana/codecs-strings": "2.0.0-experimental.a157265", + "@noble/hashes": "^1.4.0", + "@prettier/sync": "^0.5.1", + "@solana/codecs-strings": "2.0.0-preview.1", "chalk": "^4.0.0", - "json-stable-stringify": "^1.1.0", - "nunjucks": "^3.2.3", - "prettier": "^2.8.1" + "json-stable-stringify": "^1.1.1", + "nunjucks": "^3.2.4", + "prettier": "^3.2.5" }, "ava": { "files": [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b78354ffc..b087d354a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,27 +1,34 @@ lockfileVersion: '6.0' +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + importers: .: dependencies: '@noble/hashes': - specifier: ^1.1.5 - version: 1.1.5 + specifier: ^1.4.0 + version: 1.4.0 + '@prettier/sync': + specifier: ^0.5.1 + version: 0.5.1(prettier@3.2.5) '@solana/codecs-strings': - specifier: 2.0.0-experimental.a157265 - version: 2.0.0-experimental.a157265(fastestsmallesttextencoderdecoder@1.0.22) + specifier: 2.0.0-preview.1 + version: 2.0.0-preview.1(fastestsmallesttextencoderdecoder@1.0.22) chalk: specifier: ^4.0.0 version: 4.1.2 json-stable-stringify: - specifier: ^1.1.0 - version: 1.1.0 + specifier: ^1.1.1 + version: 1.1.1 nunjucks: - specifier: ^3.2.3 - version: 3.2.3 + specifier: ^3.2.4 + version: 3.2.4 prettier: - specifier: ^2.8.1 - version: 2.8.1 + specifier: ^3.2.5 + version: 3.2.5 devDependencies: '@ava/typescript': specifier: ^3.0.1 @@ -70,7 +77,7 @@ importers: version: 2.26.0(@typescript-eslint/parser@5.46.1)(eslint@8.29.0) eslint-plugin-prettier: specifier: ^4.2.1 - version: 4.2.1(eslint-config-prettier@8.5.0)(eslint@8.29.0)(prettier@2.8.1) + version: 4.2.1(eslint-config-prettier@8.5.0)(eslint@8.29.0)(prettier@3.2.5) rimraf: specifier: ^3.0.2 version: 3.0.2 @@ -1918,8 +1925,9 @@ packages: '@metaplex-foundation/umi-serializers': 0.8.9 dev: false - /@noble/hashes@1.1.5: - resolution: {integrity: sha512-LTMZiiLc+V4v1Yi16TD6aX2gmtKszNye0pQgbaLqkvhIqP7nVsSaJsWloGQjJfJ8offaoP5GtX3yY5swbcJxxQ==} + /@noble/hashes@1.4.0: + resolution: {integrity: sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==} + engines: {node: '>= 16'} dev: false /@nodelib/fs.scandir@2.1.5: @@ -1966,6 +1974,15 @@ packages: json-parse-even-better-errors: 2.3.1 dev: true + /@prettier/sync@0.5.1(prettier@3.2.5): + resolution: {integrity: sha512-tpF+A1e4ynO2U4fTH21Sjgm9EYENmqg4zmJCMLrmLVfzIzuDc1cKGXyxrxbFgcH8qQRfowyDCZFAUukwhiZlsw==} + peerDependencies: + prettier: '*' + dependencies: + make-synchronized: 0.2.8 + prettier: 3.2.5 + dev: false + /@remix-run/dev@1.12.0: resolution: {integrity: sha512-lBiA2FlDi+DjpOAE/vn93zFTSxudKag/FGpmbV6O+LQItDCpFARfbBMhTck/uKcc95nyhRd1GGhQ4ZDgQnyjaQ==} engines: {node: '>=14'} @@ -2065,26 +2082,38 @@ packages: engines: {node: '>=10'} dev: true - /@solana/codecs-core@2.0.0-experimental.a157265: - resolution: {integrity: sha512-78SjZiLWWjAn5sVL92T5W+4LXYG01Vu28tVbtiCWi4QEX21794bW6lMcXbPmbivFPbD8Dje+EHAYADfxYj6RTA==} + /@solana/codecs-core@2.0.0-preview.1: + resolution: {integrity: sha512-0y3kgFSJAOApNGefEOgLRMiXOHVmcF29Xw3zmR4LDUABvytG3ecKMXGz5oLt3vdaU2CyN3tuUVeGmQjrd0U1kw==} + dependencies: + '@solana/errors': 2.0.0-preview.1 dev: false - /@solana/codecs-numbers@2.0.0-experimental.a157265: - resolution: {integrity: sha512-Bkp7Y1KyhMsu8tHKxwHDXCnYxEawT0P4kEsIO1Fzs54pxOS1jtwJHo7e4FE8Kv8ZSajUQAnbmQqj5GaIU08h9A==} + /@solana/codecs-numbers@2.0.0-preview.1: + resolution: {integrity: sha512-NFA8itgcYUY3hkWMBpVRozd2poy1zfOvkIWZKx/D69oIMUtQTBpKrodRVBuhlBkAv12vDNkFljqVySpcMZMl7A==} dependencies: - '@solana/codecs-core': 2.0.0-experimental.a157265 + '@solana/codecs-core': 2.0.0-preview.1 + '@solana/errors': 2.0.0-preview.1 dev: false - /@solana/codecs-strings@2.0.0-experimental.a157265(fastestsmallesttextencoderdecoder@1.0.22): - resolution: {integrity: sha512-1AypxqrFipI053/EOHZnDDcfKBduLjJdrpkbcqrgWJyciv/7+fMQjkgjbG+C8Vcqx5G8weUesXCcvAhqbdRwMw==} + /@solana/codecs-strings@2.0.0-preview.1(fastestsmallesttextencoderdecoder@1.0.22): + resolution: {integrity: sha512-kBAxE9ZD5/c8j9CkPxqc55dbo7R50Re3k94SXR+k13DZCCs37Fyn0/mAkw/S95fofbi/zsi4jSfmsT5vCZD75A==} peerDependencies: fastestsmallesttextencoderdecoder: ^1.0.22 dependencies: - '@solana/codecs-core': 2.0.0-experimental.a157265 - '@solana/codecs-numbers': 2.0.0-experimental.a157265 + '@solana/codecs-core': 2.0.0-preview.1 + '@solana/codecs-numbers': 2.0.0-preview.1 + '@solana/errors': 2.0.0-preview.1 fastestsmallesttextencoderdecoder: 1.0.22 dev: false + /@solana/errors@2.0.0-preview.1: + resolution: {integrity: sha512-mnBWfLVwMH4hxwb4sWZ7G7djQCMsyymjysvUPDiF89LueTBm1hfdxUv8Cy1uUCGsJ3jO3scdPwB4noOgr0rG/g==} + hasBin: true + dependencies: + chalk: 5.3.0 + commander: 12.0.0 + dev: false + /@szmarczak/http-timer@4.0.6: resolution: {integrity: sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==} engines: {node: '>=10'} @@ -3202,6 +3231,11 @@ packages: engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} dev: true + /chalk@5.3.0: + resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + dev: false + /character-entities-html4@2.1.0: resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==} dev: true @@ -3376,6 +3410,11 @@ packages: resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==} dev: true + /commander@12.0.0: + resolution: {integrity: sha512-MwVNWlYjDTtOjX5PiD7o5pK0UrFU/OYgcJfjjK4RaHZETNtjJqrZa9Y9ds88+A+f+d5lv+561eZ+yCKoS3gbAA==} + engines: {node: '>=18'} + dev: false + /commander@5.1.0: resolution: {integrity: sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==} engines: {node: '>= 6'} @@ -4276,7 +4315,7 @@ packages: - supports-color dev: true - /eslint-plugin-prettier@4.2.1(eslint-config-prettier@8.5.0)(eslint@8.29.0)(prettier@2.8.1): + /eslint-plugin-prettier@4.2.1(eslint-config-prettier@8.5.0)(eslint@8.29.0)(prettier@3.2.5): resolution: {integrity: sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -4289,7 +4328,7 @@ packages: dependencies: eslint: 8.29.0 eslint-config-prettier: 8.5.0(eslint@8.29.0) - prettier: 2.8.1 + prettier: 3.2.5 prettier-linter-helpers: 1.0.0 dev: true @@ -5603,8 +5642,8 @@ packages: resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} dev: true - /json-stable-stringify@1.1.0: - resolution: {integrity: sha512-zfA+5SuwYN2VWqN1/5HZaDzQKLJHaBVMZIIM+wuYjdptkaQsqzDdqjqf+lZZJUuJq1aanHiY8LhH8LmH+qBYJA==} + /json-stable-stringify@1.1.1: + resolution: {integrity: sha512-SU/971Kt5qVQfJpyDveVhQ/vya+5hvrjClFOcr8c0Fq5aODJjMwutrOfCU+eCnVD5gpx1Q3fEqkyom77zH1iIg==} engines: {node: '>= 0.4'} dependencies: call-bind: 1.0.5 @@ -5817,6 +5856,10 @@ packages: resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} dev: true + /make-synchronized@0.2.8: + resolution: {integrity: sha512-jtXnKYCxjmGaXiZhXbDbGPbh4YyTvIIbOgcQjtAboc4RSm9k3nyhTFvFQB0cfs7QFKuZXKe2D2RvOkv1c+vpxg==} + dev: false + /map-age-cleaner@0.1.3: resolution: {integrity: sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==} engines: {node: '>=6'} @@ -6587,8 +6630,8 @@ packages: set-blocking: 2.0.0 dev: true - /nunjucks@3.2.3: - resolution: {integrity: sha512-psb6xjLj47+fE76JdZwskvwG4MYsQKXUtMsPh6U0YMvmyjRtKRFcxnlXGWglNybtNTNVmGdp94K62/+NjF5FDQ==} + /nunjucks@3.2.4: + resolution: {integrity: sha512-26XRV6BhkgK0VOxfbU5cQI+ICFUtMLixv1noZn1tGU38kQH5A5nmmbk/O45xdyBhD1esk47nKrY0mvQpZIhRjQ==} engines: {node: '>= 6.9.0'} hasBin: true peerDependencies: @@ -7118,6 +7161,12 @@ packages: resolution: {integrity: sha512-lqGoSJBQNJidqCHE80vqZJHWHRFoNYsSpP9AjFhlhi9ODCJA541svILes/+/1GM3VaL/abZi7cpFzOpdR9UPKg==} engines: {node: '>=10.13.0'} hasBin: true + dev: true + + /prettier@3.2.5: + resolution: {integrity: sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==} + engines: {node: '>=14'} + hasBin: true /pretty-bytes@5.6.0: resolution: {integrity: sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==} @@ -8778,7 +8827,3 @@ packages: /zwitch@2.0.4: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} dev: true - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false diff --git a/src/idl/IdlType.ts b/src/idl/IdlType.ts index f1d819933..812e919ce 100644 --- a/src/idl/IdlType.ts +++ b/src/idl/IdlType.ts @@ -78,7 +78,7 @@ export const IDL_TYPE_LEAVES = [ 'f32', 'f64', ] as const; -export type IdlTypeLeaf = typeof IDL_TYPE_LEAVES[number]; +export type IdlTypeLeaf = (typeof IDL_TYPE_LEAVES)[number]; export type IdlTypeUnsignedInteger = 'u8' | 'u16' | 'u32' | 'u64' | 'u128'; export type IdlTypeSignedInteger = 'i8' | 'i16' | 'i32' | 'i64' | 'i128'; diff --git a/src/nodes/contextualValueNodes/ContextualValueNode.ts b/src/nodes/contextualValueNodes/ContextualValueNode.ts index eafff5c2f..05e9836cd 100644 --- a/src/nodes/contextualValueNodes/ContextualValueNode.ts +++ b/src/nodes/contextualValueNodes/ContextualValueNode.ts @@ -30,9 +30,9 @@ export const STANDALONE_CONTEXTUAL_VALUE_NODE_KINDS = getNodeKinds( STANDALONE_CONTEXTUAL_VALUE_NODES ); export type StandaloneContextualValueNodeKind = - typeof STANDALONE_CONTEXTUAL_VALUE_NODE_KINDS[number]; + (typeof STANDALONE_CONTEXTUAL_VALUE_NODE_KINDS)[number]; export type StandaloneContextualValueNode = - typeof STANDALONE_CONTEXTUAL_VALUE_NODES[StandaloneContextualValueNodeKind]; + (typeof STANDALONE_CONTEXTUAL_VALUE_NODES)[StandaloneContextualValueNodeKind]; // Contextual Value Node Registration. @@ -47,9 +47,9 @@ export const REGISTERED_CONTEXTUAL_VALUE_NODE_KINDS = getNodeKinds( REGISTERED_CONTEXTUAL_VALUE_NODES ); export type RegisteredContextualValueNodeKind = - typeof REGISTERED_CONTEXTUAL_VALUE_NODE_KINDS[number]; + (typeof REGISTERED_CONTEXTUAL_VALUE_NODE_KINDS)[number]; export type RegisteredContextualValueNode = - typeof REGISTERED_CONTEXTUAL_VALUE_NODES[RegisteredContextualValueNodeKind]; + (typeof REGISTERED_CONTEXTUAL_VALUE_NODES)[RegisteredContextualValueNodeKind]; // Contextual Value Node Helpers. diff --git a/src/nodes/discriminatorNodes/DiscriminatorNode.ts b/src/nodes/discriminatorNodes/DiscriminatorNode.ts index 3629e5824..119db426d 100644 --- a/src/nodes/discriminatorNodes/DiscriminatorNode.ts +++ b/src/nodes/discriminatorNodes/DiscriminatorNode.ts @@ -15,9 +15,9 @@ export const REGISTERED_DISCRIMINATOR_NODE_KINDS = getNodeKinds( REGISTERED_DISCRIMINATOR_NODES ); export type RegisteredDiscriminatorNodeKind = - typeof REGISTERED_DISCRIMINATOR_NODE_KINDS[number]; + (typeof REGISTERED_DISCRIMINATOR_NODE_KINDS)[number]; export type RegisteredDiscriminatorNode = - typeof REGISTERED_DISCRIMINATOR_NODES[RegisteredDiscriminatorNodeKind]; + (typeof REGISTERED_DISCRIMINATOR_NODES)[RegisteredDiscriminatorNodeKind]; // Discriminator Node Helpers. diff --git a/src/nodes/linkNodes/LinkNode.ts b/src/nodes/linkNodes/LinkNode.ts index 9ff646666..0270b44ac 100644 --- a/src/nodes/linkNodes/LinkNode.ts +++ b/src/nodes/linkNodes/LinkNode.ts @@ -14,9 +14,10 @@ export const REGISTERED_LINK_NODES = { }; export const REGISTERED_LINK_NODE_KINDS = getNodeKinds(REGISTERED_LINK_NODES); -export type RegisteredLinkNodeKind = typeof REGISTERED_LINK_NODE_KINDS[number]; +export type RegisteredLinkNodeKind = + (typeof REGISTERED_LINK_NODE_KINDS)[number]; export type RegisteredLinkNode = - typeof REGISTERED_LINK_NODES[RegisteredLinkNodeKind]; + (typeof REGISTERED_LINK_NODES)[RegisteredLinkNodeKind]; // Link Node Helpers. diff --git a/src/nodes/pdaSeedNodes/PdaSeedNode.ts b/src/nodes/pdaSeedNodes/PdaSeedNode.ts index 60edb564a..4a73eb217 100644 --- a/src/nodes/pdaSeedNodes/PdaSeedNode.ts +++ b/src/nodes/pdaSeedNodes/PdaSeedNode.ts @@ -15,9 +15,9 @@ export const REGISTERED_PDA_SEED_NODE_KINDS = getNodeKinds( REGISTERED_PDA_SEED_NODES ); export type RegisteredPdaSeedNodeKind = - typeof REGISTERED_PDA_SEED_NODE_KINDS[number]; + (typeof REGISTERED_PDA_SEED_NODE_KINDS)[number]; export type RegisteredPdaSeedNode = - typeof REGISTERED_PDA_SEED_NODES[RegisteredPdaSeedNodeKind]; + (typeof REGISTERED_PDA_SEED_NODES)[RegisteredPdaSeedNodeKind]; // Pda Seed Node Helpers. diff --git a/src/nodes/sizeNodes/SizeNode.ts b/src/nodes/sizeNodes/SizeNode.ts index 2cc42cd72..a39aa68e0 100644 --- a/src/nodes/sizeNodes/SizeNode.ts +++ b/src/nodes/sizeNodes/SizeNode.ts @@ -12,9 +12,10 @@ export const REGISTERED_SIZE_NODES = { }; export const REGISTERED_SIZE_NODE_KINDS = getNodeKinds(REGISTERED_SIZE_NODES); -export type RegisteredSizeNodeKind = typeof REGISTERED_SIZE_NODE_KINDS[number]; +export type RegisteredSizeNodeKind = + (typeof REGISTERED_SIZE_NODE_KINDS)[number]; export type RegisteredSizeNode = - typeof REGISTERED_SIZE_NODES[RegisteredSizeNodeKind]; + (typeof REGISTERED_SIZE_NODES)[RegisteredSizeNodeKind]; // Size Node Helpers. diff --git a/src/nodes/typeNodes/TypeNode.ts b/src/nodes/typeNodes/TypeNode.ts index 64c77d037..3e65d93af 100644 --- a/src/nodes/typeNodes/TypeNode.ts +++ b/src/nodes/typeNodes/TypeNode.ts @@ -46,9 +46,10 @@ export const STANDALONE_TYPE_NODES = { }; export const STANDALONE_TYPE_NODE_KINDS = getNodeKinds(STANDALONE_TYPE_NODES); -export type StandaloneTypeNodeKind = typeof STANDALONE_TYPE_NODE_KINDS[number]; +export type StandaloneTypeNodeKind = + (typeof STANDALONE_TYPE_NODE_KINDS)[number]; export type StandaloneTypeNode = - typeof STANDALONE_TYPE_NODES[StandaloneTypeNodeKind]; + (typeof STANDALONE_TYPE_NODES)[StandaloneTypeNodeKind]; // Type Node Registration. @@ -63,9 +64,10 @@ export const REGISTERED_TYPE_NODES = { }; export const REGISTERED_TYPE_NODE_KINDS = getNodeKinds(REGISTERED_TYPE_NODES); -export type RegisteredTypeNodeKind = typeof REGISTERED_TYPE_NODE_KINDS[number]; +export type RegisteredTypeNodeKind = + (typeof REGISTERED_TYPE_NODE_KINDS)[number]; export type RegisteredTypeNode = - typeof REGISTERED_TYPE_NODES[RegisteredTypeNodeKind]; + (typeof REGISTERED_TYPE_NODES)[RegisteredTypeNodeKind]; // Type Node Helpers. // This only includes type nodes that can be used as standalone types. @@ -76,7 +78,7 @@ export const TYPE_NODES = [ ...STANDALONE_TYPE_NODE_KINDS, 'definedTypeLinkNode' as const, ]; -export type TypeNodeKind = typeof TYPE_NODES[number]; +export type TypeNodeKind = (typeof TYPE_NODES)[number]; export type TypeNode = StandaloneTypeNode | DefinedTypeLinkNode; function isArrayOfSize(array: any, size: number): boolean { diff --git a/src/nodes/valueNodes/ValueNode.ts b/src/nodes/valueNodes/ValueNode.ts index 1f348abf3..dc5da21c8 100644 --- a/src/nodes/valueNodes/ValueNode.ts +++ b/src/nodes/valueNodes/ValueNode.ts @@ -33,9 +33,9 @@ export const STANDALONE_VALUE_NODES = { export const STANDALONE_VALUE_NODE_KINDS = getNodeKinds(STANDALONE_VALUE_NODES); export type StandaloneValueNodeKind = - typeof STANDALONE_VALUE_NODE_KINDS[number]; + (typeof STANDALONE_VALUE_NODE_KINDS)[number]; export type StandaloneValueNode = - typeof STANDALONE_VALUE_NODES[StandaloneValueNodeKind]; + (typeof STANDALONE_VALUE_NODES)[StandaloneValueNodeKind]; // Value Node Registration. @@ -49,9 +49,9 @@ export const REGISTERED_VALUE_NODES = { export const REGISTERED_VALUE_NODE_KINDS = getNodeKinds(REGISTERED_VALUE_NODES); export type RegisteredValueNodeKind = - typeof REGISTERED_VALUE_NODE_KINDS[number]; + (typeof REGISTERED_VALUE_NODE_KINDS)[number]; export type RegisteredValueNode = - typeof REGISTERED_VALUE_NODES[RegisteredValueNodeKind]; + (typeof REGISTERED_VALUE_NODES)[RegisteredValueNodeKind]; // Value Node Helpers. diff --git a/src/renderers/js-experimental/getRenderMapVisitor.ts b/src/renderers/js-experimental/getRenderMapVisitor.ts index 959cc4967..f9093efe7 100644 --- a/src/renderers/js-experimental/getRenderMapVisitor.ts +++ b/src/renderers/js-experimental/getRenderMapVisitor.ts @@ -1,8 +1,6 @@ +import { format as formatCodeUsingPrettier } from '@prettier/sync'; import type { ConfigureOptions } from 'nunjucks'; -import { - format as formatCodeUsingPrettier, - Options as PrettierOptions, -} from 'prettier'; +import { Options as PrettierOptions } from 'prettier'; import { getAllAccounts, getAllDefinedTypes, diff --git a/src/renderers/js-experimental/getTypeManifestVisitor.ts b/src/renderers/js-experimental/getTypeManifestVisitor.ts index f99332082..978a539f2 100644 --- a/src/renderers/js-experimental/getTypeManifestVisitor.ts +++ b/src/renderers/js-experimental/getTypeManifestVisitor.ts @@ -42,7 +42,7 @@ export function getTypeManifestVisitor(input: { looseType: fragment(''), encoder: fragment(''), decoder: fragment(''), - } as TypeManifest), + }) as TypeManifest, [ ...REGISTERED_TYPE_NODE_KINDS, 'definedTypeLinkNode', diff --git a/src/renderers/js/getRenderMapVisitor.ts b/src/renderers/js/getRenderMapVisitor.ts index bd201c0b5..d3125cf8b 100644 --- a/src/renderers/js/getRenderMapVisitor.ts +++ b/src/renderers/js/getRenderMapVisitor.ts @@ -1,8 +1,6 @@ +import { format as formatCodeUsingPrettier } from '@prettier/sync'; import { ConfigureOptions } from 'nunjucks'; -import { - format as formatCodeUsingPrettier, - Options as PrettierOptions, -} from 'prettier'; +import { Options as PrettierOptions } from 'prettier'; import { FieldDiscriminatorNode, getAllAccounts, diff --git a/src/renderers/js/getTypeManifestVisitor.ts b/src/renderers/js/getTypeManifestVisitor.ts index a5c8d4c81..671b07133 100644 --- a/src/renderers/js/getTypeManifestVisitor.ts +++ b/src/renderers/js/getTypeManifestVisitor.ts @@ -45,7 +45,7 @@ export function getTypeManifestVisitor(input: { looseImports: new JavaScriptImportMap(), serializer: '', serializerImports: new JavaScriptImportMap(), - } as JavaScriptTypeManifest), + }) as JavaScriptTypeManifest, [ ...REGISTERED_TYPE_NODE_KINDS, 'definedTypeLinkNode', diff --git a/src/shared/logs.ts b/src/shared/logs.ts index 6236b4d84..c60de4e9a 100644 --- a/src/shared/logs.ts +++ b/src/shared/logs.ts @@ -3,7 +3,7 @@ import chalk from 'chalk'; const DEFAULT_LOG_LEVEL = 'info'; export const LOG_LEVELS = ['debug', 'trace', 'info', 'warn', 'error'] as const; -export type LogLevel = typeof LOG_LEVELS[number]; +export type LogLevel = (typeof LOG_LEVELS)[number]; export const logError = (message: string, hint?: string): void => { if (!shouldLogLevel('error')) return; diff --git a/src/visitors/bottomUpTransformerVisitor.ts b/src/visitors/bottomUpTransformerVisitor.ts index 41990253a..c8c051385 100644 --- a/src/visitors/bottomUpTransformerVisitor.ts +++ b/src/visitors/bottomUpTransformerVisitor.ts @@ -21,7 +21,7 @@ export type BottomUpNodeTransformerWithSelector = { }; export function bottomUpTransformerVisitor< - TNodeKind extends NodeKind = NodeKind + TNodeKind extends NodeKind = NodeKind, >( transformers: ( | BottomUpNodeTransformer diff --git a/src/visitors/extendVisitor.ts b/src/visitors/extendVisitor.ts index 1d3037ae6..f3ad206f9 100644 --- a/src/visitors/extendVisitor.ts +++ b/src/visitors/extendVisitor.ts @@ -14,7 +14,7 @@ import { export type VisitorOverrideFunction< TReturn, TNodeKind extends NodeKind, - TNode extends Node + TNode extends Node, > = ( node: TNode, scope: { diff --git a/src/visitors/getDefinedTypeHistogramVisitor.ts b/src/visitors/getDefinedTypeHistogramVisitor.ts index 57130c975..291ed41dc 100644 --- a/src/visitors/getDefinedTypeHistogramVisitor.ts +++ b/src/visitors/getDefinedTypeHistogramVisitor.ts @@ -46,7 +46,7 @@ export function getDefinedTypeHistogramVisitor(): Visitor return pipe( mergeVisitor( - () => ({} as DefinedTypeHistogram), + () => ({}) as DefinedTypeHistogram, (_, histograms) => mergeHistograms(histograms) ), (v) => diff --git a/src/visitors/nonNullableIdentityVisitor.ts b/src/visitors/nonNullableIdentityVisitor.ts index 2607dc67a..7d4023cd7 100644 --- a/src/visitors/nonNullableIdentityVisitor.ts +++ b/src/visitors/nonNullableIdentityVisitor.ts @@ -3,7 +3,7 @@ import { identityVisitor } from './identityVisitor'; import { Visitor } from './visitor'; export function nonNullableIdentityVisitor< - TNodeKind extends NodeKind = NodeKind + TNodeKind extends NodeKind = NodeKind, >( nodeKeys: TNodeKind[] = REGISTERED_NODE_KINDS as TNodeKind[] ): Visitor { diff --git a/src/visitors/singleNodeVisitor.ts b/src/visitors/singleNodeVisitor.ts index f201cd15e..9053b15bc 100644 --- a/src/visitors/singleNodeVisitor.ts +++ b/src/visitors/singleNodeVisitor.ts @@ -7,7 +7,7 @@ import { export function singleNodeVisitor< TReturn, - TNodeKey extends NodeKind = NodeKind + TNodeKey extends NodeKind = NodeKind, >( key: TNodeKey, fn: (node: NodeDictionary[TNodeKey]) => TReturn diff --git a/src/visitors/tapVisitor.ts b/src/visitors/tapVisitor.ts index 9e4db3800..4e11eb2f9 100644 --- a/src/visitors/tapVisitor.ts +++ b/src/visitors/tapVisitor.ts @@ -8,7 +8,7 @@ import { export function tapVisitor< TReturn, TNodeKey extends NodeKind, - TVisitor extends Visitor + TVisitor extends Visitor, >( visitor: TVisitor, key: TNodeKey, diff --git a/src/visitors/throwValidatorItemsVisitor.ts b/src/visitors/throwValidatorItemsVisitor.ts index f8b37137a..3565acef9 100644 --- a/src/visitors/throwValidatorItemsVisitor.ts +++ b/src/visitors/throwValidatorItemsVisitor.ts @@ -5,7 +5,7 @@ import { mapVisitor } from './mapVisitor'; import { Visitor } from './visitor'; export function throwValidatorItemsVisitor< - TNodeKind extends NodeKind = NodeKind + TNodeKind extends NodeKind = NodeKind, >( visitor: Visitor, throwLevel: LogLevel = 'error' @@ -15,10 +15,13 @@ export function throwValidatorItemsVisitor< const bag = validatorBag.orderByLevel(); bag.log(); - const levelHistogram = bag.items.reduce((acc, item) => { - acc[item.level] = (acc[item.level] ?? 0) + 1; - return acc; - }, {} as Record); + const levelHistogram = bag.items.reduce( + (acc, item) => { + acc[item.level] = (acc[item.level] ?? 0) + 1; + return acc; + }, + {} as Record + ); const maxLevel = Object.keys(levelHistogram) .map((level) => getLevelIndex(level as LogLevel)) .sort((a, b) => b - a)[0]; diff --git a/src/visitors/topDownTransformerVisitor.ts b/src/visitors/topDownTransformerVisitor.ts index 3bd7af2ff..61d30aea3 100644 --- a/src/visitors/topDownTransformerVisitor.ts +++ b/src/visitors/topDownTransformerVisitor.ts @@ -11,7 +11,7 @@ import { recordNodeStackVisitor } from './recordNodeStackVisitor'; import { Visitor } from './visitor'; export type TopDownNodeTransformer = < - T extends TNode = TNode + T extends TNode = TNode, >( node: T, stack: NodeStack @@ -23,7 +23,7 @@ export type TopDownNodeTransformerWithSelector = { }; export function topDownTransformerVisitor< - TNodeKind extends NodeKind = NodeKind + TNodeKind extends NodeKind = NodeKind, >( transformers: (TopDownNodeTransformer | TopDownNodeTransformerWithSelector)[], nodeKeys?: TNodeKind[] diff --git a/src/visitors/visitor.ts b/src/visitors/visitor.ts index e8bee849e..5d1e97ee4 100644 --- a/src/visitors/visitor.ts +++ b/src/visitors/visitor.ts @@ -31,7 +31,7 @@ export function visit( TNode['kind'] >; return ( - visitor[key] as typeof visitor[typeof key] & ((node: TNode) => TReturn) + visitor[key] as (typeof visitor)[typeof key] & ((node: TNode) => TReturn) )(node); } diff --git a/test/packages/js-experimental/src/generated/accounts/collectionAuthorityRecord.ts b/test/packages/js-experimental/src/generated/accounts/collectionAuthorityRecord.ts index 625bf6f01..800984772 100644 --- a/test/packages/js-experimental/src/generated/accounts/collectionAuthorityRecord.ts +++ b/test/packages/js-experimental/src/generated/accounts/collectionAuthorityRecord.ts @@ -88,17 +88,17 @@ export function getCollectionAuthorityRecordAccountDataCodec(): Codec< } export function decodeCollectionAuthorityRecord< - TAddress extends string = string + TAddress extends string = string, >( encodedAccount: EncodedAccount ): CollectionAuthorityRecord; export function decodeCollectionAuthorityRecord< - TAddress extends string = string + TAddress extends string = string, >( encodedAccount: MaybeEncodedAccount ): MaybeCollectionAuthorityRecord; export function decodeCollectionAuthorityRecord< - TAddress extends string = string + TAddress extends string = string, >( encodedAccount: EncodedAccount | MaybeEncodedAccount ): @@ -111,7 +111,7 @@ export function decodeCollectionAuthorityRecord< } export async function fetchCollectionAuthorityRecord< - TAddress extends string = string + TAddress extends string = string, >( rpc: Parameters[0], address: Address, @@ -127,7 +127,7 @@ export async function fetchCollectionAuthorityRecord< } export async function fetchMaybeCollectionAuthorityRecord< - TAddress extends string = string + TAddress extends string = string, >( rpc: Parameters[0], address: Address, diff --git a/test/packages/js-experimental/src/generated/accounts/delegateRecord.ts b/test/packages/js-experimental/src/generated/accounts/delegateRecord.ts index 8855c2d3b..4078f96d3 100644 --- a/test/packages/js-experimental/src/generated/accounts/delegateRecord.ts +++ b/test/packages/js-experimental/src/generated/accounts/delegateRecord.ts @@ -116,7 +116,7 @@ export async function fetchDelegateRecord( } export async function fetchMaybeDelegateRecord< - TAddress extends string = string + TAddress extends string = string, >( rpc: Parameters[0], address: Address, diff --git a/test/packages/js-experimental/src/generated/accounts/frequencyAccount.ts b/test/packages/js-experimental/src/generated/accounts/frequencyAccount.ts index 38a761b8c..371b50479 100644 --- a/test/packages/js-experimental/src/generated/accounts/frequencyAccount.ts +++ b/test/packages/js-experimental/src/generated/accounts/frequencyAccount.ts @@ -119,7 +119,7 @@ export async function fetchFrequencyAccount( } export async function fetchMaybeFrequencyAccount< - TAddress extends string = string + TAddress extends string = string, >( rpc: Parameters[0], address: Address, diff --git a/test/packages/js-experimental/src/generated/accounts/masterEditionV1.ts b/test/packages/js-experimental/src/generated/accounts/masterEditionV1.ts index 2ce2da393..f4adb8cac 100644 --- a/test/packages/js-experimental/src/generated/accounts/masterEditionV1.ts +++ b/test/packages/js-experimental/src/generated/accounts/masterEditionV1.ts @@ -124,7 +124,7 @@ export async function fetchMasterEditionV1( } export async function fetchMaybeMasterEditionV1< - TAddress extends string = string + TAddress extends string = string, >( rpc: Parameters[0], address: Address, diff --git a/test/packages/js-experimental/src/generated/accounts/masterEditionV2.ts b/test/packages/js-experimental/src/generated/accounts/masterEditionV2.ts index 32c656872..0681f91c0 100644 --- a/test/packages/js-experimental/src/generated/accounts/masterEditionV2.ts +++ b/test/packages/js-experimental/src/generated/accounts/masterEditionV2.ts @@ -112,7 +112,7 @@ export async function fetchMasterEditionV2( } export async function fetchMaybeMasterEditionV2< - TAddress extends string = string + TAddress extends string = string, >( rpc: Parameters[0], address: Address, diff --git a/test/packages/js-experimental/src/generated/accounts/reservationListV1.ts b/test/packages/js-experimental/src/generated/accounts/reservationListV1.ts index e2f84c245..93f07e846 100644 --- a/test/packages/js-experimental/src/generated/accounts/reservationListV1.ts +++ b/test/packages/js-experimental/src/generated/accounts/reservationListV1.ts @@ -59,7 +59,7 @@ export async function fetchReservationListV1( } export async function fetchMaybeReservationListV1< - TAddress extends string = string + TAddress extends string = string, >( rpc: Parameters[0], address: Address, diff --git a/test/packages/js-experimental/src/generated/accounts/reservationListV2.ts b/test/packages/js-experimental/src/generated/accounts/reservationListV2.ts index f0cc68fb7..be3637a77 100644 --- a/test/packages/js-experimental/src/generated/accounts/reservationListV2.ts +++ b/test/packages/js-experimental/src/generated/accounts/reservationListV2.ts @@ -137,7 +137,7 @@ export async function fetchReservationListV2( } export async function fetchMaybeReservationListV2< - TAddress extends string = string + TAddress extends string = string, >( rpc: Parameters[0], address: Address, diff --git a/test/packages/js-experimental/src/generated/accounts/tokenOwnedEscrow.ts b/test/packages/js-experimental/src/generated/accounts/tokenOwnedEscrow.ts index 458cd9c6a..9d511c49f 100644 --- a/test/packages/js-experimental/src/generated/accounts/tokenOwnedEscrow.ts +++ b/test/packages/js-experimental/src/generated/accounts/tokenOwnedEscrow.ts @@ -123,7 +123,7 @@ export async function fetchTokenOwnedEscrow( } export async function fetchMaybeTokenOwnedEscrow< - TAddress extends string = string + TAddress extends string = string, >( rpc: Parameters[0], address: Address, diff --git a/test/packages/js-experimental/src/generated/accounts/useAuthorityRecord.ts b/test/packages/js-experimental/src/generated/accounts/useAuthorityRecord.ts index 387cec766..be859b6dd 100644 --- a/test/packages/js-experimental/src/generated/accounts/useAuthorityRecord.ts +++ b/test/packages/js-experimental/src/generated/accounts/useAuthorityRecord.ts @@ -109,7 +109,7 @@ export async function fetchUseAuthorityRecord( } export async function fetchMaybeUseAuthorityRecord< - TAddress extends string = string + TAddress extends string = string, >( rpc: Parameters[0], address: Address, diff --git a/test/packages/js-experimental/src/generated/instructions/addConfigLines.ts b/test/packages/js-experimental/src/generated/instructions/addConfigLines.ts index 9454220dc..b1d307019 100644 --- a/test/packages/js-experimental/src/generated/instructions/addConfigLines.ts +++ b/test/packages/js-experimental/src/generated/instructions/addConfigLines.ts @@ -50,7 +50,7 @@ export type AddConfigLinesInstruction< TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', TAccountCandyMachine extends string | IAccountMeta = string, TAccountAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -61,7 +61,7 @@ export type AddConfigLinesInstruction< TAccountAuthority extends string ? ReadonlySignerAccount : TAccountAuthority, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -69,7 +69,7 @@ export type AddConfigLinesInstructionWithSigners< TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', TAccountCandyMachine extends string | IAccountMeta = string, TAccountAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -81,7 +81,7 @@ export type AddConfigLinesInstructionWithSigners< ? ReadonlySignerAccount & IAccountSignerMeta : TAccountAuthority, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -142,7 +142,7 @@ export function getAddConfigLinesInstructionDataCodec(): Codec< export type AddConfigLinesInput< TAccountCandyMachine extends string, - TAccountAuthority extends string + TAccountAuthority extends string, > = { candyMachine: Address; authority: Address; @@ -153,7 +153,7 @@ export type AddConfigLinesInput< export type AddConfigLinesInputWithSigners< TAccountCandyMachine extends string, - TAccountAuthority extends string + TAccountAuthority extends string, > = { candyMachine: Address; authority: TransactionSigner; @@ -165,7 +165,7 @@ export type AddConfigLinesInputWithSigners< export function getAddConfigLinesInstruction< TAccountCandyMachine extends string, TAccountAuthority extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: AddConfigLinesInputWithSigners ): AddConfigLinesInstructionWithSigners< @@ -176,14 +176,14 @@ export function getAddConfigLinesInstruction< export function getAddConfigLinesInstruction< TAccountCandyMachine extends string, TAccountAuthority extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: AddConfigLinesInput ): AddConfigLinesInstruction; export function getAddConfigLinesInstruction< TAccountCandyMachine extends string, TAccountAuthority extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: AddConfigLinesInput ): IInstruction { @@ -227,7 +227,7 @@ export function getAddConfigLinesInstructionRaw< TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', TAccountCandyMachine extends string | IAccountMeta = string, TAccountAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { candyMachine: TAccountCandyMachine extends string @@ -259,7 +259,7 @@ export function getAddConfigLinesInstructionRaw< export type ParsedAddConfigLinesInstruction< TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -271,7 +271,7 @@ export type ParsedAddConfigLinesInstruction< export function parseAddConfigLinesInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/approveCollectionAuthority.ts b/test/packages/js-experimental/src/generated/instructions/approveCollectionAuthority.ts index e21875abb..9d63faea9 100644 --- a/test/packages/js-experimental/src/generated/instructions/approveCollectionAuthority.ts +++ b/test/packages/js-experimental/src/generated/instructions/approveCollectionAuthority.ts @@ -49,7 +49,7 @@ export type ApproveCollectionAuthorityInstruction< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -78,7 +78,7 @@ export type ApproveCollectionAuthorityInstruction< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -96,7 +96,7 @@ export type ApproveCollectionAuthorityInstructionWithSigners< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -127,7 +127,7 @@ export type ApproveCollectionAuthorityInstructionWithSigners< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -166,7 +166,7 @@ export type ApproveCollectionAuthorityInput< TAccountMetadata extends string, TAccountMint extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Collection Authority Record PDA */ collectionAuthorityRecord: Address; @@ -194,7 +194,7 @@ export type ApproveCollectionAuthorityInputWithSigners< TAccountMetadata extends string, TAccountMint extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Collection Authority Record PDA */ collectionAuthorityRecord: Address; @@ -223,7 +223,7 @@ export function getApproveCollectionAuthorityInstruction< TAccountMint extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: ApproveCollectionAuthorityInputWithSigners< TAccountCollectionAuthorityRecord, @@ -255,7 +255,7 @@ export function getApproveCollectionAuthorityInstruction< TAccountMint extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: ApproveCollectionAuthorityInput< TAccountCollectionAuthorityRecord, @@ -287,7 +287,7 @@ export function getApproveCollectionAuthorityInstruction< TAccountMint extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: ApproveCollectionAuthorityInput< TAccountCollectionAuthorityRecord, @@ -370,7 +370,7 @@ export function getApproveCollectionAuthorityInstructionRaw< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { collectionAuthorityRecord: TAccountCollectionAuthorityRecord extends string @@ -447,7 +447,7 @@ export function getApproveCollectionAuthorityInstructionRaw< export type ParsedApproveCollectionAuthorityInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -473,7 +473,7 @@ export type ParsedApproveCollectionAuthorityInstruction< export function parseApproveCollectionAuthorityInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/approveUseAuthority.ts b/test/packages/js-experimental/src/generated/instructions/approveUseAuthority.ts index f3b153881..f4223fa40 100644 --- a/test/packages/js-experimental/src/generated/instructions/approveUseAuthority.ts +++ b/test/packages/js-experimental/src/generated/instructions/approveUseAuthority.ts @@ -54,7 +54,7 @@ export type ApproveUseAuthorityInstruction< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -92,7 +92,7 @@ export type ApproveUseAuthorityInstruction< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -113,7 +113,7 @@ export type ApproveUseAuthorityInstructionWithSigners< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -153,7 +153,7 @@ export type ApproveUseAuthorityInstructionWithSigners< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -204,7 +204,7 @@ export type ApproveUseAuthorityInput< TAccountBurner extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Use Authority Record PDA */ useAuthorityRecord: Address; @@ -242,7 +242,7 @@ export type ApproveUseAuthorityInputWithSigners< TAccountBurner extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Use Authority Record PDA */ useAuthorityRecord: Address; @@ -281,7 +281,7 @@ export function getApproveUseAuthorityInstruction< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: ApproveUseAuthorityInputWithSigners< TAccountUseAuthorityRecord, @@ -322,7 +322,7 @@ export function getApproveUseAuthorityInstruction< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: ApproveUseAuthorityInput< TAccountUseAuthorityRecord, @@ -363,7 +363,7 @@ export function getApproveUseAuthorityInstruction< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: ApproveUseAuthorityInput< TAccountUseAuthorityRecord, @@ -466,7 +466,7 @@ export function getApproveUseAuthorityInstructionRaw< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { useAuthorityRecord: TAccountUseAuthorityRecord extends string @@ -552,7 +552,7 @@ export function getApproveUseAuthorityInstructionRaw< export type ParsedApproveUseAuthorityInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -584,7 +584,7 @@ export type ParsedApproveUseAuthorityInstruction< export function parseApproveUseAuthorityInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/bubblegumSetCollectionSize.ts b/test/packages/js-experimental/src/generated/instructions/bubblegumSetCollectionSize.ts index e0c69b281..30fa001e8 100644 --- a/test/packages/js-experimental/src/generated/instructions/bubblegumSetCollectionSize.ts +++ b/test/packages/js-experimental/src/generated/instructions/bubblegumSetCollectionSize.ts @@ -51,7 +51,7 @@ export type BubblegumSetCollectionSizeInstruction< TAccountCollectionAuthorityRecord extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -71,7 +71,7 @@ export type BubblegumSetCollectionSizeInstruction< TAccountCollectionAuthorityRecord extends string ? ReadonlyAccount : TAccountCollectionAuthorityRecord, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -84,7 +84,7 @@ export type BubblegumSetCollectionSizeInstructionWithSigners< TAccountCollectionAuthorityRecord extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -106,7 +106,7 @@ export type BubblegumSetCollectionSizeInstructionWithSigners< TAccountCollectionAuthorityRecord extends string ? ReadonlyAccount : TAccountCollectionAuthorityRecord, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -151,7 +151,7 @@ export type BubblegumSetCollectionSizeInput< TAccountCollectionAuthority extends string, TAccountCollectionMint extends string, TAccountBubblegumSigner extends string, - TAccountCollectionAuthorityRecord extends string + TAccountCollectionAuthorityRecord extends string, > = { /** Collection Metadata account */ collectionMetadata: Address; @@ -171,7 +171,7 @@ export type BubblegumSetCollectionSizeInputWithSigners< TAccountCollectionAuthority extends string, TAccountCollectionMint extends string, TAccountBubblegumSigner extends string, - TAccountCollectionAuthorityRecord extends string + TAccountCollectionAuthorityRecord extends string, > = { /** Collection Metadata account */ collectionMetadata: Address; @@ -192,7 +192,7 @@ export function getBubblegumSetCollectionSizeInstruction< TAccountCollectionMint extends string, TAccountBubblegumSigner extends string, TAccountCollectionAuthorityRecord extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: BubblegumSetCollectionSizeInputWithSigners< TAccountCollectionMetadata, @@ -215,7 +215,7 @@ export function getBubblegumSetCollectionSizeInstruction< TAccountCollectionMint extends string, TAccountBubblegumSigner extends string, TAccountCollectionAuthorityRecord extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: BubblegumSetCollectionSizeInput< TAccountCollectionMetadata, @@ -238,7 +238,7 @@ export function getBubblegumSetCollectionSizeInstruction< TAccountCollectionMint extends string, TAccountBubblegumSigner extends string, TAccountCollectionAuthorityRecord extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: BubblegumSetCollectionSizeInput< TAccountCollectionMetadata, @@ -311,7 +311,7 @@ export function getBubblegumSetCollectionSizeInstructionRaw< TAccountCollectionAuthorityRecord extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { collectionMetadata: TAccountCollectionMetadata extends string @@ -371,7 +371,7 @@ export function getBubblegumSetCollectionSizeInstructionRaw< export type ParsedBubblegumSetCollectionSizeInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -391,7 +391,7 @@ export type ParsedBubblegumSetCollectionSizeInstruction< export function parseBubblegumSetCollectionSizeInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/burn.ts b/test/packages/js-experimental/src/generated/instructions/burn.ts index d6c0f9648..d76d5c758 100644 --- a/test/packages/js-experimental/src/generated/instructions/burn.ts +++ b/test/packages/js-experimental/src/generated/instructions/burn.ts @@ -56,7 +56,7 @@ export type BurnInstruction< TAccountAuthorizationRulesProgram extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -88,7 +88,7 @@ export type BurnInstruction< TAccountAuthorizationRulesProgram extends string ? ReadonlyAccount : TAccountAuthorizationRulesProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -107,7 +107,7 @@ export type BurnInstructionWithSigners< TAccountAuthorizationRulesProgram extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -140,7 +140,7 @@ export type BurnInstructionWithSigners< TAccountAuthorizationRulesProgram extends string ? ReadonlyAccount : TAccountAuthorizationRulesProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -184,7 +184,7 @@ export type BurnInput< TAccountSplTokenProgram extends string, TAccountCollectionMetadata extends string, TAccountAuthorizationRules extends string, - TAccountAuthorizationRulesProgram extends string + TAccountAuthorizationRulesProgram extends string, > = { /** Metadata (pda of ['metadata', program id, mint id]) */ metadata: Address; @@ -216,7 +216,7 @@ export type BurnInputWithSigners< TAccountSplTokenProgram extends string, TAccountCollectionMetadata extends string, TAccountAuthorizationRules extends string, - TAccountAuthorizationRulesProgram extends string + TAccountAuthorizationRulesProgram extends string, > = { /** Metadata (pda of ['metadata', program id, mint id]) */ metadata: Address; @@ -249,7 +249,7 @@ export function getBurnInstruction< TAccountCollectionMetadata extends string, TAccountAuthorizationRules extends string, TAccountAuthorizationRulesProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: BurnInputWithSigners< TAccountMetadata, @@ -284,7 +284,7 @@ export function getBurnInstruction< TAccountCollectionMetadata extends string, TAccountAuthorizationRules extends string, TAccountAuthorizationRulesProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: BurnInput< TAccountMetadata, @@ -319,7 +319,7 @@ export function getBurnInstruction< TAccountCollectionMetadata extends string, TAccountAuthorizationRules extends string, TAccountAuthorizationRulesProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: BurnInput< TAccountMetadata, @@ -419,7 +419,7 @@ export function getBurnInstructionRaw< TAccountAuthorizationRulesProgram extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -512,7 +512,7 @@ export function getBurnInstructionRaw< export type ParsedBurnInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -540,7 +540,7 @@ export type ParsedBurnInstruction< export function parseBurnInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/burnEditionNft.ts b/test/packages/js-experimental/src/generated/instructions/burnEditionNft.ts index 5a2220899..1e316fab3 100644 --- a/test/packages/js-experimental/src/generated/instructions/burnEditionNft.ts +++ b/test/packages/js-experimental/src/generated/instructions/burnEditionNft.ts @@ -53,7 +53,7 @@ export type BurnEditionNftInstruction< TAccountSplTokenProgram extends | string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -88,7 +88,7 @@ export type BurnEditionNftInstruction< TAccountSplTokenProgram extends string ? ReadonlyAccount : TAccountSplTokenProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -110,7 +110,7 @@ export type BurnEditionNftInstructionWithSigners< TAccountSplTokenProgram extends | string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -146,7 +146,7 @@ export type BurnEditionNftInstructionWithSigners< TAccountSplTokenProgram extends string ? ReadonlyAccount : TAccountSplTokenProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -185,7 +185,7 @@ export type BurnEditionNftInput< TAccountMasterEditionAccount extends string, TAccountPrintEditionAccount extends string, TAccountEditionMarkerAccount extends string, - TAccountSplTokenProgram extends string + TAccountSplTokenProgram extends string, > = { /** Metadata (pda of ['metadata', program id, mint id]) */ metadata: Address; @@ -219,7 +219,7 @@ export type BurnEditionNftInputWithSigners< TAccountMasterEditionAccount extends string, TAccountPrintEditionAccount extends string, TAccountEditionMarkerAccount extends string, - TAccountSplTokenProgram extends string + TAccountSplTokenProgram extends string, > = { /** Metadata (pda of ['metadata', program id, mint id]) */ metadata: Address; @@ -254,7 +254,7 @@ export function getBurnEditionNftInstruction< TAccountPrintEditionAccount extends string, TAccountEditionMarkerAccount extends string, TAccountSplTokenProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: BurnEditionNftInputWithSigners< TAccountMetadata, @@ -292,7 +292,7 @@ export function getBurnEditionNftInstruction< TAccountPrintEditionAccount extends string, TAccountEditionMarkerAccount extends string, TAccountSplTokenProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: BurnEditionNftInput< TAccountMetadata, @@ -330,7 +330,7 @@ export function getBurnEditionNftInstruction< TAccountPrintEditionAccount extends string, TAccountEditionMarkerAccount extends string, TAccountSplTokenProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: BurnEditionNftInput< TAccountMetadata, @@ -441,7 +441,7 @@ export function getBurnEditionNftInstructionRaw< TAccountSplTokenProgram extends | string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -531,7 +531,7 @@ export function getBurnEditionNftInstructionRaw< export type ParsedBurnEditionNftInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -561,7 +561,7 @@ export type ParsedBurnEditionNftInstruction< export function parseBurnEditionNftInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/burnNft.ts b/test/packages/js-experimental/src/generated/instructions/burnNft.ts index 5b410a823..496f9edc6 100644 --- a/test/packages/js-experimental/src/generated/instructions/burnNft.ts +++ b/test/packages/js-experimental/src/generated/instructions/burnNft.ts @@ -46,7 +46,7 @@ export type BurnNftInstruction< | string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountCollectionMetadata extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -72,7 +72,7 @@ export type BurnNftInstruction< TAccountCollectionMetadata extends string ? WritableAccount : TAccountCollectionMetadata, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -87,7 +87,7 @@ export type BurnNftInstructionWithSigners< | string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountCollectionMetadata extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -114,7 +114,7 @@ export type BurnNftInstructionWithSigners< TAccountCollectionMetadata extends string ? WritableAccount : TAccountCollectionMetadata, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -150,7 +150,7 @@ export type BurnNftInput< TAccountTokenAccount extends string, TAccountMasterEditionAccount extends string, TAccountSplTokenProgram extends string, - TAccountCollectionMetadata extends string + TAccountCollectionMetadata extends string, > = { /** Metadata (pda of ['metadata', program id, mint id]) */ metadata: Address; @@ -175,7 +175,7 @@ export type BurnNftInputWithSigners< TAccountTokenAccount extends string, TAccountMasterEditionAccount extends string, TAccountSplTokenProgram extends string, - TAccountCollectionMetadata extends string + TAccountCollectionMetadata extends string, > = { /** Metadata (pda of ['metadata', program id, mint id]) */ metadata: Address; @@ -201,7 +201,7 @@ export function getBurnNftInstruction< TAccountMasterEditionAccount extends string, TAccountSplTokenProgram extends string, TAccountCollectionMetadata extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: BurnNftInputWithSigners< TAccountMetadata, @@ -230,7 +230,7 @@ export function getBurnNftInstruction< TAccountMasterEditionAccount extends string, TAccountSplTokenProgram extends string, TAccountCollectionMetadata extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: BurnNftInput< TAccountMetadata, @@ -259,7 +259,7 @@ export function getBurnNftInstruction< TAccountMasterEditionAccount extends string, TAccountSplTokenProgram extends string, TAccountCollectionMetadata extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: BurnNftInput< TAccountMetadata, @@ -339,7 +339,7 @@ export function getBurnNftInstructionRaw< | string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountCollectionMetadata extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -407,7 +407,7 @@ export function getBurnNftInstructionRaw< export type ParsedBurnNftInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -431,7 +431,7 @@ export type ParsedBurnNftInstruction< export function parseBurnNftInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/closeEscrowAccount.ts b/test/packages/js-experimental/src/generated/instructions/closeEscrowAccount.ts index 8b5ab3080..2d30ffa59 100644 --- a/test/packages/js-experimental/src/generated/instructions/closeEscrowAccount.ts +++ b/test/packages/js-experimental/src/generated/instructions/closeEscrowAccount.ts @@ -49,7 +49,7 @@ export type CloseEscrowAccountInstruction< TAccountSysvarInstructions extends | string | IAccountMeta = 'Sysvar1nstructions1111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -78,7 +78,7 @@ export type CloseEscrowAccountInstruction< TAccountSysvarInstructions extends string ? ReadonlyAccount : TAccountSysvarInstructions, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -96,7 +96,7 @@ export type CloseEscrowAccountInstructionWithSigners< TAccountSysvarInstructions extends | string | IAccountMeta = 'Sysvar1nstructions1111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -126,7 +126,7 @@ export type CloseEscrowAccountInstructionWithSigners< TAccountSysvarInstructions extends string ? ReadonlyAccount : TAccountSysvarInstructions, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -163,7 +163,7 @@ export type CloseEscrowAccountInput< TAccountEdition extends string, TAccountPayer extends string, TAccountSystemProgram extends string, - TAccountSysvarInstructions extends string + TAccountSysvarInstructions extends string, > = { /** Escrow account */ escrow: Address; @@ -191,7 +191,7 @@ export type CloseEscrowAccountInputWithSigners< TAccountEdition extends string, TAccountPayer extends string, TAccountSystemProgram extends string, - TAccountSysvarInstructions extends string + TAccountSysvarInstructions extends string, > = { /** Escrow account */ escrow: Address; @@ -220,7 +220,7 @@ export function getCloseEscrowAccountInstruction< TAccountPayer extends string, TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CloseEscrowAccountInputWithSigners< TAccountEscrow, @@ -252,7 +252,7 @@ export function getCloseEscrowAccountInstruction< TAccountPayer extends string, TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CloseEscrowAccountInput< TAccountEscrow, @@ -284,7 +284,7 @@ export function getCloseEscrowAccountInstruction< TAccountPayer extends string, TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CloseEscrowAccountInput< TAccountEscrow, @@ -368,7 +368,7 @@ export function getCloseEscrowAccountInstructionRaw< TAccountSysvarInstructions extends | string | IAccountMeta = 'Sysvar1nstructions1111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { escrow: TAccountEscrow extends string @@ -435,7 +435,7 @@ export function getCloseEscrowAccountInstructionRaw< export type ParsedCloseEscrowAccountInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -461,7 +461,7 @@ export type ParsedCloseEscrowAccountInstruction< export function parseCloseEscrowAccountInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/convertMasterEditionV1ToV2.ts b/test/packages/js-experimental/src/generated/instructions/convertMasterEditionV1ToV2.ts index c239f4d4d..e285b1f9b 100644 --- a/test/packages/js-experimental/src/generated/instructions/convertMasterEditionV1ToV2.ts +++ b/test/packages/js-experimental/src/generated/instructions/convertMasterEditionV1ToV2.ts @@ -37,7 +37,7 @@ export type ConvertMasterEditionV1ToV2Instruction< TAccountMasterEdition extends string | IAccountMeta = string, TAccountOneTimeAuth extends string | IAccountMeta = string, TAccountPrintingMint extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -51,7 +51,7 @@ export type ConvertMasterEditionV1ToV2Instruction< TAccountPrintingMint extends string ? WritableAccount : TAccountPrintingMint, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -60,7 +60,7 @@ export type ConvertMasterEditionV1ToV2InstructionWithSigners< TAccountMasterEdition extends string | IAccountMeta = string, TAccountOneTimeAuth extends string | IAccountMeta = string, TAccountPrintingMint extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -74,7 +74,7 @@ export type ConvertMasterEditionV1ToV2InstructionWithSigners< TAccountPrintingMint extends string ? WritableAccount : TAccountPrintingMint, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -108,7 +108,7 @@ export function getConvertMasterEditionV1ToV2InstructionDataCodec(): Codec< export type ConvertMasterEditionV1ToV2Input< TAccountMasterEdition extends string, TAccountOneTimeAuth extends string, - TAccountPrintingMint extends string + TAccountPrintingMint extends string, > = { /** Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition']) */ masterEdition: Address; @@ -121,7 +121,7 @@ export type ConvertMasterEditionV1ToV2Input< export type ConvertMasterEditionV1ToV2InputWithSigners< TAccountMasterEdition extends string, TAccountOneTimeAuth extends string, - TAccountPrintingMint extends string + TAccountPrintingMint extends string, > = { /** Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition']) */ masterEdition: Address; @@ -135,7 +135,7 @@ export function getConvertMasterEditionV1ToV2Instruction< TAccountMasterEdition extends string, TAccountOneTimeAuth extends string, TAccountPrintingMint extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: ConvertMasterEditionV1ToV2InputWithSigners< TAccountMasterEdition, @@ -152,7 +152,7 @@ export function getConvertMasterEditionV1ToV2Instruction< TAccountMasterEdition extends string, TAccountOneTimeAuth extends string, TAccountPrintingMint extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: ConvertMasterEditionV1ToV2Input< TAccountMasterEdition, @@ -169,7 +169,7 @@ export function getConvertMasterEditionV1ToV2Instruction< TAccountMasterEdition extends string, TAccountOneTimeAuth extends string, TAccountPrintingMint extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: ConvertMasterEditionV1ToV2Input< TAccountMasterEdition, @@ -216,7 +216,7 @@ export function getConvertMasterEditionV1ToV2InstructionRaw< TAccountMasterEdition extends string | IAccountMeta = string, TAccountOneTimeAuth extends string | IAccountMeta = string, TAccountPrintingMint extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { masterEdition: TAccountMasterEdition extends string @@ -252,7 +252,7 @@ export function getConvertMasterEditionV1ToV2InstructionRaw< export type ParsedConvertMasterEditionV1ToV2Instruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -268,7 +268,7 @@ export type ParsedConvertMasterEditionV1ToV2Instruction< export function parseConvertMasterEditionV1ToV2Instruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/createAccount.ts b/test/packages/js-experimental/src/generated/instructions/createAccount.ts index 2e959bd71..3359a4dc0 100644 --- a/test/packages/js-experimental/src/generated/instructions/createAccount.ts +++ b/test/packages/js-experimental/src/generated/instructions/createAccount.ts @@ -43,7 +43,7 @@ export type CreateAccountInstruction< TProgram extends string = '11111111111111111111111111111111', TAccountPayer extends string | IAccountMeta = string, TAccountNewAccount extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -54,7 +54,7 @@ export type CreateAccountInstruction< TAccountNewAccount extends string ? WritableSignerAccount : TAccountNewAccount, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -62,7 +62,7 @@ export type CreateAccountInstructionWithSigners< TProgram extends string = '11111111111111111111111111111111', TAccountPayer extends string | IAccountMeta = string, TAccountNewAccount extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -75,7 +75,7 @@ export type CreateAccountInstructionWithSigners< ? WritableSignerAccount & IAccountSignerMeta : TAccountNewAccount, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -125,7 +125,7 @@ export function getCreateAccountInstructionDataCodec(): Codec< export type CreateAccountInput< TAccountPayer extends string, - TAccountNewAccount extends string + TAccountNewAccount extends string, > = { payer: Address; newAccount: Address; @@ -136,7 +136,7 @@ export type CreateAccountInput< export type CreateAccountInputWithSigners< TAccountPayer extends string, - TAccountNewAccount extends string + TAccountNewAccount extends string, > = { payer: TransactionSigner; newAccount: TransactionSigner; @@ -148,7 +148,7 @@ export type CreateAccountInputWithSigners< export function getCreateAccountInstruction< TAccountPayer extends string, TAccountNewAccount extends string, - TProgram extends string = '11111111111111111111111111111111' + TProgram extends string = '11111111111111111111111111111111', >( input: CreateAccountInputWithSigners ): CreateAccountInstructionWithSigners< @@ -159,14 +159,14 @@ export function getCreateAccountInstruction< export function getCreateAccountInstruction< TAccountPayer extends string, TAccountNewAccount extends string, - TProgram extends string = '11111111111111111111111111111111' + TProgram extends string = '11111111111111111111111111111111', >( input: CreateAccountInput ): CreateAccountInstruction; export function getCreateAccountInstruction< TAccountPayer extends string, TAccountNewAccount extends string, - TProgram extends string = '11111111111111111111111111111111' + TProgram extends string = '11111111111111111111111111111111', >(input: CreateAccountInput): IInstruction { // Program address. const programAddress = @@ -208,7 +208,7 @@ export function getCreateAccountInstructionRaw< TProgram extends string = '11111111111111111111111111111111', TAccountPayer extends string | IAccountMeta = string, TAccountNewAccount extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { payer: TAccountPayer extends string @@ -240,7 +240,7 @@ export function getCreateAccountInstructionRaw< export type ParsedCreateAccountInstruction< TProgram extends string = '11111111111111111111111111111111', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -252,7 +252,7 @@ export type ParsedCreateAccountInstruction< export function parseCreateAccountInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/createEscrowAccount.ts b/test/packages/js-experimental/src/generated/instructions/createEscrowAccount.ts index f360fb981..e079756fc 100644 --- a/test/packages/js-experimental/src/generated/instructions/createEscrowAccount.ts +++ b/test/packages/js-experimental/src/generated/instructions/createEscrowAccount.ts @@ -51,7 +51,7 @@ export type CreateEscrowAccountInstruction< | string | IAccountMeta = 'Sysvar1nstructions1111111111111111111111111', TAccountAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -83,7 +83,7 @@ export type CreateEscrowAccountInstruction< TAccountAuthority extends string ? ReadonlySignerAccount : TAccountAuthority, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -102,7 +102,7 @@ export type CreateEscrowAccountInstructionWithSigners< | string | IAccountMeta = 'Sysvar1nstructions1111111111111111111111111', TAccountAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -136,7 +136,7 @@ export type CreateEscrowAccountInstructionWithSigners< ? ReadonlySignerAccount & IAccountSignerMeta : TAccountAuthority, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -174,7 +174,7 @@ export type CreateEscrowAccountInput< TAccountPayer extends string, TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, - TAccountAuthority extends string + TAccountAuthority extends string, > = { /** Escrow account */ escrow: Address; @@ -205,7 +205,7 @@ export type CreateEscrowAccountInputWithSigners< TAccountPayer extends string, TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, - TAccountAuthority extends string + TAccountAuthority extends string, > = { /** Escrow account */ escrow: Address; @@ -237,7 +237,7 @@ export function getCreateEscrowAccountInstruction< TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, TAccountAuthority extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateEscrowAccountInputWithSigners< TAccountEscrow, @@ -272,7 +272,7 @@ export function getCreateEscrowAccountInstruction< TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, TAccountAuthority extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateEscrowAccountInput< TAccountEscrow, @@ -307,7 +307,7 @@ export function getCreateEscrowAccountInstruction< TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, TAccountAuthority extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateEscrowAccountInput< TAccountEscrow, @@ -395,7 +395,7 @@ export function getCreateEscrowAccountInstructionRaw< | string | IAccountMeta = 'Sysvar1nstructions1111111111111111111111111', TAccountAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { escrow: TAccountEscrow extends string @@ -474,7 +474,7 @@ export function getCreateEscrowAccountInstructionRaw< export type ParsedCreateEscrowAccountInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -502,7 +502,7 @@ export type ParsedCreateEscrowAccountInstruction< export function parseCreateEscrowAccountInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/createFrequencyRule.ts b/test/packages/js-experimental/src/generated/instructions/createFrequencyRule.ts index 8418caab0..4cbb4b5d5 100644 --- a/test/packages/js-experimental/src/generated/instructions/createFrequencyRule.ts +++ b/test/packages/js-experimental/src/generated/instructions/createFrequencyRule.ts @@ -46,7 +46,7 @@ export type CreateFrequencyRuleInstruction< TAccountSystemProgram extends | string | IAccountMeta = '11111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -60,7 +60,7 @@ export type CreateFrequencyRuleInstruction< TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -71,7 +71,7 @@ export type CreateFrequencyRuleInstructionWithSigners< TAccountSystemProgram extends | string | IAccountMeta = '11111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -86,7 +86,7 @@ export type CreateFrequencyRuleInstructionWithSigners< TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -141,7 +141,7 @@ export function getCreateFrequencyRuleInstructionDataCodec(): Codec< export type CreateFrequencyRuleInput< TAccountPayer extends string, TAccountFrequencyPda extends string, - TAccountSystemProgram extends string + TAccountSystemProgram extends string, > = { /** Payer and creator of the Frequency Rule */ payer: Address; @@ -158,7 +158,7 @@ export type CreateFrequencyRuleInput< export type CreateFrequencyRuleInputWithSigners< TAccountPayer extends string, TAccountFrequencyPda extends string, - TAccountSystemProgram extends string + TAccountSystemProgram extends string, > = { /** Payer and creator of the Frequency Rule */ payer: TransactionSigner; @@ -176,7 +176,7 @@ export function getCreateFrequencyRuleInstruction< TAccountPayer extends string, TAccountFrequencyPda extends string, TAccountSystemProgram extends string, - TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg' + TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg', >( input: CreateFrequencyRuleInputWithSigners< TAccountPayer, @@ -193,7 +193,7 @@ export function getCreateFrequencyRuleInstruction< TAccountPayer extends string, TAccountFrequencyPda extends string, TAccountSystemProgram extends string, - TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg' + TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg', >( input: CreateFrequencyRuleInput< TAccountPayer, @@ -210,7 +210,7 @@ export function getCreateFrequencyRuleInstruction< TAccountPayer extends string, TAccountFrequencyPda extends string, TAccountSystemProgram extends string, - TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg' + TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg', >( input: CreateFrequencyRuleInput< TAccountPayer, @@ -269,7 +269,7 @@ export function getCreateFrequencyRuleInstructionRaw< TAccountSystemProgram extends | string | IAccountMeta = '11111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { payer: TAccountPayer extends string @@ -310,7 +310,7 @@ export function getCreateFrequencyRuleInstructionRaw< export type ParsedCreateFrequencyRuleInstruction< TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -326,7 +326,7 @@ export type ParsedCreateFrequencyRuleInstruction< export function parseCreateFrequencyRuleInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/createMasterEdition.ts b/test/packages/js-experimental/src/generated/instructions/createMasterEdition.ts index 51e8ed085..bbf906d12 100644 --- a/test/packages/js-experimental/src/generated/instructions/createMasterEdition.ts +++ b/test/packages/js-experimental/src/generated/instructions/createMasterEdition.ts @@ -59,7 +59,7 @@ export type CreateMasterEditionInstruction< TAccountRent extends | string | IAccountMeta = 'SysvarRent111111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -91,7 +91,7 @@ export type CreateMasterEditionInstruction< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -112,7 +112,7 @@ export type CreateMasterEditionInstructionWithSigners< TAccountRent extends | string | IAccountMeta = 'SysvarRent111111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -147,7 +147,7 @@ export type CreateMasterEditionInstructionWithSigners< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -196,7 +196,7 @@ export type CreateMasterEditionInput< TAccountMetadata extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Unallocated edition V2 account with address as pda of ['metadata', program id, mint, 'edition'] */ edition: Address; @@ -228,7 +228,7 @@ export type CreateMasterEditionInputWithSigners< TAccountMetadata extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Unallocated edition V2 account with address as pda of ['metadata', program id, mint, 'edition'] */ edition: Address; @@ -261,7 +261,7 @@ export function getCreateMasterEditionInstruction< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateMasterEditionInputWithSigners< TAccountEdition, @@ -296,7 +296,7 @@ export function getCreateMasterEditionInstruction< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateMasterEditionInput< TAccountEdition, @@ -331,7 +331,7 @@ export function getCreateMasterEditionInstruction< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateMasterEditionInput< TAccountEdition, @@ -429,7 +429,7 @@ export function getCreateMasterEditionInstructionRaw< TAccountRent extends | string | IAccountMeta = 'SysvarRent111111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { edition: TAccountEdition extends string @@ -510,7 +510,7 @@ export function getCreateMasterEditionInstructionRaw< export type ParsedCreateMasterEditionInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -538,7 +538,7 @@ export type ParsedCreateMasterEditionInstruction< export function parseCreateMasterEditionInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/createMasterEditionV3.ts b/test/packages/js-experimental/src/generated/instructions/createMasterEditionV3.ts index c12ed1484..f11a48972 100644 --- a/test/packages/js-experimental/src/generated/instructions/createMasterEditionV3.ts +++ b/test/packages/js-experimental/src/generated/instructions/createMasterEditionV3.ts @@ -60,7 +60,7 @@ export type CreateMasterEditionV3Instruction< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -92,7 +92,7 @@ export type CreateMasterEditionV3Instruction< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -111,7 +111,7 @@ export type CreateMasterEditionV3InstructionWithSigners< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -146,7 +146,7 @@ export type CreateMasterEditionV3InstructionWithSigners< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -195,7 +195,7 @@ export type CreateMasterEditionV3Input< TAccountMetadata extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Unallocated edition V2 account with address as pda of ['metadata', program id, mint, 'edition'] */ edition: Address; @@ -227,7 +227,7 @@ export type CreateMasterEditionV3InputWithSigners< TAccountMetadata extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Unallocated edition V2 account with address as pda of ['metadata', program id, mint, 'edition'] */ edition: Address; @@ -260,7 +260,7 @@ export function getCreateMasterEditionV3Instruction< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateMasterEditionV3InputWithSigners< TAccountEdition, @@ -296,7 +296,7 @@ export function getCreateMasterEditionV3Instruction< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateMasterEditionV3Input< TAccountEdition, @@ -332,7 +332,7 @@ export function getCreateMasterEditionV3Instruction< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateMasterEditionV3Input< TAccountEdition, @@ -429,7 +429,7 @@ export function getCreateMasterEditionV3InstructionRaw< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { edition: TAccountEdition extends string @@ -513,7 +513,7 @@ export function getCreateMasterEditionV3InstructionRaw< export type ParsedCreateMasterEditionV3Instruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -541,7 +541,7 @@ export type ParsedCreateMasterEditionV3Instruction< export function parseCreateMasterEditionV3Instruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/createMetadataAccount.ts b/test/packages/js-experimental/src/generated/instructions/createMetadataAccount.ts index 6c9defa85..3c73f671b 100644 --- a/test/packages/js-experimental/src/generated/instructions/createMetadataAccount.ts +++ b/test/packages/js-experimental/src/generated/instructions/createMetadataAccount.ts @@ -73,7 +73,7 @@ export type CreateMetadataAccountInstruction< TAccountRent extends | string | IAccountMeta = 'SysvarRent111111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -99,7 +99,7 @@ export type CreateMetadataAccountInstruction< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -116,7 +116,7 @@ export type CreateMetadataAccountInstructionWithSigners< TAccountRent extends | string | IAccountMeta = 'SysvarRent111111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -144,7 +144,7 @@ export type CreateMetadataAccountInstructionWithSigners< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -229,7 +229,7 @@ export type CreateMetadataAccountAsyncInput< TAccountPayer extends string, TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Metadata key (pda of ['metadata', program id, mint id]) */ metadata?: ProgramDerivedAddress; @@ -257,7 +257,7 @@ export type CreateMetadataAccountAsyncInputWithSigners< TAccountPayer extends string, TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Metadata key (pda of ['metadata', program id, mint id]) */ metadata?: ProgramDerivedAddress; @@ -286,7 +286,7 @@ export async function getCreateMetadataAccountInstructionAsync< TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateMetadataAccountAsyncInputWithSigners< TAccountMetadata, @@ -318,7 +318,7 @@ export async function getCreateMetadataAccountInstructionAsync< TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateMetadataAccountAsyncInput< TAccountMetadata, @@ -350,7 +350,7 @@ export async function getCreateMetadataAccountInstructionAsync< TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateMetadataAccountAsyncInput< TAccountMetadata, @@ -442,7 +442,7 @@ export type CreateMetadataAccountInput< TAccountPayer extends string, TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Metadata key (pda of ['metadata', program id, mint id]) */ metadata: ProgramDerivedAddress; @@ -470,7 +470,7 @@ export type CreateMetadataAccountInputWithSigners< TAccountPayer extends string, TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Metadata key (pda of ['metadata', program id, mint id]) */ metadata: ProgramDerivedAddress; @@ -499,7 +499,7 @@ export function getCreateMetadataAccountInstruction< TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateMetadataAccountInputWithSigners< TAccountMetadata, @@ -529,7 +529,7 @@ export function getCreateMetadataAccountInstruction< TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateMetadataAccountInput< TAccountMetadata, @@ -559,7 +559,7 @@ export function getCreateMetadataAccountInstruction< TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateMetadataAccountInput< TAccountMetadata, @@ -652,7 +652,7 @@ export function getCreateMetadataAccountInstructionRaw< TAccountRent extends | string | IAccountMeta = 'SysvarRent111111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -716,7 +716,7 @@ export function getCreateMetadataAccountInstructionRaw< export type ParsedCreateMetadataAccountInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -740,7 +740,7 @@ export type ParsedCreateMetadataAccountInstruction< export function parseCreateMetadataAccountInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/createMetadataAccountV2.ts b/test/packages/js-experimental/src/generated/instructions/createMetadataAccountV2.ts index 6f217191c..3851b635f 100644 --- a/test/packages/js-experimental/src/generated/instructions/createMetadataAccountV2.ts +++ b/test/packages/js-experimental/src/generated/instructions/createMetadataAccountV2.ts @@ -55,7 +55,7 @@ export type CreateMetadataAccountV2Instruction< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -81,7 +81,7 @@ export type CreateMetadataAccountV2Instruction< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -96,7 +96,7 @@ export type CreateMetadataAccountV2InstructionWithSigners< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -124,7 +124,7 @@ export type CreateMetadataAccountV2InstructionWithSigners< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -175,7 +175,7 @@ export type CreateMetadataAccountV2Input< TAccountPayer extends string, TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Metadata key (pda of ['metadata', program id, mint id]) */ metadata: Address; @@ -202,7 +202,7 @@ export type CreateMetadataAccountV2InputWithSigners< TAccountPayer extends string, TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Metadata key (pda of ['metadata', program id, mint id]) */ metadata: Address; @@ -230,7 +230,7 @@ export function getCreateMetadataAccountV2Instruction< TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateMetadataAccountV2InputWithSigners< TAccountMetadata, @@ -259,7 +259,7 @@ export function getCreateMetadataAccountV2Instruction< TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateMetadataAccountV2Input< TAccountMetadata, @@ -288,7 +288,7 @@ export function getCreateMetadataAccountV2Instruction< TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateMetadataAccountV2Input< TAccountMetadata, @@ -366,7 +366,7 @@ export function getCreateMetadataAccountV2InstructionRaw< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -433,7 +433,7 @@ export function getCreateMetadataAccountV2InstructionRaw< export type ParsedCreateMetadataAccountV2Instruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -457,7 +457,7 @@ export type ParsedCreateMetadataAccountV2Instruction< export function parseCreateMetadataAccountV2Instruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/createMetadataAccountV3.ts b/test/packages/js-experimental/src/generated/instructions/createMetadataAccountV3.ts index 7b52fcb05..5d413ddd5 100644 --- a/test/packages/js-experimental/src/generated/instructions/createMetadataAccountV3.ts +++ b/test/packages/js-experimental/src/generated/instructions/createMetadataAccountV3.ts @@ -65,7 +65,7 @@ export type CreateMetadataAccountV3Instruction< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -91,7 +91,7 @@ export type CreateMetadataAccountV3Instruction< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -106,7 +106,7 @@ export type CreateMetadataAccountV3InstructionWithSigners< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -134,7 +134,7 @@ export type CreateMetadataAccountV3InstructionWithSigners< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -189,7 +189,7 @@ export type CreateMetadataAccountV3AsyncInput< TAccountPayer extends string, TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Metadata key (pda of ['metadata', program id, mint id]) */ metadata?: Address; @@ -217,7 +217,7 @@ export type CreateMetadataAccountV3AsyncInputWithSigners< TAccountPayer extends string, TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Metadata key (pda of ['metadata', program id, mint id]) */ metadata?: Address; @@ -246,7 +246,7 @@ export async function getCreateMetadataAccountV3InstructionAsync< TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateMetadataAccountV3AsyncInputWithSigners< TAccountMetadata, @@ -277,7 +277,7 @@ export async function getCreateMetadataAccountV3InstructionAsync< TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateMetadataAccountV3AsyncInput< TAccountMetadata, @@ -308,7 +308,7 @@ export async function getCreateMetadataAccountV3InstructionAsync< TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateMetadataAccountV3AsyncInput< TAccountMetadata, @@ -387,7 +387,7 @@ export type CreateMetadataAccountV3Input< TAccountPayer extends string, TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Metadata key (pda of ['metadata', program id, mint id]) */ metadata: Address; @@ -415,7 +415,7 @@ export type CreateMetadataAccountV3InputWithSigners< TAccountPayer extends string, TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Metadata key (pda of ['metadata', program id, mint id]) */ metadata: Address; @@ -444,7 +444,7 @@ export function getCreateMetadataAccountV3Instruction< TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateMetadataAccountV3InputWithSigners< TAccountMetadata, @@ -473,7 +473,7 @@ export function getCreateMetadataAccountV3Instruction< TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateMetadataAccountV3Input< TAccountMetadata, @@ -502,7 +502,7 @@ export function getCreateMetadataAccountV3Instruction< TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateMetadataAccountV3Input< TAccountMetadata, @@ -580,7 +580,7 @@ export function getCreateMetadataAccountV3InstructionRaw< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -647,7 +647,7 @@ export function getCreateMetadataAccountV3InstructionRaw< export type ParsedCreateMetadataAccountV3Instruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -671,7 +671,7 @@ export type ParsedCreateMetadataAccountV3Instruction< export function parseCreateMetadataAccountV3Instruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/createReservationList.ts b/test/packages/js-experimental/src/generated/instructions/createReservationList.ts index 7a453b367..fc147cca7 100644 --- a/test/packages/js-experimental/src/generated/instructions/createReservationList.ts +++ b/test/packages/js-experimental/src/generated/instructions/createReservationList.ts @@ -44,7 +44,7 @@ export type CreateReservationListInstruction< TAccountRent extends | string | IAccountMeta = 'SysvarRent111111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -73,7 +73,7 @@ export type CreateReservationListInstruction< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -91,7 +91,7 @@ export type CreateReservationListInstructionWithSigners< TAccountRent extends | string | IAccountMeta = 'SysvarRent111111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -122,7 +122,7 @@ export type CreateReservationListInstructionWithSigners< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -134,7 +134,7 @@ export type CreateReservationListInput< TAccountResource extends string, TAccountMetadata extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key] */ reservationList: Address; @@ -162,7 +162,7 @@ export type CreateReservationListInputWithSigners< TAccountResource extends string, TAccountMetadata extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key] */ reservationList: Address; @@ -191,7 +191,7 @@ export function getCreateReservationListInstruction< TAccountMetadata extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateReservationListInputWithSigners< TAccountReservationList, @@ -223,7 +223,7 @@ export function getCreateReservationListInstruction< TAccountMetadata extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateReservationListInput< TAccountReservationList, @@ -255,7 +255,7 @@ export function getCreateReservationListInstruction< TAccountMetadata extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateReservationListInput< TAccountReservationList, @@ -343,7 +343,7 @@ export function getCreateReservationListInstructionRaw< TAccountRent extends | string | IAccountMeta = 'SysvarRent111111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { reservationList: TAccountReservationList extends string @@ -414,7 +414,7 @@ export function getCreateReservationListInstructionRaw< export type ParsedCreateReservationListInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -440,7 +440,7 @@ export type ParsedCreateReservationListInstruction< export function parseCreateReservationListInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/createRuleSet.ts b/test/packages/js-experimental/src/generated/instructions/createRuleSet.ts index b550dc2e5..a9f0a7d78 100644 --- a/test/packages/js-experimental/src/generated/instructions/createRuleSet.ts +++ b/test/packages/js-experimental/src/generated/instructions/createRuleSet.ts @@ -49,7 +49,7 @@ export type CreateRuleSetInstruction< TAccountSystemProgram extends | string | IAccountMeta = '11111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -63,7 +63,7 @@ export type CreateRuleSetInstruction< TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -74,7 +74,7 @@ export type CreateRuleSetInstructionWithSigners< TAccountSystemProgram extends | string | IAccountMeta = '11111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -89,7 +89,7 @@ export type CreateRuleSetInstructionWithSigners< TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -136,7 +136,7 @@ export function getCreateRuleSetInstructionDataCodec(): Codec< export type CreateRuleSetInput< TAccountPayer extends string, TAccountRuleSetPda extends string, - TAccountSystemProgram extends string + TAccountSystemProgram extends string, > = { /** Payer and creator of the RuleSet */ payer: Address; @@ -151,7 +151,7 @@ export type CreateRuleSetInput< export type CreateRuleSetInputWithSigners< TAccountPayer extends string, TAccountRuleSetPda extends string, - TAccountSystemProgram extends string + TAccountSystemProgram extends string, > = { /** Payer and creator of the RuleSet */ payer: TransactionSigner; @@ -167,7 +167,7 @@ export function getCreateRuleSetInstruction< TAccountPayer extends string, TAccountRuleSetPda extends string, TAccountSystemProgram extends string, - TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg' + TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg', >( input: CreateRuleSetInputWithSigners< TAccountPayer, @@ -184,7 +184,7 @@ export function getCreateRuleSetInstruction< TAccountPayer extends string, TAccountRuleSetPda extends string, TAccountSystemProgram extends string, - TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg' + TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg', >( input: CreateRuleSetInput< TAccountPayer, @@ -201,7 +201,7 @@ export function getCreateRuleSetInstruction< TAccountPayer extends string, TAccountRuleSetPda extends string, TAccountSystemProgram extends string, - TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg' + TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg', >( input: CreateRuleSetInput< TAccountPayer, @@ -265,7 +265,7 @@ export function getCreateRuleSetInstructionRaw< TAccountSystemProgram extends | string | IAccountMeta = '11111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { payer: TAccountPayer extends string @@ -306,7 +306,7 @@ export function getCreateRuleSetInstructionRaw< export type ParsedCreateRuleSetInstruction< TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -322,7 +322,7 @@ export type ParsedCreateRuleSetInstruction< export function parseCreateRuleSetInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/createV1.ts b/test/packages/js-experimental/src/generated/instructions/createV1.ts index 06a631264..99b757143 100644 --- a/test/packages/js-experimental/src/generated/instructions/createV1.ts +++ b/test/packages/js-experimental/src/generated/instructions/createV1.ts @@ -65,7 +65,7 @@ export type CreateV1Instruction< TAccountSplTokenProgram extends | string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -97,7 +97,7 @@ export type CreateV1Instruction< TAccountSplTokenProgram extends string ? ReadonlyAccount : TAccountSplTokenProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -118,7 +118,7 @@ export type CreateV1InstructionWithSigners< TAccountSplTokenProgram extends | string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -152,7 +152,7 @@ export type CreateV1InstructionWithSigners< TAccountSplTokenProgram extends string ? ReadonlyAccount : TAccountSplTokenProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -212,7 +212,7 @@ export type CreateV1Input< TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, - TAccountSplTokenProgram extends string + TAccountSplTokenProgram extends string, > = { /** Metadata account key (pda of ['metadata', program id, mint id]) */ metadata: Address; @@ -246,7 +246,7 @@ export type CreateV1InputWithSigners< TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, - TAccountSplTokenProgram extends string + TAccountSplTokenProgram extends string, > = { /** Metadata account key (pda of ['metadata', program id, mint id]) */ metadata: Address; @@ -281,7 +281,7 @@ export function getCreateV1Instruction< TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, TAccountSplTokenProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateV1InputWithSigners< TAccountMetadata, @@ -298,7 +298,7 @@ export function getCreateV1Instruction< TProgram, TAccountMetadata, TAccountMasterEdition, - typeof input['mint'] extends TransactionSigner + (typeof input)['mint'] extends TransactionSigner ? WritableSignerAccount & IAccountSignerMeta : TAccountMint, TAccountMintAuthority, @@ -318,7 +318,7 @@ export function getCreateV1Instruction< TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, TAccountSplTokenProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateV1Input< TAccountMetadata, @@ -353,7 +353,7 @@ export function getCreateV1Instruction< TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, TAccountSplTokenProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateV1Input< TAccountMetadata, @@ -457,7 +457,7 @@ export function getCreateV1InstructionRaw< TAccountSplTokenProgram extends | string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -544,7 +544,7 @@ export function getCreateV1InstructionRaw< export type ParsedCreateV1Instruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -572,7 +572,7 @@ export type ParsedCreateV1Instruction< export function parseCreateV1Instruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/createV2.ts b/test/packages/js-experimental/src/generated/instructions/createV2.ts index 8aacfb405..5563a8dc2 100644 --- a/test/packages/js-experimental/src/generated/instructions/createV2.ts +++ b/test/packages/js-experimental/src/generated/instructions/createV2.ts @@ -65,7 +65,7 @@ export type CreateV2Instruction< TAccountSplTokenProgram extends | string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -97,7 +97,7 @@ export type CreateV2Instruction< TAccountSplTokenProgram extends string ? ReadonlyAccount : TAccountSplTokenProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -118,7 +118,7 @@ export type CreateV2InstructionWithSigners< TAccountSplTokenProgram extends | string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -152,7 +152,7 @@ export type CreateV2InstructionWithSigners< TAccountSplTokenProgram extends string ? ReadonlyAccount : TAccountSplTokenProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -208,7 +208,7 @@ export type CreateV2Input< TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, - TAccountSplTokenProgram extends string + TAccountSplTokenProgram extends string, > = { /** Metadata account key (pda of ['metadata', program id, mint id]) */ metadata: Address; @@ -241,7 +241,7 @@ export type CreateV2InputWithSigners< TAccountUpdateAuthority extends string, TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, - TAccountSplTokenProgram extends string + TAccountSplTokenProgram extends string, > = { /** Metadata account key (pda of ['metadata', program id, mint id]) */ metadata: Address; @@ -275,7 +275,7 @@ export function getCreateV2Instruction< TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, TAccountSplTokenProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateV2InputWithSigners< TAccountMetadata, @@ -292,7 +292,7 @@ export function getCreateV2Instruction< TProgram, TAccountMetadata, TAccountMasterEdition, - typeof input['mint'] extends TransactionSigner + (typeof input)['mint'] extends TransactionSigner ? WritableSignerAccount & IAccountSignerMeta : TAccountMint, TAccountMintAuthority, @@ -312,7 +312,7 @@ export function getCreateV2Instruction< TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, TAccountSplTokenProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateV2Input< TAccountMetadata, @@ -347,7 +347,7 @@ export function getCreateV2Instruction< TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, TAccountSplTokenProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: CreateV2Input< TAccountMetadata, @@ -451,7 +451,7 @@ export function getCreateV2InstructionRaw< TAccountSplTokenProgram extends | string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -538,7 +538,7 @@ export function getCreateV2InstructionRaw< export type ParsedCreateV2Instruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -566,7 +566,7 @@ export type ParsedCreateV2Instruction< export function parseCreateV2Instruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/delegate.ts b/test/packages/js-experimental/src/generated/instructions/delegate.ts index 50a789e50..23cbace20 100644 --- a/test/packages/js-experimental/src/generated/instructions/delegate.ts +++ b/test/packages/js-experimental/src/generated/instructions/delegate.ts @@ -63,7 +63,7 @@ export type DelegateInstruction< | string | IAccountMeta = string, TAccountAuthorizationRules extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -107,7 +107,7 @@ export type DelegateInstruction< TAccountAuthorizationRules extends string ? ReadonlyAccount : TAccountAuthorizationRules, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -132,7 +132,7 @@ export type DelegateInstructionWithSigners< | string | IAccountMeta = string, TAccountAuthorizationRules extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -178,7 +178,7 @@ export type DelegateInstructionWithSigners< TAccountAuthorizationRules extends string ? ReadonlyAccount : TAccountAuthorizationRules, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -229,7 +229,7 @@ export type DelegateInput< TAccountSysvarInstructions extends string, TAccountSplTokenProgram extends string, TAccountAuthorizationRulesProgram extends string, - TAccountAuthorizationRules extends string + TAccountAuthorizationRules extends string, > = { /** Delegate account key (pda of [mint id, delegate role, user id, authority id]) */ delegateRecord: Address; @@ -273,7 +273,7 @@ export type DelegateInputWithSigners< TAccountSysvarInstructions extends string, TAccountSplTokenProgram extends string, TAccountAuthorizationRulesProgram extends string, - TAccountAuthorizationRules extends string + TAccountAuthorizationRules extends string, > = { /** Delegate account key (pda of [mint id, delegate role, user id, authority id]) */ delegateRecord: Address; @@ -318,7 +318,7 @@ export function getDelegateInstruction< TAccountSplTokenProgram extends string, TAccountAuthorizationRulesProgram extends string, TAccountAuthorizationRules extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: DelegateInputWithSigners< TAccountDelegateRecord, @@ -365,7 +365,7 @@ export function getDelegateInstruction< TAccountSplTokenProgram extends string, TAccountAuthorizationRulesProgram extends string, TAccountAuthorizationRules extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: DelegateInput< TAccountDelegateRecord, @@ -412,7 +412,7 @@ export function getDelegateInstruction< TAccountSplTokenProgram extends string, TAccountAuthorizationRulesProgram extends string, TAccountAuthorizationRules extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: DelegateInput< TAccountDelegateRecord, @@ -531,7 +531,7 @@ export function getDelegateInstructionRaw< | string | IAccountMeta = string, TAccountAuthorizationRules extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { delegateRecord: TAccountDelegateRecord extends string @@ -659,7 +659,7 @@ export function getDelegateInstructionRaw< export type ParsedDelegateInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -695,7 +695,7 @@ export type ParsedDelegateInstruction< export function parseDelegateInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/deprecatedCreateMasterEdition.ts b/test/packages/js-experimental/src/generated/instructions/deprecatedCreateMasterEdition.ts index 374873e48..1f59bb2c7 100644 --- a/test/packages/js-experimental/src/generated/instructions/deprecatedCreateMasterEdition.ts +++ b/test/packages/js-experimental/src/generated/instructions/deprecatedCreateMasterEdition.ts @@ -66,7 +66,7 @@ export type DeprecatedCreateMasterEditionInstruction< TAccountOneTimePrintingAuthorizationMintAuthority extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -110,7 +110,7 @@ export type DeprecatedCreateMasterEditionInstruction< TAccountOneTimePrintingAuthorizationMintAuthority extends string ? ReadonlySignerAccount : TAccountOneTimePrintingAuthorizationMintAuthority, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -139,7 +139,7 @@ export type DeprecatedCreateMasterEditionInstructionWithSigners< TAccountOneTimePrintingAuthorizationMintAuthority extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -188,7 +188,7 @@ export type DeprecatedCreateMasterEditionInstructionWithSigners< ? ReadonlySignerAccount & IAccountSignerMeta : TAccountOneTimePrintingAuthorizationMintAuthority, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -241,7 +241,7 @@ export type DeprecatedCreateMasterEditionInput< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TAccountOneTimePrintingAuthorizationMintAuthority extends string + TAccountOneTimePrintingAuthorizationMintAuthority extends string, > = { /** Unallocated edition V1 account with address as pda of ['metadata', program id, mint, 'edition'] */ edition: Address; @@ -285,7 +285,7 @@ export type DeprecatedCreateMasterEditionInputWithSigners< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TAccountOneTimePrintingAuthorizationMintAuthority extends string + TAccountOneTimePrintingAuthorizationMintAuthority extends string, > = { /** Unallocated edition V1 account with address as pda of ['metadata', program id, mint, 'edition'] */ edition: Address; @@ -330,7 +330,7 @@ export function getDeprecatedCreateMasterEditionInstruction< TAccountSystemProgram extends string, TAccountRent extends string, TAccountOneTimePrintingAuthorizationMintAuthority extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: DeprecatedCreateMasterEditionInputWithSigners< TAccountEdition, @@ -377,7 +377,7 @@ export function getDeprecatedCreateMasterEditionInstruction< TAccountSystemProgram extends string, TAccountRent extends string, TAccountOneTimePrintingAuthorizationMintAuthority extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: DeprecatedCreateMasterEditionInput< TAccountEdition, @@ -424,7 +424,7 @@ export function getDeprecatedCreateMasterEditionInstruction< TAccountSystemProgram extends string, TAccountRent extends string, TAccountOneTimePrintingAuthorizationMintAuthority extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: DeprecatedCreateMasterEditionInput< TAccountEdition, @@ -551,7 +551,7 @@ export function getDeprecatedCreateMasterEditionInstructionRaw< TAccountOneTimePrintingAuthorizationMintAuthority extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { edition: TAccountEdition extends string @@ -661,7 +661,7 @@ export function getDeprecatedCreateMasterEditionInstructionRaw< export type ParsedDeprecatedCreateMasterEditionInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -697,7 +697,7 @@ export type ParsedDeprecatedCreateMasterEditionInstruction< export function parseDeprecatedCreateMasterEditionInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/deprecatedMintNewEditionFromMasterEditionViaPrintingToken.ts b/test/packages/js-experimental/src/generated/instructions/deprecatedMintNewEditionFromMasterEditionViaPrintingToken.ts index f88ba8cef..408bbb431 100644 --- a/test/packages/js-experimental/src/generated/instructions/deprecatedMintNewEditionFromMasterEditionViaPrintingToken.ts +++ b/test/packages/js-experimental/src/generated/instructions/deprecatedMintNewEditionFromMasterEditionViaPrintingToken.ts @@ -59,7 +59,7 @@ export type DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstruction | string | IAccountMeta = 'SysvarRent111111111111111111111111111111111', TAccountReservationList extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -112,7 +112,7 @@ export type DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstruction TAccountReservationList extends string ? WritableAccount : TAccountReservationList, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -140,7 +140,7 @@ export type DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstruction | string | IAccountMeta = 'SysvarRent111111111111111111111111111111111', TAccountReservationList extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -196,7 +196,7 @@ export type DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstruction TAccountReservationList extends string ? WritableAccount : TAccountReservationList, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -243,7 +243,7 @@ export type DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInput< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TAccountReservationList extends string + TAccountReservationList extends string, > = { /** New Metadata key (pda of ['metadata', program id, mint id]) */ metadata: Address; @@ -295,7 +295,7 @@ export type DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInputWithSi TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TAccountReservationList extends string + TAccountReservationList extends string, > = { /** New Metadata key (pda of ['metadata', program id, mint id]) */ metadata: Address; @@ -348,7 +348,7 @@ export function getDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInst TAccountSystemProgram extends string, TAccountRent extends string, TAccountReservationList extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInputWithSigners< TAccountMetadata, @@ -404,7 +404,7 @@ export function getDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInst TAccountSystemProgram extends string, TAccountRent extends string, TAccountReservationList extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInput< TAccountMetadata, @@ -460,7 +460,7 @@ export function getDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInst TAccountSystemProgram extends string, TAccountRent extends string, TAccountReservationList extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInput< TAccountMetadata, @@ -586,7 +586,7 @@ export function getDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInst | string | IAccountMeta = 'SysvarRent111111111111111111111111111111111', TAccountReservationList extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -713,7 +713,7 @@ export function getDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInst export type ParsedDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -755,7 +755,7 @@ export type ParsedDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstr export function parseDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/deprecatedMintPrintingTokens.ts b/test/packages/js-experimental/src/generated/instructions/deprecatedMintPrintingTokens.ts index e44d08b6c..767a6d7fd 100644 --- a/test/packages/js-experimental/src/generated/instructions/deprecatedMintPrintingTokens.ts +++ b/test/packages/js-experimental/src/generated/instructions/deprecatedMintPrintingTokens.ts @@ -54,7 +54,7 @@ export type DeprecatedMintPrintingTokensInstruction< TAccountRent extends | string | IAccountMeta = 'SysvarRent111111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -80,7 +80,7 @@ export type DeprecatedMintPrintingTokensInstruction< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -97,7 +97,7 @@ export type DeprecatedMintPrintingTokensInstructionWithSigners< TAccountRent extends | string | IAccountMeta = 'SysvarRent111111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -124,7 +124,7 @@ export type DeprecatedMintPrintingTokensInstructionWithSigners< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -177,7 +177,7 @@ export type DeprecatedMintPrintingTokensInput< TAccountMetadata extends string, TAccountMasterEdition extends string, TAccountTokenProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Destination account */ destination: Address; @@ -203,7 +203,7 @@ export type DeprecatedMintPrintingTokensInputWithSigners< TAccountMetadata extends string, TAccountMasterEdition extends string, TAccountTokenProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Destination account */ destination: Address; @@ -230,7 +230,7 @@ export function getDeprecatedMintPrintingTokensInstruction< TAccountMasterEdition extends string, TAccountTokenProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: DeprecatedMintPrintingTokensInputWithSigners< TAccountDestination, @@ -259,7 +259,7 @@ export function getDeprecatedMintPrintingTokensInstruction< TAccountMasterEdition extends string, TAccountTokenProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: DeprecatedMintPrintingTokensInput< TAccountDestination, @@ -288,7 +288,7 @@ export function getDeprecatedMintPrintingTokensInstruction< TAccountMasterEdition extends string, TAccountTokenProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: DeprecatedMintPrintingTokensInput< TAccountDestination, @@ -372,7 +372,7 @@ export function getDeprecatedMintPrintingTokensInstructionRaw< TAccountRent extends | string | IAccountMeta = 'SysvarRent111111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { destination: TAccountDestination extends string @@ -438,7 +438,7 @@ export function getDeprecatedMintPrintingTokensInstructionRaw< export type ParsedDeprecatedMintPrintingTokensInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -462,7 +462,7 @@ export type ParsedDeprecatedMintPrintingTokensInstruction< export function parseDeprecatedMintPrintingTokensInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/deprecatedMintPrintingTokensViaToken.ts b/test/packages/js-experimental/src/generated/instructions/deprecatedMintPrintingTokensViaToken.ts index e4dbf064e..f52af52a7 100644 --- a/test/packages/js-experimental/src/generated/instructions/deprecatedMintPrintingTokensViaToken.ts +++ b/test/packages/js-experimental/src/generated/instructions/deprecatedMintPrintingTokensViaToken.ts @@ -58,7 +58,7 @@ export type DeprecatedMintPrintingTokensViaTokenInstruction< TAccountRent extends | string | IAccountMeta = 'SysvarRent111111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -90,7 +90,7 @@ export type DeprecatedMintPrintingTokensViaTokenInstruction< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -111,7 +111,7 @@ export type DeprecatedMintPrintingTokensViaTokenInstructionWithSigners< TAccountRent extends | string | IAccountMeta = 'SysvarRent111111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -144,7 +144,7 @@ export type DeprecatedMintPrintingTokensViaTokenInstructionWithSigners< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -199,7 +199,7 @@ export type DeprecatedMintPrintingTokensViaTokenInput< TAccountMetadata extends string, TAccountMasterEdition extends string, TAccountTokenProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Destination account */ destination: Address; @@ -231,7 +231,7 @@ export type DeprecatedMintPrintingTokensViaTokenInputWithSigners< TAccountMetadata extends string, TAccountMasterEdition extends string, TAccountTokenProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Destination account */ destination: Address; @@ -264,7 +264,7 @@ export function getDeprecatedMintPrintingTokensViaTokenInstruction< TAccountMasterEdition extends string, TAccountTokenProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: DeprecatedMintPrintingTokensViaTokenInputWithSigners< TAccountDestination, @@ -299,7 +299,7 @@ export function getDeprecatedMintPrintingTokensViaTokenInstruction< TAccountMasterEdition extends string, TAccountTokenProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: DeprecatedMintPrintingTokensViaTokenInput< TAccountDestination, @@ -334,7 +334,7 @@ export function getDeprecatedMintPrintingTokensViaTokenInstruction< TAccountMasterEdition extends string, TAccountTokenProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: DeprecatedMintPrintingTokensViaTokenInput< TAccountDestination, @@ -428,7 +428,7 @@ export function getDeprecatedMintPrintingTokensViaTokenInstructionRaw< TAccountRent extends | string | IAccountMeta = 'SysvarRent111111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { destination: TAccountDestination extends string @@ -509,7 +509,7 @@ export function getDeprecatedMintPrintingTokensViaTokenInstructionRaw< export type ParsedDeprecatedMintPrintingTokensViaTokenInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -537,7 +537,7 @@ export type ParsedDeprecatedMintPrintingTokensViaTokenInstruction< export function parseDeprecatedMintPrintingTokensViaTokenInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/deprecatedSetReservationList.ts b/test/packages/js-experimental/src/generated/instructions/deprecatedSetReservationList.ts index 883073f8e..4e8dc8245 100644 --- a/test/packages/js-experimental/src/generated/instructions/deprecatedSetReservationList.ts +++ b/test/packages/js-experimental/src/generated/instructions/deprecatedSetReservationList.ts @@ -53,7 +53,7 @@ export type DeprecatedSetReservationListInstruction< TAccountMasterEdition extends string | IAccountMeta = string, TAccountReservationList extends string | IAccountMeta = string, TAccountResource extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -67,7 +67,7 @@ export type DeprecatedSetReservationListInstruction< TAccountResource extends string ? ReadonlySignerAccount : TAccountResource, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -76,7 +76,7 @@ export type DeprecatedSetReservationListInstructionWithSigners< TAccountMasterEdition extends string | IAccountMeta = string, TAccountReservationList extends string | IAccountMeta = string, TAccountResource extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -91,7 +91,7 @@ export type DeprecatedSetReservationListInstructionWithSigners< ? ReadonlySignerAccount & IAccountSignerMeta : TAccountResource, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -146,7 +146,7 @@ export function getDeprecatedSetReservationListInstructionDataCodec(): Codec< export type DeprecatedSetReservationListInput< TAccountMasterEdition extends string, TAccountReservationList extends string, - TAccountResource extends string + TAccountResource extends string, > = { /** Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition']) */ masterEdition: Address; @@ -163,7 +163,7 @@ export type DeprecatedSetReservationListInput< export type DeprecatedSetReservationListInputWithSigners< TAccountMasterEdition extends string, TAccountReservationList extends string, - TAccountResource extends string + TAccountResource extends string, > = { /** Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition']) */ masterEdition: Address; @@ -181,7 +181,7 @@ export function getDeprecatedSetReservationListInstruction< TAccountMasterEdition extends string, TAccountReservationList extends string, TAccountResource extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: DeprecatedSetReservationListInputWithSigners< TAccountMasterEdition, @@ -198,7 +198,7 @@ export function getDeprecatedSetReservationListInstruction< TAccountMasterEdition extends string, TAccountReservationList extends string, TAccountResource extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: DeprecatedSetReservationListInput< TAccountMasterEdition, @@ -215,7 +215,7 @@ export function getDeprecatedSetReservationListInstruction< TAccountMasterEdition extends string, TAccountReservationList extends string, TAccountResource extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: DeprecatedSetReservationListInput< TAccountMasterEdition, @@ -266,7 +266,7 @@ export function getDeprecatedSetReservationListInstructionRaw< TAccountMasterEdition extends string | IAccountMeta = string, TAccountReservationList extends string | IAccountMeta = string, TAccountResource extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { masterEdition: TAccountMasterEdition extends string @@ -303,7 +303,7 @@ export function getDeprecatedSetReservationListInstructionRaw< export type ParsedDeprecatedSetReservationListInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -319,7 +319,7 @@ export type ParsedDeprecatedSetReservationListInstruction< export function parseDeprecatedSetReservationListInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/dummy.ts b/test/packages/js-experimental/src/generated/instructions/dummy.ts index 3e37e6e26..cc64533d7 100644 --- a/test/packages/js-experimental/src/generated/instructions/dummy.ts +++ b/test/packages/js-experimental/src/generated/instructions/dummy.ts @@ -57,7 +57,7 @@ export type DummyInstruction< TAccountDelegate extends string | IAccountMeta = string, TAccountDelegateRecord extends string | IAccountMeta = string, TAccountTokenOrAtaProgram extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -90,7 +90,7 @@ export type DummyInstruction< TAccountTokenOrAtaProgram extends string ? ReadonlyAccount : TAccountTokenOrAtaProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -108,7 +108,7 @@ export type DummyInstructionWithSigners< TAccountDelegate extends string | IAccountMeta = string, TAccountDelegateRecord extends string | IAccountMeta = string, TAccountTokenOrAtaProgram extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -146,7 +146,7 @@ export type DummyInstructionWithSigners< TAccountTokenOrAtaProgram extends string ? ReadonlyAccount : TAccountTokenOrAtaProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -197,7 +197,7 @@ export type DummyAsyncInput< TAccountBar extends string, TAccountDelegate extends string, TAccountDelegateRecord extends string, - TAccountTokenOrAtaProgram extends string + TAccountTokenOrAtaProgram extends string, > = { edition?: Address; mint?: Address; @@ -223,7 +223,7 @@ export type DummyAsyncInputWithSigners< TAccountBar extends string, TAccountDelegate extends string, TAccountDelegateRecord extends string, - TAccountTokenOrAtaProgram extends string + TAccountTokenOrAtaProgram extends string, > = { edition?: TransactionSigner; mint?: Address; @@ -250,7 +250,7 @@ export async function getDummyInstructionAsync< TAccountDelegate extends string, TAccountDelegateRecord extends string, TAccountTokenOrAtaProgram extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: DummyAsyncInputWithSigners< TAccountEdition, @@ -290,7 +290,7 @@ export async function getDummyInstructionAsync< TAccountDelegate extends string, TAccountDelegateRecord extends string, TAccountTokenOrAtaProgram extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: DummyAsyncInput< TAccountEdition, @@ -330,7 +330,7 @@ export async function getDummyInstructionAsync< TAccountDelegate extends string, TAccountDelegateRecord extends string, TAccountTokenOrAtaProgram extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: DummyAsyncInput< TAccountEdition, @@ -451,7 +451,7 @@ export type DummyInput< TAccountBar extends string, TAccountDelegate extends string, TAccountDelegateRecord extends string, - TAccountTokenOrAtaProgram extends string + TAccountTokenOrAtaProgram extends string, > = { edition?: Address; mint?: Address; @@ -477,7 +477,7 @@ export type DummyInputWithSigners< TAccountBar extends string, TAccountDelegate extends string, TAccountDelegateRecord extends string, - TAccountTokenOrAtaProgram extends string + TAccountTokenOrAtaProgram extends string, > = { edition?: TransactionSigner; mint?: Address; @@ -504,7 +504,7 @@ export function getDummyInstruction< TAccountDelegate extends string, TAccountDelegateRecord extends string, TAccountTokenOrAtaProgram extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: DummyInputWithSigners< TAccountEdition, @@ -542,7 +542,7 @@ export function getDummyInstruction< TAccountDelegate extends string, TAccountDelegateRecord extends string, TAccountTokenOrAtaProgram extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: DummyInput< TAccountEdition, @@ -580,7 +580,7 @@ export function getDummyInstruction< TAccountDelegate extends string, TAccountDelegateRecord extends string, TAccountTokenOrAtaProgram extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: DummyInput< TAccountEdition, @@ -698,7 +698,7 @@ export function getDummyInstructionRaw< TAccountDelegate extends string | IAccountMeta = string, TAccountDelegateRecord extends string | IAccountMeta = string, TAccountTokenOrAtaProgram extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { edition: TAccountEdition extends string @@ -797,7 +797,7 @@ export function getDummyInstructionRaw< export type ParsedDummyInstruction< TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -817,7 +817,7 @@ export type ParsedDummyInstruction< export function parseDummyInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/freezeDelegatedAccount.ts b/test/packages/js-experimental/src/generated/instructions/freezeDelegatedAccount.ts index a9910e823..1fbaac5fc 100644 --- a/test/packages/js-experimental/src/generated/instructions/freezeDelegatedAccount.ts +++ b/test/packages/js-experimental/src/generated/instructions/freezeDelegatedAccount.ts @@ -44,7 +44,7 @@ export type FreezeDelegatedAccountInstruction< TAccountTokenProgram extends | string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -64,7 +64,7 @@ export type FreezeDelegatedAccountInstruction< TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -77,7 +77,7 @@ export type FreezeDelegatedAccountInstructionWithSigners< TAccountTokenProgram extends | string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -98,7 +98,7 @@ export type FreezeDelegatedAccountInstructionWithSigners< TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -132,7 +132,7 @@ export type FreezeDelegatedAccountInput< TAccountTokenAccount extends string, TAccountEdition extends string, TAccountMint extends string, - TAccountTokenProgram extends string + TAccountTokenProgram extends string, > = { /** Delegate */ delegate: Address; @@ -151,7 +151,7 @@ export type FreezeDelegatedAccountInputWithSigners< TAccountTokenAccount extends string, TAccountEdition extends string, TAccountMint extends string, - TAccountTokenProgram extends string + TAccountTokenProgram extends string, > = { /** Delegate */ delegate: TransactionSigner; @@ -171,7 +171,7 @@ export function getFreezeDelegatedAccountInstruction< TAccountEdition extends string, TAccountMint extends string, TAccountTokenProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: FreezeDelegatedAccountInputWithSigners< TAccountDelegate, @@ -194,7 +194,7 @@ export function getFreezeDelegatedAccountInstruction< TAccountEdition extends string, TAccountMint extends string, TAccountTokenProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: FreezeDelegatedAccountInput< TAccountDelegate, @@ -217,7 +217,7 @@ export function getFreezeDelegatedAccountInstruction< TAccountEdition extends string, TAccountMint extends string, TAccountTokenProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: FreezeDelegatedAccountInput< TAccountDelegate, @@ -280,7 +280,7 @@ export function getFreezeDelegatedAccountInstructionRaw< TAccountTokenProgram extends | string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { delegate: TAccountDelegate extends string @@ -328,7 +328,7 @@ export function getFreezeDelegatedAccountInstructionRaw< export type ParsedFreezeDelegatedAccountInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -348,7 +348,7 @@ export type ParsedFreezeDelegatedAccountInstruction< export function parseFreezeDelegatedAccountInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/initialize.ts b/test/packages/js-experimental/src/generated/instructions/initialize.ts index 980fb7be9..c1f127f9a 100644 --- a/test/packages/js-experimental/src/generated/instructions/initialize.ts +++ b/test/packages/js-experimental/src/generated/instructions/initialize.ts @@ -67,7 +67,7 @@ export type InitializeInstruction< TAccountSystemProgram extends | string | IAccountMeta = '11111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -105,7 +105,7 @@ export type InitializeInstruction< TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -132,7 +132,7 @@ export type InitializeInstructionWithSigners< TAccountSystemProgram extends | string | IAccountMeta = '11111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -172,7 +172,7 @@ export type InitializeInstructionWithSigners< TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -224,7 +224,7 @@ export type InitializeInput< TAccountCollectionUpdateAuthority extends string, TAccountCollectionAuthorityRecord extends string, TAccountTokenMetadataProgram extends string, - TAccountSystemProgram extends string + TAccountSystemProgram extends string, > = { candyMachine: Address; authorityPda: Address; @@ -251,7 +251,7 @@ export type InitializeInputWithSigners< TAccountCollectionUpdateAuthority extends string, TAccountCollectionAuthorityRecord extends string, TAccountTokenMetadataProgram extends string, - TAccountSystemProgram extends string + TAccountSystemProgram extends string, > = { candyMachine: Address; authorityPda: Address; @@ -279,7 +279,7 @@ export function getInitializeInstruction< TAccountCollectionAuthorityRecord extends string, TAccountTokenMetadataProgram extends string, TAccountSystemProgram extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: InitializeInputWithSigners< TAccountCandyMachine, @@ -320,7 +320,7 @@ export function getInitializeInstruction< TAccountCollectionAuthorityRecord extends string, TAccountTokenMetadataProgram extends string, TAccountSystemProgram extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: InitializeInput< TAccountCandyMachine, @@ -361,7 +361,7 @@ export function getInitializeInstruction< TAccountCollectionAuthorityRecord extends string, TAccountTokenMetadataProgram extends string, TAccountSystemProgram extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: InitializeInput< TAccountCandyMachine, @@ -479,7 +479,7 @@ export function getInitializeInstructionRaw< TAccountSystemProgram extends | string | IAccountMeta = '11111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { candyMachine: TAccountCandyMachine extends string @@ -573,7 +573,7 @@ export function getInitializeInstructionRaw< export type ParsedInitializeInstruction< TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -594,7 +594,7 @@ export type ParsedInitializeInstruction< export function parseInitializeInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/migrate.ts b/test/packages/js-experimental/src/generated/instructions/migrate.ts index 84cb539dc..d011bc44d 100644 --- a/test/packages/js-experimental/src/generated/instructions/migrate.ts +++ b/test/packages/js-experimental/src/generated/instructions/migrate.ts @@ -59,7 +59,7 @@ export type MigrateInstruction< | string | IAccountMeta = 'Sysvar1nstructions1111111111111111111111111', TAccountAuthorizationRules extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -94,7 +94,7 @@ export type MigrateInstruction< TAccountAuthorizationRules extends string ? ReadonlyAccount : TAccountAuthorizationRules, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -116,7 +116,7 @@ export type MigrateInstructionWithSigners< | string | IAccountMeta = 'Sysvar1nstructions1111111111111111111111111', TAccountAuthorizationRules extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -152,7 +152,7 @@ export type MigrateInstructionWithSigners< TAccountAuthorizationRules extends string ? ReadonlyAccount : TAccountAuthorizationRules, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -200,7 +200,7 @@ export type MigrateInput< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, - TAccountAuthorizationRules extends string + TAccountAuthorizationRules extends string, > = { /** Metadata account */ metadata: Address; @@ -235,7 +235,7 @@ export type MigrateInputWithSigners< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, - TAccountAuthorizationRules extends string + TAccountAuthorizationRules extends string, > = { /** Metadata account */ metadata: Address; @@ -271,7 +271,7 @@ export function getMigrateInstruction< TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, TAccountAuthorizationRules extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: MigrateInputWithSigners< TAccountMetadata, @@ -309,7 +309,7 @@ export function getMigrateInstruction< TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, TAccountAuthorizationRules extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: MigrateInput< TAccountMetadata, @@ -347,7 +347,7 @@ export function getMigrateInstruction< TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, TAccountAuthorizationRules extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: MigrateInput< TAccountMetadata, @@ -458,7 +458,7 @@ export function getMigrateInstructionRaw< | string | IAccountMeta = 'Sysvar1nstructions1111111111111111111111111', TAccountAuthorizationRules extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -550,7 +550,7 @@ export function getMigrateInstructionRaw< export type ParsedMigrateInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -580,7 +580,7 @@ export type ParsedMigrateInstruction< export function parseMigrateInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/mint.ts b/test/packages/js-experimental/src/generated/instructions/mint.ts index a13e591cd..60f86bd2e 100644 --- a/test/packages/js-experimental/src/generated/instructions/mint.ts +++ b/test/packages/js-experimental/src/generated/instructions/mint.ts @@ -66,7 +66,7 @@ export type MintInstruction< | string | IAccountMeta = string, TAccountAuthorizationRules extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -107,7 +107,7 @@ export type MintInstruction< TAccountAuthorizationRules extends string ? ReadonlyAccount : TAccountAuthorizationRules, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -135,7 +135,7 @@ export type MintInstructionWithSigners< | string | IAccountMeta = string, TAccountAuthorizationRules extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -178,7 +178,7 @@ export type MintInstructionWithSigners< TAccountAuthorizationRules extends string ? ReadonlyAccount : TAccountAuthorizationRules, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -225,7 +225,7 @@ export type MintInput< TAccountSplTokenProgram extends string, TAccountSplAtaProgram extends string, TAccountAuthorizationRulesProgram extends string, - TAccountAuthorizationRules extends string + TAccountAuthorizationRules extends string, > = { /** Token account */ token: Address; @@ -266,7 +266,7 @@ export type MintInputWithSigners< TAccountSplTokenProgram extends string, TAccountSplAtaProgram extends string, TAccountAuthorizationRulesProgram extends string, - TAccountAuthorizationRules extends string + TAccountAuthorizationRules extends string, > = { /** Token account */ token: Address; @@ -308,7 +308,7 @@ export function getMintInstruction< TAccountSplAtaProgram extends string, TAccountAuthorizationRulesProgram extends string, TAccountAuthorizationRules extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: MintInputWithSigners< TAccountToken, @@ -352,7 +352,7 @@ export function getMintInstruction< TAccountSplAtaProgram extends string, TAccountAuthorizationRulesProgram extends string, TAccountAuthorizationRules extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: MintInput< TAccountToken, @@ -396,7 +396,7 @@ export function getMintInstruction< TAccountSplAtaProgram extends string, TAccountAuthorizationRulesProgram extends string, TAccountAuthorizationRules extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: MintInput< TAccountToken, @@ -523,7 +523,7 @@ export function getMintInstructionRaw< | string | IAccountMeta = string, TAccountAuthorizationRules extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { token: TAccountToken extends string @@ -640,7 +640,7 @@ export function getMintInstructionRaw< export type ParsedMintInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -674,7 +674,7 @@ export type ParsedMintInstruction< export function parseMintInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/mintFromCandyMachine.ts b/test/packages/js-experimental/src/generated/instructions/mintFromCandyMachine.ts index 3541350c9..acf7cee05 100644 --- a/test/packages/js-experimental/src/generated/instructions/mintFromCandyMachine.ts +++ b/test/packages/js-experimental/src/generated/instructions/mintFromCandyMachine.ts @@ -69,7 +69,7 @@ export type MintFromCandyMachineInstruction< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRecentSlothashes extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -125,7 +125,7 @@ export type MintFromCandyMachineInstruction< TAccountRecentSlothashes extends string ? ReadonlyAccount : TAccountRecentSlothashes, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -160,7 +160,7 @@ export type MintFromCandyMachineInstructionWithSigners< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRecentSlothashes extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -219,7 +219,7 @@ export type MintFromCandyMachineInstructionWithSigners< TAccountRecentSlothashes extends string ? ReadonlyAccount : TAccountRecentSlothashes, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -274,7 +274,7 @@ export type MintFromCandyMachineInput< TAccountTokenMetadataProgram extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, - TAccountRecentSlothashes extends string + TAccountRecentSlothashes extends string, > = { candyMachine: Address; authorityPda: Address; @@ -312,7 +312,7 @@ export type MintFromCandyMachineInputWithSigners< TAccountTokenMetadataProgram extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, - TAccountRecentSlothashes extends string + TAccountRecentSlothashes extends string, > = { candyMachine: Address; authorityPda: Address; @@ -351,7 +351,7 @@ export function getMintFromCandyMachineInstruction< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountRecentSlothashes extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: MintFromCandyMachineInputWithSigners< TAccountCandyMachine, @@ -410,7 +410,7 @@ export function getMintFromCandyMachineInstruction< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountRecentSlothashes extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: MintFromCandyMachineInput< TAccountCandyMachine, @@ -469,7 +469,7 @@ export function getMintFromCandyMachineInstruction< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountRecentSlothashes extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: MintFromCandyMachineInput< TAccountCandyMachine, @@ -622,7 +622,7 @@ export function getMintFromCandyMachineInstructionRaw< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRecentSlothashes extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { candyMachine: TAccountCandyMachine extends string @@ -755,7 +755,7 @@ export function getMintFromCandyMachineInstructionRaw< export type ParsedMintFromCandyMachineInstruction< TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -782,7 +782,7 @@ export type ParsedMintFromCandyMachineInstruction< export function parseMintFromCandyMachineInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/mintNewEditionFromMasterEditionViaToken.ts b/test/packages/js-experimental/src/generated/instructions/mintNewEditionFromMasterEditionViaToken.ts index 460bb3071..8b5d33128 100644 --- a/test/packages/js-experimental/src/generated/instructions/mintNewEditionFromMasterEditionViaToken.ts +++ b/test/packages/js-experimental/src/generated/instructions/mintNewEditionFromMasterEditionViaToken.ts @@ -64,7 +64,7 @@ export type MintNewEditionFromMasterEditionViaTokenInstruction< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -111,7 +111,7 @@ export type MintNewEditionFromMasterEditionViaTokenInstruction< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -137,7 +137,7 @@ export type MintNewEditionFromMasterEditionViaTokenInstructionWithSigners< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -187,7 +187,7 @@ export type MintNewEditionFromMasterEditionViaTokenInstructionWithSigners< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -247,7 +247,7 @@ export type MintNewEditionFromMasterEditionViaTokenInput< TAccountMetadata extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** New Metadata key (pda of ['metadata', program id, mint id]) */ newMetadata: Address; @@ -294,7 +294,7 @@ export type MintNewEditionFromMasterEditionViaTokenInputWithSigners< TAccountMetadata extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** New Metadata key (pda of ['metadata', program id, mint id]) */ newMetadata: Address; @@ -342,7 +342,7 @@ export function getMintNewEditionFromMasterEditionViaTokenInstruction< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: MintNewEditionFromMasterEditionViaTokenInputWithSigners< TAccountNewMetadata, @@ -392,7 +392,7 @@ export function getMintNewEditionFromMasterEditionViaTokenInstruction< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: MintNewEditionFromMasterEditionViaTokenInput< TAccountNewMetadata, @@ -442,7 +442,7 @@ export function getMintNewEditionFromMasterEditionViaTokenInstruction< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: MintNewEditionFromMasterEditionViaTokenInput< TAccountNewMetadata, @@ -562,7 +562,7 @@ export function getMintNewEditionFromMasterEditionViaTokenInstructionRaw< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { newMetadata: TAccountNewMetadata extends string @@ -678,7 +678,7 @@ export function getMintNewEditionFromMasterEditionViaTokenInstructionRaw< export type ParsedMintNewEditionFromMasterEditionViaTokenInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -716,7 +716,7 @@ export type ParsedMintNewEditionFromMasterEditionViaTokenInstruction< export function parseMintNewEditionFromMasterEditionViaTokenInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/mintNewEditionFromMasterEditionViaVaultProxy.ts b/test/packages/js-experimental/src/generated/instructions/mintNewEditionFromMasterEditionViaVaultProxy.ts index 7ade7d7d2..b1465f042 100644 --- a/test/packages/js-experimental/src/generated/instructions/mintNewEditionFromMasterEditionViaVaultProxy.ts +++ b/test/packages/js-experimental/src/generated/instructions/mintNewEditionFromMasterEditionViaVaultProxy.ts @@ -67,7 +67,7 @@ export type MintNewEditionFromMasterEditionViaVaultProxyInstruction< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -123,7 +123,7 @@ export type MintNewEditionFromMasterEditionViaVaultProxyInstruction< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -152,7 +152,7 @@ export type MintNewEditionFromMasterEditionViaVaultProxyInstructionWithSigners< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -211,7 +211,7 @@ export type MintNewEditionFromMasterEditionViaVaultProxyInstructionWithSigners< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -274,7 +274,7 @@ export type MintNewEditionFromMasterEditionViaVaultProxyInput< TAccountTokenProgram extends string, TAccountTokenVaultProgram extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** New Metadata key (pda of ['metadata', program id, mint id]) */ newMetadata: Address; @@ -330,7 +330,7 @@ export type MintNewEditionFromMasterEditionViaVaultProxyInputWithSigners< TAccountTokenProgram extends string, TAccountTokenVaultProgram extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** New Metadata key (pda of ['metadata', program id, mint id]) */ newMetadata: Address; @@ -387,7 +387,7 @@ export function getMintNewEditionFromMasterEditionViaVaultProxyInstruction< TAccountTokenVaultProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: MintNewEditionFromMasterEditionViaVaultProxyInputWithSigners< TAccountNewMetadata, @@ -446,7 +446,7 @@ export function getMintNewEditionFromMasterEditionViaVaultProxyInstruction< TAccountTokenVaultProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: MintNewEditionFromMasterEditionViaVaultProxyInput< TAccountNewMetadata, @@ -505,7 +505,7 @@ export function getMintNewEditionFromMasterEditionViaVaultProxyInstruction< TAccountTokenVaultProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: MintNewEditionFromMasterEditionViaVaultProxyInput< TAccountNewMetadata, @@ -644,7 +644,7 @@ export function getMintNewEditionFromMasterEditionViaVaultProxyInstructionRaw< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { newMetadata: TAccountNewMetadata extends string @@ -775,7 +775,7 @@ export function getMintNewEditionFromMasterEditionViaVaultProxyInstructionRaw< export type ParsedMintNewEditionFromMasterEditionViaVaultProxyInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -819,7 +819,7 @@ export type ParsedMintNewEditionFromMasterEditionViaVaultProxyInstruction< export function parseMintNewEditionFromMasterEditionViaVaultProxyInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/puffMetadata.ts b/test/packages/js-experimental/src/generated/instructions/puffMetadata.ts index 2230e00d4..4439a320b 100644 --- a/test/packages/js-experimental/src/generated/instructions/puffMetadata.ts +++ b/test/packages/js-experimental/src/generated/instructions/puffMetadata.ts @@ -35,7 +35,7 @@ import { export type PuffMetadataInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', TAccountMetadata extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -43,14 +43,14 @@ export type PuffMetadataInstruction< TAccountMetadata extends string ? WritableAccount : TAccountMetadata, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; export type PuffMetadataInstructionWithSigners< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', TAccountMetadata extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -58,7 +58,7 @@ export type PuffMetadataInstructionWithSigners< TAccountMetadata extends string ? WritableAccount : TAccountMetadata, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -99,19 +99,19 @@ export type PuffMetadataInputWithSigners = { export function getPuffMetadataInstruction< TAccountMetadata extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: PuffMetadataInputWithSigners ): PuffMetadataInstructionWithSigners; export function getPuffMetadataInstruction< TAccountMetadata extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: PuffMetadataInput ): PuffMetadataInstruction; export function getPuffMetadataInstruction< TAccountMetadata extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >(input: PuffMetadataInput): IInstruction { // Program address. const programAddress = @@ -143,7 +143,7 @@ export function getPuffMetadataInstruction< export function getPuffMetadataInstructionRaw< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', TAccountMetadata extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -165,7 +165,7 @@ export function getPuffMetadataInstructionRaw< export type ParsedPuffMetadataInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -177,7 +177,7 @@ export type ParsedPuffMetadataInstruction< export function parsePuffMetadataInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/removeCreatorVerification.ts b/test/packages/js-experimental/src/generated/instructions/removeCreatorVerification.ts index c2912b015..15053aa9d 100644 --- a/test/packages/js-experimental/src/generated/instructions/removeCreatorVerification.ts +++ b/test/packages/js-experimental/src/generated/instructions/removeCreatorVerification.ts @@ -38,7 +38,7 @@ export type RemoveCreatorVerificationInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', TAccountMetadata extends string | IAccountMeta = string, TAccountCreator extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -49,7 +49,7 @@ export type RemoveCreatorVerificationInstruction< TAccountCreator extends string ? ReadonlySignerAccount : TAccountCreator, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -57,7 +57,7 @@ export type RemoveCreatorVerificationInstructionWithSigners< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', TAccountMetadata extends string | IAccountMeta = string, TAccountCreator extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -69,7 +69,7 @@ export type RemoveCreatorVerificationInstructionWithSigners< ? ReadonlySignerAccount & IAccountSignerMeta : TAccountCreator, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -102,7 +102,7 @@ export function getRemoveCreatorVerificationInstructionDataCodec(): Codec< export type RemoveCreatorVerificationInput< TAccountMetadata extends string, - TAccountCreator extends string + TAccountCreator extends string, > = { /** Metadata (pda of ['metadata', program id, mint id]) */ metadata: Address; @@ -112,7 +112,7 @@ export type RemoveCreatorVerificationInput< export type RemoveCreatorVerificationInputWithSigners< TAccountMetadata extends string, - TAccountCreator extends string + TAccountCreator extends string, > = { /** Metadata (pda of ['metadata', program id, mint id]) */ metadata: Address; @@ -123,7 +123,7 @@ export type RemoveCreatorVerificationInputWithSigners< export function getRemoveCreatorVerificationInstruction< TAccountMetadata extends string, TAccountCreator extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: RemoveCreatorVerificationInputWithSigners< TAccountMetadata, @@ -137,7 +137,7 @@ export function getRemoveCreatorVerificationInstruction< export function getRemoveCreatorVerificationInstruction< TAccountMetadata extends string, TAccountCreator extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: RemoveCreatorVerificationInput ): RemoveCreatorVerificationInstruction< @@ -148,7 +148,7 @@ export function getRemoveCreatorVerificationInstruction< export function getRemoveCreatorVerificationInstruction< TAccountMetadata extends string, TAccountCreator extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: RemoveCreatorVerificationInput ): IInstruction { @@ -188,7 +188,7 @@ export function getRemoveCreatorVerificationInstructionRaw< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', TAccountMetadata extends string | IAccountMeta = string, TAccountCreator extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -219,7 +219,7 @@ export function getRemoveCreatorVerificationInstructionRaw< export type ParsedRemoveCreatorVerificationInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -233,7 +233,7 @@ export type ParsedRemoveCreatorVerificationInstruction< export function parseRemoveCreatorVerificationInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/revoke.ts b/test/packages/js-experimental/src/generated/instructions/revoke.ts index 59819bab5..25544ab09 100644 --- a/test/packages/js-experimental/src/generated/instructions/revoke.ts +++ b/test/packages/js-experimental/src/generated/instructions/revoke.ts @@ -63,7 +63,7 @@ export type RevokeInstruction< | string | IAccountMeta = string, TAccountAuthorizationRules extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -107,7 +107,7 @@ export type RevokeInstruction< TAccountAuthorizationRules extends string ? ReadonlyAccount : TAccountAuthorizationRules, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -132,7 +132,7 @@ export type RevokeInstructionWithSigners< | string | IAccountMeta = string, TAccountAuthorizationRules extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -178,7 +178,7 @@ export type RevokeInstructionWithSigners< TAccountAuthorizationRules extends string ? ReadonlyAccount : TAccountAuthorizationRules, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -229,7 +229,7 @@ export type RevokeInput< TAccountSysvarInstructions extends string, TAccountSplTokenProgram extends string, TAccountAuthorizationRulesProgram extends string, - TAccountAuthorizationRules extends string + TAccountAuthorizationRules extends string, > = { /** Delegate account key (pda of [mint id, delegate role, user id, authority id]) */ delegateRecord: Address; @@ -273,7 +273,7 @@ export type RevokeInputWithSigners< TAccountSysvarInstructions extends string, TAccountSplTokenProgram extends string, TAccountAuthorizationRulesProgram extends string, - TAccountAuthorizationRules extends string + TAccountAuthorizationRules extends string, > = { /** Delegate account key (pda of [mint id, delegate role, user id, authority id]) */ delegateRecord: Address; @@ -318,7 +318,7 @@ export function getRevokeInstruction< TAccountSplTokenProgram extends string, TAccountAuthorizationRulesProgram extends string, TAccountAuthorizationRules extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: RevokeInputWithSigners< TAccountDelegateRecord, @@ -365,7 +365,7 @@ export function getRevokeInstruction< TAccountSplTokenProgram extends string, TAccountAuthorizationRulesProgram extends string, TAccountAuthorizationRules extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: RevokeInput< TAccountDelegateRecord, @@ -412,7 +412,7 @@ export function getRevokeInstruction< TAccountSplTokenProgram extends string, TAccountAuthorizationRulesProgram extends string, TAccountAuthorizationRules extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: RevokeInput< TAccountDelegateRecord, @@ -531,7 +531,7 @@ export function getRevokeInstructionRaw< | string | IAccountMeta = string, TAccountAuthorizationRules extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { delegateRecord: TAccountDelegateRecord extends string @@ -659,7 +659,7 @@ export function getRevokeInstructionRaw< export type ParsedRevokeInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -695,7 +695,7 @@ export type ParsedRevokeInstruction< export function parseRevokeInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/revokeCollectionAuthority.ts b/test/packages/js-experimental/src/generated/instructions/revokeCollectionAuthority.ts index 83e0abe33..aa53e6eac 100644 --- a/test/packages/js-experimental/src/generated/instructions/revokeCollectionAuthority.ts +++ b/test/packages/js-experimental/src/generated/instructions/revokeCollectionAuthority.ts @@ -44,7 +44,7 @@ export type RevokeCollectionAuthorityInstruction< TAccountRevokeAuthority extends string | IAccountMeta = string, TAccountMetadata extends string | IAccountMeta = string, TAccountMint extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -64,7 +64,7 @@ export type RevokeCollectionAuthorityInstruction< TAccountMint extends string ? ReadonlyAccount : TAccountMint, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -77,7 +77,7 @@ export type RevokeCollectionAuthorityInstructionWithSigners< TAccountRevokeAuthority extends string | IAccountMeta = string, TAccountMetadata extends string | IAccountMeta = string, TAccountMint extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -98,7 +98,7 @@ export type RevokeCollectionAuthorityInstructionWithSigners< TAccountMint extends string ? ReadonlyAccount : TAccountMint, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -134,7 +134,7 @@ export type RevokeCollectionAuthorityInput< TAccountDelegateAuthority extends string, TAccountRevokeAuthority extends string, TAccountMetadata extends string, - TAccountMint extends string + TAccountMint extends string, > = { /** Collection Authority Record PDA */ collectionAuthorityRecord: Address; @@ -153,7 +153,7 @@ export type RevokeCollectionAuthorityInputWithSigners< TAccountDelegateAuthority extends string, TAccountRevokeAuthority extends string, TAccountMetadata extends string, - TAccountMint extends string + TAccountMint extends string, > = { /** Collection Authority Record PDA */ collectionAuthorityRecord: Address; @@ -173,7 +173,7 @@ export function getRevokeCollectionAuthorityInstruction< TAccountRevokeAuthority extends string, TAccountMetadata extends string, TAccountMint extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: RevokeCollectionAuthorityInputWithSigners< TAccountCollectionAuthorityRecord, @@ -196,7 +196,7 @@ export function getRevokeCollectionAuthorityInstruction< TAccountRevokeAuthority extends string, TAccountMetadata extends string, TAccountMint extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: RevokeCollectionAuthorityInput< TAccountCollectionAuthorityRecord, @@ -219,7 +219,7 @@ export function getRevokeCollectionAuthorityInstruction< TAccountRevokeAuthority extends string, TAccountMetadata extends string, TAccountMint extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: RevokeCollectionAuthorityInput< TAccountCollectionAuthorityRecord, @@ -282,7 +282,7 @@ export function getRevokeCollectionAuthorityInstructionRaw< TAccountRevokeAuthority extends string | IAccountMeta = string, TAccountMetadata extends string | IAccountMeta = string, TAccountMint extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { collectionAuthorityRecord: TAccountCollectionAuthorityRecord extends string @@ -332,7 +332,7 @@ export function getRevokeCollectionAuthorityInstructionRaw< export type ParsedRevokeCollectionAuthorityInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -352,7 +352,7 @@ export type ParsedRevokeCollectionAuthorityInstruction< export function parseRevokeCollectionAuthorityInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/revokeUseAuthority.ts b/test/packages/js-experimental/src/generated/instructions/revokeUseAuthority.ts index 0e1a9c23f..09bc1fcd4 100644 --- a/test/packages/js-experimental/src/generated/instructions/revokeUseAuthority.ts +++ b/test/packages/js-experimental/src/generated/instructions/revokeUseAuthority.ts @@ -50,7 +50,7 @@ export type RevokeUseAuthorityInstruction< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -82,7 +82,7 @@ export type RevokeUseAuthorityInstruction< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -101,7 +101,7 @@ export type RevokeUseAuthorityInstructionWithSigners< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -134,7 +134,7 @@ export type RevokeUseAuthorityInstructionWithSigners< TAccountRent extends string ? ReadonlyAccount : TAccountRent, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -172,7 +172,7 @@ export type RevokeUseAuthorityInput< TAccountMetadata extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Use Authority Record PDA */ useAuthorityRecord: Address; @@ -203,7 +203,7 @@ export type RevokeUseAuthorityInputWithSigners< TAccountMetadata extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, - TAccountRent extends string + TAccountRent extends string, > = { /** Use Authority Record PDA */ useAuthorityRecord: Address; @@ -235,7 +235,7 @@ export function getRevokeUseAuthorityInstruction< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: RevokeUseAuthorityInputWithSigners< TAccountUseAuthorityRecord, @@ -270,7 +270,7 @@ export function getRevokeUseAuthorityInstruction< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: RevokeUseAuthorityInput< TAccountUseAuthorityRecord, @@ -305,7 +305,7 @@ export function getRevokeUseAuthorityInstruction< TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountRent extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: RevokeUseAuthorityInput< TAccountUseAuthorityRecord, @@ -396,7 +396,7 @@ export function getRevokeUseAuthorityInstructionRaw< | string | IAccountMeta = '11111111111111111111111111111111', TAccountRent extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { useAuthorityRecord: TAccountUseAuthorityRecord extends string @@ -471,7 +471,7 @@ export function getRevokeUseAuthorityInstructionRaw< export type ParsedRevokeUseAuthorityInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -499,7 +499,7 @@ export type ParsedRevokeUseAuthorityInstruction< export function parseRevokeUseAuthorityInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/setAndVerifyCollection.ts b/test/packages/js-experimental/src/generated/instructions/setAndVerifyCollection.ts index 10b6f4054..8e25e57de 100644 --- a/test/packages/js-experimental/src/generated/instructions/setAndVerifyCollection.ts +++ b/test/packages/js-experimental/src/generated/instructions/setAndVerifyCollection.ts @@ -49,7 +49,7 @@ export type SetAndVerifyCollectionInstruction< TAccountCollectionAuthorityRecord extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -78,7 +78,7 @@ export type SetAndVerifyCollectionInstruction< TAccountCollectionAuthorityRecord extends string ? ReadonlyAccount : TAccountCollectionAuthorityRecord, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -96,7 +96,7 @@ export type SetAndVerifyCollectionInstructionWithSigners< TAccountCollectionAuthorityRecord extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -127,7 +127,7 @@ export type SetAndVerifyCollectionInstructionWithSigners< TAccountCollectionAuthorityRecord extends string ? ReadonlyAccount : TAccountCollectionAuthorityRecord, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -164,7 +164,7 @@ export type SetAndVerifyCollectionInput< TAccountCollectionMint extends string, TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, - TAccountCollectionAuthorityRecord extends string + TAccountCollectionAuthorityRecord extends string, > = { /** Metadata account */ metadata: Address; @@ -192,7 +192,7 @@ export type SetAndVerifyCollectionInputWithSigners< TAccountCollectionMint extends string, TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, - TAccountCollectionAuthorityRecord extends string + TAccountCollectionAuthorityRecord extends string, > = { /** Metadata account */ metadata: Address; @@ -221,7 +221,7 @@ export function getSetAndVerifyCollectionInstruction< TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, TAccountCollectionAuthorityRecord extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: SetAndVerifyCollectionInputWithSigners< TAccountMetadata, @@ -253,7 +253,7 @@ export function getSetAndVerifyCollectionInstruction< TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, TAccountCollectionAuthorityRecord extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: SetAndVerifyCollectionInput< TAccountMetadata, @@ -285,7 +285,7 @@ export function getSetAndVerifyCollectionInstruction< TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, TAccountCollectionAuthorityRecord extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: SetAndVerifyCollectionInput< TAccountMetadata, @@ -368,7 +368,7 @@ export function getSetAndVerifyCollectionInstructionRaw< TAccountCollectionAuthorityRecord extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -442,7 +442,7 @@ export function getSetAndVerifyCollectionInstructionRaw< export type ParsedSetAndVerifyCollectionInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -468,7 +468,7 @@ export type ParsedSetAndVerifyCollectionInstruction< export function parseSetAndVerifyCollectionInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/setAndVerifySizedCollectionItem.ts b/test/packages/js-experimental/src/generated/instructions/setAndVerifySizedCollectionItem.ts index 0ee508700..49372688e 100644 --- a/test/packages/js-experimental/src/generated/instructions/setAndVerifySizedCollectionItem.ts +++ b/test/packages/js-experimental/src/generated/instructions/setAndVerifySizedCollectionItem.ts @@ -50,7 +50,7 @@ export type SetAndVerifySizedCollectionItemInstruction< TAccountCollectionAuthorityRecord extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -79,7 +79,7 @@ export type SetAndVerifySizedCollectionItemInstruction< TAccountCollectionAuthorityRecord extends string ? ReadonlyAccount : TAccountCollectionAuthorityRecord, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -97,7 +97,7 @@ export type SetAndVerifySizedCollectionItemInstructionWithSigners< TAccountCollectionAuthorityRecord extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -128,7 +128,7 @@ export type SetAndVerifySizedCollectionItemInstructionWithSigners< TAccountCollectionAuthorityRecord extends string ? ReadonlyAccount : TAccountCollectionAuthorityRecord, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -167,7 +167,7 @@ export type SetAndVerifySizedCollectionItemInput< TAccountCollectionMint extends string, TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, - TAccountCollectionAuthorityRecord extends string + TAccountCollectionAuthorityRecord extends string, > = { /** Metadata account */ metadata: Address; @@ -195,7 +195,7 @@ export type SetAndVerifySizedCollectionItemInputWithSigners< TAccountCollectionMint extends string, TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, - TAccountCollectionAuthorityRecord extends string + TAccountCollectionAuthorityRecord extends string, > = { /** Metadata account */ metadata: Address; @@ -224,7 +224,7 @@ export function getSetAndVerifySizedCollectionItemInstruction< TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, TAccountCollectionAuthorityRecord extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: SetAndVerifySizedCollectionItemInputWithSigners< TAccountMetadata, @@ -256,7 +256,7 @@ export function getSetAndVerifySizedCollectionItemInstruction< TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, TAccountCollectionAuthorityRecord extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: SetAndVerifySizedCollectionItemInput< TAccountMetadata, @@ -288,7 +288,7 @@ export function getSetAndVerifySizedCollectionItemInstruction< TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, TAccountCollectionAuthorityRecord extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: SetAndVerifySizedCollectionItemInput< TAccountMetadata, @@ -371,7 +371,7 @@ export function getSetAndVerifySizedCollectionItemInstructionRaw< TAccountCollectionAuthorityRecord extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -445,7 +445,7 @@ export function getSetAndVerifySizedCollectionItemInstructionRaw< export type ParsedSetAndVerifySizedCollectionItemInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -471,7 +471,7 @@ export type ParsedSetAndVerifySizedCollectionItemInstruction< export function parseSetAndVerifySizedCollectionItemInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/setAuthority.ts b/test/packages/js-experimental/src/generated/instructions/setAuthority.ts index dc217350d..5594a056b 100644 --- a/test/packages/js-experimental/src/generated/instructions/setAuthority.ts +++ b/test/packages/js-experimental/src/generated/instructions/setAuthority.ts @@ -44,7 +44,7 @@ export type SetAuthorityInstruction< TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', TAccountCandyMachine extends string | IAccountMeta = string, TAccountAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -55,7 +55,7 @@ export type SetAuthorityInstruction< TAccountAuthority extends string ? ReadonlySignerAccount : TAccountAuthority, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -63,7 +63,7 @@ export type SetAuthorityInstructionWithSigners< TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', TAccountCandyMachine extends string | IAccountMeta = string, TAccountAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -75,7 +75,7 @@ export type SetAuthorityInstructionWithSigners< ? ReadonlySignerAccount & IAccountSignerMeta : TAccountAuthority, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -118,7 +118,7 @@ export function getSetAuthorityInstructionDataCodec(): Codec< export type SetAuthorityInput< TAccountCandyMachine extends string, - TAccountAuthority extends string + TAccountAuthority extends string, > = { candyMachine: Address; authority: Address; @@ -127,7 +127,7 @@ export type SetAuthorityInput< export type SetAuthorityInputWithSigners< TAccountCandyMachine extends string, - TAccountAuthority extends string + TAccountAuthority extends string, > = { candyMachine: Address; authority: TransactionSigner; @@ -137,7 +137,7 @@ export type SetAuthorityInputWithSigners< export function getSetAuthorityInstruction< TAccountCandyMachine extends string, TAccountAuthority extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: SetAuthorityInputWithSigners ): SetAuthorityInstructionWithSigners< @@ -148,14 +148,14 @@ export function getSetAuthorityInstruction< export function getSetAuthorityInstruction< TAccountCandyMachine extends string, TAccountAuthority extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: SetAuthorityInput ): SetAuthorityInstruction; export function getSetAuthorityInstruction< TAccountCandyMachine extends string, TAccountAuthority extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: SetAuthorityInput ): IInstruction { @@ -199,7 +199,7 @@ export function getSetAuthorityInstructionRaw< TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', TAccountCandyMachine extends string | IAccountMeta = string, TAccountAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { candyMachine: TAccountCandyMachine extends string @@ -231,7 +231,7 @@ export function getSetAuthorityInstructionRaw< export type ParsedSetAuthorityInstruction< TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -243,7 +243,7 @@ export type ParsedSetAuthorityInstruction< export function parseSetAuthorityInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/setCollection.ts b/test/packages/js-experimental/src/generated/instructions/setCollection.ts index 6e643c09f..699774feb 100644 --- a/test/packages/js-experimental/src/generated/instructions/setCollection.ts +++ b/test/packages/js-experimental/src/generated/instructions/setCollection.ts @@ -66,7 +66,7 @@ export type SetCollectionInstruction< TAccountSystemProgram extends | string | IAccountMeta = '11111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -113,7 +113,7 @@ export type SetCollectionInstruction< TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -145,7 +145,7 @@ export type SetCollectionInstructionWithSigners< TAccountSystemProgram extends | string | IAccountMeta = '11111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -195,7 +195,7 @@ export type SetCollectionInstructionWithSigners< TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -245,7 +245,7 @@ export type SetCollectionInput< TAccountNewCollectionMasterEdition extends string, TAccountNewCollectionAuthorityRecord extends string, TAccountTokenMetadataProgram extends string, - TAccountSystemProgram extends string + TAccountSystemProgram extends string, > = { candyMachine: Address; authority: Address; @@ -277,7 +277,7 @@ export type SetCollectionInputWithSigners< TAccountNewCollectionMasterEdition extends string, TAccountNewCollectionAuthorityRecord extends string, TAccountTokenMetadataProgram extends string, - TAccountSystemProgram extends string + TAccountSystemProgram extends string, > = { candyMachine: Address; authority: TransactionSigner; @@ -310,7 +310,7 @@ export function getSetCollectionInstruction< TAccountNewCollectionAuthorityRecord extends string, TAccountTokenMetadataProgram extends string, TAccountSystemProgram extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: SetCollectionInputWithSigners< TAccountCandyMachine, @@ -360,7 +360,7 @@ export function getSetCollectionInstruction< TAccountNewCollectionAuthorityRecord extends string, TAccountTokenMetadataProgram extends string, TAccountSystemProgram extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: SetCollectionInput< TAccountCandyMachine, @@ -410,7 +410,7 @@ export function getSetCollectionInstruction< TAccountNewCollectionAuthorityRecord extends string, TAccountTokenMetadataProgram extends string, TAccountSystemProgram extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: SetCollectionInput< TAccountCandyMachine, @@ -547,7 +547,7 @@ export function getSetCollectionInstructionRaw< TAccountSystemProgram extends | string | IAccountMeta = '11111111111111111111111111111111', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { candyMachine: TAccountCandyMachine extends string @@ -661,7 +661,7 @@ export function getSetCollectionInstructionRaw< export type ParsedSetCollectionInstruction< TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -685,7 +685,7 @@ export type ParsedSetCollectionInstruction< export function parseSetCollectionInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/setCollectionSize.ts b/test/packages/js-experimental/src/generated/instructions/setCollectionSize.ts index 2c52720fc..b5bf30379 100644 --- a/test/packages/js-experimental/src/generated/instructions/setCollectionSize.ts +++ b/test/packages/js-experimental/src/generated/instructions/setCollectionSize.ts @@ -49,7 +49,7 @@ export type SetCollectionSizeInstruction< TAccountCollectionAuthorityRecord extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -66,7 +66,7 @@ export type SetCollectionSizeInstruction< TAccountCollectionAuthorityRecord extends string ? ReadonlyAccount : TAccountCollectionAuthorityRecord, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -78,7 +78,7 @@ export type SetCollectionSizeInstructionWithSigners< TAccountCollectionAuthorityRecord extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -96,7 +96,7 @@ export type SetCollectionSizeInstructionWithSigners< TAccountCollectionAuthorityRecord extends string ? ReadonlyAccount : TAccountCollectionAuthorityRecord, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -140,7 +140,7 @@ export type SetCollectionSizeInput< TAccountCollectionMetadata extends string, TAccountCollectionAuthority extends string, TAccountCollectionMint extends string, - TAccountCollectionAuthorityRecord extends string + TAccountCollectionAuthorityRecord extends string, > = { /** Collection Metadata account */ collectionMetadata: Address; @@ -157,7 +157,7 @@ export type SetCollectionSizeInputWithSigners< TAccountCollectionMetadata extends string, TAccountCollectionAuthority extends string, TAccountCollectionMint extends string, - TAccountCollectionAuthorityRecord extends string + TAccountCollectionAuthorityRecord extends string, > = { /** Collection Metadata account */ collectionMetadata: Address; @@ -175,7 +175,7 @@ export function getSetCollectionSizeInstruction< TAccountCollectionAuthority extends string, TAccountCollectionMint extends string, TAccountCollectionAuthorityRecord extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: SetCollectionSizeInputWithSigners< TAccountCollectionMetadata, @@ -195,7 +195,7 @@ export function getSetCollectionSizeInstruction< TAccountCollectionAuthority extends string, TAccountCollectionMint extends string, TAccountCollectionAuthorityRecord extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: SetCollectionSizeInput< TAccountCollectionMetadata, @@ -215,7 +215,7 @@ export function getSetCollectionSizeInstruction< TAccountCollectionAuthority extends string, TAccountCollectionMint extends string, TAccountCollectionAuthorityRecord extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: SetCollectionSizeInput< TAccountCollectionMetadata, @@ -281,7 +281,7 @@ export function getSetCollectionSizeInstructionRaw< TAccountCollectionAuthorityRecord extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { collectionMetadata: TAccountCollectionMetadata extends string @@ -333,7 +333,7 @@ export function getSetCollectionSizeInstructionRaw< export type ParsedSetCollectionSizeInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -351,7 +351,7 @@ export type ParsedSetCollectionSizeInstruction< export function parseSetCollectionSizeInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/setMintAuthority.ts b/test/packages/js-experimental/src/generated/instructions/setMintAuthority.ts index e116833e7..4d38c2320 100644 --- a/test/packages/js-experimental/src/generated/instructions/setMintAuthority.ts +++ b/test/packages/js-experimental/src/generated/instructions/setMintAuthority.ts @@ -41,7 +41,7 @@ export type SetMintAuthorityInstruction< TAccountCandyMachine extends string | IAccountMeta = string, TAccountAuthority extends string | IAccountMeta = string, TAccountMintAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -55,7 +55,7 @@ export type SetMintAuthorityInstruction< TAccountMintAuthority extends string ? ReadonlySignerAccount : TAccountMintAuthority, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -64,7 +64,7 @@ export type SetMintAuthorityInstructionWithSigners< TAccountCandyMachine extends string | IAccountMeta = string, TAccountAuthority extends string | IAccountMeta = string, TAccountMintAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -80,7 +80,7 @@ export type SetMintAuthorityInstructionWithSigners< ? ReadonlySignerAccount & IAccountSignerMeta : TAccountMintAuthority, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -119,7 +119,7 @@ export function getSetMintAuthorityInstructionDataCodec(): Codec< export type SetMintAuthorityInput< TAccountCandyMachine extends string, TAccountAuthority extends string, - TAccountMintAuthority extends string + TAccountMintAuthority extends string, > = { candyMachine: Address; authority: Address; @@ -129,7 +129,7 @@ export type SetMintAuthorityInput< export type SetMintAuthorityInputWithSigners< TAccountCandyMachine extends string, TAccountAuthority extends string, - TAccountMintAuthority extends string + TAccountMintAuthority extends string, > = { candyMachine: Address; authority: TransactionSigner; @@ -140,7 +140,7 @@ export function getSetMintAuthorityInstruction< TAccountCandyMachine extends string, TAccountAuthority extends string, TAccountMintAuthority extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: SetMintAuthorityInputWithSigners< TAccountCandyMachine, @@ -157,7 +157,7 @@ export function getSetMintAuthorityInstruction< TAccountCandyMachine extends string, TAccountAuthority extends string, TAccountMintAuthority extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: SetMintAuthorityInput< TAccountCandyMachine, @@ -174,7 +174,7 @@ export function getSetMintAuthorityInstruction< TAccountCandyMachine extends string, TAccountAuthority extends string, TAccountMintAuthority extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: SetMintAuthorityInput< TAccountCandyMachine, @@ -221,7 +221,7 @@ export function getSetMintAuthorityInstructionRaw< TAccountCandyMachine extends string | IAccountMeta = string, TAccountAuthority extends string | IAccountMeta = string, TAccountMintAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { candyMachine: TAccountCandyMachine extends string @@ -260,7 +260,7 @@ export function getSetMintAuthorityInstructionRaw< export type ParsedSetMintAuthorityInstruction< TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -273,7 +273,7 @@ export type ParsedSetMintAuthorityInstruction< export function parseSetMintAuthorityInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/setTokenStandard.ts b/test/packages/js-experimental/src/generated/instructions/setTokenStandard.ts index a7c4245c8..363fc8ffd 100644 --- a/test/packages/js-experimental/src/generated/instructions/setTokenStandard.ts +++ b/test/packages/js-experimental/src/generated/instructions/setTokenStandard.ts @@ -41,7 +41,7 @@ export type SetTokenStandardInstruction< TAccountUpdateAuthority extends string | IAccountMeta = string, TAccountMint extends string | IAccountMeta = string, TAccountEdition extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -58,7 +58,7 @@ export type SetTokenStandardInstruction< TAccountEdition extends string ? ReadonlyAccount : TAccountEdition, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -68,7 +68,7 @@ export type SetTokenStandardInstructionWithSigners< TAccountUpdateAuthority extends string | IAccountMeta = string, TAccountMint extends string | IAccountMeta = string, TAccountEdition extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -86,7 +86,7 @@ export type SetTokenStandardInstructionWithSigners< TAccountEdition extends string ? ReadonlyAccount : TAccountEdition, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -119,7 +119,7 @@ export type SetTokenStandardInput< TAccountMetadata extends string, TAccountUpdateAuthority extends string, TAccountMint extends string, - TAccountEdition extends string + TAccountEdition extends string, > = { /** Metadata account */ metadata: Address; @@ -135,7 +135,7 @@ export type SetTokenStandardInputWithSigners< TAccountMetadata extends string, TAccountUpdateAuthority extends string, TAccountMint extends string, - TAccountEdition extends string + TAccountEdition extends string, > = { /** Metadata account */ metadata: Address; @@ -152,7 +152,7 @@ export function getSetTokenStandardInstruction< TAccountUpdateAuthority extends string, TAccountMint extends string, TAccountEdition extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: SetTokenStandardInputWithSigners< TAccountMetadata, @@ -172,7 +172,7 @@ export function getSetTokenStandardInstruction< TAccountUpdateAuthority extends string, TAccountMint extends string, TAccountEdition extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: SetTokenStandardInput< TAccountMetadata, @@ -192,7 +192,7 @@ export function getSetTokenStandardInstruction< TAccountUpdateAuthority extends string, TAccountMint extends string, TAccountEdition extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: SetTokenStandardInput< TAccountMetadata, @@ -243,7 +243,7 @@ export function getSetTokenStandardInstructionRaw< TAccountUpdateAuthority extends string | IAccountMeta = string, TAccountMint extends string | IAccountMeta = string, TAccountEdition extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -292,7 +292,7 @@ export function getSetTokenStandardInstructionRaw< export type ParsedSetTokenStandardInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -310,7 +310,7 @@ export type ParsedSetTokenStandardInstruction< export function parseSetTokenStandardInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/signMetadata.ts b/test/packages/js-experimental/src/generated/instructions/signMetadata.ts index 9ccd794d2..260a9bc25 100644 --- a/test/packages/js-experimental/src/generated/instructions/signMetadata.ts +++ b/test/packages/js-experimental/src/generated/instructions/signMetadata.ts @@ -38,7 +38,7 @@ export type SignMetadataInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', TAccountMetadata extends string | IAccountMeta = string, TAccountCreator extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -49,7 +49,7 @@ export type SignMetadataInstruction< TAccountCreator extends string ? ReadonlySignerAccount : TAccountCreator, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -57,7 +57,7 @@ export type SignMetadataInstructionWithSigners< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', TAccountMetadata extends string | IAccountMeta = string, TAccountCreator extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -69,7 +69,7 @@ export type SignMetadataInstructionWithSigners< ? ReadonlySignerAccount & IAccountSignerMeta : TAccountCreator, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -100,7 +100,7 @@ export function getSignMetadataInstructionDataCodec(): Codec< export type SignMetadataInput< TAccountMetadata extends string, - TAccountCreator extends string + TAccountCreator extends string, > = { /** Metadata (pda of ['metadata', program id, mint id]) */ metadata: Address; @@ -110,7 +110,7 @@ export type SignMetadataInput< export type SignMetadataInputWithSigners< TAccountMetadata extends string, - TAccountCreator extends string + TAccountCreator extends string, > = { /** Metadata (pda of ['metadata', program id, mint id]) */ metadata: Address; @@ -121,7 +121,7 @@ export type SignMetadataInputWithSigners< export function getSignMetadataInstruction< TAccountMetadata extends string, TAccountCreator extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: SignMetadataInputWithSigners ): SignMetadataInstructionWithSigners< @@ -132,14 +132,14 @@ export function getSignMetadataInstruction< export function getSignMetadataInstruction< TAccountMetadata extends string, TAccountCreator extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: SignMetadataInput ): SignMetadataInstruction; export function getSignMetadataInstruction< TAccountMetadata extends string, TAccountCreator extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >(input: SignMetadataInput): IInstruction { // Program address. const programAddress = @@ -177,7 +177,7 @@ export function getSignMetadataInstructionRaw< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', TAccountMetadata extends string | IAccountMeta = string, TAccountCreator extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -208,7 +208,7 @@ export function getSignMetadataInstructionRaw< export type ParsedSignMetadataInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -222,7 +222,7 @@ export type ParsedSignMetadataInstruction< export function parseSignMetadataInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/thawDelegatedAccount.ts b/test/packages/js-experimental/src/generated/instructions/thawDelegatedAccount.ts index b18b92449..5c77a0761 100644 --- a/test/packages/js-experimental/src/generated/instructions/thawDelegatedAccount.ts +++ b/test/packages/js-experimental/src/generated/instructions/thawDelegatedAccount.ts @@ -44,7 +44,7 @@ export type ThawDelegatedAccountInstruction< TAccountTokenProgram extends | string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -64,7 +64,7 @@ export type ThawDelegatedAccountInstruction< TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -77,7 +77,7 @@ export type ThawDelegatedAccountInstructionWithSigners< TAccountTokenProgram extends | string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -98,7 +98,7 @@ export type ThawDelegatedAccountInstructionWithSigners< TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -132,7 +132,7 @@ export type ThawDelegatedAccountInput< TAccountTokenAccount extends string, TAccountEdition extends string, TAccountMint extends string, - TAccountTokenProgram extends string + TAccountTokenProgram extends string, > = { /** Delegate */ delegate: Address; @@ -151,7 +151,7 @@ export type ThawDelegatedAccountInputWithSigners< TAccountTokenAccount extends string, TAccountEdition extends string, TAccountMint extends string, - TAccountTokenProgram extends string + TAccountTokenProgram extends string, > = { /** Delegate */ delegate: TransactionSigner; @@ -171,7 +171,7 @@ export function getThawDelegatedAccountInstruction< TAccountEdition extends string, TAccountMint extends string, TAccountTokenProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: ThawDelegatedAccountInputWithSigners< TAccountDelegate, @@ -194,7 +194,7 @@ export function getThawDelegatedAccountInstruction< TAccountEdition extends string, TAccountMint extends string, TAccountTokenProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: ThawDelegatedAccountInput< TAccountDelegate, @@ -217,7 +217,7 @@ export function getThawDelegatedAccountInstruction< TAccountEdition extends string, TAccountMint extends string, TAccountTokenProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: ThawDelegatedAccountInput< TAccountDelegate, @@ -280,7 +280,7 @@ export function getThawDelegatedAccountInstructionRaw< TAccountTokenProgram extends | string | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { delegate: TAccountDelegate extends string @@ -328,7 +328,7 @@ export function getThawDelegatedAccountInstructionRaw< export type ParsedThawDelegatedAccountInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -348,7 +348,7 @@ export type ParsedThawDelegatedAccountInstruction< export function parseThawDelegatedAccountInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/transfer.ts b/test/packages/js-experimental/src/generated/instructions/transfer.ts index c88960dfa..dbe6bd748 100644 --- a/test/packages/js-experimental/src/generated/instructions/transfer.ts +++ b/test/packages/js-experimental/src/generated/instructions/transfer.ts @@ -71,7 +71,7 @@ export type TransferInstruction< | string | IAccountMeta = string, TAccountAuthorizationRules extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -121,7 +121,7 @@ export type TransferInstruction< TAccountAuthorizationRules extends string ? ReadonlyAccount : TAccountAuthorizationRules, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -152,7 +152,7 @@ export type TransferInstructionWithSigners< | string | IAccountMeta = string, TAccountAuthorizationRules extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -203,7 +203,7 @@ export type TransferInstructionWithSigners< TAccountAuthorizationRules extends string ? ReadonlyAccount : TAccountAuthorizationRules, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -260,7 +260,7 @@ export type TransferAsyncInput< TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, TAccountAuthorizationRulesProgram extends string, - TAccountAuthorizationRules extends string + TAccountAuthorizationRules extends string, > = { /** Transfer authority (token or delegate owner) */ authority: Address; @@ -311,7 +311,7 @@ export type TransferAsyncInputWithSigners< TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, TAccountAuthorizationRulesProgram extends string, - TAccountAuthorizationRules extends string + TAccountAuthorizationRules extends string, > = { /** Transfer authority (token or delegate owner) */ authority: TransactionSigner; @@ -363,7 +363,7 @@ export async function getTransferInstructionAsync< TAccountSysvarInstructions extends string, TAccountAuthorizationRulesProgram extends string, TAccountAuthorizationRules extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: TransferAsyncInputWithSigners< TAccountAuthority, @@ -418,7 +418,7 @@ export async function getTransferInstructionAsync< TAccountSysvarInstructions extends string, TAccountAuthorizationRulesProgram extends string, TAccountAuthorizationRules extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: TransferAsyncInput< TAccountAuthority, @@ -473,7 +473,7 @@ export async function getTransferInstructionAsync< TAccountSysvarInstructions extends string, TAccountAuthorizationRulesProgram extends string, TAccountAuthorizationRules extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: TransferAsyncInput< TAccountAuthority, @@ -615,7 +615,7 @@ export type TransferInput< TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, TAccountAuthorizationRulesProgram extends string, - TAccountAuthorizationRules extends string + TAccountAuthorizationRules extends string, > = { /** Transfer authority (token or delegate owner) */ authority: Address; @@ -666,7 +666,7 @@ export type TransferInputWithSigners< TAccountSystemProgram extends string, TAccountSysvarInstructions extends string, TAccountAuthorizationRulesProgram extends string, - TAccountAuthorizationRules extends string + TAccountAuthorizationRules extends string, > = { /** Transfer authority (token or delegate owner) */ authority: TransactionSigner; @@ -718,7 +718,7 @@ export function getTransferInstruction< TAccountSysvarInstructions extends string, TAccountAuthorizationRulesProgram extends string, TAccountAuthorizationRules extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: TransferInputWithSigners< TAccountAuthority, @@ -771,7 +771,7 @@ export function getTransferInstruction< TAccountSysvarInstructions extends string, TAccountAuthorizationRulesProgram extends string, TAccountAuthorizationRules extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: TransferInput< TAccountAuthority, @@ -824,7 +824,7 @@ export function getTransferInstruction< TAccountSysvarInstructions extends string, TAccountAuthorizationRulesProgram extends string, TAccountAuthorizationRules extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: TransferInput< TAccountAuthority, @@ -969,7 +969,7 @@ export function getTransferInstructionRaw< | string | IAccountMeta = string, TAccountAuthorizationRules extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { authority: TAccountAuthority extends string @@ -1108,7 +1108,7 @@ export function getTransferInstructionRaw< export type ParsedTransferInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -1148,7 +1148,7 @@ export type ParsedTransferInstruction< export function parseTransferInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/transferOutOfEscrow.ts b/test/packages/js-experimental/src/generated/instructions/transferOutOfEscrow.ts index 72e05181c..cf3689f01 100644 --- a/test/packages/js-experimental/src/generated/instructions/transferOutOfEscrow.ts +++ b/test/packages/js-experimental/src/generated/instructions/transferOutOfEscrow.ts @@ -61,7 +61,7 @@ export type TransferOutOfEscrowInstruction< | string | IAccountMeta = 'Sysvar1nstructions1111111111111111111111111', TAccountAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -105,7 +105,7 @@ export type TransferOutOfEscrowInstruction< TAccountAuthority extends string ? ReadonlySignerAccount : TAccountAuthority, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -132,7 +132,7 @@ export type TransferOutOfEscrowInstructionWithSigners< | string | IAccountMeta = 'Sysvar1nstructions1111111111111111111111111', TAccountAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -178,7 +178,7 @@ export type TransferOutOfEscrowInstructionWithSigners< ? ReadonlySignerAccount & IAccountSignerMeta : TAccountAuthority, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -231,7 +231,7 @@ export type TransferOutOfEscrowInput< TAccountAtaProgram extends string, TAccountTokenProgram extends string, TAccountSysvarInstructions extends string, - TAccountAuthority extends string + TAccountAuthority extends string, > = { /** Escrow account */ escrow: Address; @@ -275,7 +275,7 @@ export type TransferOutOfEscrowInputWithSigners< TAccountAtaProgram extends string, TAccountTokenProgram extends string, TAccountSysvarInstructions extends string, - TAccountAuthority extends string + TAccountAuthority extends string, > = { /** Escrow account */ escrow: Address; @@ -320,7 +320,7 @@ export function getTransferOutOfEscrowInstruction< TAccountTokenProgram extends string, TAccountSysvarInstructions extends string, TAccountAuthority extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: TransferOutOfEscrowInputWithSigners< TAccountEscrow, @@ -367,7 +367,7 @@ export function getTransferOutOfEscrowInstruction< TAccountTokenProgram extends string, TAccountSysvarInstructions extends string, TAccountAuthority extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: TransferOutOfEscrowInput< TAccountEscrow, @@ -414,7 +414,7 @@ export function getTransferOutOfEscrowInstruction< TAccountTokenProgram extends string, TAccountSysvarInstructions extends string, TAccountAuthority extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: TransferOutOfEscrowInput< TAccountEscrow, @@ -534,7 +534,7 @@ export function getTransferOutOfEscrowInstructionRaw< | string | IAccountMeta = 'Sysvar1nstructions1111111111111111111111111', TAccountAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { escrow: TAccountEscrow extends string @@ -644,7 +644,7 @@ export function getTransferOutOfEscrowInstructionRaw< export type ParsedTransferOutOfEscrowInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -680,7 +680,7 @@ export type ParsedTransferOutOfEscrowInstruction< export function parseTransferOutOfEscrowInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/transferSol.ts b/test/packages/js-experimental/src/generated/instructions/transferSol.ts index bee00ca8a..806204e63 100644 --- a/test/packages/js-experimental/src/generated/instructions/transferSol.ts +++ b/test/packages/js-experimental/src/generated/instructions/transferSol.ts @@ -40,7 +40,7 @@ export type TransferSolInstruction< TProgram extends string = '11111111111111111111111111111111', TAccountSource extends string | IAccountMeta = string, TAccountDestination extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -51,7 +51,7 @@ export type TransferSolInstruction< TAccountDestination extends string ? WritableAccount : TAccountDestination, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -59,7 +59,7 @@ export type TransferSolInstructionWithSigners< TProgram extends string = '11111111111111111111111111111111', TAccountSource extends string | IAccountMeta = string, TAccountDestination extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -71,7 +71,7 @@ export type TransferSolInstructionWithSigners< TAccountDestination extends string ? WritableAccount : TAccountDestination, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -111,7 +111,7 @@ export function getTransferSolInstructionDataCodec(): Codec< export type TransferSolInput< TAccountSource extends string, - TAccountDestination extends string + TAccountDestination extends string, > = { source: Address; destination: Address; @@ -120,7 +120,7 @@ export type TransferSolInput< export type TransferSolInputWithSigners< TAccountSource extends string, - TAccountDestination extends string + TAccountDestination extends string, > = { source: TransactionSigner; destination: Address; @@ -130,7 +130,7 @@ export type TransferSolInputWithSigners< export function getTransferSolInstruction< TAccountSource extends string, TAccountDestination extends string, - TProgram extends string = '11111111111111111111111111111111' + TProgram extends string = '11111111111111111111111111111111', >( input: TransferSolInputWithSigners ): TransferSolInstructionWithSigners< @@ -141,14 +141,14 @@ export function getTransferSolInstruction< export function getTransferSolInstruction< TAccountSource extends string, TAccountDestination extends string, - TProgram extends string = '11111111111111111111111111111111' + TProgram extends string = '11111111111111111111111111111111', >( input: TransferSolInput ): TransferSolInstruction; export function getTransferSolInstruction< TAccountSource extends string, TAccountDestination extends string, - TProgram extends string = '11111111111111111111111111111111' + TProgram extends string = '11111111111111111111111111111111', >(input: TransferSolInput): IInstruction { // Program address. const programAddress = @@ -190,7 +190,7 @@ export function getTransferSolInstructionRaw< TProgram extends string = '11111111111111111111111111111111', TAccountSource extends string | IAccountMeta = string, TAccountDestination extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { source: TAccountSource extends string @@ -222,7 +222,7 @@ export function getTransferSolInstructionRaw< export type ParsedTransferSolInstruction< TProgram extends string = '11111111111111111111111111111111', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -234,7 +234,7 @@ export type ParsedTransferSolInstruction< export function parseTransferSolInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/unverifyCollection.ts b/test/packages/js-experimental/src/generated/instructions/unverifyCollection.ts index 13dddcfc7..494b7ae7d 100644 --- a/test/packages/js-experimental/src/generated/instructions/unverifyCollection.ts +++ b/test/packages/js-experimental/src/generated/instructions/unverifyCollection.ts @@ -47,7 +47,7 @@ export type UnverifyCollectionInstruction< TAccountCollectionAuthorityRecord extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -70,7 +70,7 @@ export type UnverifyCollectionInstruction< TAccountCollectionAuthorityRecord extends string ? ReadonlyAccount : TAccountCollectionAuthorityRecord, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -86,7 +86,7 @@ export type UnverifyCollectionInstructionWithSigners< TAccountCollectionAuthorityRecord extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -110,7 +110,7 @@ export type UnverifyCollectionInstructionWithSigners< TAccountCollectionAuthorityRecord extends string ? ReadonlyAccount : TAccountCollectionAuthorityRecord, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -145,7 +145,7 @@ export type UnverifyCollectionInput< TAccountCollectionMint extends string, TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, - TAccountCollectionAuthorityRecord extends string + TAccountCollectionAuthorityRecord extends string, > = { /** Metadata account */ metadata: Address; @@ -167,7 +167,7 @@ export type UnverifyCollectionInputWithSigners< TAccountCollectionMint extends string, TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, - TAccountCollectionAuthorityRecord extends string + TAccountCollectionAuthorityRecord extends string, > = { /** Metadata account */ metadata: Address; @@ -190,7 +190,7 @@ export function getUnverifyCollectionInstruction< TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, TAccountCollectionAuthorityRecord extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UnverifyCollectionInputWithSigners< TAccountMetadata, @@ -216,7 +216,7 @@ export function getUnverifyCollectionInstruction< TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, TAccountCollectionAuthorityRecord extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UnverifyCollectionInput< TAccountMetadata, @@ -242,7 +242,7 @@ export function getUnverifyCollectionInstruction< TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, TAccountCollectionAuthorityRecord extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UnverifyCollectionInput< TAccountMetadata, @@ -314,7 +314,7 @@ export function getUnverifyCollectionInstructionRaw< TAccountCollectionAuthorityRecord extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -378,7 +378,7 @@ export function getUnverifyCollectionInstructionRaw< export type ParsedUnverifyCollectionInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -400,7 +400,7 @@ export type ParsedUnverifyCollectionInstruction< export function parseUnverifyCollectionInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/unverifySizedCollectionItem.ts b/test/packages/js-experimental/src/generated/instructions/unverifySizedCollectionItem.ts index 586fdd345..5f567393c 100644 --- a/test/packages/js-experimental/src/generated/instructions/unverifySizedCollectionItem.ts +++ b/test/packages/js-experimental/src/generated/instructions/unverifySizedCollectionItem.ts @@ -49,7 +49,7 @@ export type UnverifySizedCollectionItemInstruction< TAccountCollectionAuthorityRecord extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -75,7 +75,7 @@ export type UnverifySizedCollectionItemInstruction< TAccountCollectionAuthorityRecord extends string ? ReadonlyAccount : TAccountCollectionAuthorityRecord, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -92,7 +92,7 @@ export type UnverifySizedCollectionItemInstructionWithSigners< TAccountCollectionAuthorityRecord extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -120,7 +120,7 @@ export type UnverifySizedCollectionItemInstructionWithSigners< TAccountCollectionAuthorityRecord extends string ? ReadonlyAccount : TAccountCollectionAuthorityRecord, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -158,7 +158,7 @@ export type UnverifySizedCollectionItemInput< TAccountCollectionMint extends string, TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, - TAccountCollectionAuthorityRecord extends string + TAccountCollectionAuthorityRecord extends string, > = { /** Metadata account */ metadata: Address; @@ -183,7 +183,7 @@ export type UnverifySizedCollectionItemInputWithSigners< TAccountCollectionMint extends string, TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, - TAccountCollectionAuthorityRecord extends string + TAccountCollectionAuthorityRecord extends string, > = { /** Metadata account */ metadata: Address; @@ -209,7 +209,7 @@ export function getUnverifySizedCollectionItemInstruction< TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, TAccountCollectionAuthorityRecord extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UnverifySizedCollectionItemInputWithSigners< TAccountMetadata, @@ -238,7 +238,7 @@ export function getUnverifySizedCollectionItemInstruction< TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, TAccountCollectionAuthorityRecord extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UnverifySizedCollectionItemInput< TAccountMetadata, @@ -267,7 +267,7 @@ export function getUnverifySizedCollectionItemInstruction< TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, TAccountCollectionAuthorityRecord extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UnverifySizedCollectionItemInput< TAccountMetadata, @@ -343,7 +343,7 @@ export function getUnverifySizedCollectionItemInstructionRaw< TAccountCollectionAuthorityRecord extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -412,7 +412,7 @@ export function getUnverifySizedCollectionItemInstructionRaw< export type ParsedUnverifySizedCollectionItemInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -436,7 +436,7 @@ export type ParsedUnverifySizedCollectionItemInstruction< export function parseUnverifySizedCollectionItemInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/updateCandyMachine.ts b/test/packages/js-experimental/src/generated/instructions/updateCandyMachine.ts index 77c408a14..687fbfc9c 100644 --- a/test/packages/js-experimental/src/generated/instructions/updateCandyMachine.ts +++ b/test/packages/js-experimental/src/generated/instructions/updateCandyMachine.ts @@ -46,7 +46,7 @@ export type UpdateCandyMachineInstruction< TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', TAccountCandyMachine extends string | IAccountMeta = string, TAccountAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -57,7 +57,7 @@ export type UpdateCandyMachineInstruction< TAccountAuthority extends string ? ReadonlySignerAccount : TAccountAuthority, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -65,7 +65,7 @@ export type UpdateCandyMachineInstructionWithSigners< TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', TAccountCandyMachine extends string | IAccountMeta = string, TAccountAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -77,7 +77,7 @@ export type UpdateCandyMachineInstructionWithSigners< ? ReadonlySignerAccount & IAccountSignerMeta : TAccountAuthority, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -122,7 +122,7 @@ export function getUpdateCandyMachineInstructionDataCodec(): Codec< export type UpdateCandyMachineInput< TAccountCandyMachine extends string, - TAccountAuthority extends string + TAccountAuthority extends string, > = { candyMachine: Address; authority: Address; @@ -131,7 +131,7 @@ export type UpdateCandyMachineInput< export type UpdateCandyMachineInputWithSigners< TAccountCandyMachine extends string, - TAccountAuthority extends string + TAccountAuthority extends string, > = { candyMachine: Address; authority: TransactionSigner; @@ -141,7 +141,7 @@ export type UpdateCandyMachineInputWithSigners< export function getUpdateCandyMachineInstruction< TAccountCandyMachine extends string, TAccountAuthority extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: UpdateCandyMachineInputWithSigners< TAccountCandyMachine, @@ -155,7 +155,7 @@ export function getUpdateCandyMachineInstruction< export function getUpdateCandyMachineInstruction< TAccountCandyMachine extends string, TAccountAuthority extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: UpdateCandyMachineInput ): UpdateCandyMachineInstruction< @@ -166,7 +166,7 @@ export function getUpdateCandyMachineInstruction< export function getUpdateCandyMachineInstruction< TAccountCandyMachine extends string, TAccountAuthority extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: UpdateCandyMachineInput ): IInstruction { @@ -210,7 +210,7 @@ export function getUpdateCandyMachineInstructionRaw< TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', TAccountCandyMachine extends string | IAccountMeta = string, TAccountAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { candyMachine: TAccountCandyMachine extends string @@ -242,7 +242,7 @@ export function getUpdateCandyMachineInstructionRaw< export type ParsedUpdateCandyMachineInstruction< TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -254,7 +254,7 @@ export type ParsedUpdateCandyMachineInstruction< export function parseUpdateCandyMachineInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/updateMetadataAccount.ts b/test/packages/js-experimental/src/generated/instructions/updateMetadataAccount.ts index cdd68b8ec..68cbb701c 100644 --- a/test/packages/js-experimental/src/generated/instructions/updateMetadataAccount.ts +++ b/test/packages/js-experimental/src/generated/instructions/updateMetadataAccount.ts @@ -60,7 +60,7 @@ export type UpdateMetadataAccountInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', TAccountMetadata extends string | IAccountMeta = string, TAccountUpdateAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -71,7 +71,7 @@ export type UpdateMetadataAccountInstruction< TAccountUpdateAuthority extends string ? ReadonlySignerAccount : TAccountUpdateAuthority, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -79,7 +79,7 @@ export type UpdateMetadataAccountInstructionWithSigners< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', TAccountMetadata extends string | IAccountMeta = string, TAccountUpdateAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -91,7 +91,7 @@ export type UpdateMetadataAccountInstructionWithSigners< ? ReadonlySignerAccount & IAccountSignerMeta : TAccountUpdateAuthority, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -178,7 +178,7 @@ export function getUpdateMetadataAccountInstructionDataCodec(): Codec< export type UpdateMetadataAccountInput< TAccountMetadata extends string, - TAccountUpdateAuthority extends string + TAccountUpdateAuthority extends string, > = { /** Metadata account */ metadata: Address; @@ -191,7 +191,7 @@ export type UpdateMetadataAccountInput< export type UpdateMetadataAccountInputWithSigners< TAccountMetadata extends string, - TAccountUpdateAuthority extends string + TAccountUpdateAuthority extends string, > = { /** Metadata account */ metadata: Address; @@ -205,7 +205,7 @@ export type UpdateMetadataAccountInputWithSigners< export function getUpdateMetadataAccountInstruction< TAccountMetadata extends string, TAccountUpdateAuthority extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UpdateMetadataAccountInputWithSigners< TAccountMetadata, @@ -219,7 +219,7 @@ export function getUpdateMetadataAccountInstruction< export function getUpdateMetadataAccountInstruction< TAccountMetadata extends string, TAccountUpdateAuthority extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UpdateMetadataAccountInput ): UpdateMetadataAccountInstruction< @@ -230,7 +230,7 @@ export function getUpdateMetadataAccountInstruction< export function getUpdateMetadataAccountInstruction< TAccountMetadata extends string, TAccountUpdateAuthority extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UpdateMetadataAccountInput ): IInstruction { @@ -277,7 +277,7 @@ export function getUpdateMetadataAccountInstructionRaw< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', TAccountMetadata extends string | IAccountMeta = string, TAccountUpdateAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -312,7 +312,7 @@ export function getUpdateMetadataAccountInstructionRaw< export type ParsedUpdateMetadataAccountInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -326,7 +326,7 @@ export type ParsedUpdateMetadataAccountInstruction< export function parseUpdateMetadataAccountInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/updateMetadataAccountV2.ts b/test/packages/js-experimental/src/generated/instructions/updateMetadataAccountV2.ts index 0eb21aa5f..4b1479511 100644 --- a/test/packages/js-experimental/src/generated/instructions/updateMetadataAccountV2.ts +++ b/test/packages/js-experimental/src/generated/instructions/updateMetadataAccountV2.ts @@ -54,7 +54,7 @@ export type UpdateMetadataAccountV2Instruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', TAccountMetadata extends string | IAccountMeta = string, TAccountUpdateAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -65,7 +65,7 @@ export type UpdateMetadataAccountV2Instruction< TAccountUpdateAuthority extends string ? ReadonlySignerAccount : TAccountUpdateAuthority, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -73,7 +73,7 @@ export type UpdateMetadataAccountV2InstructionWithSigners< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', TAccountMetadata extends string | IAccountMeta = string, TAccountUpdateAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -85,7 +85,7 @@ export type UpdateMetadataAccountV2InstructionWithSigners< ? ReadonlySignerAccount & IAccountSignerMeta : TAccountUpdateAuthority, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -139,7 +139,7 @@ export function getUpdateMetadataAccountV2InstructionDataCodec(): Codec< export type UpdateMetadataAccountV2Input< TAccountMetadata extends string, - TAccountUpdateAuthority extends string + TAccountUpdateAuthority extends string, > = { /** Metadata account */ metadata: Address; @@ -153,7 +153,7 @@ export type UpdateMetadataAccountV2Input< export type UpdateMetadataAccountV2InputWithSigners< TAccountMetadata extends string, - TAccountUpdateAuthority extends string + TAccountUpdateAuthority extends string, > = { /** Metadata account */ metadata: Address; @@ -168,7 +168,7 @@ export type UpdateMetadataAccountV2InputWithSigners< export function getUpdateMetadataAccountV2Instruction< TAccountMetadata extends string, TAccountUpdateAuthority extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UpdateMetadataAccountV2InputWithSigners< TAccountMetadata, @@ -182,7 +182,7 @@ export function getUpdateMetadataAccountV2Instruction< export function getUpdateMetadataAccountV2Instruction< TAccountMetadata extends string, TAccountUpdateAuthority extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UpdateMetadataAccountV2Input ): UpdateMetadataAccountV2Instruction< @@ -193,7 +193,7 @@ export function getUpdateMetadataAccountV2Instruction< export function getUpdateMetadataAccountV2Instruction< TAccountMetadata extends string, TAccountUpdateAuthority extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UpdateMetadataAccountV2Input ): IInstruction { @@ -240,7 +240,7 @@ export function getUpdateMetadataAccountV2InstructionRaw< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', TAccountMetadata extends string | IAccountMeta = string, TAccountUpdateAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -275,7 +275,7 @@ export function getUpdateMetadataAccountV2InstructionRaw< export type ParsedUpdateMetadataAccountV2Instruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -289,7 +289,7 @@ export type ParsedUpdateMetadataAccountV2Instruction< export function parseUpdateMetadataAccountV2Instruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/updatePrimarySaleHappenedViaToken.ts b/test/packages/js-experimental/src/generated/instructions/updatePrimarySaleHappenedViaToken.ts index 5352a23bc..8a3feff21 100644 --- a/test/packages/js-experimental/src/generated/instructions/updatePrimarySaleHappenedViaToken.ts +++ b/test/packages/js-experimental/src/generated/instructions/updatePrimarySaleHappenedViaToken.ts @@ -40,7 +40,7 @@ export type UpdatePrimarySaleHappenedViaTokenInstruction< TAccountMetadata extends string | IAccountMeta = string, TAccountOwner extends string | IAccountMeta = string, TAccountToken extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -54,7 +54,7 @@ export type UpdatePrimarySaleHappenedViaTokenInstruction< TAccountToken extends string ? ReadonlyAccount : TAccountToken, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -63,7 +63,7 @@ export type UpdatePrimarySaleHappenedViaTokenInstructionWithSigners< TAccountMetadata extends string | IAccountMeta = string, TAccountOwner extends string | IAccountMeta = string, TAccountToken extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -78,7 +78,7 @@ export type UpdatePrimarySaleHappenedViaTokenInstructionWithSigners< TAccountToken extends string ? ReadonlyAccount : TAccountToken, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -112,7 +112,7 @@ export function getUpdatePrimarySaleHappenedViaTokenInstructionDataCodec(): Code export type UpdatePrimarySaleHappenedViaTokenInput< TAccountMetadata extends string, TAccountOwner extends string, - TAccountToken extends string + TAccountToken extends string, > = { /** Metadata key (pda of ['metadata', program id, mint id]) */ metadata: Address; @@ -125,7 +125,7 @@ export type UpdatePrimarySaleHappenedViaTokenInput< export type UpdatePrimarySaleHappenedViaTokenInputWithSigners< TAccountMetadata extends string, TAccountOwner extends string, - TAccountToken extends string + TAccountToken extends string, > = { /** Metadata key (pda of ['metadata', program id, mint id]) */ metadata: Address; @@ -139,7 +139,7 @@ export function getUpdatePrimarySaleHappenedViaTokenInstruction< TAccountMetadata extends string, TAccountOwner extends string, TAccountToken extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UpdatePrimarySaleHappenedViaTokenInputWithSigners< TAccountMetadata, @@ -156,7 +156,7 @@ export function getUpdatePrimarySaleHappenedViaTokenInstruction< TAccountMetadata extends string, TAccountOwner extends string, TAccountToken extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UpdatePrimarySaleHappenedViaTokenInput< TAccountMetadata, @@ -173,7 +173,7 @@ export function getUpdatePrimarySaleHappenedViaTokenInstruction< TAccountMetadata extends string, TAccountOwner extends string, TAccountToken extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UpdatePrimarySaleHappenedViaTokenInput< TAccountMetadata, @@ -220,7 +220,7 @@ export function getUpdatePrimarySaleHappenedViaTokenInstructionRaw< TAccountMetadata extends string | IAccountMeta = string, TAccountOwner extends string | IAccountMeta = string, TAccountToken extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -258,7 +258,7 @@ export function getUpdatePrimarySaleHappenedViaTokenInstructionRaw< export type ParsedUpdatePrimarySaleHappenedViaTokenInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -274,7 +274,7 @@ export type ParsedUpdatePrimarySaleHappenedViaTokenInstruction< export function parseUpdatePrimarySaleHappenedViaTokenInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/updateV1.ts b/test/packages/js-experimental/src/generated/instructions/updateV1.ts index decd2b30f..329678658 100644 --- a/test/packages/js-experimental/src/generated/instructions/updateV1.ts +++ b/test/packages/js-experimental/src/generated/instructions/updateV1.ts @@ -108,7 +108,7 @@ export type UpdateV1Instruction< | string | IAccountMeta = string, TAccountAuthorizationRules extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -143,7 +143,7 @@ export type UpdateV1Instruction< TAccountAuthorizationRules extends string ? ReadonlyAccount : TAccountAuthorizationRules, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -165,7 +165,7 @@ export type UpdateV1InstructionWithSigners< | string | IAccountMeta = string, TAccountAuthorizationRules extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -201,7 +201,7 @@ export type UpdateV1InstructionWithSigners< TAccountAuthorizationRules extends string ? ReadonlyAccount : TAccountAuthorizationRules, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -340,7 +340,7 @@ export type UpdateV1Input< TAccountToken extends string, TAccountDelegateRecord extends string, TAccountAuthorizationRulesProgram extends string, - TAccountAuthorizationRules extends string + TAccountAuthorizationRules extends string, > = { /** Update authority or delegate */ authority: Address; @@ -386,7 +386,7 @@ export type UpdateV1InputWithSigners< TAccountToken extends string, TAccountDelegateRecord extends string, TAccountAuthorizationRulesProgram extends string, - TAccountAuthorizationRules extends string + TAccountAuthorizationRules extends string, > = { /** Update authority or delegate */ authority: TransactionSigner; @@ -433,7 +433,7 @@ export function getUpdateV1Instruction< TAccountDelegateRecord extends string, TAccountAuthorizationRulesProgram extends string, TAccountAuthorizationRules extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UpdateV1InputWithSigners< TAccountAuthority, @@ -471,7 +471,7 @@ export function getUpdateV1Instruction< TAccountDelegateRecord extends string, TAccountAuthorizationRulesProgram extends string, TAccountAuthorizationRules extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UpdateV1Input< TAccountAuthority, @@ -509,7 +509,7 @@ export function getUpdateV1Instruction< TAccountDelegateRecord extends string, TAccountAuthorizationRulesProgram extends string, TAccountAuthorizationRules extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UpdateV1Input< TAccountAuthority, @@ -613,7 +613,7 @@ export function getUpdateV1InstructionRaw< | string | IAccountMeta = string, TAccountAuthorizationRules extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { authority: TAccountAuthority extends string @@ -726,7 +726,7 @@ export function getUpdateV1InstructionRaw< export type ParsedUpdateV1Instruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -756,7 +756,7 @@ export type ParsedUpdateV1Instruction< export function parseUpdateV1Instruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/useAsset.ts b/test/packages/js-experimental/src/generated/instructions/useAsset.ts index ee58006b6..7cdde7666 100644 --- a/test/packages/js-experimental/src/generated/instructions/useAsset.ts +++ b/test/packages/js-experimental/src/generated/instructions/useAsset.ts @@ -62,7 +62,7 @@ export type UseAssetInstruction< TAccountAuthorizationRulesProgram extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -100,7 +100,7 @@ export type UseAssetInstruction< TAccountAuthorizationRulesProgram extends string ? ReadonlyAccount : TAccountAuthorizationRulesProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -125,7 +125,7 @@ export type UseAssetInstructionWithSigners< TAccountAuthorizationRulesProgram extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -164,7 +164,7 @@ export type UseAssetInstructionWithSigners< TAccountAuthorizationRulesProgram extends string ? ReadonlyAccount : TAccountAuthorizationRulesProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -213,7 +213,7 @@ export type UseAssetInput< TAccountSystemProgram extends string, TAccountUseAuthorityRecord extends string, TAccountAuthorizationRules extends string, - TAccountAuthorizationRulesProgram extends string + TAccountAuthorizationRulesProgram extends string, > = { /** Metadata account */ metadata: Address; @@ -251,7 +251,7 @@ export type UseAssetInputWithSigners< TAccountSystemProgram extends string, TAccountUseAuthorityRecord extends string, TAccountAuthorizationRules extends string, - TAccountAuthorizationRulesProgram extends string + TAccountAuthorizationRulesProgram extends string, > = { /** Metadata account */ metadata: Address; @@ -290,7 +290,7 @@ export function getUseAssetInstruction< TAccountUseAuthorityRecord extends string, TAccountAuthorizationRules extends string, TAccountAuthorizationRulesProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UseAssetInputWithSigners< TAccountMetadata, @@ -331,7 +331,7 @@ export function getUseAssetInstruction< TAccountUseAuthorityRecord extends string, TAccountAuthorizationRules extends string, TAccountAuthorizationRulesProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UseAssetInput< TAccountMetadata, @@ -372,7 +372,7 @@ export function getUseAssetInstruction< TAccountUseAuthorityRecord extends string, TAccountAuthorizationRules extends string, TAccountAuthorizationRulesProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UseAssetInput< TAccountMetadata, @@ -489,7 +489,7 @@ export function getUseAssetInstructionRaw< TAccountAuthorizationRulesProgram extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -600,7 +600,7 @@ export function getUseAssetInstructionRaw< export type ParsedUseAssetInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -632,7 +632,7 @@ export type ParsedUseAssetInstruction< export function parseUseAssetInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/utilize.ts b/test/packages/js-experimental/src/generated/instructions/utilize.ts index 7a85b7fad..bc1e100ac 100644 --- a/test/packages/js-experimental/src/generated/instructions/utilize.ts +++ b/test/packages/js-experimental/src/generated/instructions/utilize.ts @@ -58,7 +58,7 @@ export type UtilizeInstruction< | IAccountMeta = 'SysvarRent111111111111111111111111111111111', TAccountUseAuthorityRecord extends string | IAccountMeta = string, TAccountBurner extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -96,7 +96,7 @@ export type UtilizeInstruction< TAccountBurner extends string ? ReadonlyAccount : TAccountBurner, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -121,7 +121,7 @@ export type UtilizeInstructionWithSigners< | IAccountMeta = 'SysvarRent111111111111111111111111111111111', TAccountUseAuthorityRecord extends string | IAccountMeta = string, TAccountBurner extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -160,7 +160,7 @@ export type UtilizeInstructionWithSigners< TAccountBurner extends string ? ReadonlyAccount : TAccountBurner, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -209,7 +209,7 @@ export type UtilizeInput< TAccountSystemProgram extends string, TAccountRent extends string, TAccountUseAuthorityRecord extends string, - TAccountBurner extends string + TAccountBurner extends string, > = { /** Metadata account */ metadata: Address; @@ -247,7 +247,7 @@ export type UtilizeInputWithSigners< TAccountSystemProgram extends string, TAccountRent extends string, TAccountUseAuthorityRecord extends string, - TAccountBurner extends string + TAccountBurner extends string, > = { /** Metadata account */ metadata: Address; @@ -286,7 +286,7 @@ export function getUtilizeInstruction< TAccountRent extends string, TAccountUseAuthorityRecord extends string, TAccountBurner extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UtilizeInputWithSigners< TAccountMetadata, @@ -327,7 +327,7 @@ export function getUtilizeInstruction< TAccountRent extends string, TAccountUseAuthorityRecord extends string, TAccountBurner extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UtilizeInput< TAccountMetadata, @@ -368,7 +368,7 @@ export function getUtilizeInstruction< TAccountRent extends string, TAccountUseAuthorityRecord extends string, TAccountBurner extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: UtilizeInput< TAccountMetadata, @@ -480,7 +480,7 @@ export function getUtilizeInstructionRaw< | IAccountMeta = 'SysvarRent111111111111111111111111111111111', TAccountUseAuthorityRecord extends string | IAccountMeta = string, TAccountBurner extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -586,7 +586,7 @@ export function getUtilizeInstructionRaw< export type ParsedUtilizeInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -618,7 +618,7 @@ export type ParsedUtilizeInstruction< export function parseUtilizeInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/validate.ts b/test/packages/js-experimental/src/generated/instructions/validate.ts index c0dcbda93..21e78283d 100644 --- a/test/packages/js-experimental/src/generated/instructions/validate.ts +++ b/test/packages/js-experimental/src/generated/instructions/validate.ts @@ -95,7 +95,7 @@ export type ValidateInstruction< | string | IAccountMeta | undefined = undefined, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -114,72 +114,72 @@ export type ValidateInstruction< : [ TAccountOptRuleSigner1 extends string ? ReadonlyAccount - : TAccountOptRuleSigner1 + : TAccountOptRuleSigner1, ]), ...(TAccountOptRuleSigner2 extends undefined ? [] : [ TAccountOptRuleSigner2 extends string ? ReadonlySignerAccount - : TAccountOptRuleSigner2 + : TAccountOptRuleSigner2, ]), ...(TAccountOptRuleSigner3 extends undefined ? [] : [ TAccountOptRuleSigner3 extends string ? ReadonlySignerAccount - : TAccountOptRuleSigner3 + : TAccountOptRuleSigner3, ]), ...(TAccountOptRuleSigner4 extends undefined ? [] : [ TAccountOptRuleSigner4 extends string ? ReadonlySignerAccount - : TAccountOptRuleSigner4 + : TAccountOptRuleSigner4, ]), ...(TAccountOptRuleSigner5 extends undefined ? [] : [ TAccountOptRuleSigner5 extends string ? ReadonlySignerAccount - : TAccountOptRuleSigner5 + : TAccountOptRuleSigner5, ]), ...(TAccountOptRuleNonsigner1 extends undefined ? [] : [ TAccountOptRuleNonsigner1 extends string ? ReadonlyAccount - : TAccountOptRuleNonsigner1 + : TAccountOptRuleNonsigner1, ]), ...(TAccountOptRuleNonsigner2 extends undefined ? [] : [ TAccountOptRuleNonsigner2 extends string ? ReadonlyAccount - : TAccountOptRuleNonsigner2 + : TAccountOptRuleNonsigner2, ]), ...(TAccountOptRuleNonsigner3 extends undefined ? [] : [ TAccountOptRuleNonsigner3 extends string ? ReadonlyAccount - : TAccountOptRuleNonsigner3 + : TAccountOptRuleNonsigner3, ]), ...(TAccountOptRuleNonsigner4 extends undefined ? [] : [ TAccountOptRuleNonsigner4 extends string ? ReadonlyAccount - : TAccountOptRuleNonsigner4 + : TAccountOptRuleNonsigner4, ]), ...(TAccountOptRuleNonsigner5 extends undefined ? [] : [ TAccountOptRuleNonsigner5 extends string ? ReadonlyAccount - : TAccountOptRuleNonsigner5 + : TAccountOptRuleNonsigner5, ]), - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -230,7 +230,7 @@ export type ValidateInstructionWithSigners< | string | IAccountMeta | undefined = undefined, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -250,7 +250,7 @@ export type ValidateInstructionWithSigners< : [ TAccountOptRuleSigner1 extends string ? ReadonlyAccount - : TAccountOptRuleSigner1 + : TAccountOptRuleSigner1, ]), ...(TAccountOptRuleSigner2 extends undefined ? [] @@ -258,7 +258,7 @@ export type ValidateInstructionWithSigners< TAccountOptRuleSigner2 extends string ? ReadonlySignerAccount & IAccountSignerMeta - : TAccountOptRuleSigner2 + : TAccountOptRuleSigner2, ]), ...(TAccountOptRuleSigner3 extends undefined ? [] @@ -266,7 +266,7 @@ export type ValidateInstructionWithSigners< TAccountOptRuleSigner3 extends string ? ReadonlySignerAccount & IAccountSignerMeta - : TAccountOptRuleSigner3 + : TAccountOptRuleSigner3, ]), ...(TAccountOptRuleSigner4 extends undefined ? [] @@ -274,7 +274,7 @@ export type ValidateInstructionWithSigners< TAccountOptRuleSigner4 extends string ? ReadonlySignerAccount & IAccountSignerMeta - : TAccountOptRuleSigner4 + : TAccountOptRuleSigner4, ]), ...(TAccountOptRuleSigner5 extends undefined ? [] @@ -282,44 +282,44 @@ export type ValidateInstructionWithSigners< TAccountOptRuleSigner5 extends string ? ReadonlySignerAccount & IAccountSignerMeta - : TAccountOptRuleSigner5 + : TAccountOptRuleSigner5, ]), ...(TAccountOptRuleNonsigner1 extends undefined ? [] : [ TAccountOptRuleNonsigner1 extends string ? ReadonlyAccount - : TAccountOptRuleNonsigner1 + : TAccountOptRuleNonsigner1, ]), ...(TAccountOptRuleNonsigner2 extends undefined ? [] : [ TAccountOptRuleNonsigner2 extends string ? ReadonlyAccount - : TAccountOptRuleNonsigner2 + : TAccountOptRuleNonsigner2, ]), ...(TAccountOptRuleNonsigner3 extends undefined ? [] : [ TAccountOptRuleNonsigner3 extends string ? ReadonlyAccount - : TAccountOptRuleNonsigner3 + : TAccountOptRuleNonsigner3, ]), ...(TAccountOptRuleNonsigner4 extends undefined ? [] : [ TAccountOptRuleNonsigner4 extends string ? ReadonlyAccount - : TAccountOptRuleNonsigner4 + : TAccountOptRuleNonsigner4, ]), ...(TAccountOptRuleNonsigner5 extends undefined ? [] : [ TAccountOptRuleNonsigner5 extends string ? ReadonlyAccount - : TAccountOptRuleNonsigner5 + : TAccountOptRuleNonsigner5, ]), - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -380,7 +380,7 @@ export type ValidateInput< TAccountOptRuleNonsigner2 extends string, TAccountOptRuleNonsigner3 extends string, TAccountOptRuleNonsigner4 extends string, - TAccountOptRuleNonsigner5 extends string + TAccountOptRuleNonsigner5 extends string, > = { /** Payer and creator of the RuleSet */ payer: Address; @@ -425,7 +425,7 @@ export type ValidateInputWithSigners< TAccountOptRuleNonsigner2 extends string, TAccountOptRuleNonsigner3 extends string, TAccountOptRuleNonsigner4 extends string, - TAccountOptRuleNonsigner5 extends string + TAccountOptRuleNonsigner5 extends string, > = { /** Payer and creator of the RuleSet */ payer: TransactionSigner; @@ -473,7 +473,7 @@ export function getValidateInstruction< TAccountOptRuleNonsigner3 extends string, TAccountOptRuleNonsigner4 extends string, TAccountOptRuleNonsigner5 extends string, - TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg' + TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg', >( input: ValidateInputWithSigners< TAccountPayer, @@ -495,7 +495,7 @@ export function getValidateInstruction< TAccountPayer, TAccountRuleSet, TAccountSystemProgram, - typeof input['optRuleSigner1'] extends TransactionSigner + (typeof input)['optRuleSigner1'] extends TransactionSigner ? ReadonlySignerAccount & IAccountSignerMeta : TAccountOptRuleSigner1, @@ -523,7 +523,7 @@ export function getValidateInstruction< TAccountOptRuleNonsigner3 extends string, TAccountOptRuleNonsigner4 extends string, TAccountOptRuleNonsigner5 extends string, - TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg' + TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg', >( input: ValidateInput< TAccountPayer, @@ -570,7 +570,7 @@ export function getValidateInstruction< TAccountOptRuleNonsigner3 extends string, TAccountOptRuleNonsigner4 extends string, TAccountOptRuleNonsigner5 extends string, - TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg' + TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg', >( input: ValidateInput< TAccountPayer, @@ -714,7 +714,7 @@ export function getValidateInstructionRaw< | string | IAccountMeta | undefined = undefined, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { payer: TAccountPayer extends string @@ -793,7 +793,7 @@ export function getValidateInstructionRaw< accountMetaWithDefault(accounts.optRuleNonsigner4, AccountRole.READONLY), accountMetaWithDefault(accounts.optRuleNonsigner5, AccountRole.READONLY), ...(remainingAccounts ?? []), - ].filter((x: T | undefined): x is T => x !== undefined), + ].filter((x: T | undefined): x is T => x !== undefined), data: getValidateInstructionDataEncoder().encode(args), programAddress, } as ValidateInstruction< @@ -817,7 +817,7 @@ export function getValidateInstructionRaw< export type ParsedValidateInstruction< TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -852,7 +852,7 @@ export type ParsedValidateInstruction< export function parseValidateInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/verify.ts b/test/packages/js-experimental/src/generated/instructions/verify.ts index 048616fbb..59eda2303 100644 --- a/test/packages/js-experimental/src/generated/instructions/verify.ts +++ b/test/packages/js-experimental/src/generated/instructions/verify.ts @@ -50,7 +50,7 @@ export type VerifyInstruction< TAccountAuthorizationRulesProgram extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -70,7 +70,7 @@ export type VerifyInstruction< TAccountAuthorizationRulesProgram extends string ? ReadonlyAccount : TAccountAuthorizationRulesProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -83,7 +83,7 @@ export type VerifyInstructionWithSigners< TAccountAuthorizationRulesProgram extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -105,7 +105,7 @@ export type VerifyInstructionWithSigners< TAccountAuthorizationRulesProgram extends string ? ReadonlyAccount : TAccountAuthorizationRulesProgram, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -148,7 +148,7 @@ export type VerifyInput< TAccountCollectionAuthority extends string, TAccountPayer extends string, TAccountAuthorizationRules extends string, - TAccountAuthorizationRulesProgram extends string + TAccountAuthorizationRulesProgram extends string, > = { /** Metadata account */ metadata: Address; @@ -168,7 +168,7 @@ export type VerifyInputWithSigners< TAccountCollectionAuthority extends string, TAccountPayer extends string, TAccountAuthorizationRules extends string, - TAccountAuthorizationRulesProgram extends string + TAccountAuthorizationRulesProgram extends string, > = { /** Metadata account */ metadata: Address; @@ -189,7 +189,7 @@ export function getVerifyInstruction< TAccountPayer extends string, TAccountAuthorizationRules extends string, TAccountAuthorizationRulesProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: VerifyInputWithSigners< TAccountMetadata, @@ -212,7 +212,7 @@ export function getVerifyInstruction< TAccountPayer extends string, TAccountAuthorizationRules extends string, TAccountAuthorizationRulesProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: VerifyInput< TAccountMetadata, @@ -235,7 +235,7 @@ export function getVerifyInstruction< TAccountPayer extends string, TAccountAuthorizationRules extends string, TAccountAuthorizationRulesProgram extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: VerifyInput< TAccountMetadata, @@ -305,7 +305,7 @@ export function getVerifyInstructionRaw< TAccountAuthorizationRulesProgram extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -369,7 +369,7 @@ export function getVerifyInstructionRaw< export type ParsedVerifyInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -389,7 +389,7 @@ export type ParsedVerifyInstruction< export function parseVerifyInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/verifyCollection.ts b/test/packages/js-experimental/src/generated/instructions/verifyCollection.ts index 5d0c29360..b0317e840 100644 --- a/test/packages/js-experimental/src/generated/instructions/verifyCollection.ts +++ b/test/packages/js-experimental/src/generated/instructions/verifyCollection.ts @@ -45,7 +45,7 @@ export type VerifyCollectionInstruction< TAccountCollectionMasterEditionAccount extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -68,7 +68,7 @@ export type VerifyCollectionInstruction< TAccountCollectionMasterEditionAccount extends string ? ReadonlyAccount : TAccountCollectionMasterEditionAccount, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -82,7 +82,7 @@ export type VerifyCollectionInstructionWithSigners< TAccountCollectionMasterEditionAccount extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -107,7 +107,7 @@ export type VerifyCollectionInstructionWithSigners< TAccountCollectionMasterEditionAccount extends string ? ReadonlyAccount : TAccountCollectionMasterEditionAccount, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -142,7 +142,7 @@ export type VerifyCollectionInput< TAccountPayer extends string, TAccountCollectionMint extends string, TAccountCollection extends string, - TAccountCollectionMasterEditionAccount extends string + TAccountCollectionMasterEditionAccount extends string, > = { /** Metadata account */ metadata: Address; @@ -164,7 +164,7 @@ export type VerifyCollectionInputWithSigners< TAccountPayer extends string, TAccountCollectionMint extends string, TAccountCollection extends string, - TAccountCollectionMasterEditionAccount extends string + TAccountCollectionMasterEditionAccount extends string, > = { /** Metadata account */ metadata: Address; @@ -187,7 +187,7 @@ export function getVerifyCollectionInstruction< TAccountCollectionMint extends string, TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: VerifyCollectionInputWithSigners< TAccountMetadata, @@ -213,7 +213,7 @@ export function getVerifyCollectionInstruction< TAccountCollectionMint extends string, TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: VerifyCollectionInput< TAccountMetadata, @@ -239,7 +239,7 @@ export function getVerifyCollectionInstruction< TAccountCollectionMint extends string, TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: VerifyCollectionInput< TAccountMetadata, @@ -306,7 +306,7 @@ export function getVerifyCollectionInstructionRaw< TAccountCollectionMasterEditionAccount extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -363,7 +363,7 @@ export function getVerifyCollectionInstructionRaw< export type ParsedVerifyCollectionInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -385,7 +385,7 @@ export type ParsedVerifyCollectionInstruction< export function parseVerifyCollectionInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/verifySizedCollectionItem.ts b/test/packages/js-experimental/src/generated/instructions/verifySizedCollectionItem.ts index f100a2f0c..f3a03c5ea 100644 --- a/test/packages/js-experimental/src/generated/instructions/verifySizedCollectionItem.ts +++ b/test/packages/js-experimental/src/generated/instructions/verifySizedCollectionItem.ts @@ -49,7 +49,7 @@ export type VerifySizedCollectionItemInstruction< TAccountCollectionAuthorityRecord extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -75,7 +75,7 @@ export type VerifySizedCollectionItemInstruction< TAccountCollectionAuthorityRecord extends string ? ReadonlyAccount : TAccountCollectionAuthorityRecord, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -92,7 +92,7 @@ export type VerifySizedCollectionItemInstructionWithSigners< TAccountCollectionAuthorityRecord extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -120,7 +120,7 @@ export type VerifySizedCollectionItemInstructionWithSigners< TAccountCollectionAuthorityRecord extends string ? ReadonlyAccount : TAccountCollectionAuthorityRecord, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -158,7 +158,7 @@ export type VerifySizedCollectionItemInput< TAccountCollectionMint extends string, TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, - TAccountCollectionAuthorityRecord extends string + TAccountCollectionAuthorityRecord extends string, > = { /** Metadata account */ metadata: Address; @@ -183,7 +183,7 @@ export type VerifySizedCollectionItemInputWithSigners< TAccountCollectionMint extends string, TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, - TAccountCollectionAuthorityRecord extends string + TAccountCollectionAuthorityRecord extends string, > = { /** Metadata account */ metadata: Address; @@ -209,7 +209,7 @@ export function getVerifySizedCollectionItemInstruction< TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, TAccountCollectionAuthorityRecord extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: VerifySizedCollectionItemInputWithSigners< TAccountMetadata, @@ -238,7 +238,7 @@ export function getVerifySizedCollectionItemInstruction< TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, TAccountCollectionAuthorityRecord extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: VerifySizedCollectionItemInput< TAccountMetadata, @@ -267,7 +267,7 @@ export function getVerifySizedCollectionItemInstruction< TAccountCollection extends string, TAccountCollectionMasterEditionAccount extends string, TAccountCollectionAuthorityRecord extends string, - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', >( input: VerifySizedCollectionItemInput< TAccountMetadata, @@ -343,7 +343,7 @@ export function getVerifySizedCollectionItemInstructionRaw< TAccountCollectionAuthorityRecord extends | string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { metadata: TAccountMetadata extends string @@ -412,7 +412,7 @@ export function getVerifySizedCollectionItemInstructionRaw< export type ParsedVerifySizedCollectionItemInstruction< TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -436,7 +436,7 @@ export type ParsedVerifySizedCollectionItemInstruction< export function parseVerifySizedCollectionItemInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/instructions/withdraw.ts b/test/packages/js-experimental/src/generated/instructions/withdraw.ts index 878c22990..c16a1b841 100644 --- a/test/packages/js-experimental/src/generated/instructions/withdraw.ts +++ b/test/packages/js-experimental/src/generated/instructions/withdraw.ts @@ -40,7 +40,7 @@ export type WithdrawInstruction< TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', TAccountCandyMachine extends string | IAccountMeta = string, TAccountAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -51,7 +51,7 @@ export type WithdrawInstruction< TAccountAuthority extends string ? WritableSignerAccount : TAccountAuthority, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -59,7 +59,7 @@ export type WithdrawInstructionWithSigners< TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', TAccountCandyMachine extends string | IAccountMeta = string, TAccountAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], > = IInstruction & IInstructionWithData & IInstructionWithAccounts< @@ -71,7 +71,7 @@ export type WithdrawInstructionWithSigners< ? WritableSignerAccount & IAccountSignerMeta : TAccountAuthority, - ...TRemainingAccounts + ...TRemainingAccounts, ] >; @@ -109,7 +109,7 @@ export function getWithdrawInstructionDataCodec(): Codec< export type WithdrawInput< TAccountCandyMachine extends string, - TAccountAuthority extends string + TAccountAuthority extends string, > = { candyMachine: Address; authority: Address; @@ -117,7 +117,7 @@ export type WithdrawInput< export type WithdrawInputWithSigners< TAccountCandyMachine extends string, - TAccountAuthority extends string + TAccountAuthority extends string, > = { candyMachine: Address; authority: TransactionSigner; @@ -126,7 +126,7 @@ export type WithdrawInputWithSigners< export function getWithdrawInstruction< TAccountCandyMachine extends string, TAccountAuthority extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: WithdrawInputWithSigners ): WithdrawInstructionWithSigners< @@ -137,14 +137,14 @@ export function getWithdrawInstruction< export function getWithdrawInstruction< TAccountCandyMachine extends string, TAccountAuthority extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >( input: WithdrawInput ): WithdrawInstruction; export function getWithdrawInstruction< TAccountCandyMachine extends string, TAccountAuthority extends string, - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', >(input: WithdrawInput): IInstruction { // Program address. const programAddress = @@ -182,7 +182,7 @@ export function getWithdrawInstructionRaw< TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', TAccountCandyMachine extends string | IAccountMeta = string, TAccountAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends Array> = [] + TRemainingAccounts extends Array> = [], >( accounts: { candyMachine: TAccountCandyMachine extends string @@ -213,7 +213,7 @@ export function getWithdrawInstructionRaw< export type ParsedWithdrawInstruction< TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], > = { programAddress: Address; accounts: { @@ -225,7 +225,7 @@ export type ParsedWithdrawInstruction< export function parseWithdrawInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[] + TAccountMetas extends readonly IAccountMeta[], >( instruction: IInstruction & IInstructionWithAccounts & diff --git a/test/packages/js-experimental/src/generated/programs/mplCandyMachineCore.ts b/test/packages/js-experimental/src/generated/programs/mplCandyMachineCore.ts index 6715a77e1..7e0df4bb7 100644 --- a/test/packages/js-experimental/src/generated/programs/mplCandyMachineCore.ts +++ b/test/packages/js-experimental/src/generated/programs/mplCandyMachineCore.ts @@ -114,7 +114,7 @@ export function identifyMplCandyMachineCoreInstruction( } export type ParsedMplCandyMachineCoreInstruction< - TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR' + TProgram extends string = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR', > = | ({ instructionType: MplCandyMachineCoreInstruction.Dummy; diff --git a/test/packages/js-experimental/src/generated/programs/mplTokenAuthRules.ts b/test/packages/js-experimental/src/generated/programs/mplTokenAuthRules.ts index 58c8b570d..5efee822a 100644 --- a/test/packages/js-experimental/src/generated/programs/mplTokenAuthRules.ts +++ b/test/packages/js-experimental/src/generated/programs/mplTokenAuthRules.ts @@ -84,7 +84,7 @@ export function identifyMplTokenAuthRulesInstruction( } export type ParsedMplTokenAuthRulesInstruction< - TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg' + TProgram extends string = 'auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9sFD3rboVmgg', > = | ({ instructionType: MplTokenAuthRulesInstruction.CreateRuleSet; diff --git a/test/packages/js-experimental/src/generated/programs/mplTokenMetadata.ts b/test/packages/js-experimental/src/generated/programs/mplTokenMetadata.ts index 9c767e05a..3b56187ee 100644 --- a/test/packages/js-experimental/src/generated/programs/mplTokenMetadata.ts +++ b/test/packages/js-experimental/src/generated/programs/mplTokenMetadata.ts @@ -371,7 +371,7 @@ export function identifyMplTokenMetadataInstruction( } export type ParsedMplTokenMetadataInstruction< - TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s' + TProgram extends string = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', > = | ({ instructionType: MplTokenMetadataInstruction.CreateMetadataAccount; diff --git a/test/packages/js-experimental/src/generated/programs/splSystem.ts b/test/packages/js-experimental/src/generated/programs/splSystem.ts index 7ddf06d91..96666762f 100644 --- a/test/packages/js-experimental/src/generated/programs/splSystem.ts +++ b/test/packages/js-experimental/src/generated/programs/splSystem.ts @@ -49,7 +49,7 @@ export function identifySplSystemInstruction( } export type ParsedSplSystemInstruction< - TProgram extends string = '11111111111111111111111111111111' + TProgram extends string = '11111111111111111111111111111111', > = | ({ instructionType: SplSystemInstruction.CreateAccount; diff --git a/test/packages/js-experimental/src/generated/shared/index.ts b/test/packages/js-experimental/src/generated/shared/index.ts index 8c8575c8d..02250e9f8 100644 --- a/test/packages/js-experimental/src/generated/shared/index.ts +++ b/test/packages/js-experimental/src/generated/shared/index.ts @@ -103,7 +103,11 @@ export type ResolvedAccount< | Address | ProgramDerivedAddress | TransactionSigner - | null = Address | ProgramDerivedAddress | TransactionSigner | null + | null = + | Address + | ProgramDerivedAddress + | TransactionSigner + | null, > = { isWritable: boolean; value: U; @@ -115,7 +119,7 @@ export type ResolvedAccount< */ export function accountMetaWithDefault< TAccount extends string | IAccountMeta, - TRole extends AccountRole + TRole extends AccountRole, >(account: TAccount | undefined, role: TRole) { if (account === undefined) return undefined; return ( diff --git a/test/renderers/js-experimental/_setup.ts b/test/renderers/js-experimental/_setup.ts index aac15dac4..e39dc5db0 100644 --- a/test/renderers/js-experimental/_setup.ts +++ b/test/renderers/js-experimental/_setup.ts @@ -1,6 +1,7 @@ +import { format } from '@prettier/sync'; import type { ExecutionContext } from 'ava'; import chalk from 'chalk'; -import { format, type Options as PrettierOptions } from 'prettier'; +import { type Options as PrettierOptions } from 'prettier'; import type { RenderMap } from '../../../src'; const PRETTIER_OPTIONS: PrettierOptions = {