Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ci deploy #251

Merged
merged 1 commit into from
Dec 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion age/contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Keep in mind that many false positives will remain undetected by ESLint such as
Prerequisites :

- You must add a .env file at the root of the repository with the following keys set to valid values :
- WALLET_PRIVATE_KEY="wallet_private_key"
- WALLET_PRIVATE_KEY="WALLET_PRIVATE_KEY"
- JSON_RPC_URL_PUBLIC=<https://buildnet.massa.net/api/v2:33035>
- JSON_RPC_URL_PRIVATE=<https://buildnet.massa.net/api/v2:33035>

Expand Down
29,649 changes: 7,117 additions & 22,532 deletions age/contracts/package-lock.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions age/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"test": "asp --summary",
"build": "npx massa-as-compile",
"deploy": "npm run build && ts-node src/deploy.ts",
"deploy": "npm run build && tsx src/deploy.ts",
"prettier": "prettier '**/src/**/*.ts' --check && as-prettier --check assembly",
"prettier:fix": "prettier '**/src/**/*.ts' --write && as-prettier --write assembly",
"lint": "eslint .",
Expand All @@ -19,22 +19,22 @@
"license": "ISC",
"devDependencies": {
"@as-pect/cli": "^8.0.1",
"@assemblyscript/loader": "^0.25.2",
"@assemblyscript/loader": "^0.27.2",
"@massalabs/as-transformer": "^0.2.0",
"@massalabs/as-types": "^1.0.0",
"@massalabs/eslint-config": "^0.0.9",
"@massalabs/massa-as-sdk": "^2.4.0",
"@massalabs/massa-sc-compiler": "^0.1.0",
"@massalabs/massa-sc-deployer": "^1.1.0",
"@massalabs/massa-web3": "^1.22.0",
"@massalabs/massa-sc-deployer": "^1.2.0",
"@massalabs/massa-web3": "^2.2.7",
"@massalabs/prettier-config-as": "^0.0.2",
"@types/node": "^18.11.10",
"assemblyscript": "^0.25.2",
"assemblyscript": "^0.27.2",
"assemblyscript-prettier": "^1.0.7",
"dotenv": "^16.0.3",
"prettier": "^2.8.1",
"ts-node": "^10.9.1",
"tslib": "^2.4.0",
"tsx": "^4.7.0",
"typescript": "^4.8.4"
},
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions age/contracts/src/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { readFileSync } from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';
import { deploySC, WalletClient, ISCData } from '@massalabs/massa-sc-deployer';
import { Args, fromMAS } from '@massalabs/massa-web3';
import { Args, MAX_GAS_DEPLOYMENT, fromMAS } from '@massalabs/massa-web3';

// Load .env file content into process.env
dotenv.config();
Expand Down Expand Up @@ -50,7 +50,7 @@ const __dirname = path.dirname(path.dirname(__filename));
// Additional smart contracts can be added here for deployment
],
0n, // fees for deployment
4_200_000_000n, // max gas for deployment
MAX_GAS_DEPLOYMENT,
true, // if true, waits for the first event before returning
);
process.exit(0); // terminate the process after deployment(s)
Expand Down
20,378 changes: 7,420 additions & 12,958 deletions autonomousprice/contracts/package-lock.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions autonomousprice/contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "autonomousprice",
"name": "blog-example",
"version": "0.0.1",
"description": "",
"main": "index.js",
"scripts": {
"test": "asp --summary",
"build": "npx massa-as-compile",
"deploy": "npm run build && ts-node src/deploy.ts",
"deploy": "npm run build && tsx src/deploy.ts",
"prettier": "prettier '**/src/**/*.ts' --check && as-prettier --check assembly",
"prettier:fix": "prettier '**/src/**/*.ts' --write && as-prettier --write assembly",
"lint": "eslint .",
Expand All @@ -24,17 +24,17 @@
"@massalabs/as-types": "^1.0.0",
"@massalabs/eslint-config": "^0.0.9",
"@massalabs/massa-as-sdk": "^2.1.0",
"@massalabs/massa-web3": "1.21.0",
"@massalabs/massa-sc-compiler": "^0.1.0",
"@massalabs/massa-sc-deployer": "^0.5.1",
"@massalabs/massa-sc-deployer": "^1.2.0",
"@massalabs/massa-web3": "^2.2.7",
"@massalabs/prettier-config-as": "^0.0.2",
"@types/node": "^18.11.10",
"assemblyscript": "^0.25.2",
"assemblyscript": "^0.27.2",
"assemblyscript-prettier": "^1.0.7",
"dotenv": "^16.0.3",
"prettier": "^2.8.1",
"ts-node": "^10.9.1",
"tslib": "^2.4.0",
"tsx": "^4.7.0",
"typescript": "^4.8.4"
},
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions autonomousprice/contracts/src/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { readFileSync } from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';
import { deploySC, WalletClient, ISCData } from '@massalabs/massa-sc-deployer';
import { Args, fromMAS } from '@massalabs/massa-web3';
import { Args, MAX_GAS_DEPLOYMENT, fromMAS } from '@massalabs/massa-web3';

dotenv.config();

Expand Down Expand Up @@ -36,7 +36,7 @@ const __dirname = path.dirname(path.dirname(__filename));
} as ISCData,
],
0n,
4_200_000_000n,
MAX_GAS_DEPLOYMENT,
true,
);
process.exit(0);
Expand Down
Loading
Loading