-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
88 lines (88 loc) · 4.85 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"name": "ic-payroll",
"version": "0.0.0",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/cosmasken/ic-payroll"
},
"bugs": "https://github.com/cosmasken/ic-payroll/issues",
"homepage": "https://github.com/cosmasken/ic-payroll",
"author": "Cosmas Ken <arubacosmas@gmail.com>",
"keywords": [
"bitcoin",
"ckbtc",
"dfinity",
"ic",
"vite",
"vue",
"tailwindcss",
"javascript",
"ethereum"
],
"scripts": {
"dev": "vite",
"deploy:identity": "dfx deploy --network ic internet_identity",
"deploy:siwe_provider": "dfx deploy ic_siwe_provider --argument '(record { domain = \"localhost\"; uri = \"http://localhost:3000\"; salt = \"vsnsvnu4n398tu4u9jffjlwek\"; chain_id = opt 1; scheme = opt \"http\"; statement = opt \"Login to the IC-Payroll\"; sign_in_expires_in = opt 300000000000; session_expires_in = opt 604800000000000; targets = opt vec { \"'$(dfx canister id ic_siwe_provider)'\"; \"'$(dfx canister id assets)'\"; }; })'",
"start": "npm install && npm run replica && npm run private-dids && dfx canister create assets && npm run deploy && npm run deploy:identity && dfx canister create ic_siwe_provider && npm run deploy:siwe_provider",
"replica": "dfx stop && rm -rf .dfx && dfx start --clean --background && dfx canister create ckbtc_ledger && dfx canister create backend",
"deploy": "npm run deploy:ledger && npm run deploy:index && npm run deploy:backend && dfx generate backend && npm run deploy:assets",
"public-dids": "perl -i -pe 's|icrc1\\.did|icrc1\\.public\\.did|g' dfx.json",
"private-dids": "perl -i -pe 's|icrc1\\.public\\.did|icrc1\\.did|g' dfx.json",
"deploy:ledger": "PRINCIPAL=$(dfx identity get-principal) && dfx deploy ckbtc_ledger --argument \"(variant {Init = record {minting_account = record { owner = principal \\\"$PRINCIPAL\\\" };transfer_fee = 10;token_symbol = \\\"ckBTC\\\";token_name = \\\"Test ckBTC\\\";metadata = vec {};feature_flags = opt record{icrc2 = true };initial_balances = vec {record { record {owner = principal \\\"$PRINCIPAL\\\"}; 100_000_000_000 } };archive_options = record {num_blocks_to_archive = 10_000;trigger_threshold = 20_000;cycles_for_archive_creation = opt 4_000_000_000_000;controller_id = principal \\\"$PRINCIPAL\\\";};}})\" --mode=reinstall -y",
"deploy:backend": "npm run public-dids && dfx deploy backend --network ic",
"deploy:assets": "dfx deploy assets",
"deploy:index": "dfx deploy --network ic icrc1_index --argument 'record {ledger_id = (principal \"mxzaz-hqaaa-aaaar-qaada-cai\"); }'",
"mint": "read -p \"Enter a principal you want to mint tokens to. By default 1000 ckBTC will be minted to your current dfx identity.\n\" recipient && if [ -z \"$recipient\" ]; then echo \"No recipient specified, skipping minting.\"; else dfx canister call ckbtc_ledger icrc1_transfer \"(record {to = record {owner = principal \\\"$recipient\\\"};amount=100_000_000_000},)\"; fi",
"mint:subaccount": "read -p \"Enter a principal you want to mint tokens to. By default 1000 ckBTC will be minted to your current dfx identity.\n\" recipient && read -p \"Enter a subaccount (optional). If not provided, default subaccount will be used.\n\" subaccount && if [ -z \"$recipient\" ]; then echo \"No recipient specified, skipping minting.\"; else dfx canister call ckbtc_ledger icrc1_transfer \"(record {to = record {owner = principal \\\"$recipient\\\"; subaccount = opt \\\"$subaccount\\\";};amount=100_000_000_000},)\"; fi",
"build": "vite build",
"serve": "vite preview",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
"format": "prettier --write canisters/",
"format:vue": "prettier --write frontend/"
},
"dependencies": {
"@dfinity/agent": "^1.3.0",
"@dfinity/auth-client": "^1.3.0",
"@dfinity/candid": "^1.2.0",
"@dfinity/identity": "^1.2.0",
"@dfinity/principal": "^1.2.0",
"@headlessui/vue": "^1.7.17",
"@heroicons/vue": "^2.1.1",
"@vueuse/components": "^10.9.0",
"@vueuse/core": "^10.9.0",
"@vueuse/motion": "^2.1.0",
"alpinejs": "^3.14.0",
"asn1": "^0.2.6",
"asn1js": "^3.0.5",
"chart.js": "^4.4.3",
"ethereumjs-util": "^7.1.5",
"ethers": "^5.6.8",
"flag-icons": "^7.2.3",
"intl-tel-input": "^23.1.0",
"keccak256": "^1.0.6",
"pinia": "^2.1.7",
"radix-vue": "^1.6.1",
"siwe": "^2.3.2",
"sweetalert2": "^11.11.0",
"typescript": "^5.4.3",
"vue": "^3.4.24",
"vue-chartjs": "^5.3.1",
"vue-router": "^4.3.2",
"web3": "^4.9.0",
"yup": "^1.3.3"
},
"devDependencies": {
"@vitejs/plugin-vue": "^2.3.3",
"autoprefixer": "^10.4.16",
"buffer": "^6.0.3",
"daisyui": "^4.6.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.33",
"prettier": "^3.2.4",
"prettier-plugin-motoko": "^0.8.2",
"sass": "^1.75.0",
"tailwindcss": "^3.4.1",
"vite": "^2.9.13"
}
}