Skip to content

Commit

Permalink
Check type scripts from message existing in tx (#14)
Browse files Browse the repository at this point in the history
* support message calculation flow in seal
* Add testcase
  • Loading branch information
XuJiandong authored Jan 30, 2024
1 parent 90ad8ba commit 1fe80a8
Show file tree
Hide file tree
Showing 7 changed files with 2,086 additions and 22 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,16 @@ build/cobuild.o: c/cobuild.c c/cobuild.h
build/omni_lock.o: c/omni_lock.c c/omni_lock_supply.h c/omni_lock_acp.h c/secp256k1_lock.h build/secp256k1_data_info_20210801.h $(SECP256K1_SRC_20210801) c/ckb_identity.h
$(CC) -c $(OMNI_LOCK_CFLAGS) -o $@ $<

build/omni_lock: build/omni_lock.o build/cobuild.o
build/omni_lock: build/omni_lock.o build/cobuild.o
$(CC) $(LDFLAGS) -o $@ $^
cp $@ $@.debug
$(OBJCOPY) --strip-debug --strip-all $@

cobuild_mol:
${MOLC} --language rust --schema-file c/basic.mol | rustfmt > tests/omni_lock_rust/src/schemas/basic.rs
${MOLC} --language rust --schema-file c/top_level.mol | rustfmt > tests/omni_lock_rust/src/schemas/top_level.rs
${MOLC} --language - --schema-file c/basic.mol --format json > build/cobuild_basic_mol2.json
moleculec-c2 --input build/cobuild_basic_mol2.json | clang-format -style=Google > c/cobuild_basic_mol2.h

clean:
rm -rf build/secp256k1_data_info_20210801.h build/dump_secp256k1_data_20210801
Expand Down
Loading

0 comments on commit 1fe80a8

Please sign in to comment.