Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1.7 KB

File metadata and controls

47 lines (34 loc) · 1.7 KB

Load Contract 1.2.0

The major differences of this version of Load Contract compared with the previous 1.1.0 version are,

  1. An extra carrierWallet parameter in the create_shipment_tx call. The top level load.create_shipment_tx is now updated to use the 1.2.0 version create_shipment_tx which returns a response with the contractVersion field as "1.2.0" (The contract version return scheme is detailed in Load 1.1.0 Contract Version section).

    Now the new create_shipment_tx should be called as follows,

{
	"method": "load.1.2.0.create_shipment_tx",
	"params": {
		"shipmentUuid": "77777777-25fe-465e-8458-0e9f8ffa2cdd",
		"senderWallet": "8ca1e0df-26ff-4331-86f7-61a1cdcb06c9", 
		"fundingType": 1, 
		"contractedAmount": "10000000000000", 
		"carrierWallet": "8595c618-a448-4ba8-810f-6fc090da7f40"
	},
	"jsonrpc": "2.0",
	"id": 0
}

We can see one difference is the added carrierWallet, compared with the parameter list of this endpoint in the version 1.1.0 of the Load contract.

Note the other difference is that contractedAmount has changed from a number to string.

2. Removed all the methods/endpoints related to the uri and hash. Those functions are now separated into a new Notary contract. The information about the rpc calls to this new contract can be found at VaultNotary 1.0.0.

This is a list of the removed endpoints,

  • load.1.1.0.set_vault_uri_tx
  • load.1.1.0.set_vault_hash_tx

3. The depositAmount fields in the following three rpc endpoints have been changed from number to string.

  • load.1.2.0.fund_escrow_tx
  • load.1.2.0.fund_escrow_ship_tx
  • load.1.2.0.fund_escrow_ether_tx