Migration Guide v4.0
API Changes
cosmos
Regen Ledger v4.0 does not include an updated version of Cosmos SDK and therefore there are no changes to the API for Cosmos SDK modules.
regen.data
Regen Ledger v4.0 introduces regen.data.v1.
regen.ecocredit
Regen Ledger v4.0 migrates from regen.ecocredit.v1alpha1 to regen.ecocredit.v1.
Msg Service
v1alpha1.MsgCancel → v1.MsgCancel
- added
reason
- updated
holder
toowner
- updated
MsgCancel.CancelCredits
toCredits
(see types)
- added
v1alpha1.MsgCancelResponse → v1.MsgCancelResponse
- no changes
v1alpha1.MsgCreateBatch → v1.MsgCreateBatch
- added
project_id
- added
open
- added
origin_tx
(see v1.OriginTx) - removed
class_id
- removed
project_location
- updated
MsgCreateBatch.BatchIssuance
toBatchIssuance
(see types) - updated
metadata
frombytes
tostring
- added
v1alpha1.MsgCreateBatchResponse → v1.MsgCreateBatchResponse
- no changes
v1alpha1.Msg.CreateClass → v1.Msg.CreateClass
- added
fee
- updated
metadata
frombytes
tostring
- updated
credit_type_name
tocredit_type_abbrev
- added
v1alpha1.MsgCreateClassResponse → v1.MsgCreateClassResponse
- no changes
v1alpha1.MsgRetire → v1.MsgRetire
- updated
holder
toowner
- updated
location
tojurisdiction
- updated
MsgRetire.RetireCredits
toCredits
(see types)
- updated
v1alpha1.MsgRetireResponse → v1.MsgRetireResponse
- no changes
- updated
MsgSend.SendCredits
(see types)
- updated
v1alpha1.MsgSendResponse → v1.MsgSendResponse
- no changes
v1alpha1.MsgUpdateClassAdmin → v1.MsgUpdateClassAdmin
- no changes
v1alpha1.MsgUpdateClassAdminResponse → v1.MsgUpdateClassAdminResponse
- no changes
v1alpha1.MsgUpdateClassIssuers → v1.MsgUpdateClassIssuers
- added
add_issuers
- added
remove_issuers
- removed
issuers
- added
v1alpha1.MsgUpdateClassIssuersResponse → v1.MsgUpdateClassIssuersResponse
- no changes
v1alpha1.MsgUpdateClassMetadata → v1.MsgUpdateClassMetadata
- updated
metadata
tonew_metadata
- updated
v1alpha1.MsgUpdateClassMetadataResponse → v1.MsgUpdateClassMetadataResponse
- no changes
Query Service
v1alpha1.QueryBalanceRequest → v1.QueryBalanceRequest
- updated
account
toaddress
- updated
v1alpha1.QueryBalanceResponse → v1.QueryBalanceResponse
- added
balance
with type regen.ecocredit.v1.BatchBalanceInfo - removed
tradable_amount
- removed
retired_amount
- added
v1alpha1.QueryBatchesRequest → v1.QueryBatchesByClassRequest
- name change
- no changes to fields
v1alpha1.QueryBatchesResponse → v1.QueryBatchesByClassResponse
- name change
- updated
BatchInfo
(see types)
v1alpha1.QueryBatchInfoRequest → v1.QueryBatchRequest
- name change
- no changes to fields
v1alpha1.QueryBatchInfoResponse → v1.QueryBatchResponse
- name change
- updated
info
tobatch
- updated
BatchInfo
(see types)
v1alpha1.QueryClassesRequest → v1.QueryClassesRequest
- no changes
v1alpha1.QueryClassesResponse → v1.QueryClassesResponse
- updated
ClassInfo
(see types)
- updated
v1alpha1.QueryClassInfoRequest → v1.Query.Class
- name change
- no changes to fields
v1alpha1.QueryClassInfoRequest → v1.Query.Class
- name change
- updated
ClassInfo
(see types)
v1alpha1.QueryCreditTypesRequest → v1.QueryCreditTypesRequest
- no changes
v1alpha1.QueryCreditTypesResponse → v1.QueryCreditTypesResponse
- no changes
v1alpha1.QueryParamsRequest → v1.QueryParamsRequest
- no changes
v1alpha1QueryParamsResponse → v1.QueryParamsResponse
- updated
Params
(see types)
- updated
v1alpha1.QuerySupplyRequest → v1.QuerySupplyRequest
- no changes
v1alpha1.QuerySupplyResponse → v1.QuerySupplyResponse
- added
cancelled_amount
- updated
tradable_supply
totradable_amount
- updated
retired_supply
toretired_amount
- added
Types
v1alpha1.BatchInfo → v1.BatchInfo
- added
project_id
- added
issuance_date
- added
open
- removed
class_id
- removed
total_amount
- removed
amount_cancelled
- removed
project_location
- updated
batch_denom
todenom
- updated
metadata
frombytes
tostring
- added
v1alpha1.MsgCancel.CancelCredits → v1.Credits
- scope and name change
- no changes to fields
v1alpha1.ClassInfo → v1.ClassInfo
- added
credit_type_abbrev
- removed
issuers
- removed
credit_type
- removed
num_batches
- updated
class_id
toid
- updated
metadata
frombytes
tostring
- added
v1alpha1.MsgCreateBatch.BatchIssuance → v1.BatchIssuance
- scope change
- updated
retirement_location
toretirement_jurisdiction
v1alpha1.MsgRetire.RetireCredits → v1.Credits
- scope and name change
- no changes to fields
v1alpha1.MsgSend.SendCredits → v1.MsgSend.SendCredits
- updated
retirement_location
toretirement_jurisdiction
- updated
- removed
credit_types
- removed
Events
v1alpha1.EventCancel → v1.EventCancel
- added
reason
- updated
canceller
toowner
- added
v1alpha1.EventCreateBatch → v1.EventCreateBatch
- added
origin_tx
- removed
class_id
- removed
issuer
- removed
total_amount
(see v1.EventMint) - removed
start_date
- removed
end_date
- removed
project_location
- added
v1alpha1.EventCreateClass → v1.EventCreateClass
- removed
admin
- removed
v1alpha1.EventReceive → v1.EventTransfer
- name change
- removed
basket_denom
v1alpha1.EventRetire → v1.EventRetire
- updated
retirer
toowner
- updated
location
tojurisdiction
- updated
regen.ecocredit.basket
Regen Ledger v4.0 includes non-breaking changes to regen.basket.v1.
Msg Service
- deprecated
exponent
- updated
DateCriteria
(see types)
- deprecated
- no changes
- no changes
- no changes
- added
retirement_jurisdiction
- deprecated
retirement_location
- added
- no changes
Query Service
- no changes
- added
basket_info
(will be renamed tobasket
in next version) - deprecated
basket
- added
- no changes
- added
baskets_info
(will be renamed tobaskets
in next version) - deprecated
baskets
- added
- no changes
- added
balances_info
(will be renamed tobalances
in next version) - deprecated
balances
- added
Types
- added
years_in_the_past
- added
Events
- deprecated
curator
- deprecated
- deprecated
credits
- deprecated
amount
- deprecated
- deprecated
credits
- deprecated
amount
- deprecated
regen.ecocredit.marketplace
Regen Ledger v4.0 introduces regen.ecocredit.marketplace.v1.