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

pair hooks again #825

Merged
merged 4 commits into from
Feb 7, 2024
Merged

pair hooks again #825

merged 4 commits into from
Feb 7, 2024

Conversation

dorin-iancu
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Feb 6, 2024

Contract comparison - from e227609 to 04890fe

Path                                                                                             size                  has-allocator                     has-format
mx-exchange-sc
- pause-all/pause-all.wasm 5548 No No
mx-exchange-sc/dex
- farm/farm.wasm 38759 No No
- farm-with-locked-rewards/farm-with-locked-rewards.wasm 38439 No No
- governance/governance.wasm 17355 No No
- pair
- - pair.wasm 31271 ➡️ 35543 🔴 No No
- - pair-full.wasm 32650 ➡️ 36935 🔴 No No
- - safe-price-view.wasm 7888 No No
- pair-mock/pair-mock.wasm 5470 No No
- price-discovery/price-discovery.wasm 16381 No No
- proxy-deployer/proxy-deployer.wasm 4502 No No
- router/router.wasm 26718 No No
mx-exchange-sc/energy-integration
- energy-factory-mock/energy-factory-mock.wasm 4277 No No
- energy-update/energy-update.wasm 1558 No No
- fees-collector/fees-collector.wasm 18953 No No
- governance-v2/governance-v2.wasm 16607 No No
mx-exchange-sc/farm-staking
- farm-staking/farm-staking.wasm 43236 No No
- farm-staking-proxy/farm-staking-proxy.wasm 19393 No No
- metabonding-staking/metabonding-staking.wasm 10176 No No
mx-exchange-sc/locked-asset
- distribution/distribution.wasm 14292 No No
- energy-factory/energy-factory.wasm 35029 No No
- factory/factory.wasm 30471 No No
- lkmex-transfer/lkmex-transfer.wasm 11288 No No
- locked-token-wrapper/locked-token-wrapper.wasm 14586 No No
- proxy_dex/proxy_dex.wasm 36917 No No
- simple-lock/simple-lock.wasm 24491 No No
- simple-lock-whitelist/simple-lock-whitelist.wasm 26210 No No
- token-unstake/token-unstake.wasm 14288 No No
mx-exchange-sc/dex/sample-hooks
- pair-hooks-sample/pair-hooks-sample.wasm N/A ➡️ 2841 ⚠️ N/A ➡️ No ⚠️ N/A ➡️ No ⚠️

alyn509
alyn509 previously approved these changes Feb 6, 2024
hook.dest_address,
hook.endpoint_name,
)
.with_raw_arguments(call_args.clone())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this wanted behavior? The only parameter to be the Pair?
Is there any case where a hook would need personalized parameters?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, plenty of endpoints have their own parameters.

.execute_on_dest_context_with_back_transfers::<MultiValueEncoded<ManagedBuffer>>();

require!(
back_transfers.esdt_payments.len() == payments_len,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The egld value is ignored. Is there any case where EGLD would be used?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, only ESDT.

@dorin-iancu dorin-iancu merged commit c791e7f into feat/hooks Feb 7, 2024
4 checks passed
@dorin-iancu dorin-iancu deleted the pair-hooks branch February 7, 2024 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants