-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: added push for hackers code to sdk (#376)
* fix: added push for hackers code to sdk * fix: added .env.sample
- Loading branch information
Showing
16 changed files
with
1,766 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -287,5 +287,4 @@ buck-out/ | |
/ | ||
packages/restapi/yarn.lock | ||
yarn.lock | ||
packages/restapi/tests/.env | ||
packages/restapi/.env | ||
*.env |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# WALLET PRIVATE KEY | ||
WALLET_PRIVATE_KEY=your_channel_key | ||
|
||
# ENVIRONMENT OF PUSH NETWORK - prod, staging OR dev | ||
PUSH_NODE_NETWORK=staging | ||
|
||
# TO ENABLE API RESPONSES TO BE SHOWN OR HIDDEN - true OR false | ||
SHOW_API_RESPONSE=false | ||
|
||
# NFT CONTRACT ADDRESS | ||
NFT_CONTRACT_ADDRESS_1=your_nft_contract_address | ||
|
||
# NFT CHAIN ID | ||
NFT_CHAIN_ID_1=your_nft_chain_id | ||
|
||
# NFT TOKEN ID | ||
NFT_TOKEN_ID_1=your_nft_token_id | ||
|
||
# NFT HOLDER WALLET PRIVATE KEY | ||
NFT_HOLDER_WALLET_PRIVATE_KEY_1=your_nft_holder_wallet_private_key | ||
|
||
# NFT PROFILE WALLET PASSWORD | ||
NFT_PROFILE_PASSWORD_1=your_nft_profile_password | ||
|
||
# NFT CONTRACT ADDRESS | ||
NFT_CONTRACT_ADDRESS_2=your_nft_contract_address | ||
|
||
# NFT CHAIN ID | ||
NFT_CHAIN_ID_2=your_nft_chain_id | ||
|
||
# NFT TOKEN ID | ||
NFT_TOKEN_ID_2=your_nft_token_id | ||
|
||
# NFT HOLDER WALLET PRIVATE KEY | ||
NFT_HOLDER_WALLET_PRIVATE_KEY_2=your_nft_holder_wallet_private_key | ||
|
||
# NFT PROFILE WALLET PASSWORD | ||
NFT_PROFILE_PASSWORD_2=your_nft_profile_password |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"extends": ["../../../.eslintrc.json"], | ||
"ignorePatterns": ["!**/*"], | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.ts", "*.tsx"], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.js", "*.jsx"], | ||
"rules": {} | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* eslint-disable */ | ||
export default { | ||
displayName: 'examples-sdk-backend-node', | ||
preset: '../../../jest.preset.js', | ||
globals: { | ||
'ts-jest': { | ||
tsconfig: '<rootDir>/tsconfig.spec.json', | ||
}, | ||
}, | ||
testEnvironment: 'node', | ||
transform: { | ||
'^.+\\.[tj]s$': 'ts-jest', | ||
}, | ||
moduleFileExtensions: ['ts', 'js', 'html'], | ||
coverageDirectory: '../../../coverage/packages/examples/sdk-backend-node', | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"$schema": "../../../node_modules/nx/schemas/project-schema.json", | ||
"sourceRoot": "packages/examples/sdk-backend-node/src", | ||
"projectType": "application", | ||
"targets": { | ||
"build": { | ||
"executor": "@nrwl/node:webpack", | ||
"outputs": ["{options.outputPath}"], | ||
"options": { | ||
"outputPath": "dist/packages/examples/sdk-backend-node", | ||
"main": "packages/examples/sdk-backend-node/src/main.ts", | ||
"tsConfig": "packages/examples/sdk-backend-node/tsconfig.app.json", | ||
"assets": ["packages/examples/sdk-backend-node/src/assets"] | ||
}, | ||
"configurations": { | ||
"production": { | ||
"optimization": true, | ||
"extractLicenses": true, | ||
"inspect": false, | ||
"fileReplacements": [ | ||
{ | ||
"replace": "packages/examples/sdk-backend-node/src/environments/environment.ts", | ||
"with": "packages/examples/sdk-backend-node/src/environments/environment.prod.ts" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"serve": { | ||
"executor": "@nrwl/node:node", | ||
"options": { | ||
"buildTarget": "examples-sdk-backend-node:build" | ||
} | ||
}, | ||
"lint": { | ||
"executor": "@nrwl/linter:eslint", | ||
"outputs": ["{options.outputFile}"], | ||
"options": { | ||
"lintFilePatterns": ["packages/examples/sdk-backend-node/**/*.ts"] | ||
} | ||
}, | ||
"test": { | ||
"executor": "@nrwl/jest:jest", | ||
"outputs": ["coverage/packages/examples/sdk-backend-node"], | ||
"options": { | ||
"jestConfig": "packages/examples/sdk-backend-node/jest.config.ts", | ||
"passWithNoTests": true | ||
} | ||
} | ||
}, | ||
"tags": [] | ||
} |
Empty file.
Empty file.
3 changes: 3 additions & 0 deletions
3
packages/examples/sdk-backend-node/src/environments/environment.prod.ts
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const environment = { | ||
production: true, | ||
}; |
3 changes: 3 additions & 0 deletions
3
packages/examples/sdk-backend-node/src/environments/environment.ts
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const environment = { | ||
production: false, | ||
}; |
Oops, something went wrong.