From bc6dac65fb54e706e5871da44150bad8ec5f3fa0 Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Tue, 23 Jan 2024 11:06:41 -0600 Subject: [PATCH] chore(bundle-cost): pretty-print transaction --- proposals/61:lo-bundle-cost/tx-61.json | 381 ++++++++++++++++++++++++- 1 file changed, 380 insertions(+), 1 deletion(-) diff --git a/proposals/61:lo-bundle-cost/tx-61.json b/proposals/61:lo-bundle-cost/tx-61.json index bb2b8718..74f29227 100644 --- a/proposals/61:lo-bundle-cost/tx-61.json +++ b/proposals/61:lo-bundle-cost/tx-61.json @@ -1 +1,380 @@ -{"height":"12392495","txhash":"6EA7B46DFDD0973338BB50781B33D651FE0E8EE8ABF4D7BCB1BF8235334AAFE0","codespace":"","code":0,"data":"0A2B0A252F636F736D6F732E676F762E763162657461312E4D73675375626D697450726F706F73616C1202083D","raw_log":"[{\"events\":[{\"type\":\"coin_received\",\"attributes\":[{\"key\":\"receiver\",\"value\":\"agoric10d07y265gmmuvt4z0w9aw880jnsr700jgl36x9\"},{\"key\":\"amount\"}]},{\"type\":\"coin_spent\",\"attributes\":[{\"key\":\"spender\",\"value\":\"agoric14lnwwraccj6sd2u33vr9f2amszjdsa89w5738w\"},{\"key\":\"amount\"}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/cosmos.gov.v1beta1.MsgSubmitProposal\"},{\"key\":\"sender\",\"value\":\"agoric14lnwwraccj6sd2u33vr9f2amszjdsa89w5738w\"},{\"key\":\"module\",\"value\":\"governance\"},{\"key\":\"sender\",\"value\":\"agoric14lnwwraccj6sd2u33vr9f2amszjdsa89w5738w\"}]},{\"type\":\"proposal_deposit\",\"attributes\":[{\"key\":\"amount\"},{\"key\":\"proposal_id\",\"value\":\"61\"}]},{\"type\":\"submit_proposal\",\"attributes\":[{\"key\":\"proposal_id\",\"value\":\"61\"},{\"key\":\"proposal_type\",\"value\":\"ParameterChange\"}]},{\"type\":\"transfer\",\"attributes\":[{\"key\":\"recipient\",\"value\":\"agoric10d07y265gmmuvt4z0w9aw880jnsr700jgl36x9\"},{\"key\":\"sender\",\"value\":\"agoric14lnwwraccj6sd2u33vr9f2amszjdsa89w5738w\"},{\"key\":\"amount\"}]}]}]","logs":[{"msg_index":0,"log":"","events":[{"type":"coin_received","attributes":[{"key":"receiver","value":"agoric10d07y265gmmuvt4z0w9aw880jnsr700jgl36x9"},{"key":"amount","value":""}]},{"type":"coin_spent","attributes":[{"key":"spender","value":"agoric14lnwwraccj6sd2u33vr9f2amszjdsa89w5738w"},{"key":"amount","value":""}]},{"type":"message","attributes":[{"key":"action","value":"/cosmos.gov.v1beta1.MsgSubmitProposal"},{"key":"sender","value":"agoric14lnwwraccj6sd2u33vr9f2amszjdsa89w5738w"},{"key":"module","value":"governance"},{"key":"sender","value":"agoric14lnwwraccj6sd2u33vr9f2amszjdsa89w5738w"}]},{"type":"proposal_deposit","attributes":[{"key":"amount","value":""},{"key":"proposal_id","value":"61"}]},{"type":"submit_proposal","attributes":[{"key":"proposal_id","value":"61"},{"key":"proposal_type","value":"ParameterChange"}]},{"type":"transfer","attributes":[{"key":"recipient","value":"agoric10d07y265gmmuvt4z0w9aw880jnsr700jgl36x9"},{"key":"sender","value":"agoric14lnwwraccj6sd2u33vr9f2amszjdsa89w5738w"},{"key":"amount","value":""}]}]}],"info":"","gas_wanted":"18000000","gas_used":"203625","tx":{"@type":"/cosmos.tx.v1beta1.Tx","body":{"messages":[{"@type":"/cosmos.gov.v1beta1.MsgSubmitProposal","content":{"@type":"/cosmos.params.v1beta1.ParameterChangeProposal","title":"Lower Bundle Cost ","description":"As developers we continue to build upon Agoric blockchain's capabilities; however, one pressing challenge that our community faces is the high cost associated with installing bundles on-chain.\n\nCurrently, the cost stands at approximately 0.002 IST/byte or $2 per kilobyte (KB) (see [DefaultBeansPerStorageByte parameter](https://github.com/Agoric/agoric-sdk/blob/ac9f916a844f06db1c43e9cc69a948d9c3528a4e/golang/cosmos/x/swingset/types/default-params.go#L51)), a rate that significantly restricts participation and innovation, particularly for developers and projects that require deploying large or numerous smart contracts and applications on Agoric blockchain.\n\nTo address the outlined issues and foster a more inclusive and innovative environment, we’d like to propose reducing the cost of installing a bundle on-chain from $2/KB to $0.02/KB.","changes":[{"subspace":"swingset","key":"beans_per_unit","value":"[{\"key\":\"blockComputeLimit\",\"beans\":\"6500000000\"},{\"key\":\"feeUnit\",\"beans\":\"1000000000000\"},{\"key\":\"inboundTx\",\"beans\":\"10000000000\"},{\"key\":\"message\",\"beans\":\"1000000000\"},{\"key\":\"messageByte\",\"beans\":\"20000000\"},{\"key\":\"minFeeDebit\",\"beans\":\"200000000000\"},{\"key\":\"vatCreation\",\"beans\":\"30000000\"},{\"key\":\"xsnapComputron\",\"beans\":\"100\"},{\"key\":\"storageByte\",\"beans\":\"20000000\"}]"}]},"initial_deposit":[],"proposer":"agoric14lnwwraccj6sd2u33vr9f2amszjdsa89w5738w"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AxP0XfZ1vOQcyfiG1c3OpXP8x16Cah/ULQ1wdEwiUjga"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"4"}],"fee":{"amount":[{"denom":"ubld","amount":"900000"}],"gas_limit":"18000000","payer":"","granter":""}},"signatures":["6F1a+84mnrsIUB5ELSZZM4te72a8b4Ak6cT8eVzbJ/0zb42G1gyUpWl+VVp831nbbCGEC+Dsv6qs7O+rFIOAkg=="]},"timestamp":"2023-11-07T19:35:48Z","events":[{"type":"coin_spent","attributes":[{"key":"c3BlbmRlcg==","value":"YWdvcmljMTRsbnd3cmFjY2o2c2QydTMzdnI5ZjJhbXN6amRzYTg5dzU3Mzh3","index":true},{"key":"YW1vdW50","value":"OTAwMDAwdWJsZA==","index":true}]},{"type":"coin_received","attributes":[{"key":"cmVjZWl2ZXI=","value":"YWdvcmljMWFlMGxtdHpsZ3JjbmxhOXhqa3BhYXJxNWQ1ZGZlejYzaDNudWNs","index":true},{"key":"YW1vdW50","value":"OTAwMDAwdWJsZA==","index":true}]},{"type":"transfer","attributes":[{"key":"cmVjaXBpZW50","value":"YWdvcmljMWFlMGxtdHpsZ3JjbmxhOXhqa3BhYXJxNWQ1ZGZlejYzaDNudWNs","index":true},{"key":"c2VuZGVy","value":"YWdvcmljMTRsbnd3cmFjY2o2c2QydTMzdnI5ZjJhbXN6amRzYTg5dzU3Mzh3","index":true},{"key":"YW1vdW50","value":"OTAwMDAwdWJsZA==","index":true}]},{"type":"message","attributes":[{"key":"c2VuZGVy","value":"YWdvcmljMTRsbnd3cmFjY2o2c2QydTMzdnI5ZjJhbXN6amRzYTg5dzU3Mzh3","index":true}]},{"type":"tx","attributes":[{"key":"ZmVl","value":"OTAwMDAwdWJsZA==","index":true}]},{"type":"tx","attributes":[{"key":"YWNjX3NlcQ==","value":"YWdvcmljMTRsbnd3cmFjY2o2c2QydTMzdnI5ZjJhbXN6amRzYTg5dzU3Mzh3LzQ=","index":true}]},{"type":"tx","attributes":[{"key":"c2lnbmF0dXJl","value":"NkYxYSs4NG1ucnNJVUI1RUxTWlpNNHRlNzJhOGI0QWs2Y1Q4ZVZ6YkovMHpiNDJHMWd5VXBXbCtWVnA4MzFuYmJDR0VDK0RzdjZxczdPK3JGSU9Ba2c9PQ==","index":true}]},{"type":"message","attributes":[{"key":"YWN0aW9u","value":"L2Nvc21vcy5nb3YudjFiZXRhMS5Nc2dTdWJtaXRQcm9wb3NhbA==","index":true}]},{"type":"submit_proposal","attributes":[{"key":"cHJvcG9zYWxfaWQ=","value":"NjE=","index":true}]},{"type":"coin_spent","attributes":[{"key":"c3BlbmRlcg==","value":"YWdvcmljMTRsbnd3cmFjY2o2c2QydTMzdnI5ZjJhbXN6amRzYTg5dzU3Mzh3","index":true},{"key":"YW1vdW50","value":null,"index":true}]},{"type":"coin_received","attributes":[{"key":"cmVjZWl2ZXI=","value":"YWdvcmljMTBkMDd5MjY1Z21tdXZ0NHowdzlhdzg4MGpuc3I3MDBqZ2wzNng5","index":true},{"key":"YW1vdW50","value":null,"index":true}]},{"type":"transfer","attributes":[{"key":"cmVjaXBpZW50","value":"YWdvcmljMTBkMDd5MjY1Z21tdXZ0NHowdzlhdzg4MGpuc3I3MDBqZ2wzNng5","index":true},{"key":"c2VuZGVy","value":"YWdvcmljMTRsbnd3cmFjY2o2c2QydTMzdnI5ZjJhbXN6amRzYTg5dzU3Mzh3","index":true},{"key":"YW1vdW50","value":null,"index":true}]},{"type":"message","attributes":[{"key":"c2VuZGVy","value":"YWdvcmljMTRsbnd3cmFjY2o2c2QydTMzdnI5ZjJhbXN6amRzYTg5dzU3Mzh3","index":true}]},{"type":"proposal_deposit","attributes":[{"key":"YW1vdW50","value":null,"index":true},{"key":"cHJvcG9zYWxfaWQ=","value":"NjE=","index":true}]},{"type":"message","attributes":[{"key":"bW9kdWxl","value":"Z292ZXJuYW5jZQ==","index":true},{"key":"c2VuZGVy","value":"YWdvcmljMTRsbnd3cmFjY2o2c2QydTMzdnI5ZjJhbXN6amRzYTg5dzU3Mzh3","index":true}]},{"type":"submit_proposal","attributes":[{"key":"cHJvcG9zYWxfdHlwZQ==","value":"UGFyYW1ldGVyQ2hhbmdl","index":true}]}]} +{ + "height": "12392495", + "txhash": "6EA7B46DFDD0973338BB50781B33D651FE0E8EE8ABF4D7BCB1BF8235334AAFE0", + "codespace": "", + "code": 0, + "data": "0A2B0A252F636F736D6F732E676F762E763162657461312E4D73675375626D697450726F706F73616C1202083D", + "raw_log": "[{\"events\":[{\"type\":\"coin_received\",\"attributes\":[{\"key\":\"receiver\",\"value\":\"agoric10d07y265gmmuvt4z0w9aw880jnsr700jgl36x9\"},{\"key\":\"amount\"}]},{\"type\":\"coin_spent\",\"attributes\":[{\"key\":\"spender\",\"value\":\"agoric14lnwwraccj6sd2u33vr9f2amszjdsa89w5738w\"},{\"key\":\"amount\"}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/cosmos.gov.v1beta1.MsgSubmitProposal\"},{\"key\":\"sender\",\"value\":\"agoric14lnwwraccj6sd2u33vr9f2amszjdsa89w5738w\"},{\"key\":\"module\",\"value\":\"governance\"},{\"key\":\"sender\",\"value\":\"agoric14lnwwraccj6sd2u33vr9f2amszjdsa89w5738w\"}]},{\"type\":\"proposal_deposit\",\"attributes\":[{\"key\":\"amount\"},{\"key\":\"proposal_id\",\"value\":\"61\"}]},{\"type\":\"submit_proposal\",\"attributes\":[{\"key\":\"proposal_id\",\"value\":\"61\"},{\"key\":\"proposal_type\",\"value\":\"ParameterChange\"}]},{\"type\":\"transfer\",\"attributes\":[{\"key\":\"recipient\",\"value\":\"agoric10d07y265gmmuvt4z0w9aw880jnsr700jgl36x9\"},{\"key\":\"sender\",\"value\":\"agoric14lnwwraccj6sd2u33vr9f2amszjdsa89w5738w\"},{\"key\":\"amount\"}]}]}]", + "logs": [ + { + "msg_index": 0, + "log": "", + "events": [ + { + "type": "coin_received", + "attributes": [ + { + "key": "receiver", + "value": "agoric10d07y265gmmuvt4z0w9aw880jnsr700jgl36x9" + }, + { + "key": "amount", + "value": "" + } + ] + }, + { + "type": "coin_spent", + "attributes": [ + { + "key": "spender", + "value": "agoric14lnwwraccj6sd2u33vr9f2amszjdsa89w5738w" + }, + { + "key": "amount", + "value": "" + } + ] + }, + { + "type": "message", + "attributes": [ + { + "key": "action", + "value": "/cosmos.gov.v1beta1.MsgSubmitProposal" + }, + { + "key": "sender", + "value": "agoric14lnwwraccj6sd2u33vr9f2amszjdsa89w5738w" + }, + { + "key": "module", + "value": "governance" + }, + { + "key": "sender", + "value": "agoric14lnwwraccj6sd2u33vr9f2amszjdsa89w5738w" + } + ] + }, + { + "type": "proposal_deposit", + "attributes": [ + { + "key": "amount", + "value": "" + }, + { + "key": "proposal_id", + "value": "61" + } + ] + }, + { + "type": "submit_proposal", + "attributes": [ + { + "key": "proposal_id", + "value": "61" + }, + { + "key": "proposal_type", + "value": "ParameterChange" + } + ] + }, + { + "type": "transfer", + "attributes": [ + { + "key": "recipient", + "value": "agoric10d07y265gmmuvt4z0w9aw880jnsr700jgl36x9" + }, + { + "key": "sender", + "value": "agoric14lnwwraccj6sd2u33vr9f2amszjdsa89w5738w" + }, + { + "key": "amount", + "value": "" + } + ] + } + ] + } + ], + "info": "", + "gas_wanted": "18000000", + "gas_used": "203625", + "tx": { + "@type": "/cosmos.tx.v1beta1.Tx", + "body": { + "messages": [ + { + "@type": "/cosmos.gov.v1beta1.MsgSubmitProposal", + "content": { + "@type": "/cosmos.params.v1beta1.ParameterChangeProposal", + "title": "Lower Bundle Cost ", + "description": "As developers we continue to build upon Agoric blockchain's capabilities; however, one pressing challenge that our community faces is the high cost associated with installing bundles on-chain.\n\nCurrently, the cost stands at approximately 0.002 IST/byte or $2 per kilobyte (KB) (see [DefaultBeansPerStorageByte parameter](https://github.com/Agoric/agoric-sdk/blob/ac9f916a844f06db1c43e9cc69a948d9c3528a4e/golang/cosmos/x/swingset/types/default-params.go#L51)), a rate that significantly restricts participation and innovation, particularly for developers and projects that require deploying large or numerous smart contracts and applications on Agoric blockchain.\n\nTo address the outlined issues and foster a more inclusive and innovative environment, we’d like to propose reducing the cost of installing a bundle on-chain from $2/KB to $0.02/KB.", + "changes": [ + { + "subspace": "swingset", + "key": "beans_per_unit", + "value": "[{\"key\":\"blockComputeLimit\",\"beans\":\"6500000000\"},{\"key\":\"feeUnit\",\"beans\":\"1000000000000\"},{\"key\":\"inboundTx\",\"beans\":\"10000000000\"},{\"key\":\"message\",\"beans\":\"1000000000\"},{\"key\":\"messageByte\",\"beans\":\"20000000\"},{\"key\":\"minFeeDebit\",\"beans\":\"200000000000\"},{\"key\":\"vatCreation\",\"beans\":\"30000000\"},{\"key\":\"xsnapComputron\",\"beans\":\"100\"},{\"key\":\"storageByte\",\"beans\":\"20000000\"}]" + } + ] + }, + "initial_deposit": [], + "proposer": "agoric14lnwwraccj6sd2u33vr9f2amszjdsa89w5738w" + } + ], + "memo": "", + "timeout_height": "0", + "extension_options": [], + "non_critical_extension_options": [] + }, + "auth_info": { + "signer_infos": [ + { + "public_key": { + "@type": "/cosmos.crypto.secp256k1.PubKey", + "key": "AxP0XfZ1vOQcyfiG1c3OpXP8x16Cah/ULQ1wdEwiUjga" + }, + "mode_info": { + "single": { + "mode": "SIGN_MODE_DIRECT" + } + }, + "sequence": "4" + } + ], + "fee": { + "amount": [ + { + "denom": "ubld", + "amount": "900000" + } + ], + "gas_limit": "18000000", + "payer": "", + "granter": "" + } + }, + "signatures": [ + "6F1a+84mnrsIUB5ELSZZM4te72a8b4Ak6cT8eVzbJ/0zb42G1gyUpWl+VVp831nbbCGEC+Dsv6qs7O+rFIOAkg==" + ] + }, + "timestamp": "2023-11-07T19:35:48Z", + "events": [ + { + "type": "coin_spent", + "attributes": [ + { + "key": "c3BlbmRlcg==", + "value": "YWdvcmljMTRsbnd3cmFjY2o2c2QydTMzdnI5ZjJhbXN6amRzYTg5dzU3Mzh3", + "index": true + }, + { + "key": "YW1vdW50", + "value": "OTAwMDAwdWJsZA==", + "index": true + } + ] + }, + { + "type": "coin_received", + "attributes": [ + { + "key": "cmVjZWl2ZXI=", + "value": "YWdvcmljMWFlMGxtdHpsZ3JjbmxhOXhqa3BhYXJxNWQ1ZGZlejYzaDNudWNs", + "index": true + }, + { + "key": "YW1vdW50", + "value": "OTAwMDAwdWJsZA==", + "index": true + } + ] + }, + { + "type": "transfer", + "attributes": [ + { + "key": "cmVjaXBpZW50", + "value": "YWdvcmljMWFlMGxtdHpsZ3JjbmxhOXhqa3BhYXJxNWQ1ZGZlejYzaDNudWNs", + "index": true + }, + { + "key": "c2VuZGVy", + "value": "YWdvcmljMTRsbnd3cmFjY2o2c2QydTMzdnI5ZjJhbXN6amRzYTg5dzU3Mzh3", + "index": true + }, + { + "key": "YW1vdW50", + "value": "OTAwMDAwdWJsZA==", + "index": true + } + ] + }, + { + "type": "message", + "attributes": [ + { + "key": "c2VuZGVy", + "value": "YWdvcmljMTRsbnd3cmFjY2o2c2QydTMzdnI5ZjJhbXN6amRzYTg5dzU3Mzh3", + "index": true + } + ] + }, + { + "type": "tx", + "attributes": [ + { + "key": "ZmVl", + "value": "OTAwMDAwdWJsZA==", + "index": true + } + ] + }, + { + "type": "tx", + "attributes": [ + { + "key": "YWNjX3NlcQ==", + "value": "YWdvcmljMTRsbnd3cmFjY2o2c2QydTMzdnI5ZjJhbXN6amRzYTg5dzU3Mzh3LzQ=", + "index": true + } + ] + }, + { + "type": "tx", + "attributes": [ + { + "key": "c2lnbmF0dXJl", + "value": "NkYxYSs4NG1ucnNJVUI1RUxTWlpNNHRlNzJhOGI0QWs2Y1Q4ZVZ6YkovMHpiNDJHMWd5VXBXbCtWVnA4MzFuYmJDR0VDK0RzdjZxczdPK3JGSU9Ba2c9PQ==", + "index": true + } + ] + }, + { + "type": "message", + "attributes": [ + { + "key": "YWN0aW9u", + "value": "L2Nvc21vcy5nb3YudjFiZXRhMS5Nc2dTdWJtaXRQcm9wb3NhbA==", + "index": true + } + ] + }, + { + "type": "submit_proposal", + "attributes": [ + { + "key": "cHJvcG9zYWxfaWQ=", + "value": "NjE=", + "index": true + } + ] + }, + { + "type": "coin_spent", + "attributes": [ + { + "key": "c3BlbmRlcg==", + "value": "YWdvcmljMTRsbnd3cmFjY2o2c2QydTMzdnI5ZjJhbXN6amRzYTg5dzU3Mzh3", + "index": true + }, + { + "key": "YW1vdW50", + "value": null, + "index": true + } + ] + }, + { + "type": "coin_received", + "attributes": [ + { + "key": "cmVjZWl2ZXI=", + "value": "YWdvcmljMTBkMDd5MjY1Z21tdXZ0NHowdzlhdzg4MGpuc3I3MDBqZ2wzNng5", + "index": true + }, + { + "key": "YW1vdW50", + "value": null, + "index": true + } + ] + }, + { + "type": "transfer", + "attributes": [ + { + "key": "cmVjaXBpZW50", + "value": "YWdvcmljMTBkMDd5MjY1Z21tdXZ0NHowdzlhdzg4MGpuc3I3MDBqZ2wzNng5", + "index": true + }, + { + "key": "c2VuZGVy", + "value": "YWdvcmljMTRsbnd3cmFjY2o2c2QydTMzdnI5ZjJhbXN6amRzYTg5dzU3Mzh3", + "index": true + }, + { + "key": "YW1vdW50", + "value": null, + "index": true + } + ] + }, + { + "type": "message", + "attributes": [ + { + "key": "c2VuZGVy", + "value": "YWdvcmljMTRsbnd3cmFjY2o2c2QydTMzdnI5ZjJhbXN6amRzYTg5dzU3Mzh3", + "index": true + } + ] + }, + { + "type": "proposal_deposit", + "attributes": [ + { + "key": "YW1vdW50", + "value": null, + "index": true + }, + { + "key": "cHJvcG9zYWxfaWQ=", + "value": "NjE=", + "index": true + } + ] + }, + { + "type": "message", + "attributes": [ + { + "key": "bW9kdWxl", + "value": "Z292ZXJuYW5jZQ==", + "index": true + }, + { + "key": "c2VuZGVy", + "value": "YWdvcmljMTRsbnd3cmFjY2o2c2QydTMzdnI5ZjJhbXN6amRzYTg5dzU3Mzh3", + "index": true + } + ] + }, + { + "type": "submit_proposal", + "attributes": [ + { + "key": "cHJvcG9zYWxfdHlwZQ==", + "value": "UGFyYW1ldGVyQ2hhbmdl", + "index": true + } + ] + } + ] +}