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

Wasm sc integration #1558

Draft
wants to merge 46 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
eaafbf5
Add wasmex dep
samuelmanzanera Aug 26, 2024
3e52df2
Add wasm module
samuelmanzanera Aug 26, 2024
f672251
Test with ContractV2
samuelmanzanera Aug 27, 2024
003c0aa
Support native upgrade
samuelmanzanera Aug 28, 2024
deecdca
Performs about exported vs spec functions
samuelmanzanera Aug 29, 2024
f394a72
Improve linting for ContractV2
samuelmanzanera Aug 29, 2024
45595f0
Improve linting for WASM modules
samuelmanzanera Aug 29, 2024
1814f2c
support UTXO balance
samuelmanzanera Sep 2, 2024
748dbf2
support I/O mocks
samuelmanzanera Sep 2, 2024
4d2f586
update wasm for tests
samuelmanzanera Sep 2, 2024
c1efd19
rename init with onInit
samuelmanzanera Sep 4, 2024
ec32164
refactor
samuelmanzanera Sep 5, 2024
a8a9432
Update with manifest to generate spec
samuelmanzanera Sep 11, 2024
83206bb
update tx code to hold json
samuelmanzanera Sep 11, 2024
488517b
fix code validation size in mining
samuelmanzanera Sep 17, 2024
a010199
support wasm onInherit
samuelmanzanera Sep 17, 2024
9e7fea5
getBalance IO function
bchamagne Sep 13, 2024
a1b0e04
implement lib functions
bchamagne Sep 16, 2024
c450ccb
use the Hex struct
bchamagne Sep 17, 2024
6bc4851
add contract seed to the wasmmemory
bchamagne Sep 17, 2024
60270e4
implement remaining functions
bchamagne Sep 18, 2024
b7fab60
adapt mock
bchamagne Sep 19, 2024
0928696
update contract in test
bchamagne Sep 19, 2024
2568ead
handle type checking & casting
samuelmanzanera Sep 23, 2024
58b0dc6
support recipient
samuelmanzanera Sep 25, 2024
eeb88b7
skip execute_condition for wasm contract
samuelmanzanera Sep 25, 2024
ecea0a3
fix format
samuelmanzanera Sep 25, 2024
0b6714e
Integrate genesis & contract constants
samuelmanzanera Oct 1, 2024
b3d696d
improve onInit call
samuelmanzanera Oct 1, 2024
425f9fa
improve recipients arguments
samuelmanzanera Oct 1, 2024
a7348b4
clean
samuelmanzanera Oct 1, 2024
2c40c1e
lint
samuelmanzanera Oct 1, 2024
f2778b3
Support only map as argument for wasm contract
samuelmanzanera Oct 4, 2024
a072fd0
Support only map as argument for wasm contract
samuelmanzanera Oct 4, 2024
ad54db2
Add `contract` to transaction data to hold wasm contract def
samuelmanzanera Oct 7, 2024
573b79e
Increase contract's code size limit
samuelmanzanera Oct 7, 2024
8731f0c
Customize version for transaction in tests and playbooks
samuelmanzanera Oct 8, 2024
31864d2
Refactoring
samuelmanzanera Oct 8, 2024
0f14678
Uniform error codes RPC
samuelmanzanera Oct 8, 2024
5efab76
Use typedencoding for contract manifest serialization
samuelmanzanera Oct 8, 2024
837083d
fix loading contract in worker
samuelmanzanera Oct 10, 2024
9f6ac03
fix output
samuelmanzanera Oct 10, 2024
398cb23
Merge remote-tracking branch 'origin/develop' into wasm_sc_integration
samuelmanzanera Oct 11, 2024
1796f80
Merge remote-tracking branch 'origin/develop' into wasm_sc_integration
samuelmanzanera Oct 11, 2024
4c7bdfd
Merge branch 'wasm_sc_integration' of https://github.com/archethic-fo…
samuelmanzanera Oct 11, 2024
1551e53
fix merge
samuelmanzanera Oct 11, 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
5 changes: 3 additions & 2 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,12 @@ config :archethic, :mut_dir, "data"
config :archethic, :marker, "-=%=-=%=-=%=-"

# size represents in bytes binary
# 3 MB
config :archethic, :transaction_data_content_max_size, 3_145_728

# size represents in bytes binary
# 24KB Max
config :archethic, :transaction_data_code_max_size, 24576
# 256 KB
config :archethic, :transaction_data_code_max_size, 262_144

config :archethic, Archethic.Crypto,
supported_curves: [
Expand Down
2 changes: 2 additions & 0 deletions config/test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -217,3 +217,5 @@ config :archethic, Archethic.Contracts.Interpreter.Library.Common.HttpImpl,

config :archethic, Archethic.P2P.Message.GetUnspentOutputs, threshold: 1_000
config :archethic, Archethic.P2P.Message.ValidateSmartContractCall, timeout: 50

config :archethic, Archethic.Contracts.Wasm.IO, MockWasmIO
Loading
Loading