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

Stable Release with Forwarding Contract #81

Open
wants to merge 170 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
170 commits
Select commit Hold shift + click to select a range
2c3c8ee
feat: update_state for router
joemonem Sep 2, 2024
1d30724
feat: update_state for virtual balance
joemonem Sep 2, 2024
a0329d7
feat: update_state for vlp
joemonem Sep 2, 2024
9a1f056
feat: update_state for factory
joemonem Sep 2, 2024
b1604a4
feat: update_state for escrow
joemonem Sep 2, 2024
d646d75
feat: update_state for cw20
joemonem Sep 2, 2024
909d70f
ref: make update_router_state's variables Optional
joemonem Sep 5, 2024
0f1ae40
ref: made update_virtual_balance state's variables optional
joemonem Sep 5, 2024
73aa9a6
ref: made vlp update_state's variables optional
joemonem Sep 5, 2024
83e3bc1
ref: made facotry update_state's variables optional
joemonem Sep 5, 2024
4fd46b1
ref: made escrow update_state's variables optional
joemonem Sep 5, 2024
c94ab07
ref: made cw20 update_state's variables optional
joemonem Sep 5, 2024
0acc06f
fix: remove ability to update total amount and factory address in escrow
joemonem Sep 9, 2024
c4cbd7e
ref: remove ability to update total fees collected in vlp
joemonem Sep 9, 2024
1600c7c
chore: resolve merge conflicts
joemonem Sep 10, 2024
9bf6d3c
feat: add milticall contract
SlayerAnsh Sep 11, 2024
ae64916
fix: contract name in state
SlayerAnsh Sep 12, 2024
7f37691
ref: use .map_or to verify virtual balance address
joemonem Sep 18, 2024
6d616e9
feat: initial structure for deposit token in factory
joemonem Sep 18, 2024
27d0f16
feat: handle receipt and ack of deposit token
joemonem Sep 18, 2024
ac57b20
feat: factory tranfer voucher
joemonem Sep 18, 2024
5738267
chore: renaming and linting
joemonem Sep 18, 2024
2e2bc86
fix: remove ability to update some parameters in State
joemonem Sep 19, 2024
ee82da3
ref: avoid using .unwrap by using .ok_or_else
joemonem Sep 19, 2024
5603f0e
Merge pull request #58 from EuclidProtocol/joe/state-updates
SlayerAnsh Sep 19, 2024
9aec8d9
chore: resolve merge conflics with development
joemonem Sep 20, 2024
41581e3
fix: change Burn msg to Transfer, change burn reply id with transfer
joemonem Sep 20, 2024
65abcee
fix: error message and comment
joemonem Sep 20, 2024
426f240
ref: expose transfer voucher messages in router
joemonem Sep 20, 2024
d01222b
chore: resolve merge conflicts with development
joemonem Sep 20, 2024
788dc2b
ref: replace cross_chain_users with recipient of type CrossChainUserW…
joemonem Sep 26, 2024
96c3175
ref: make recipient optional, defaults to sender
joemonem Sep 26, 2024
0eab584
fix: update recipient struct with CrossChainUser
SlayerAnsh Sep 29, 2024
5b7cf58
fix: typo in ack event attr
SlayerAnsh Sep 29, 2024
45fc5f9
Merge pull request #66 from EuclidProtocol/joe/factory-token-deposit
SlayerAnsh Sep 29, 2024
e8c8dbe
chore: resolve merge conflicts with development
joemonem Sep 30, 2024
8a4a021
security audit fixes
SlayerAnsh Sep 30, 2024
4188549
feat: add tokens to new tokens state for easy query
SlayerAnsh Sep 30, 2024
cf9eb87
fix: remove unncessary reply id causing error abstraction
SlayerAnsh Sep 30, 2024
92e0106
fix: place vlp getter close to vlp block
SlayerAnsh Sep 30, 2024
9bff1eb
fix: code and comment cleanup
SlayerAnsh Sep 30, 2024
c96f4f3
fix: author in cargo.toml, error for voucher escrow, and token_id to …
SlayerAnsh Oct 1, 2024
4f5e8e3
Merge pull request #68 from EuclidProtocol/feat/internal-security-audit
SlayerAnsh Oct 1, 2024
cde5631
test: apply cw-orch to escrow integration test
joemonem Oct 2, 2024
5e04ae3
chore: resolve merge conflicts with development
joemonem Oct 2, 2024
9049198
wip: cw-orch IBC implementation for Factory
joemonem Oct 2, 2024
61f088b
ref: validate amount sent and recipient addresses in execute_transfer…
joemonem Oct 3, 2024
3b82f19
ref: ibc_execute_transfer_virtual_balance in router's receive.rs
joemonem Oct 3, 2024
bcd1bf2
ref: reintroduce TransferEscrowInternal, now called TrasnferVirtualBa…
joemonem Oct 3, 2024
3e6f788
ref: remove transfer escrow and related functions, use CrossChainUser…
joemonem Oct 4, 2024
517e1c7
ref: transfer_virtual_balance reusable function, remove cross_chain_a…
joemonem Oct 4, 2024
c4f6b58
chore: linting
joemonem Oct 4, 2024
b89edd2
feat: setup cw-orch for router
joemonem Oct 7, 2024
5daadbf
test: register factory using cw-orch
joemonem Oct 7, 2024
b55a9fa
chore: remove print functions
joemonem Oct 7, 2024
b336415
Merge pull request #65 from EuclidProtocol/feat/cw-multi-call
SlayerAnsh Oct 14, 2024
f416676
feat: interface for virtual balance and router
joemonem Oct 14, 2024
d47bb98
fix: attributes in ack_transfer_request
joemonem Oct 14, 2024
1846921
ref: remove unused function ibc_ack_transfer_escrow
joemonem Oct 14, 2024
0d0be4a
chore: linting
joemonem Oct 14, 2024
ff42ae0
ref: remove execute_transfer_voucher_internal from router, removed tr…
joemonem Oct 14, 2024
49b395d
fix: TxType in execute_transfer_virtual_balance
joemonem Oct 14, 2024
0aa45c3
Merge pull request #67 from EuclidProtocol/joe/factory-transfer-voucher
joemonem Oct 14, 2024
eb5b669
test: comment out unused code
joemonem Oct 14, 2024
e4bdb3b
chore: rebuilt cargo.lock file
joemonem Oct 14, 2024
f86fc35
fix: resolved merge conflicts with development
joemonem Oct 14, 2024
684a080
test: minor adjustment in router
joemonem Oct 15, 2024
f72891c
fix: reworded a ContractError
joemonem Oct 15, 2024
7e3c8bb
feat: execute_request_pool_creation_with_funds
joemonem Oct 15, 2024
9e99fcd
feat: register_pool_with_funds for vlp, PoolCreationWithFundsResponse…
joemonem Oct 15, 2024
39e43e0
feat: ack_pool_creation_with_funds and CW20_INSTANTIATE_WITH_FUNDS_RE…
joemonem Oct 15, 2024
58dca32
feat: add liquidity while instantiating cw20 in ack_pool_creation_wit…
joemonem Oct 16, 2024
b7355eb
feat: add ExecuteMsg::RequestPoolCreationWithFunds in factory
joemonem Oct 17, 2024
26a7c74
chore: remove unncesessary comment
joemonem Oct 17, 2024
24fa1b1
chore: remove unncesessary funds field from ChainIbcExecuteMsg::Reque…
joemonem Oct 17, 2024
92c20ed
feat: refund sender in case of failed ack in ack_pool_creation_with_f…
joemonem Oct 17, 2024
c47de14
fix: remove PENDING_POOL_WITH_LIQUIDITY_REQUESTS in ack_pool_creation…
joemonem Oct 17, 2024
f9839f0
fix: attribute in ack_pool_creation_with_funds
joemonem Oct 17, 2024
d5132dd
fix: execute_request_pool_creation_with_funds now mints voucher tokens
joemonem Oct 28, 2024
5385587
fix: mint voucher token unconditionally
joemonem Oct 28, 2024
a9edc8c
fix: deposit pending token in on_escrow_instantiate_reply
joemonem Oct 28, 2024
70ccac0
fix: check that tokens in Pair are not identical
joemonem Oct 29, 2024
7245629
Merge pull request #69 from EuclidProtocol/cw-orch-implementation
joemonem Oct 30, 2024
c7fd65e
ref: wait for reply from release escrow before sending swap ack
joemonem Oct 31, 2024
ed755a9
fix: move denom registration to router
SlayerAnsh Nov 4, 2024
f6277af
WIP: Update events and fix security issue in pool creation escrow dat…
SlayerAnsh Oct 9, 2024
b90f86c
Merge branch 'fix/tokens-registration' into fix/events-and-pool-creation
SlayerAnsh Nov 4, 2024
963475e
feat: Limit enum which contrains LTE,EQ,GTE for more control over val…
joemonem Nov 4, 2024
3a2eab3
fix: move token register/deregister to router side
SlayerAnsh Nov 4, 2024
cda5608
fix: update escrow release methods to use consistent naming and send …
SlayerAnsh Nov 4, 2024
f9da80e
feat: stable pool basic structure (formula pending)
joemonem Nov 5, 2024
d60199a
Revert "feat: stable pool basic structure (formula pending)"
joemonem Nov 5, 2024
fc63e9e
Merge branch 'development' into create-pool-with-liquidity
joemonem Nov 5, 2024
072b07a
test: cw-orch integration test for create pool with liquidity
joemonem Nov 6, 2024
804c9cd
fix: pool creation with funds ack was being wrapped twice
joemonem Nov 6, 2024
f76e05f
fix: remove unused ack
joemonem Nov 6, 2024
9f053fd
fix: send ack from vlp instantiate reply
joemonem Nov 6, 2024
40bab97
test: added queries
joemonem Nov 6, 2024
f0afc54
test: set addresses for contracts instantiated implicitly through an …
joemonem Nov 6, 2024
a3d32b5
ref: register_pool_with_funds now calls add_liquidity
joemonem Nov 7, 2024
be88663
ref: remove create pool without funds and its related functions
joemonem Nov 8, 2024
08ac00f
Revert "ref: remove create pool without funds and its related functions"
joemonem Nov 11, 2024
de5f61a
execute_request_pool_creation now accepts funds and calls add_liquidi…
joemonem Nov 11, 2024
0977899
feat: vlp_instantiate_reply calls execute_add_liquidity if FUNDS_INFO…
joemonem Nov 11, 2024
39c0fda
ref: create pool in factory doesn't call add_liquidity
joemonem Nov 11, 2024
ff8f5f3
ack msg wasn't wrapped in AcknowledgementMsgOK
joemonem Nov 11, 2024
32a7fe5
fix: expect poolCreationWithFunds response
joemonem Nov 11, 2024
efc0133
ref: use may_load and match statement in add_liquidity_replu
joemonem Nov 11, 2024
349d30b
test: add_liqudity section for integration test
joemonem Nov 11, 2024
5b17f9a
test: set assert clauses instead of print statements
joemonem Nov 11, 2024
4dd90cd
test: native register factory, escrow, create pool with funds and add…
joemonem Nov 12, 2024
4930d4d
fix: revert updates for vsl chain uid
SlayerAnsh Nov 13, 2024
9b1e6eb
fix: fail tx if pool is created without funds
SlayerAnsh Nov 13, 2024
07ae947
Merge pull request #70 from EuclidProtocol/create-pool-with-liquidity
SlayerAnsh Nov 13, 2024
dcd0399
feat: merge branaches and update logic for token validation and fix p…
SlayerAnsh Nov 13, 2024
0727a73
feat: add more tests
SlayerAnsh Nov 13, 2024
1af07ee
fix: lint errors
SlayerAnsh Nov 13, 2024
d133e4f
Merge pull request #73 from EuclidProtocol/feat/denom-val-and-events
SlayerAnsh Nov 15, 2024
a191d9d
feat: add custom events for register and deregister denom
SlayerAnsh Nov 27, 2024
3bfa952
fix: typo in escrow withdraw event
SlayerAnsh Nov 27, 2024
a46730a
fix: one token already exists was always set to true due to array update
SlayerAnsh Nov 27, 2024
0b808dd
fix: add initial balance on pool creation mint
SlayerAnsh Nov 28, 2024
30ba0b7
chore: version bump factory
SlayerAnsh Nov 28, 2024
3f4e3ff
Merge pull request #76 from EuclidProtocol/feat/denom-registration-ev…
SlayerAnsh Nov 28, 2024
aed1f2e
fix: migrate msg references
SlayerAnsh Nov 28, 2024
f2e884a
chore:bump contract versions
SlayerAnsh Nov 28, 2024
4f34033
Merge pull request #77 from EuclidProtocol/fix/migrate-msgs
SlayerAnsh Nov 28, 2024
4096761
merge with development
joemonem Nov 29, 2024
0fe21fe
feat: optional preferred_denom for withdraw
joemonem Nov 29, 2024
1724328
feat: optional forwarding message
joemonem Dec 2, 2024
1f6a406
fix: remove on_release_escrow_reply and related variables
joemonem Dec 2, 2024
8f802f6
ref: remove _called_by_register_pool_with_funds, add check for prefer…
joemonem Dec 2, 2024
e9fdf37
feat: add refund_address variable
joemonem Dec 4, 2024
8861b5f
fix: handle forwarding message with reply
joemonem Dec 9, 2024
bd1ad96
fix: fmt
joemonem Dec 9, 2024
912f11a
ref: use FORWARDING_MESSAGE_REPLY_ID in match statement
joemonem Dec 9, 2024
5ad6b4e
ref: add preferred denom and refund address to crosschainwithlimit
joemonem Dec 9, 2024
6f33dfb
ref: include forwarding_message in CrossChainUserWithLimit
joemonem Dec 10, 2024
e28e936
fix: execute_withdraw in escrow, use match statement, only use send_m…
joemonem Dec 10, 2024
72e02a0
feat: store refund data to be used in reply for execute_withdraw
joemonem Dec 10, 2024
cc86bb2
fix: add chain_uid check for denom in execute_release_escrow
joemonem Dec 10, 2024
fbf17f0
Merge pull request #71 from EuclidProtocol/cross-chain-hard-limit
SlayerAnsh Dec 11, 2024
8a3002f
fix: forwarding contract
SlayerAnsh Dec 11, 2024
72aee5c
fix: add check for internal call in ack and timeout
SlayerAnsh Dec 11, 2024
d9bfd07
fix: dynamic amount in and sender
SlayerAnsh Dec 11, 2024
70d32b8
fix: remove forwarding state check
SlayerAnsh Dec 11, 2024
3267ea9
fix: remove commented code
SlayerAnsh Dec 11, 2024
dfad66c
chore: fmt fix
SlayerAnsh Dec 11, 2024
81a4536
test: add swap to test_create_pool_with_funds
joemonem Dec 11, 2024
331f16a
fix: add ack in on_swap_reply
joemonem Dec 11, 2024
fba4283
test: add assertions from escrow
joemonem Dec 11, 2024
90a4b9d
test: deposit and withdraw
joemonem Dec 12, 2024
53d37ef
fix: remove unwrap from funds manager
SlayerAnsh Dec 12, 2024
c335854
fix: Fix Cross chain limit calculation
SlayerAnsh Dec 12, 2024
b9de31c
Merge pull request #79 from EuclidProtocol/feat/forwarding-contract
SlayerAnsh Dec 16, 2024
93d14d5
fix: check sender in ibc_receive_internal_call in router and factory,…
joemonem Dec 16, 2024
005fd3e
Merge pull request #80 from EuclidProtocol/audit-prep
SlayerAnsh Dec 17, 2024
6fa3cb0
fix: slippage calulation and added tests
SlayerAnsh Dec 19, 2024
ef10b9a
fix: comment typo
SlayerAnsh Dec 19, 2024
599d32b
fix: update test comments and values for slippage
SlayerAnsh Dec 19, 2024
b0a57cb
ref: CheckedFromRatioError support in ContractError
joemonem Dec 19, 2024
1c5b8c6
Merge pull request #82 from EuclidProtocol/fix/slippage-check
joemonem Dec 19, 2024
35ed88d
fix: update forwarding msgs to enforce EuclidReceive
SlayerAnsh Dec 29, 2024
c87e319
fix: add meta field in messages to log custom meta
SlayerAnsh Dec 30, 2024
52936ac
fix: bug with empty meta string attr error
SlayerAnsh Dec 30, 2024
b2479a3
fix: update receive message to follow cw20 standard and remove nestin…
SlayerAnsh Dec 30, 2024
77acf84
chore: lint fix
SlayerAnsh Dec 30, 2024
665de1f
fix: rename to_cosmos to to_receiver_msg and bump versions
SlayerAnsh Dec 30, 2024
2522d72
chore: bump euclid package version
SlayerAnsh Jan 2, 2025
519ecc1
Merge pull request #83 from EuclidProtocol/fix/forwarding-msg-vulnera…
SlayerAnsh Jan 2, 2025
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
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[alias]
wasm = "build --release --lib --target wasm32-unknown-unknown"
unit-test= "test --lib"
format = "fmt --all"
lint = "clippy -- -W clippy::pedantic"
Loading
Loading