Symbol-ETL Part.4 Cross-Chain Swaps編

SecretLockの内容が、SecretProofにより確定する感じ。
金額やrecipientAddressの情報はSecretLockにしかないので色々と面倒と思いきや、Recipientデータを見れば、Transactionでは直接出てこない資産の動きがわかるので便利。

#SecretLockTransaction

```json
{
	"meta": {
		"height": "115404",
		"hash": "74AFF9CEA00A7F9E964A3E665F36486F9652C1255C611AB3D67F55F245C0E65C",
		"merkleComponentHash": "74AFF9CEA00A7F9E964A3E665F36486F9652C1255C611AB3D67F55F245C0E65C",
		"index": 5
	},
	"transaction": {
		"size": 209,
		"signature": "72F4912E72BF19A05DEC8D4AA8A7D3AFF9A44CBB1CA0F06EF6BF6E4A0A026D7DE2D52A1CAABEE7E51BE0E8126EA927F3D5F22E67E520196452C26DF49E324D08",
		"signerPublicKey": "C56286DE0EEABDCC5BC99948938E06DD569D3D56C4EA192AC4AE9179F43957B5",
		"version": 1,
		"network": 152,
		"type": 16722,
		"maxFee": "20900",
		"deadline": "5114322218",
		"duration": "5",
		"mosaicId": "091F837E059AE13C",
		"amount": "10000000",
		"hashAlgorithm": 0,
		"secret": "CF4788D40D32483D013BC0D5165861B2E76D932F490B7BFC193A80CF099E6446",
		"recipientAddress": "98880003EE1D95ECD13CF5307BE126CDC872F93FE227A4E7"
	},
	"id": "60AABC87A5681E4529431ECE"
}
```

###項目の説明
| field | description | sample |
|:-:|:-:|:-:|
| mosaicId | 提供するMosaic | 091F837E059AE13C |
| amount | 提供するMosaicのamount | |
| secret | これがSecretLockとSedretProofを紐付けるキーのはず。 | CF4788D40D32483D013BC0D5165861B2E76D932F490B7BFC193A80CF099E6446 |
| recipientAddress | 交換相手のアドレス | |

#LockSecret_Created Recipient
```json
{
	"statement": {
		"height": "115404",
		"source": {
			"primaryId": 6,
			"secondaryId": 0
		},
		"receipts": [
			{
				"version": 1,
				"type": 12626,
				"targetAddress": "989377D62B690E1ED93487939E962086DA6E912967AC8BB0",
				"mosaicId": "091F837E059AE13C",
				"amount": "10000000"
			}
		]
	},
	"id": "60AABC87A5681E4529431ED4"
}
```
##項目の説明
| field | description | sample |
|:-:|:-:|:-:|
| type | 12626は0x3152なので、LockSecret_Created <br>交換用の資産をロックするので、一時的に残高が減る。| |
| targettAddress | 送信者のアドレス | |
| mosaicId | 提供するMosaic | 091F837E059AE13C |
| amount | 金額 | |

#SecretProofTransaction

```json
{
	"meta": {
		"height": "115405",
		"hash": "F16C455A55CE25A09FF4D14285E50D179742FC0E15700410C35B1EF42CBD9533",
		"merkleComponentHash": "F16C455A55CE25A09FF4D14285E50D179742FC0E15700410C35B1EF42CBD9533",
		"index": 4
	},
	"transaction": {
		"size": 1145,
		"signature": "AB65A740EC32DBBE7F1F797DEAAB3E3CCC1533BC718571853B19EA19F4CC622A3569A55085A14EE80D66C23F5038EB852AF5C64154551DA6EDE72662C6070A0C",
		"signerPublicKey": "D089D72A593266042DF69DCF40F1E388BE0C5FE1454370E8665F472B52246729",
		"version": 1,
		"network": 152,
		"type": 16978,
		"maxFee": "114500",
		"deadline": "5114345289",
		"hashAlgorithm": 0,
		"secret": "CF4788D40D32483D013BC0D5165861B2E76D932F490B7BFC193A80CF099E6446",
		"recipientAddress": "98880003EE1D95ECD13CF5307BE126CDC872F93FE227A4E7",
		"proof": "DBC7CD50BE042B561B0067990B51239C3325434646745D2E40B6B669E1FB39CBCD4B2BCF6F736B096A614C3DB4FA5BB5B5AD482068720B33F609393ADB7B7525E352DA67B8A1FE7351E0F69CCA74A36B72A7A1D78AEDFA876BB12B2F0CF183A0FB777CB1C7B7DCE7EEA7FA70B3D2E1F837F62957771CA17054DA19B2498E138D2E68FD03FC714B5E8BEEEA60304E3CEFDB57489DBCFB6B05C787B5D0B4D9D5593BC47C7E722A86A54AEF614CCA432A20E54F1C65A972A60524143A84C3EFEE3DA29D91F1BE8E618399316C61D29E826006A220F688A20367D97493967FBEB4F129C111E372C73F90C1EBDFB558A2673A42E2FFAD8455B1756299139600282971AE0F86CD1AD182A76FD7463740C84B8861D3C25EDF9FE00CDF60E045FA72716C03783D641A5B0F47FF92D2AD97018266498A880F02783613F9D68F69A0BFA5A9003692784889E458AAA1207B5688470E7FB7DE1481ECCBF0F594D45F9D84CFF74E56F23ECD7CACA0492FFEAE7394D8FB34D33D2293B817805C00F91F4FF8DE8B35D149737F975AFD66F94C073A83A8D790563A8DEE9D6C68F3770D0D74E7E4DF60539AFE2994AF4DE6701C9B46AD803F0A623935D847767ABDB7526E6D83294D9787CE725CE99368B5431B8014EB556619E0EA3F912CFB25D6BD17E04C42F36EE84A7FA7EB8961056366C480B9DAFCBB35D6B7AC8BD1B8A2A80D2D7213EAE5D6D3BF2C632E25F608ECF4207D8489808188AA469810C44527AEE74AB779468604DC3D42B3D9389E613EF7E555BC80292BCDCD02A759C3523E735C881709C3898EDCDE0A19701B8630861638961A3D1269245D7E8D14DB1B55B0300C4D9435B3793FDC0F00EFD6E97C5F26B288F47C66E11A3F097137F23201C6796C550E5C5F5C944D6E44E4C006F353F137C753AD066C682B0D697B3BFA687615EF089E553115EEB775C33D825EEC99F7F7D34566340AAFFA891E2FADAF305FA555F264293B694AA9CAA0E7F63F8A024EE2505D7BFED96E51DF7A782C2F72C46C1289931F924C3F56ADF107171C304BD3B322AAD64814527CA53FC7A85F869839D315A9AF53C92AD6BB25A37FC32A785C4108C35A13B46B497F283C45AFF9806B300359C4EF46DC1251F7B3842B00AF09DC268768F172B24B9F2A41D81E1360A0A6D7FDD3F702DD7E96465BEAC0453E347151B8BFDCF27205DC9017B4714D76D8693AD2C30B053D196B5DF4A5B346EC51A2E9A079BC3F61D9B3D5F70F1A3AF8838D1DB919324B182E16A65884A1193D4156BDE88E642747821B816D9642854D634D88C27F57041F021C36A5DD0CBE377BC311503EFC824C74BF00743C62F475F314CA2782"
	},
	"id": "60AABCACA5681E4529431EEE"
}
```

##項目の説明
| field | description | sample |
|:-:|:-:|:-:|
| mosaicId | 提供するMosaic | 091F837E059AE13C |
| secret | これがSecretLockとSedretProofを紐付けるキーのはず。 | CF4788D40D32483D013BC0D5165861B2E76D932F490B7BFC193A80CF099E6446 |
| recipientAddress | 交換相手のアドレス | |




#LockSecret_Completed Recipient
```json
{
	"statement": {
		"height": "115405",
		"source": {
			"primaryId": 5,
			"secondaryId": 0
		},
		"receipts": [
			{
				"version": 1,
				"type": 8786,
				"targetAddress": "98880003EE1D95ECD13CF5307BE126CDC872F93FE227A4E7",
				"mosaicId": "091F837E059AE13C",
				"amount": "10000000"
			}
		]
	},
	"id": "60AABCACA5681E4529431EF8"
}
```

##項目の説明
| field | description | sample |
|:-:|:-:|:-:|
| type | 8786は0x2252なので、LockSecret_Completed | |
| targettAddress | 受信者のアドレス | |
| mosaicId | 提供するMosaic | 091F837E059AE13C |
| amount | 金額 | |