generated from metaplex-foundation/solana-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a945020
commit 7b63d57
Showing
19 changed files
with
30 additions
and
376 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
import { createUmi as basecreateUmi } from '@metaplex-foundation/umi-bundle-tests'; | ||
import { | ||
mplProjectName, | ||
solanaSerializationBenchmark, | ||
} from '../src'; | ||
|
||
export const createUmi = async () => (await basecreateUmi()).use(mplProjectName()); | ||
export const createUmi = async () => (await basecreateUmi()).use(solanaSerializationBenchmark()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { UmiPlugin } from '@metaplex-foundation/umi'; | ||
import { createMplProjectNameProgram } from './generated'; | ||
import { createSolanaSerializationBenchmarkProgram } from './generated'; | ||
|
||
export const mplProjectName = (): UmiPlugin => ({ | ||
export const solanaSerializationBenchmark = (): UmiPlugin => ({ | ||
install(umi) { | ||
umi.programs.add(createMplProjectNameProgram(), false); | ||
umi.programs.add(createSolanaSerializationBenchmarkProgram(), false); | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
import { createUmi as basecreateUmi } from '@metaplex-foundation/umi-bundle-tests'; | ||
import { mplProjectName } from '../src'; | ||
import { solanaSerializationBenchmark } from '../src'; | ||
|
||
export const createUmi = async () => | ||
(await basecreateUmi()).use(mplProjectName()); | ||
(await basecreateUmi()).use(solanaSerializationBenchmark()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import test from 'ava'; | ||
import { MPL_PROJECT_NAME_PROGRAM_ID } from '../src'; | ||
import { SOLANA_SERIALIZATION_BENCHMARK_PROGRAM_ID } from '../src'; | ||
import { createUmi } from './_setup'; | ||
|
||
test('it registers the program', async (t) => { | ||
// Given a Umi instance using the project's plugin. | ||
const umi = await createUmi(); | ||
|
||
// When we fetch the registered program. | ||
const program = umi.programs.get('mplProjectName'); | ||
const program = umi.programs.get('solanaSerializationBenchmark'); | ||
|
||
// Then we expect it to be the same as the program ID constant. | ||
t.true(program.publicKey === MPL_PROJECT_NAME_PROGRAM_ID); | ||
t.true(program.publicKey === SOLANA_SERIALIZATION_BENCHMARK_PROGRAM_ID); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.