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

feat(node): icp integration #986

Merged
merged 123 commits into from
Dec 7, 2024
Merged
Changes from 1 commit
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
b66d6c1
feat: initial ICP Context contract integration
alenmestrov Nov 26, 2024
347d0b6
fix: lint
alenmestrov Nov 26, 2024
cc2afb2
feat: updated tests to use pocket-ic
alenmestrov Nov 26, 2024
ae49bcf
feat: seeded contract for testing
alenmestrov Nov 26, 2024
f047920
feat: added gitignore
alenmestrov Nov 27, 2024
2c29899
Remove .dfx/ folder from Git tracking
alenmestrov Nov 27, 2024
c2955d8
feat: final implementation of ICP Context contract
alenmestrov Nov 27, 2024
d45c821
fix: lint
alenmestrov Nov 27, 2024
9867616
fix: removed prints
alenmestrov Nov 27, 2024
8684eeb
feat: improved build.sh script, remove unused script, fixed types
alenmestrov Nov 27, 2024
0630e24
feat: updated types to better reflect NEAR implementation, fixed buil…
alenmestrov Nov 27, 2024
bf19d59
fix: linter
alenmestrov Nov 27, 2024
e41e3bc
fix: fixed tests to better handle responses and new version of types
alenmestrov Nov 27, 2024
f8b5118
fix: linter
alenmestrov Nov 27, 2024
26918fd
fix: removed pocket-ic bin from git
alenmestrov Nov 27, 2024
1925da1
merged master
alenmestrov Nov 28, 2024
099957a
feat: implemented Proxy capability
alenmestrov Nov 28, 2024
50be573
feat: initial ICP Context contract integration
alenmestrov Nov 26, 2024
7927900
fix: lint
alenmestrov Nov 26, 2024
ef7bb90
feat: updated tests to use pocket-ic
alenmestrov Nov 26, 2024
f0c5e90
feat: seeded contract for testing
alenmestrov Nov 26, 2024
027bd2f
feat: added gitignore
alenmestrov Nov 27, 2024
616757f
Remove .dfx/ folder from Git tracking
alenmestrov Nov 27, 2024
4724064
feat: final implementation of ICP Context contract
alenmestrov Nov 27, 2024
1191d88
fix: lint
alenmestrov Nov 27, 2024
0cbccce
fix: removed prints
alenmestrov Nov 27, 2024
cbeccce
feat: improved build.sh script, remove unused script, fixed types
alenmestrov Nov 27, 2024
fd3165b
feat: updated types to better reflect NEAR implementation, fixed buil…
alenmestrov Nov 27, 2024
1e4cfd9
fix: linter
alenmestrov Nov 27, 2024
11b4fac
fix: fixed tests to better handle responses and new version of types
alenmestrov Nov 27, 2024
5c3e4fe
fix: linter
alenmestrov Nov 27, 2024
863652f
fix: removed pocket-ic bin from git
alenmestrov Nov 27, 2024
a837054
feat: implemented Proxy capability
alenmestrov Nov 28, 2024
8e131ca
feat: inital version of proxy contract code
alenmestrov Nov 28, 2024
41a6d07
fix: introduced ReprBytes in types, removed unused error file
alenmestrov Nov 29, 2024
98c5bdc
fix: linter
alenmestrov Nov 29, 2024
d019175
fix: adjusted decoding of singature to match NEAR
alenmestrov Nov 29, 2024
b077dd5
fix: lint
alenmestrov Nov 29, 2024
b34d8fc
Merge branch 'master' into feat--icp-contracts
alenmestrov Nov 29, 2024
893fad3
merged icp-contracts branch
alenmestrov Nov 29, 2024
6cfc54c
fix: resolved comments from PR
alenmestrov Nov 29, 2024
f4194bb
fix: linter
alenmestrov Nov 29, 2024
5bf9397
feat: finished tests for proxy contract2
alenmestrov Nov 29, 2024
07d797e
fix: lint
alenmestrov Nov 29, 2024
4de522c
fix: resolved PR comments
alenmestrov Nov 29, 2024
70a3de1
fix: lint
alenmestrov Nov 29, 2024
f8057fb
feat: updated workflow file to install pocket-ic for tests
alenmestrov Nov 29, 2024
ad04e9d
fix: changed the path to wasm file of contract for CI tests
alenmestrov Nov 29, 2024
5bddfc3
fix: resolved PR comments
alenmestrov Nov 29, 2024
78f4be3
fix: linter
alenmestrov Nov 29, 2024
e8a5150
fix: resolved PR comments
alenmestrov Nov 30, 2024
53324d6
fix: removed unused import
alenmestrov Nov 30, 2024
b01a656
Merge branch 'feat--icp-contracts' into feat--icp-proxy
alenmestrov Nov 30, 2024
6fb0302
fix: adjusted types to corespond to Context contract, fixed query met…
alenmestrov Nov 30, 2024
9eb9174
fix: linter
alenmestrov Nov 30, 2024
53986b4
feat: implement Proxy contract deployment on context creation, implem…
alenmestrov Dec 1, 2024
cf5a494
fix: linter
alenmestrov Dec 1, 2024
ce422bd
feat: implemented check of members in Context contract and updated tests
alenmestrov Dec 1, 2024
1031918
fix: lint
alenmestrov Dec 1, 2024
679fcfe
feat(node): initial implementation for query + other logic
frdomovic Nov 26, 2024
9a68731
fix:lint
frdomovic Nov 26, 2024
6889fbc
initial encode decode
frdomovic Nov 27, 2024
e1ec79f
feat: initial generic mutate for icp
frdomovic Nov 27, 2024
44fd0b8
fix: lint
frdomovic Nov 27, 2024
c3f1db0
fix: cleanup
frdomovic Nov 28, 2024
7dd933d
fix: lint
frdomovic Nov 28, 2024
a500993
feat: add icp transport + master updates
frdomovic Nov 28, 2024
56260ca
feat: update request parsing and init for icp
frdomovic Nov 28, 2024
0fb2e23
fix: lint
frdomovic Nov 29, 2024
9dc078e
feat: types
frdomovic Nov 29, 2024
fcc0051
fix: lint
frdomovic Nov 29, 2024
3406aba
feat: resolved mutate ICP encode and decode, query privileges for exa…
alenmestrov Dec 1, 2024
93b3eab
fix: linter
alenmestrov Dec 1, 2024
477a01e
fix: update method calls
frdomovic Dec 2, 2024
33b73a9
fix: lint
frdomovic Dec 2, 2024
c1b1268
test: mutate
frdomovic Dec 2, 2024
337f1ff
fix: lint
frdomovic Dec 2, 2024
a28af26
test2
frdomovic Dec 2, 2024
0e4088d
fix: removed wrong as_bytes
alenmestrov Dec 1, 2024
5e0f789
fix: lint
alenmestrov Dec 1, 2024
5caf59a
fix: resolved building of contract for CI
alenmestrov Dec 2, 2024
00a8eda
fix: lint
alenmestrov Dec 2, 2024
c6652c6
fix: resolved mutate request
alenmestrov Dec 2, 2024
08ad49c
fix: lint
alenmestrov Dec 2, 2024
5e92b50
fix: new did
alenmestrov Dec 3, 2024
b306727
feat: update proxy query + context functions
frdomovic Dec 3, 2024
0c79573
feat: update types Q/M for proxy
frdomovic Dec 3, 2024
d3f7878
feat: encode keypair on init for icp
frdomovic Dec 3, 2024
ad15008
feat: with identity calls
frdomovic Dec 3, 2024
f862a88
Decoding types
petarjuki7 Dec 4, 2024
dbd608f
fix: use files from master
frdomovic Dec 4, 2024
04970bc
fix: use master files
frdomovic Dec 4, 2024
e8aa7f6
Merge branch 'master' into icp_query_mutate_integration
frdomovic Dec 4, 2024
e35828d
fix: cleanup
frdomovic Dec 4, 2024
37e6bb4
fix: use files from master
frdomovic Dec 4, 2024
9361b07
fix: update contract
frdomovic Dec 4, 2024
26c8f03
fix: lint
frdomovic Dec 4, 2024
8d6e1bd
fix: warnings
frdomovic Dec 4, 2024
f34522e
fix: cleanup #1
frdomovic Dec 5, 2024
6d594de
fix: cleanup #2
frdomovic Dec 5, 2024
0361828
fix: cleanup #3
frdomovic Dec 5, 2024
66e31a8
fix: cleanup #4
frdomovic Dec 5, 2024
6b5e2aa
fix: cleanup #5
frdomovic Dec 5, 2024
c9f9ae6
fix: cleanup #6
frdomovic Dec 5, 2024
3fd1e41
fix: remove polling from icp mutate
frdomovic Dec 5, 2024
3ed4469
fix: wrap err into err
frdomovic Dec 5, 2024
3840f1b
fix: update error to mutate
frdomovic Dec 5, 2024
fc6585b
fix: icp mutate return logic
frdomovic Dec 5, 2024
4de5b82
fix: update decode function
frdomovic Dec 5, 2024
677a540
Merge branch 'master' into icp_query_mutate_integration
frdomovic Dec 5, 2024
fa07878
fix: build fail
frdomovic Dec 5, 2024
28dce14
fixed time check on contract
alenmestrov Dec 5, 2024
e4cb1fe
fix: lint
alenmestrov Dec 5, 2024
0998d74
Merge branch 'master' into icp_query_mutate_integration
miraclx Dec 5, 2024
6871025
chore: iterations on ICP integration (#1008)
miraclx Dec 6, 2024
3c97311
fix: build
frdomovic Dec 6, 2024
8fd6a4a
fix: build #2
frdomovic Dec 6, 2024
2eb319c
fix: lint
frdomovic Dec 6, 2024
9666ca3
cleanup
miraclx Dec 6, 2024
ea399e1
dedupe client definition between relayer and node
miraclx Dec 6, 2024
6a69271
no panic in relayer
miraclx Dec 6, 2024
3c18039
fix: context create
frdomovic Dec 6, 2024
1ca1b7d
fix: return type
frdomovic Dec 7, 2024
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
10 changes: 8 additions & 2 deletions crates/context/config/src/client/protocol/icp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,15 @@ impl Network {
Ok(return_data) => Ok(return_data),
Err(err_msg) => Ok(err_msg.into_bytes()),
frdomovic marked this conversation as resolved.
Show resolved Hide resolved
},
Err(e) => Ok(e.to_string().into_bytes()),
Err(e) => Err(IcpError::Custom {
operation: ErrorOperation::Mutate,
reason: e.to_string(),
}),
},
Err(err) => Ok(err.to_string().into_bytes()),
Err(err) => Err(IcpError::Custom {
operation: ErrorOperation::Mutate,
reason: err.to_string(),
}),
}
}
}
Loading