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

Merged
merged 64 commits into from
Dec 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 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
Sep 13, 2024
a1b0e04
implement lib functions
Sep 16, 2024
c450ccb
use the Hex struct
Sep 17, 2024
6bc4851
add contract seed to the wasmmemory
Sep 17, 2024
60270e4
implement remaining functions
Sep 18, 2024
b7fab60
adapt mock
Sep 19, 2024
0928696
update contract in test
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
628be5d
Merge branch 'develop' into wasm_sc_integration
Neylix Dec 16, 2024
03c40be
Fix merge'
samuelmanzanera Dec 9, 2024
7278c9e
Fix merge
samuelmanzanera Dec 9, 2024
92dd4fb
Fix wasmex version
Neylix Dec 16, 2024
637d900
fix serialization issue
samuelmanzanera Dec 18, 2024
966098e
fix lint
samuelmanzanera Dec 18, 2024
dd90c21
Fix wasm output cast on list
Neylix Dec 20, 2024
3b8beb9
Add WasmSpec.get_function_spec
Neylix Dec 20, 2024
b79a13f
Fix cast output for json rpc call
Neylix Dec 20, 2024
a4bc405
Add TransactionData.Contract struct
Neylix Dec 23, 2024
dea4c44
distinct tx version 3 and 4
Neylix Dec 26, 2024
5035479
wasm contract set transaction version
Neylix Dec 27, 2024
3e20ab1
Fix tests
Neylix Dec 27, 2024
fb15252
fix dialyzer
Neylix Dec 27, 2024
5623de7
fix credo
Neylix Dec 27, 2024
0d97b1e
Add Contract.set_contract function in interpreter
Neylix Dec 30, 2024
4de36a8
Forbid transaction V4 on mainnet
Neylix Dec 30, 2024
c48aa5a
Remove thing in db
Neylix Dec 31, 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 @@ -224,3 +224,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