diff --git a/scripts/export_sdk_types.py b/scripts/export_sdk_types.py index b74e9b9410..3dfec70532 100755 --- a/scripts/export_sdk_types.py +++ b/scripts/export_sdk_types.py @@ -174,10 +174,20 @@ def export_thing(pattern, name, src, dst): export_type("ConsensusProtocols", src, dst) export_var("Consensus", src, dst) export_func("initConsensusProtocols", src, dst) + export_func("(cp ConsensusProtocols) DeepCopy", src, dst) + export_func("(cp ConsensusProtocols) Merge", src, dst) export_type("Global", src, dst) export_var("Protocol", src, dst) # do _not_ export init(), since go-algorand sets bounds, SDK does not + # Custom Consensus Functions + src = "config/config.go" + dst = "protocol/config/config.go" + export_func("SaveConfigurableConsensus", src, dst) + export_func("PreloadConfigurableConsensusProtocols", src, dst) + export_func("LoadConfigurableConsensusProtocols", src, dst) + # do not export SetConfigurableConsensusProtocols(), since go-algorand sets bounds, SDK does not + # Common transaction types export_type("Header", "data/transactions/transaction.go", "transaction") export_type("Transaction", "data/transactions/transaction.go", "transaction")