Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

use handleFilecoinMethod and deserialize universal hook params #300

Merged
merged 7 commits into from
Feb 24, 2023

Conversation

rllola
Copy link
Contributor

@rllola rllola commented Feb 23, 2023

🔗 zboto Link

@github-actions
Copy link

Gas results 🚀📝

Account actor

Function Gas
authenticate_message 25471560
universal_receiver_hook 5177677

Datacap actor

Function Gas
name 5974874
symbol 5721206
total_supply 7748072
balance 6895251
allowance 7957328
transfer 17604679
transfer_from 25255624
burn 11345107
burn_from 18240025
allowance 11241811
increase_allowance 14001801
decrease_allowance 14004997
revoke_allowance 12638121

Init actor

Function Gas
exec 19743098
exec4 6909901

Market actor

Function Gas
publish_storage_deals 49364997
add_balance 7865589
withdraw_balance 10704298
get_balance 12029655
get_deal_data_commitment 11169517
get_deal_client 6518609
get_deal_provider 6515113
get_deal_label 11375023
get_deal_term 7085378
get_deal_total_price 8635199
get_deal_client_collateral 8443346
get_deal_provider_collateral 8449526
get_deal_verified 6428183
get_deal_activation 7129822

Power actor

Function Gas
miner_count 5059398
network_raw_power 5499996
miner_raw_power 7005362
miner_consensus_count 5069946

Precompiles actor

Function Gas
resolve_address 2411070
lookup_delegated_address (empty response) 2328771
lookup_delegated_address (address found) 2415775
resolve_eth_address 2439194

Send actor

Function Gas
send (actor id) 3653196
send (address) 3653196

Verifreg actor

Function Gas
add_verified_client 13502459
get_claims 10296922
extend_claim_term 11617870
remove_expired_allocations 13247846
remove_expired_claims 11617870

@github-actions
Copy link

Gas results 🚀📝

Account actor

Function Gas
authenticate_message 25470864
universal_receiver_hook 5176981

Datacap actor

Function Gas
name 5985653
symbol 5731985
total_supply 7758851
balance 6906030
allowance 7968107
transfer 17615459
transfer_from 25266403
burn 11355887
burn_from 18250804
allowance 11252591
increase_allowance 14012580
decrease_allowance 14015777
revoke_allowance 12648900

Init actor

Function Gas
exec 19743098
exec4 6909901

Market actor

Function Gas
publish_storage_deals 49364997
add_balance 7865589
withdraw_balance 10704298
get_balance 12029655
get_deal_data_commitment 11169517
get_deal_client 6518609
get_deal_provider 6515113
get_deal_label 11375023
get_deal_term 7085378
get_deal_total_price 8635199
get_deal_client_collateral 8443346
get_deal_provider_collateral 8449526
get_deal_verified 6428183
get_deal_activation 7129822

Power actor

Function Gas
miner_count 5059398
network_raw_power 5499996
miner_raw_power 7005362
miner_consensus_count 5069946

Precompiles actor

Function Gas
resolve_address 2411070
lookup_delegated_address (empty response) 2328771
lookup_delegated_address (address found) 2415775
resolve_eth_address 2439194

Send actor

Function Gas
send (actor id) 3653196
send (address) 3653196

Verifreg actor

Function Gas
add_verified_client 13501419
get_claims 10295882
extend_claim_term 11616830
remove_expired_allocations 13246806
remove_expired_claims 11616830

@github-actions
Copy link

Gas results 🚀📝

Account actor

Function Gas
authenticate_message 25470388
universal_receiver_hook 5176505

Datacap actor

Function Gas
name 5995365
symbol 5741697
total_supply 7768562
balance 6915741
allowance 7977819
transfer 17625170
transfer_from 25276115
burn 11365598
burn_from 18260515
allowance 11262302
increase_allowance 14022291
decrease_allowance 14025488
revoke_allowance 12658611

Init actor

Function Gas
exec 19752633
exec4 6919436

Market actor

Function Gas
publish_storage_deals 49375397
add_balance 7875988
withdraw_balance 10714698
get_balance 12040055
get_deal_data_commitment 11179916
get_deal_client 6529008
get_deal_provider 6525512
get_deal_label 11385423
get_deal_term 7095777
get_deal_total_price 8645598
get_deal_client_collateral 8453745
get_deal_provider_collateral 8459925
get_deal_verified 6438582
get_deal_activation 7140221

Power actor

Function Gas
miner_count 5070989
network_raw_power 5511587
miner_raw_power 7016953
miner_consensus_count 5081537

Precompiles actor

Function Gas
resolve_address 2411070
lookup_delegated_address (empty response) 2328771
lookup_delegated_address (address found) 2415775
resolve_eth_address 2439194

Send actor

Function Gas
send (actor id) 3653196
send (address) 3653196

Verifreg actor

Function Gas
add_verified_client 13512051
get_claims 10306513
extend_claim_term 11627461
remove_expired_allocations 13257437
remove_expired_claims 11627461

@github-actions
Copy link

Gas results 🚀📝

Account actor

Function Gas
authenticate_message 25470228
universal_receiver_hook 5176345

Datacap actor

Function Gas
name 6005380
symbol 5751712
total_supply 7778577
balance 6925757
allowance 7987834
transfer 17635185
transfer_from 25286130
burn 11375613
burn_from 18270530
allowance 11272317
increase_allowance 14032306
decrease_allowance 14035503
revoke_allowance 12668626

Init actor

Function Gas
exec 19754153
exec4 6920956

Market actor

Function Gas
publish_storage_deals 49374997
add_balance 7875588
withdraw_balance 10714298
get_balance 12039655
get_deal_data_commitment 11179516
get_deal_client 6528608
get_deal_provider 6525112
get_deal_label 11385023
get_deal_term 7095377
get_deal_total_price 8645198
get_deal_client_collateral 8453345
get_deal_provider_collateral 8459525
get_deal_verified 6438182
get_deal_activation 7139821

Power actor

Function Gas
miner_count 5070989
network_raw_power 5511587
miner_raw_power 7016953
miner_consensus_count 5081537

Precompiles actor

Function Gas
resolve_address 2411070
lookup_delegated_address (empty response) 2328771
lookup_delegated_address (address found) 2415775
resolve_eth_address 2439194

Send actor

Function Gas
send (actor id) 3653196
send (address) 3653196

Verifreg actor

Function Gas
add_verified_client 13513259
get_claims 10307721
extend_claim_term 11628669
remove_expired_allocations 13258645
remove_expired_claims 11628669

@github-actions
Copy link

Gas results 🚀📝

Account actor

Function Gas
authenticate_message 25470864
universal_receiver_hook 5176981

Datacap actor

Function Gas
name 5985333
symbol 5731665
total_supply 7758531
balance 6905710
allowance 7967787
transfer 17615139
transfer_from 25266083
burn 11355567
burn_from 18250484
allowance 11252271
increase_allowance 14012260
decrease_allowance 14015457
revoke_allowance 12648580

Init actor

Function Gas
exec 19743098
exec4 6909901

Market actor

Function Gas
publish_storage_deals 49364997
add_balance 7865589
withdraw_balance 10704298
get_balance 12029655
get_deal_data_commitment 11169517
get_deal_client 6518609
get_deal_provider 6515113
get_deal_label 11375023
get_deal_term 7085378
get_deal_total_price 8635199
get_deal_client_collateral 8443346
get_deal_provider_collateral 8449526
get_deal_verified 6428183
get_deal_activation 7129822

Power actor

Function Gas
miner_count 5059398
network_raw_power 5499996
miner_raw_power 7005362
miner_consensus_count 5069946

Precompiles actor

Function Gas
resolve_address 2411070
lookup_delegated_address (empty response) 2328771
lookup_delegated_address (address found) 2415775
resolve_eth_address 2439194

Send actor

Function Gas
send (actor id) 3653196
send (address) 3653196

Verifreg actor

Function Gas
add_verified_client 13501419
get_claims 10295882
extend_claim_term 11616830
remove_expired_allocations 13246806
remove_expired_claims 11616830

@github-actions
Copy link

Gas results 🚀📝

Account actor

Function Gas
authenticate_message 25471400
universal_receiver_hook 5177517

Datacap actor

Function Gas
name 6016550
symbol 5762882
total_supply 7789748
balance 6936927
allowance 7999004
transfer 17646355
transfer_from 25297300
burn 11386783
burn_from 18281701
allowance 11283487
increase_allowance 14043477
decrease_allowance 14046673
revoke_allowance 12679797

Init actor

Function Gas
exec 19762556
exec4 6929359

Market actor

Function Gas
publish_storage_deals 49394483
add_balance 7895075
withdraw_balance 10733784
get_balance 12059141
get_deal_data_commitment 11199002
get_deal_client 6548094
get_deal_provider 6544598
get_deal_label 11404509
get_deal_term 7114863
get_deal_total_price 8664685
get_deal_client_collateral 8472831
get_deal_provider_collateral 8479011
get_deal_verified 6457668
get_deal_activation 7159307

Power actor

Function Gas
miner_count 5088447
network_raw_power 5529045
miner_raw_power 7034412
miner_consensus_count 5098995

Precompiles actor

Function Gas
resolve_address 2411070
lookup_delegated_address (empty response) 2328771
lookup_delegated_address (address found) 2415775
resolve_eth_address 2439194

Send actor

Function Gas
send (actor id) 3653196
send (address) 3653196

Verifreg actor

Function Gas
add_verified_client 13522138
get_claims 10316601
extend_claim_term 11637549
remove_expired_allocations 13267524
remove_expired_claims 11637549

@github-actions
Copy link

Gas results 🚀📝

Account actor

Function Gas
authenticate_message 25469640
universal_receiver_hook 5175757

Datacap actor

Function Gas
name 6062212
symbol 5808544
total_supply 7835409
balance 6982589
allowance 8044666
transfer 17692017
transfer_from 25342962
burn 11432445
burn_from 18327362
allowance 11329149
increase_allowance 14089138
decrease_allowance 14092335
revoke_allowance 12725458

Init actor

Function Gas
exec 19786333
exec4 6953136

Market actor

Function Gas
publish_storage_deals 49450035
add_balance 7950627
withdraw_balance 10789336
get_balance 12114693
get_deal_data_commitment 11254554
get_deal_client 6603646
get_deal_provider 6600150
get_deal_label 11460061
get_deal_term 7170415
get_deal_total_price 8720237
get_deal_client_collateral 8528383
get_deal_provider_collateral 8534563
get_deal_verified 6513220
get_deal_activation 7214859

Power actor

Function Gas
miner_count 5133817
network_raw_power 5574415
miner_raw_power 7079781
miner_consensus_count 5144365

Precompiles actor

Function Gas
resolve_address 2411070
lookup_delegated_address (empty response) 2328771
lookup_delegated_address (address found) 2415775
resolve_eth_address 2439194

Send actor

Function Gas
send (actor id) 3653196
send (address) 3653196

Verifreg actor

Function Gas
add_verified_client 13568567
get_claims 10363030
extend_claim_term 11683978
remove_expired_allocations 13313954
remove_expired_claims 11683978

@rllola rllola merged commit f58e4f6 into master Feb 24, 2023
@rllola rllola deleted the fix/use-handle-utils branch February 24, 2023 13:12
longfeiWan9 pushed a commit to longfeiWan9/filecoin-solidity that referenced this pull request Mar 7, 2023
…x#300)

* use handleFilecoinMethod and deserialize universal hook params;

* update require to a more specific one

* replace assert with require

* use require instead of assert

* if function is not pure ?

* remove myth warning

* replace more assert with reuiqre
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants