Skip to content

Commit

Permalink
sign message
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmasken committed Jun 5, 2024
1 parent 4ad038c commit 442cd9b
Show file tree
Hide file tree
Showing 114 changed files with 3,682 additions and 10,193 deletions.
5 changes: 5 additions & 0 deletions .dfx/local/canisters/backend/backend.did
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ type CanisterHttpResponsePayload =
};
type Backend =
service {
addToMetamaskUsers: (text, principal) -> (Result);
cancelRecurringTimer: (nat) -> ();
checkPayroll: () -> ();
create_department: (CreateDepartmentArgs) -> (Response_10);
Expand All @@ -416,6 +417,10 @@ type Backend =
getInvoice: () -> (Account);
/// * Get latest log items. Log output is capped at 100 items.
getLogs: () -> (vec text) query;
getMetamaskUsers: () -> (vec record {
text;
principal;
});
getMyContacts: () -> (vec Employee);
getMyContactsLength: () -> (text);
getMyTransactionLength: () -> (text);
Expand Down
2 changes: 2 additions & 0 deletions .dfx/local/canisters/backend/backend.most
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ actor {
stable var invoiceCounter : Nat;
stable var invoicesStable : [(Nat, Invoice__1)];
stable var latestTransactionIndex : Nat;
stable var metamaskUsers : [(Text, Principal)];
stable var noOfEmployees : Nat;
stable var noofmetamaskusers : Nat;
stable var notificationsCounter : Nat;
stable var notificationsStable : [(Nat, Notification__1)];
stable var organizationsCounter : Nat;
Expand Down
2 changes: 2 additions & 0 deletions .dfx/local/canisters/backend/backend.old.most
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ actor {
stable var invoiceCounter : Nat;
stable var invoicesStable : [(Nat, Invoice__1)];
stable var latestTransactionIndex : Nat;
stable var metamaskUsers : [(Text, Principal)];
stable var noOfEmployees : Nat;
stable var noofmetamaskusers : Nat;
stable var notificationsCounter : Nat;
stable var notificationsStable : [(Nat, Notification__1)];
stable var organizationsCounter : Nat;
Expand Down
Binary file modified .dfx/local/canisters/backend/backend.wasm
Binary file not shown.
5 changes: 5 additions & 0 deletions .dfx/local/canisters/backend/constructor.did
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ type CanisterHttpResponsePayload =
};
type Backend =
service {
addToMetamaskUsers: (text, principal) -> (Result);
cancelRecurringTimer: (nat) -> ();
checkPayroll: () -> ();
create_department: (CreateDepartmentArgs) -> (Response_10);
Expand All @@ -416,6 +417,10 @@ type Backend =
getInvoice: () -> (Account);
/// * Get latest log items. Log output is capped at 100 items.
getLogs: () -> (vec text) query;
getMetamaskUsers: () -> (vec record {
text;
principal;
});
getMyContacts: () -> (vec Employee);
getMyContactsLength: () -> (text);
getMyTransactionLength: () -> (text);
Expand Down
5 changes: 5 additions & 0 deletions .dfx/local/canisters/backend/constructor.old.did
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ type Account =
subaccount: opt Subaccount;
};
service : {
addToMetamaskUsers: (text, principal) -> (Result);
cancelRecurringTimer: (nat) -> ();
checkPayroll: () -> ();
create_department: (CreateDepartmentArgs) -> (Response_10);
Expand All @@ -419,6 +420,10 @@ service : {
getFundingBalance: () -> (text);
getInvoice: () -> (Account);
getLogs: () -> (vec text) query;
getMetamaskUsers: () -> (vec record {
text;
principal;
});
getMyContacts: () -> (vec Employee);
getMyContactsLength: () -> (text);
getMyTransactionLength: () -> (text);
Expand Down
2 changes: 2 additions & 0 deletions .dfx/local/canisters/backend/service.did
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
type Account = record { owner : principal; subaccount : opt Subaccount };
type Backend = service {
addToMetamaskUsers : (text, principal) -> (Result);
cancelRecurringTimer : (nat) -> ();
checkPayroll : () -> ();
create_department : (CreateDepartmentArgs) -> (Response_10);
Expand All @@ -23,6 +24,7 @@ type Backend = service {
getFundingBalance : () -> (text);
getInvoice : () -> (Account);
getLogs : () -> (vec text) query;
getMetamaskUsers : () -> (vec record { text; principal });
getMyContacts : () -> (vec Employee);
getMyContactsLength : () -> (text);
getMyTransactionLength : () -> (text);
Expand Down
2 changes: 2 additions & 0 deletions .dfx/local/canisters/backend/service.did.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export interface Account {
'subaccount' : [] | [Subaccount],
}
export interface Backend {
'addToMetamaskUsers' : ActorMethod<[string, Principal], Result>,
'cancelRecurringTimer' : ActorMethod<[bigint], undefined>,
'checkPayroll' : ActorMethod<[], undefined>,
'create_department' : ActorMethod<[CreateDepartmentArgs], Response_10>,
Expand All @@ -30,6 +31,7 @@ export interface Backend {
'getFundingBalance' : ActorMethod<[], string>,
'getInvoice' : ActorMethod<[], Account>,
'getLogs' : ActorMethod<[], Array<string>>,
'getMetamaskUsers' : ActorMethod<[], Array<[string, Principal]>>,
'getMyContacts' : ActorMethod<[], Array<Employee>>,
'getMyContactsLength' : ActorMethod<[], string>,
'getMyTransactionLength' : ActorMethod<[], string>,
Expand Down
8 changes: 7 additions & 1 deletion .dfx/local/canisters/backend/service.did.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export const idlFactory = ({ IDL }) => {
const Result = IDL.Variant({ 'ok' : IDL.Text, 'err' : IDL.Text });
const CreateDepartmentArgs = IDL.Record({
'code' : IDL.Text,
'name' : IDL.Text,
Expand Down Expand Up @@ -318,7 +319,6 @@ export const idlFactory = ({ IDL }) => {
'ok' : CreateTransactionSuccess,
'err' : CreateTransactionErr,
});
const Result = IDL.Variant({ 'ok' : IDL.Text, 'err' : IDL.Text });
const Response_2 = IDL.Record({
'status' : IDL.Nat16,
'data' : IDL.Opt(IDL.Text),
Expand Down Expand Up @@ -347,6 +347,7 @@ export const idlFactory = ({ IDL }) => {
'headers' : IDL.Vec(HttpHeader),
});
const Backend = IDL.Service({
'addToMetamaskUsers' : IDL.Func([IDL.Text, IDL.Principal], [Result], []),
'cancelRecurringTimer' : IDL.Func([IDL.Nat], [], []),
'checkPayroll' : IDL.Func([], [], []),
'create_department' : IDL.Func([CreateDepartmentArgs], [Response_10], []),
Expand Down Expand Up @@ -374,6 +375,11 @@ export const idlFactory = ({ IDL }) => {
'getFundingBalance' : IDL.Func([], [IDL.Text], []),
'getInvoice' : IDL.Func([], [Account], []),
'getLogs' : IDL.Func([], [IDL.Vec(IDL.Text)], ['query']),
'getMetamaskUsers' : IDL.Func(
[],
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Principal))],
[],
),
'getMyContacts' : IDL.Func([], [IDL.Vec(Employee)], []),
'getMyContactsLength' : IDL.Func([], [IDL.Text], []),
'getMyTransactionLength' : IDL.Func([], [IDL.Text], []),
Expand Down
2 changes: 2 additions & 0 deletions .dfx/local/lsp/bd3sg-teaaa-aaaaa-qaaba-cai.did
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
type Account = record { owner : principal; subaccount : opt Subaccount };
type Backend = service {
addToMetamaskUsers : (text, principal) -> (Result);
cancelRecurringTimer : (nat) -> ();
checkPayroll : () -> ();
create_department : (CreateDepartmentArgs) -> (Response_10);
Expand All @@ -23,6 +24,7 @@ type Backend = service {
getFundingBalance : () -> (text);
getInvoice : () -> (Account);
getLogs : () -> (vec text) query;
getMetamaskUsers : () -> (vec record { text; principal });
getMyContacts : () -> (vec Employee);
getMyContactsLength : () -> (text);
getMyTransactionLength : () -> (text);
Expand Down
2 changes: 1 addition & 1 deletion .dfx/network/local/ic-canister-http-config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"incoming_source": {
"Path": "/tmp/ic-https-outcalls-adapter-socket.996.1717416336"
"Path": "/tmp/ic-https-outcalls-adapter-socket.13317.1717605580"
},
"logger": {
"level": "error"
Expand Down
2 changes: 1 addition & 1 deletion .dfx/network/local/ic-canister-http-socket-path
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/tmp/ic-https-outcalls-adapter-socket.996.1717416336
/tmp/ic-https-outcalls-adapter-socket.13317.1717605580
2 changes: 1 addition & 1 deletion .dfx/network/local/ic-https-outcalls-adapter-pid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3886
13327
1 change: 1 addition & 0 deletions .dfx/network/local/icx-proxy-pid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
13463
2 changes: 1 addition & 1 deletion .dfx/network/local/network-id
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"created": "2024-06-03 12:05:36.532661178 +00:00:00"
"created": "2024-06-05 16:39:40.133709289 +00:00:00"
}
2 changes: 1 addition & 1 deletion .dfx/network/local/replica-configuration/replica-1.port
Original file line number Diff line number Diff line change
@@ -1 +1 @@
46051
40635
2 changes: 1 addition & 1 deletion .dfx/network/local/replica-configuration/replica-pid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3893
13334
2 changes: 1 addition & 1 deletion .dfx/network/local/replica-effective-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"canister_http_adapter": {
"enabled": true,
"socket_path": "/tmp/ic-https-outcalls-adapter-socket.996.1717416336"
"socket_path": "/tmp/ic-https-outcalls-adapter-socket.13317.1717605580"
},
"log_level": "error",
"artificial_delay": 600,
Expand Down
2 changes: 1 addition & 1 deletion .dfx/network/local/state/replicated_state/ic.json5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"registry_client":{"local_store":"/home/cosmas/harambeeapps/ic-payroll/.dfx/network/local/state/replicated_state/ic_registry_local_store"},"transport":{"node_ip":"0.0.0.0","listening_port":0,"send_queue_size":1024,"max_streams":1},"state_manager":{"state_root":"/home/cosmas/harambeeapps/ic-payroll/.dfx/network/local/state/replicated_state/node-100/state","file_backed_memory_allocator":"Enabled","lsmt_storage":"Disabled"},"hypervisor":{"embedders_config":{"max_wasm_stack_size":5242880,"query_execution_threads_per_canister":2,"max_globals":1000,"max_functions":50000,"max_custom_sections":16,"max_custom_sections_size":1048576,"max_number_exported_functions":1000,"max_sum_exported_function_name_lengths":20000,"cost_to_compile_wasm_instruction":6000,"num_rayon_compilation_threads":10,"feature_flags":{"rate_limiting_of_debug_prints":"Disabled","write_barrier":"Disabled","wasm_native_stable_memory":"Enabled"},"metering_type":"New","stable_memory_dirty_page_limit":2097152,"stable_memory_accessed_page_limit":2097152,"min_sandbox_count":500,"max_sandbox_count":2000,"max_sandbox_idle_time":{"secs":1800,"nanos":0},"subnet_type":"application","dirty_page_overhead":0,"trace_execution":"Disabled","max_dirty_pages_without_optimization":262144,"dirty_page_copy_overhead":3000},"create_funds_whitelist":"","max_instructions_for_message_acceptance_calls":200000000,"subnet_memory_threshold":483183820800,"subnet_memory_capacity":751619276800,"subnet_message_memory_capacity":26843545600,"ingress_history_memory_capacity":4294967296,"subnet_wasm_custom_sections_memory_capacity":2147483648,"subnet_memory_reservation":10737418240,"max_canister_memory_size":433791696896,"default_provisional_cycles_balance":100000000000000,"default_freeze_threshold":2592000,"max_controllers":10,"canister_sandboxing_flag":"Enabled","query_execution_threads_total":4,"query_scheduling_time_slice_per_canister":{"secs":0,"nanos":20000000},"max_query_call_graph_depth":6,"max_query_call_graph_instructions":5000000000,"max_query_call_walltime":{"secs":10,"nanos":0},"instruction_overhead_per_query_call":50000000,"rate_limiting_of_heap_delta":"Disabled","rate_limiting_of_instructions":"Disabled","allocatable_compute_capacity_in_percent":50,"deterministic_time_slicing":"Enabled","bitcoin":{"privileged_access":["g4xu7-jiaaa-aaaan-aaaaq-cai","ghsi2-tqaaa-aaaan-aaaca-cai","gsvzx-syaaa-aaaan-aaabq-cai"],"testnet_canister_id":"g4xu7-jiaaa-aaaan-aaaaq-cai","mainnet_canister_id":"ghsi2-tqaaa-aaaan-aaaca-cai"},"composite_queries":"Enabled","query_caching":"Enabled","query_cache_capacity":209715200,"query_cache_max_expiry_time":{"secs":300,"nanos":0},"max_compilation_cache_size":10737418240,"query_stats_aggregation":"Disabled","query_stats_epoch_length":2000,"wasm_chunk_store":"Enabled","stop_canister_timeout_duration":{"secs":300,"nanos":0},"canister_snapshots":"Disabled"},"http_handler":{"listen_addr":"127.0.0.1:0","port_file_path":"/home/cosmas/harambeeapps/ic-payroll/.dfx/network/local/replica-configuration/replica-1.port","connection_read_timeout_seconds":1200,"request_timeout_seconds":300,"http_max_concurrent_streams":256,"max_request_size_bytes":5242880,"max_delegation_certificate_size_bytes":1048576,"max_request_receive_seconds":300,"max_read_state_concurrent_requests":100,"max_status_concurrent_requests":100,"max_catch_up_package_concurrent_requests":100,"max_dashboard_concurrent_requests":100,"max_call_concurrent_requests":50,"max_query_concurrent_requests":400,"max_pprof_concurrent_requests":5},"metrics":null,"artifact_pool":{"consensus_pool_path":"/home/cosmas/harambeeapps/ic-payroll/.dfx/network/local/state/replicated_state/node-100/ic_consensus_pool","ingress_pool_max_count":18446744073709551615,"ingress_pool_max_bytes":18446744073709551615},"crypto":{"crypto_root":"/home/cosmas/harambeeapps/ic-payroll/.dfx/network/local/state/replicated_state/node-100/crypto","csp_vault_type":"in_replica"},"logger":{"node_id":100,"dc_id":200,"level":"error","format":"text_full","debug_overrides":[],"sampling_rates":{},"enabled_tags":[],"target":"Stdout","block_on_overflow":true},"orchestrator_logger":null,"csp_vault_logger":null,"message_routing":null,"malicious_behaviour":null,"firewall":null,"registration":null,"nns_registry_replicator":null,"adapters_config":{"bitcoin_mainnet_uds_path":null,"bitcoin_mainnet_uds_metrics_path":null,"bitcoin_testnet_uds_path":null,"bitcoin_testnet_uds_metrics_path":null,"https_outcalls_uds_path":"/tmp/ic-https-outcalls-adapter-socket.996.1717416336","https_outcalls_uds_metrics_path":null},"bitcoin_payload_builder_config":null,"ipv4_config":null,"domain":null}
{"registry_client":{"local_store":"/home/cosmas/harambeeapps/ic-payroll/.dfx/network/local/state/replicated_state/ic_registry_local_store"},"transport":{"node_ip":"0.0.0.0","listening_port":0,"send_queue_size":1024,"max_streams":1},"state_manager":{"state_root":"/home/cosmas/harambeeapps/ic-payroll/.dfx/network/local/state/replicated_state/node-100/state","file_backed_memory_allocator":"Enabled","lsmt_storage":"Disabled"},"hypervisor":{"embedders_config":{"max_wasm_stack_size":5242880,"query_execution_threads_per_canister":2,"max_globals":1000,"max_functions":50000,"max_custom_sections":16,"max_custom_sections_size":1048576,"max_number_exported_functions":1000,"max_sum_exported_function_name_lengths":20000,"cost_to_compile_wasm_instruction":6000,"num_rayon_compilation_threads":10,"feature_flags":{"rate_limiting_of_debug_prints":"Disabled","write_barrier":"Disabled","wasm_native_stable_memory":"Enabled"},"metering_type":"New","stable_memory_dirty_page_limit":2097152,"stable_memory_accessed_page_limit":2097152,"min_sandbox_count":500,"max_sandbox_count":2000,"max_sandbox_idle_time":{"secs":1800,"nanos":0},"subnet_type":"application","dirty_page_overhead":0,"trace_execution":"Disabled","max_dirty_pages_without_optimization":262144,"dirty_page_copy_overhead":3000},"create_funds_whitelist":"","max_instructions_for_message_acceptance_calls":200000000,"subnet_memory_threshold":483183820800,"subnet_memory_capacity":751619276800,"subnet_message_memory_capacity":26843545600,"ingress_history_memory_capacity":4294967296,"subnet_wasm_custom_sections_memory_capacity":2147483648,"subnet_memory_reservation":10737418240,"max_canister_memory_size":433791696896,"default_provisional_cycles_balance":100000000000000,"default_freeze_threshold":2592000,"max_controllers":10,"canister_sandboxing_flag":"Enabled","query_execution_threads_total":4,"query_scheduling_time_slice_per_canister":{"secs":0,"nanos":20000000},"max_query_call_graph_depth":6,"max_query_call_graph_instructions":5000000000,"max_query_call_walltime":{"secs":10,"nanos":0},"instruction_overhead_per_query_call":50000000,"rate_limiting_of_heap_delta":"Disabled","rate_limiting_of_instructions":"Disabled","allocatable_compute_capacity_in_percent":50,"deterministic_time_slicing":"Enabled","bitcoin":{"privileged_access":["g4xu7-jiaaa-aaaan-aaaaq-cai","ghsi2-tqaaa-aaaan-aaaca-cai","gsvzx-syaaa-aaaan-aaabq-cai"],"testnet_canister_id":"g4xu7-jiaaa-aaaan-aaaaq-cai","mainnet_canister_id":"ghsi2-tqaaa-aaaan-aaaca-cai"},"composite_queries":"Enabled","query_caching":"Enabled","query_cache_capacity":209715200,"query_cache_max_expiry_time":{"secs":300,"nanos":0},"max_compilation_cache_size":10737418240,"query_stats_aggregation":"Disabled","query_stats_epoch_length":2000,"wasm_chunk_store":"Enabled","stop_canister_timeout_duration":{"secs":300,"nanos":0},"canister_snapshots":"Disabled"},"http_handler":{"listen_addr":"127.0.0.1:0","port_file_path":"/home/cosmas/harambeeapps/ic-payroll/.dfx/network/local/replica-configuration/replica-1.port","connection_read_timeout_seconds":1200,"request_timeout_seconds":300,"http_max_concurrent_streams":256,"max_request_size_bytes":5242880,"max_delegation_certificate_size_bytes":1048576,"max_request_receive_seconds":300,"max_read_state_concurrent_requests":100,"max_status_concurrent_requests":100,"max_catch_up_package_concurrent_requests":100,"max_dashboard_concurrent_requests":100,"max_call_concurrent_requests":50,"max_query_concurrent_requests":400,"max_pprof_concurrent_requests":5},"metrics":null,"artifact_pool":{"consensus_pool_path":"/home/cosmas/harambeeapps/ic-payroll/.dfx/network/local/state/replicated_state/node-100/ic_consensus_pool","ingress_pool_max_count":18446744073709551615,"ingress_pool_max_bytes":18446744073709551615},"crypto":{"crypto_root":"/home/cosmas/harambeeapps/ic-payroll/.dfx/network/local/state/replicated_state/node-100/crypto","csp_vault_type":"in_replica"},"logger":{"node_id":100,"dc_id":200,"level":"error","format":"text_full","debug_overrides":[],"sampling_rates":{},"enabled_tags":[],"target":"Stdout","block_on_overflow":true},"orchestrator_logger":null,"csp_vault_logger":null,"message_routing":null,"malicious_behaviour":null,"firewall":null,"registration":null,"nns_registry_replicator":null,"adapters_config":{"bitcoin_mainnet_uds_path":null,"bitcoin_mainnet_uds_metrics_path":null,"bitcoin_testnet_uds_path":null,"bitcoin_testnet_uds_metrics_path":null,"https_outcalls_uds_path":"/tmp/ic-https-outcalls-adapter-socket.13317.1717605580","https_outcalls_uds_metrics_path":null},"bitcoin_payload_builder_config":null,"ipv4_config":null,"domain":null}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
�ȡ�����
������
6 changes: 3 additions & 3 deletions .dfx/network/local/state/replicated_state/nns_public_key.pem
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-----BEGIN PUBLIC KEY-----
MIGCMB0GDSsGAQQBgtx8BQMBAgEGDCsGAQQBgtx8BQMCAQNhAIXPBogiaaW/EbWf
gEmN3tjJPgNBPMLJEEzSA57uRFFrvNUJiRWHiXfM5JtjmPB4XQdVnse42nxN0nK4
8+Am0d8bNtOD4NMapN5SgzpQxilHy+mxpd0PU6gUV2Hv6y2y0g==
MIGCMB0GDSsGAQQBgtx8BQMBAgEGDCsGAQQBgtx8BQMCAQNhAI9PbPPpDGAeNd5n
oEaT8gDUiAWmJIq7RXMCPAQd2wd9V4QC592xsXuhn+2M71LOtwnozR/zVIBwDJBE
xfHJrRGk1mFnU3HeKtZmzNKt4nu1DkSdz1MsZcnZqbxJsMC3eg==
-----END PUBLIC KEY-----
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7qvje-h7wet-lbbvl-g3jor-rzxkk-jyi2t-vaic2-jnpum-nfqkx-wmres-rqe
6p7ko-xf4m3-pule7-uaoiu-uljyx-5s3uh-d5dhh-6xtf3-j6shr-4n7ot-4qe
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
!$�f|��ai>��U��m/���WB�*'S�2�
!5��Q�I���p��_2�-�8��p�¡srz<&
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
 (�9X�� ���Z
�$�txt��G$�;��G�
 Gl�,ܤӎ�j��-�S%����+ ���9M��
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Empty file.
Loading

0 comments on commit 442cd9b

Please sign in to comment.