Skip to content

Commit

Permalink
fix(core sdk tests) (#311)
Browse files Browse the repository at this point in the history
## Description

Fix Core SDK tests

## What type of PR is this? (check all applicable)

- [ ] ✅ Test (`test:`)


## Added tests?

- [ ] 👍 yes
- [ ] 🙅 no, because they aren't needed
- [ ] 🙋 no, because I need help

## Added to documentation?

- [ ] 📜 README.md
- [ ] 📓 Documentation
- [ ] 🙅 no documentation needed

## [optional] Are there any post-deployment tasks we need to perform?

<!-- Describe any additional tasks, if any, and provide steps. -->

## [optional] What gif best describes this PR or how it makes you feel?

<!-- Share a fun gif related to your PR! -->

### PR Title and Description Guidelines:

- Ensure your PR title follows semantic versioning standards. This helps
automate releases and changelogs.
- Use types like `feat:`, `fix:`, `chore:`, `BREAKING CHANGE:` etc. in
your PR title.
- Your PR title will be used as a commit message when merging. Make sure
it adheres to [Conventional Commits
standards](https://www.conventionalcommits.org/).

## Closing Issues

<!--
Use keywords to close related issues. This ensures that the associated
issues will automatically close when the PR is merged.

- `Fixes #123` will close issue 123 when the PR is merged.
- `Closes #123` will also close issue 123 when the PR is merged.
- `Resolves #123` will also close issue 123 when the PR is merged.

You can also use multiple keywords in one comment:
- `Fixes #123, Resolves #456`

More info:
https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue
-->

---------

Co-authored-by: kwiss <mr.dumont.christophe@gmail.com>
  • Loading branch information
ybensacq and kwiss authored Mar 12, 2024
1 parent 6fda542 commit 5b80757
Show file tree
Hide file tree
Showing 28 changed files with 803 additions and 541 deletions.
26 changes: 13 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions artifacts/starknet_utils.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,50 @@
[
{
"type": "struct",
"name": "package_name::ExecutionInfo",
"members": [
{
"name": "order_hash",
"type": "core::felt252"
},
{
"name": "nft_address",
"type": "core::starknet::contract_address::ContractAddress"
},
{
"name": "nft_from",
"type": "core::starknet::contract_address::ContractAddress"
},
{
"name": "nft_to",
"type": "core::starknet::contract_address::ContractAddress"
},
{
"name": "nft_token_id",
"type": "core::integer::u256"
},
{
"name": "payment_from",
"type": "core::starknet::contract_address::ContractAddress"
},
{
"name": "payment_to",
"type": "core::starknet::contract_address::ContractAddress"
},
{
"name": "payment_amount",
"type": "core::integer::u256"
},
{
"name": "payment_currency_address",
"type": "core::starknet::contract_address::ContractAddress"
},
{
"name": "payment_currency_chain_id",
"type": "core::felt252"
}
]
},
{
"type": "struct",
"name": "core::integer::u256",
Expand Down
18 changes: 1 addition & 17 deletions contracts.json
Original file line number Diff line number Diff line change
@@ -1,17 +1 @@
{
"goerli": {
"nftContract": "0x22411b480425fe6e627fdf4d1b6ac7f8567314ada5617a0a6d8ef3e74b69436",
"messaging": "0x2c3d3e0c37d29364a13ba8cff046e7bc5624655a72526961876a1c8bb3f63c8",
"executor": "0x73148536f8ea9546e92761d11515548cc433df46883d5ee98871a6f63a0bbbc",
"orderbook": "0x66f1e6acf9bdbd23837b2eea271430298b355c506978edb132737e7fcb6b310"
},
"sepolia": {},
"mainnet": {},
"dev": {
"messaging": "0x53a0b0ca4b9d248dff574299c98340b67197f7ffc79df9afef66d01e83022c6",
"executor": "0x32cee2469074dabb6ee8dcce24df08d79e9ffd5f978163fbdd0704bce269bab",
"nftContract": "0x305bf776b8976a9709dde4cf307aebed4060e201ab3fca7154ca6db386f13c",
"eth": "0x144a0c8ae6e665dc3652e164ba2881eda87ad9cb5dcc93d30ca6d61b818014c",
"orderbook": "0x33b337f2c708c08e49f5e0161658ed093101dd629c3147ad9eea921e6a6afe3"
}
}
{"goerli":{"nftContract":"0x22411b480425fe6e627fdf4d1b6ac7f8567314ada5617a0a6d8ef3e74b69436","messaging":"0x2c3d3e0c37d29364a13ba8cff046e7bc5624655a72526961876a1c8bb3f63c8","executor":"0x73148536f8ea9546e92761d11515548cc433df46883d5ee98871a6f63a0bbbc","orderbook":"0x66f1e6acf9bdbd23837b2eea271430298b355c506978edb132737e7fcb6b310"},"sepolia":{},"mainnet":{},"dev":{"nftContract":"0x6f63d7d261c2d2c5409ba80ab0b235303fdcd01daeef61ca5ae7238285d7b78","eth":"0x7b8fc5c78bf249bb4173ef45267da1a710c65d76bb9ff03deb6b8fc21f35ba4","messaging":"0x38e142d3d69cfe6757fd9d11704652f6bd8302dd23f483555e9b5698bf69d5","executor":"0x1f303987f8a61ee25d5a153791fd778f0c478947bb32613d15fc8194e0360a6","orderbook":"0x3d7a3a02741c905fdb3cccf14e376a7d64c8cb071874f47f0b01d73015eae6b"}}
1 change: 1 addition & 0 deletions contracts/.tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scarb 2.4.1
2 changes: 1 addition & 1 deletion contracts/ark_tokens/.tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
scarb 2.4.1
scarb 2.3.1
8 changes: 4 additions & 4 deletions crates/solis/messaging.local.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"chain": "starknet",
"rpc_url": "http://127.0.0.1:5050",
"contract_address": "0x53a0b0ca4b9d248dff574299c98340b67197f7ffc79df9afef66d01e83022c6",
"sender_address": "0x6162896d1d7ab204c7ccac6dd5f8e9e7c25ecd5ae4fcb4ad32e57786bb46e03",
"private_key": "0x1800000000300000180000000000030000000000003006001800006600",
"contract_address": "0x38e142d3d69cfe6757fd9d11704652f6bd8302dd23f483555e9b5698bf69d5",
"sender_address": "0x2d71e9c974539bb3ffb4b115e66a23d0f62a641ea66c4016e903454c8753bbc",
"private_key": "0x33003003001800009900180300d206308b0070db00121318d17b5e6262150b",
"interval": 2,
"from_block": 0
}
}
Loading

0 comments on commit 5b80757

Please sign in to comment.