Add new ID example contracts to dev initial state
Remove duplicate def of CURATED_EXAMPLES
This commit is contained in:
parent
4d51aa62cb
commit
fa1185c20e
@ -4,12 +4,6 @@ const join = require('path').join;
|
|||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const YAML = require('yamljs');
|
const YAML = require('yamljs');
|
||||||
|
|
||||||
const CURATED_EXAMPLES = [
|
|
||||||
'cameligo/arithmetic-contract.ligo',
|
|
||||||
'pascaligo/arithmetic-contract.ligo',
|
|
||||||
'reasonligo/arithmetic-contract.ligo'
|
|
||||||
];
|
|
||||||
|
|
||||||
function urlFriendlyHash(content) {
|
function urlFriendlyHash(content) {
|
||||||
const hash = createHash('md5');
|
const hash = createHash('md5');
|
||||||
hash.update(content);
|
hash.update(content);
|
||||||
|
@ -33,9 +33,12 @@ export const DEFAULT_STATE: ExamplesState = {
|
|||||||
|
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
DEFAULT_STATE.list = [
|
DEFAULT_STATE.list = [
|
||||||
{ id: 'MzkMQ1oiVHJqbcfUuVFKTw', name: 'CameLIGO Contract' },
|
{ id: 'MzkMQ1oiVHJqbcfUuVFKTw', name: 'Increment Example CameLIGO ' },
|
||||||
{ id: 'FEb62HL7onjg1424eUsGSg', name: 'PascaLIGO Contract' },
|
{ id: 'FEb62HL7onjg1424eUsGSg', name: 'Increment Example PascaLIGO' },
|
||||||
{ id: 'JPhSOehj_2MFwRIlml0ymQ', name: 'ReasonLIGO Contract' }
|
{ id: 'JPhSOehj_2MFwRIlml0ymQ', name: 'Increment Example ReasonLIGO' },
|
||||||
|
{ id: 'ehDv-Xaf70mQoiPhQDTAUQ', name: 'ID Example CameLIGO' },
|
||||||
|
{ id: 'CpnK7TFuUjJiQTT8KiiGyQ', name: 'ID Example ReasonLIGO' },
|
||||||
|
{ id: 'yP-THvmURsaqHxpwCravWg', name: 'ID Example PascaLIGO' },
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user