/
package.json
101 lines (101 loc) · 5.32 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
89
90
91
92
93
94
95
96
97
98
99
100
101
{
"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": [
"pos",
"bitcoin",
"ckbtc",
"dfinity",
"ic",
"vite",
"vue",
"tailwindcss",
"javascript"
],
"scripts": {
"dev": "vite",
"deploy:ic_siwe": "dfx deploy ic_siwe_provider --argument '$(echo \"{\\\"domain\\\": \\\"127.0.0.1\\\", \\\"uri\\\": \\\"http://127.0.0.1:5173\\\", \\\"salt\\\": \\\"my secret salt\\\", \\\"chain_id\\\": \\\"1\\\", \\\"scheme\\\": \\\"http\\\", \\\"statement\\\": \\\"Login to the app\\\", \\\"sign_in_expires_in\\\": \\\"300000000000\\\", \\\"session_expires_in\\\": \\\"604800000000000\\\", \\\"targets\\\": [\\\"$(dfx canister id ic_siwe_provider)\\\", \\\"$(dfx canister id backend)\\\"]}\" | sed 's/\"/\\\\\"/g')'",
"deploy:identity": "dfx deploy --network local internet_identity",
"start": "npm install --force && npm run replica && npm run private-dids && npm run deploy && npm run deploy:identity",
"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 --argument '(0)' ",
"deploy:assets": "dfx deploy assets",
"deploy:index": "dfx deploy --network local 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": {
"@connect2ic/core": "^0.2.0-beta.24",
"@connect2ic/vue": "^0.2.0-beta.24",
"@dfinity/agent": "^1.2.0",
"@dfinity/auth-client": "^1.2.0",
"@dfinity/candid": "^1.2.0",
"@dfinity/identity": "^1.2.0",
"@dfinity/ledger": "^1.0.0",
"@dfinity/ledger-icrc": "^2.1.0",
"@dfinity/principal": "^1.2.0",
"@dfinity/utils": "^0.0.22",
"@headlessui/vue": "^1.7.17",
"@heroicons/vue": "^2.1.1",
"@iconify/vue": "^4.1.1",
"@internationalized/date": "^3.5.2",
"@rainbow-me/rainbowkit": "^1.3.0",
"@tailwindcss/forms": "^0.5.7",
"@vueuse/core": "^10.9.0",
"@vueuse/motion": "^2.1.0",
"babel-loader": "^9.1.3",
"common-tags": "^1.8.2",
"css-loader": "^6.9.0",
"dotenv": "^16.3.2",
"ic-mops": "^0.38.1",
"ic-use-actor": "^0.0.9",
"ic-use-siwe-identity": "^0.0.9",
"mo-dev": "^0.12.0",
"moment": "^2.30.1",
"pinia": "^2.1.7",
"radix-vue": "^1.6.1",
"theme-change": "^2.5.0",
"typescript": "^5.4.3",
"unique-username-generator": "^1.3.0",
"vee-validate": "^4.12.5",
"viem": "^1.21.4",
"vue": "^3.2.37",
"vue-router": "^4.2.5",
"vue-shimmer": "^1.0.0",
"vue-style-loader": "^4.1.3",
"vue-template-compiler": "^2.7.16",
"wagmi": "^1.4.13",
"yup": "^1.3.3",
"zx": "^7.2.3"
},
"devDependencies": {
"@vitejs/plugin-vue": "^2.3.3",
"@vue/compiler-sfc": "^3.2.37",
"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",
"tailwindcss": "^3.4.1",
"vite": "^2.9.13"
}
}