@@ -385,13 +385,13 @@ We can get the credit account info for the address at `EVM_ADDRESS` (the variabl
385385you could provide any account's EVM public key that exists in the subnet.
386386
387387``` sh
388- cast abi-decode " getAccount(address)((uint64,uint256,uint256,address,uint64,(string ,(uint256,uint256,uint64,uint256,uint256))[],uint64,uint256))" $( cast call --rpc-url $ETH_RPC_URL $CREDIT " getAccount(address)" $EVM_ADDRESS )
388+ cast abi-decode " getAccount(address)((uint64,uint256,uint256,address,uint64,(address ,(uint256,uint256,uint64,uint256,uint256))[],uint64,uint256))" $( cast call --rpc-url $ETH_RPC_URL $CREDIT " getAccount(address)" $EVM_ADDRESS )
389389```
390390
391391This will return the following values:
392392
393393```
394- (6, 4999999999999999454276000000000000000000 [4.999e39], 504150000000000000000000 [5.041e23], 0x0000000000000000000000000000000000000000, 7200, [("f0127" , (12345000000000000000000 [1.234e22], 987654321 [9.876e8], 11722 [1.172e4], 0, 0))], 86400 [8.64e4], 4999999984799342175554 [4.999e21])
394+ (6, 4999999999999999454276000000000000000000 [4.999e39], 504150000000000000000000 [5.041e23], 0x0000000000000000000000000000000000000000, 7200, [(0x90F79bf6EB2c4f870365E785982E1f101E93b906 , (12345000000000000000000 [1.234e22], 987654321 [9.876e8], 11722 [1.172e4], 0, 0))], 86400 [8.64e4], 4999999984799342175554 [4.999e21])
395395```
396396
397397Which maps to the ` Account ` struct:
@@ -414,7 +414,7 @@ approvals authorized. We can expand this to be interpreted as the following:
414414
415415``` solidity
416416struct Approval {
417- string to; // f0127
417+ string to; // 0x90F79bf6EB2c4f870365E785982E1f101E93b906
418418 CreditApproval approval; // See CreditApproval struct below
419419}
420420
@@ -489,13 +489,13 @@ struct CreditApproval {
489489Fetch the credit balance for the address at ` EVM_ADDRESS ` :
490490
491491``` sh
492- cast abi-decode " getCreditBalance(address)((uint256,uint256,address,uint64,(string ,(uint256,uint256,uint64,uint256,uint256))[],uint256))" $( cast call --rpc-url $ETH_RPC_URL $CREDIT " getCreditBalance(address)" $EVM_ADDRESS )
492+ cast abi-decode " getCreditBalance(address)((uint256,uint256,address,uint64,(address ,(uint256,uint256,uint64,uint256,uint256))[],uint256))" $( cast call --rpc-url $ETH_RPC_URL $CREDIT " getCreditBalance(address)" $EVM_ADDRESS )
493493```
494494
495495This will return the following values:
496496
497497```
498- (5001999999999998208637000000000000000000 [5.001e39], 518400000000000000000000 [5.184e23], 0x0000000000000000000000000000000000000000, 6932, [("f0127" , (0, 0, 0, 0, 0))], 1)
498+ (5001999999999998208637000000000000000000 [5.001e39], 518400000000000000000000 [5.184e23], 0x0000000000000000000000000000000000000000, 6932, [(0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65 , (0, 0, 0, 0, 0))], 1)
499499```
500500
501501Which maps to the ` Balance ` struct:
@@ -510,7 +510,7 @@ struct Balance {
510510}
511511
512512struct Approval {
513- string to; // f0127
513+ string to; // 0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65
514514 CreditApproval approval; // See CreditApproval struct below
515515}
516516
@@ -1046,13 +1046,13 @@ This will emit an `OverwriteBlob` event and overwrite the blob in the network.
10461046##### Get a blob
10471047
10481048``` sh
1049- cast abi-decode " getBlob(string)((uint64,string,(string ,(string,(uint64,uint64,string,address,bool))[])[],uint8))" $( cast call --rpc-url $ETH_RPC_URL $BLOBS " getBlob(string)" " rzghyg4z3p6vbz5jkgc75lk64fci7kieul65o6hk6xznx7lctkmq" )
1049+ cast abi-decode " getBlob(string)((uint64,string,(address ,(string,(uint64,uint64,string,address,bool))[])[],uint8))" $( cast call --rpc-url $ETH_RPC_URL $BLOBS " getBlob(string)" " rzghyg4z3p6vbz5jkgc75lk64fci7kieul65o6hk6xznx7lctkmq" )
10501050```
10511051
10521052This will return the following response:
10531053
10541054``` sh
1055- (6, " utiakbxaag7udhsriu6dm64cgr7bk4zahiudaaiwuk6rfv43r3rq" , [(" f0124 " , [(" foo" , (4825, 91225 [9.122e4], " cydkrslhbj4soqppzc66u6lzwxgjwgbhdlxmyeahytzqrh65qtjq" , 0x0000000000000000000000000000000000000000, false))])], 2)
1055+ (6, " utiakbxaag7udhsriu6dm64cgr7bk4zahiudaaiwuk6rfv43r3rq" , [(0x90F79bf6EB2c4f870365E785982E1f101E93b906 , [(" foo" , (4825, 91225 [9.122e4], " cydkrslhbj4soqppzc66u6lzwxgjwgbhdlxmyeahytzqrh65qtjq" , 0x0000000000000000000000000000000000000000, false))])], 2)
10561056```
10571057
10581058Which maps to the ` Blob ` struct:
@@ -1066,7 +1066,7 @@ struct Blob {
10661066}
10671067
10681068struct Subscriber {
1069- string subscriber; // f0124
1069+ address subscriber; // 0x90F79bf6EB2c4f870365E785982E1f101E93b906
10701070 SubscriptionGroup[] subscriptionGroup; // See `SubscriptionGroup` struct below
10711071}
10721072
@@ -1122,7 +1122,7 @@ cast abi-decode "getAddedBlobs(uint32)((string,(address,string,string)[])[])" $(
11221122This returns the values of added blobs, up to the ` size ` passed as the parameter:
11231123
11241124``` sh
1125- [(" rzghyg4z3p6vbz5jkgc75lk64fci7kieul65o6hk6xznx7lctkmq" , [(0x90F79bf6EB2c4f870365E785982E1f101E93b906, " Default " , " cydkrslhbj4soqppzc66u6lzwxgjwgbhdlxmyeahytzqrh65qtjq" )])]
1125+ [(" rzghyg4z3p6vbz5jkgc75lk64fci7kieul65o6hk6xznx7lctkmq" , [(0x90F79bf6EB2c4f870365E785982E1f101E93b906, " default " , " cydkrslhbj4soqppzc66u6lzwxgjwgbhdlxmyeahytzqrh65qtjq" )])]
11261126```
11271127
11281128Which maps to an array of the ` BlobTuple ` struct:
@@ -1135,7 +1135,7 @@ struct BlobTuple {
11351135
11361136struct BlobSourceInfo {
11371137 address subscriber; // 0x90F79bf6EB2c4f870365E785982E1f101E93b906
1138- string subscriptionId; // "Default "
1138+ string subscriptionId; // "default "
11391139 string source; // "cydkrslhbj4soqppzc66u6lzwxgjwgbhdlxmyeahytzqrh65qtjq"
11401140}
11411141```
@@ -1149,7 +1149,7 @@ cast abi-decode "getPendingBlobs(uint32)((string,(address,string,string)[])[])"
11491149This returns the values of pending blobs, up to the ` size ` passed as the parameter:
11501150
11511151``` sh
1152- [(" rzghyg4z3p6vbz5jkgc75lk64fci7kieul65o6hk6xznx7lctkmq" , [(0x90F79bf6EB2c4f870365E785982E1f101E93b906, " Default " , " cydkrslhbj4soqppzc66u6lzwxgjwgbhdlxmyeahytzqrh65qtjq" )])]
1152+ [(" rzghyg4z3p6vbz5jkgc75lk64fci7kieul65o6hk6xznx7lctkmq" , [(0x90F79bf6EB2c4f870365E785982E1f101E93b906, " default " , " cydkrslhbj4soqppzc66u6lzwxgjwgbhdlxmyeahytzqrh65qtjq" )])]
11531153```
11541154
11551155Which maps to an array of the ` BlobTuple ` struct:
@@ -1162,7 +1162,7 @@ struct BlobTuple {
11621162
11631163struct BlobSourceInfo {
11641164 address subscriber; // 0x90F79bf6EB2c4f870365E785982E1f101E93b906
1165- string subscriptionId; // "Default "
1165+ string subscriptionId; // "default "
11661166 string source; // "cydkrslhbj4soqppzc66u6lzwxgjwgbhdlxmyeahytzqrh65qtjq"
11671167}
11681168```
0 commit comments