Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenVoich committed Sep 12, 2023
1 parent 37fcdee commit 7209ed2
Show file tree
Hide file tree
Showing 8 changed files with 1,201 additions and 256 deletions.
1,390 changes: 1,169 additions & 221 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions package-set.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ let Package =

let
additions = [
{ name = "base-0.7.3"
, repo = "https://github.com/dfinity/motoko-base"
, version = "moc-0.7.3"
, dependencies = [] : List Text
},
{ name = "array"
, repo = "https://github.com/aviate-labs/array.mo"
, version = "v0.2.0"
Expand Down
25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "fpd",
"version": "0.0.0",
"scripts": {
"start": "npm run replica && dfx generate dao && npm run serve",
"start": "npm run replica && dfx generate dao && npm run test-proposals && npm run serve",
"replica": "dfx stop && dfx start --clean --background && npm run create-canisters && npm run deploy && npm run mint",
"dev": "vite",
"build": "tsc && vite build",
"prebuild": "dfx generate dao",
"serve": "HOST=0.0.0.0 vite preview --host",
"serve": "vite --port 3000",
"test-proposals": "./test-proposals.zsh",
"build-power-equalizer": "cd power-equalizer && dfx build staging --check",
"create-canisters": "npm run create:dao && npm run create:btcflower && npm run create:ethflower && npm run create:icpflower",
Expand All @@ -28,13 +28,14 @@
"postinstall": "vessel install"
},
"dependencies": {
"@dfinity/agent": "0.10.0",
"@dfinity/auth-client": "0.10.0",
"@dfinity/authentication": "0.10.0",
"@dfinity/candid": "0.10.0",
"@dfinity/identity": "0.10.0",
"@dfinity/principal": "^0.10.0",
"@tailwindcss/typography": "^0.5.2",
"@dfinity/agent": "0.19.2",
"@dfinity/auth-client": "0.19.2",
"@dfinity/authentication": "0.14.2",
"@dfinity/candid": "0.19.2",
"@dfinity/identity": "0.19.2",
"@dfinity/identity-secp256k1": "0.19.2",
"@dfinity/principal": "0.19.2",
"@tailwindcss/typography": "0.5.10",
"crc-32": "^1.2.1",
"ic-stoic-identity": "^2.0.0",
"js-sha256": "^0.9.0",
Expand All @@ -46,14 +47,14 @@
"yup": "^0.32.11"
},
"devDependencies": {
"@dfinity/nns": "^0.10.0",
"@dfinity/nns": "0.16.7",
"@sveltejs/vite-plugin-svelte": "next",
"@tsconfig/svelte": "^3.0.0",
"@types/node": "^16.11.25",
"autoprefixer": "^10.4.2",
"autoprefixer": "10.4.15",
"buffer": "^6.0.3",
"cssnano": "^5.0.17",
"postcss": "^8.4.6",
"postcss": "8.4.29",
"postcss-load-config": "^3.1.1",
"seamless-scroll-polyfill": "^2.1.8",
"svelte": "^3.42.5",
Expand Down
8 changes: 2 additions & 6 deletions src/declarations/dao/dao.did
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ type DAO =
icpflower;
}, nat) -> (Result_2) query;
listProposals: () -> (vec ProposalViewV3) query;
seed: (ProposalPublic) -> (Result_1);
submitProposal: (ProposalPublic) -> (Result_1);
submitTestProposal: (ProposalPublic) -> (Result_1);
vote: (VoteArgs) -> (Result);
};
type CanisterMetricsData =
Expand All @@ -130,8 +130,4 @@ type CanisterMetrics = record {data: CanisterMetricsData;};
type CanisterMemoryAggregatedData = vec nat64;
type CanisterHeapMemoryAggregatedData = vec nat64;
type CanisterCyclesAggregatedData = vec nat64;
service : (opt record {
btcflower: text;
ethflower: text;
icpflower: text;
}, vec principal) -> DAO
service : (bool, vec principal) -> DAO
2 changes: 1 addition & 1 deletion src/declarations/dao/dao.did.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export interface DAO {
Result_2
>,
'listProposals' : ActorMethod<[], Array<ProposalViewV3>>,
'seed' : ActorMethod<[ProposalPublic], Result_1>,
'submitProposal' : ActorMethod<[ProposalPublic], Result_1>,
'submitTestProposal' : ActorMethod<[ProposalPublic], Result_1>,
'vote' : ActorMethod<[VoteArgs], Result>,
}
export interface DailyMetricsData {
Expand Down
15 changes: 2 additions & 13 deletions src/declarations/dao/dao.did.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,21 +109,10 @@ export const idlFactory = ({ IDL }) => {
['query'],
),
'listProposals' : IDL.Func([], [IDL.Vec(ProposalViewV3)], ['query']),
'seed' : IDL.Func([ProposalPublic], [Result_1], []),
'submitProposal' : IDL.Func([ProposalPublic], [Result_1], []),
'submitTestProposal' : IDL.Func([ProposalPublic], [Result_1], []),
'vote' : IDL.Func([VoteArgs], [Result], []),
});
return DAO;
};
export const init = ({ IDL }) => {
return [
IDL.Opt(
IDL.Record({
'btcflower' : IDL.Text,
'icpflower' : IDL.Text,
'ethflower' : IDL.Text,
})
),
IDL.Vec(IDL.Principal),
];
};
export const init = ({ IDL }) => { return [IDL.Bool, IDL.Vec(IDL.Principal)]; };
10 changes: 8 additions & 2 deletions src/declarations/dao/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ import { Actor, HttpAgent } from "@dfinity/agent";
import { idlFactory } from "./dao.did.js";
export { idlFactory } from "./dao.did.js";

// CANISTER_ID is replaced by webpack based on node environment
export const canisterId = process.env.DAO_CANISTER_ID;
/* CANISTER_ID is replaced by webpack based on node environment
* Note: canister environment variable will be standardized as
* process.env.CANISTER_ID_<CANISTER_NAME_UPPERCASE>
* beginning in dfx 0.15.0
*/
export const canisterId =
process.env.CANISTER_ID_DAO ||
process.env.DAO_CANISTER_ID;

export const createActor = (canisterId, options = {}) => {
const agent = options.agent || new HttpAgent({ ...options.agentOptions });
Expand Down
2 changes: 1 addition & 1 deletion vessel.dhall
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
dependencies = [ "base", "matchers", "accountid", "hex", "canistergeek" ],
dependencies = [ "base", "base-0.7.3", "matchers", "accountid", "hex", "canistergeek" ],
compiler = Some "0.8.1"
}

0 comments on commit 7209ed2

Please sign in to comment.