Skip to content

Commit

Permalink
nns v2
Browse files Browse the repository at this point in the history
  • Loading branch information
apbigcod committed Nov 27, 2024
0 parents commit dd99799
Show file tree
Hide file tree
Showing 407 changed files with 1,996,624 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.{js,json,yml}]
charset = utf-8
indent_style = space
indent_size = 2
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.yarn/** linguist-vendored
/.yarn/releases/* binary
/.yarn/plugins/**/* binary
/.pnp.* binary linguist-generated
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Swap the comments on the following lines if you wish to use zero-installs
# In that case, don't forget to run `yarn config set enableGlobalCache false`!
# Documentation here: https://yarnpkg.com/features/caching#zero-installs

#!.yarn/cache
.pnp.*

node_modules

.DS_Store

*-lock.*
*.lock
*.log
/dist

vite.config.js

.netlify
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"solidity.defaultCompiler": "localNodeModule",
"cssVariables.lookupFiles": [
"**/*.css",
"**/*.scss",
"**/*.sass",
"**/*.less",
"node_modules/@mantine/core/styles.css"
]
}
894 changes: 894 additions & 0 deletions .yarn/releases/yarn-4.2.2.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.2.2.cjs
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
deploy-local:
cd packages/contracts
yarn hardhat ignition deploy ./ignition/modules/NNS.ts --network localhost
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# nns
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "nns",
"packageManager": "[email protected]",
"private": true,
"workspaces": [
"packages/*"
],
"scripts": {
"webdemo:build": "yarn workspace webdemo build",
"webapp:build": "yarn workspace webapp build"
}
}
3 changes: 3 additions & 0 deletions packages/api/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.aws-sam
dist
aws-packaged.yml
24 changes: 24 additions & 0 deletions packages/api/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FILE_TEMPLATE = aws.yml
FILE_PACKAGE = aws-packaged.yml
AWS_BUCKET_NAME = sam-deployments-packages
BUCKET_PREFIX = nns-api
AWS_REGION = "eu-west-1"
AWS_STACK_NAME = nns-api


build:
@sam build \
--template-file $(FILE_TEMPLATE)

deploy-%:
@sam deploy \
--template-file ".aws-sam/build/template.yaml" \
--region $(AWS_REGION) \
--capabilities CAPABILITY_IAM \
--s3-bucket $(AWS_BUCKET_NAME) \
--s3-prefix "$(BUCKET_PREFIX)-$*" \
--stack-name "$(AWS_STACK_NAME)-$*" \
--parameter-overrides 'Network=$*' 'Timestamp=$(shell date +%s)'

pipeline-sepolia: build deploy-sepolia
pipeline-mainnet: build deploy-mainnet
Loading

0 comments on commit dd99799

Please sign in to comment.