Skip to content

Commit

Permalink
Merging in staging.
Browse files Browse the repository at this point in the history
  • Loading branch information
blockiosaurus committed Apr 25, 2024
2 parents 11d3215 + e939cb2 commit dada9a6
Show file tree
Hide file tree
Showing 218 changed files with 5,132 additions and 1,324 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions clients/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"devDependencies": {
"@metaplex-foundation/mpl-toolbox": "^0.8.0",
"@ava/typescript": "^3.0.1",
"@metaplex-foundation/umi": "^0.8.2",
"@metaplex-foundation/umi-bundle-tests": "^0.8.2",
"@metaplex-foundation/umi": "^0.8.10",
"@metaplex-foundation/umi-bundle-tests": "^0.8.10",
"@solana/web3.js": "^1.73.0",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.46.1",
Expand Down
78 changes: 39 additions & 39 deletions clients/js/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 1 addition & 14 deletions clients/js/src/authority.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import { PublicKey } from '@metaplex-foundation/umi';
import {
PluginAuthority,
pluginAuthority,
} from './generated/types/pluginAuthority';
import { BasePluginAuthority } from './types';
import { pluginAuthority } from './plugins';

// Authorities data helpers
export function nonePluginAuthority() {
Expand All @@ -21,12 +17,3 @@ export function updatePluginAuthority() {
export function addressPluginAuthority(address: PublicKey) {
return pluginAuthority('Address', { address });
}

export function mapPluginAuthority(
authority: PluginAuthority
): BasePluginAuthority {
return {
type: authority.__kind,
address: (authority as any).address,
};
}
8 changes: 4 additions & 4 deletions clients/js/src/generated/accounts/assetV1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ import {
getAssetV1AccountDataSerializer,
} from '../../hooked';
import {
BaseUpdateAuthorityArgs,
KeyArgs,
UpdateAuthorityArgs,
getBaseUpdateAuthoritySerializer,
getKeySerializer,
getUpdateAuthoritySerializer,
} from '../types';

export type AssetV1 = Account<AssetV1AccountData>;
Expand Down Expand Up @@ -108,14 +108,14 @@ export function getAssetV1GpaBuilder(
.registerFields<{
key: KeyArgs;
owner: PublicKey;
updateAuthority: UpdateAuthorityArgs;
updateAuthority: BaseUpdateAuthorityArgs;
name: string;
uri: string;
seq: OptionOrNullable<number | bigint>;
}>({
key: [0, getKeySerializer()],
owner: [1, publicKeySerializer()],
updateAuthority: [33, getUpdateAuthoritySerializer()],
updateAuthority: [33, getBaseUpdateAuthoritySerializer()],
name: [null, string()],
uri: [null, string()],
seq: [null, option(u64())],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import {
getAccountMetasAndSigners,
} from '../shared';
import {
ExternalPluginInitInfo,
ExternalPluginInitInfoArgs,
getExternalPluginInitInfoSerializer,
BaseExternalPluginInitInfo,
BaseExternalPluginInitInfoArgs,
getBaseExternalPluginInitInfoSerializer,
} from '../types';

// Accounts.
Expand All @@ -48,11 +48,11 @@ export type AddCollectionExternalPluginV1InstructionAccounts = {
// Data.
export type AddCollectionExternalPluginV1InstructionData = {
discriminator: number;
initInfo: ExternalPluginInitInfo;
initInfo: BaseExternalPluginInitInfo;
};

export type AddCollectionExternalPluginV1InstructionDataArgs = {
initInfo: ExternalPluginInitInfoArgs;
initInfo: BaseExternalPluginInitInfoArgs;
};

export function getAddCollectionExternalPluginV1InstructionDataSerializer(): Serializer<
Expand All @@ -67,7 +67,7 @@ export function getAddCollectionExternalPluginV1InstructionDataSerializer(): Ser
struct<AddCollectionExternalPluginV1InstructionData>(
[
['discriminator', u8()],
['initInfo', getExternalPluginInitInfoSerializer()],
['initInfo', getBaseExternalPluginInitInfoSerializer()],
],
{ description: 'AddCollectionExternalPluginV1InstructionData' }
),
Expand Down
12 changes: 6 additions & 6 deletions clients/js/src/generated/instructions/addCollectionPluginV1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ import {
getAccountMetasAndSigners,
} from '../shared';
import {
BasePluginAuthority,
BasePluginAuthorityArgs,
Plugin,
PluginArgs,
PluginAuthority,
PluginAuthorityArgs,
getPluginAuthoritySerializer,
getBasePluginAuthoritySerializer,
getPluginSerializer,
} from '../types';

Expand All @@ -56,12 +56,12 @@ export type AddCollectionPluginV1InstructionAccounts = {
export type AddCollectionPluginV1InstructionData = {
discriminator: number;
plugin: Plugin;
initAuthority: Option<PluginAuthority>;
initAuthority: Option<BasePluginAuthority>;
};

export type AddCollectionPluginV1InstructionDataArgs = {
plugin: PluginArgs;
initAuthority?: OptionOrNullable<PluginAuthorityArgs>;
initAuthority?: OptionOrNullable<BasePluginAuthorityArgs>;
};

export function getAddCollectionPluginV1InstructionDataSerializer(): Serializer<
Expand All @@ -77,7 +77,7 @@ export function getAddCollectionPluginV1InstructionDataSerializer(): Serializer<
[
['discriminator', u8()],
['plugin', getPluginSerializer()],
['initAuthority', option(getPluginAuthoritySerializer())],
['initAuthority', option(getBasePluginAuthoritySerializer())],
],
{ description: 'AddCollectionPluginV1InstructionData' }
),
Expand Down
12 changes: 6 additions & 6 deletions clients/js/src/generated/instructions/addExternalPluginV1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import {
getAccountMetasAndSigners,
} from '../shared';
import {
ExternalPluginInitInfo,
ExternalPluginInitInfoArgs,
getExternalPluginInitInfoSerializer,
BaseExternalPluginInitInfo,
BaseExternalPluginInitInfoArgs,
getBaseExternalPluginInitInfoSerializer,
} from '../types';

// Accounts.
Expand All @@ -50,11 +50,11 @@ export type AddExternalPluginV1InstructionAccounts = {
// Data.
export type AddExternalPluginV1InstructionData = {
discriminator: number;
initInfo: ExternalPluginInitInfo;
initInfo: BaseExternalPluginInitInfo;
};

export type AddExternalPluginV1InstructionDataArgs = {
initInfo: ExternalPluginInitInfoArgs;
initInfo: BaseExternalPluginInitInfoArgs;
};

export function getAddExternalPluginV1InstructionDataSerializer(): Serializer<
Expand All @@ -69,7 +69,7 @@ export function getAddExternalPluginV1InstructionDataSerializer(): Serializer<
struct<AddExternalPluginV1InstructionData>(
[
['discriminator', u8()],
['initInfo', getExternalPluginInitInfoSerializer()],
['initInfo', getBaseExternalPluginInitInfoSerializer()],
],
{ description: 'AddExternalPluginV1InstructionData' }
),
Expand Down
Loading

0 comments on commit dada9a6

Please sign in to comment.