File tree Expand file tree Collapse file tree 5 files changed +13
-11
lines changed Expand file tree Collapse file tree 5 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ message TxOutput {
11
11
Script script = 5 ; // Script associated with the output.
12
12
}
13
13
14
+ // TODO u5c: new type - https://github.com/utxorpc/spec/pull/167
15
+ message AddressArray {
16
+ repeated bytes items = 1 ;
17
+ }
18
+
14
19
// TODO u5c: replaced plutus_data with just bytes
15
20
message Datum {
16
21
bytes hash = 1 ; // Hash of this datum as seen on-chain
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ message TxoRef {
22
22
}
23
23
24
24
message TxoRefArray {
25
- // TODO u5c: changed to repeated
25
+ // TODO u5c: changed to repeated - https://github.com/utxorpc/spec/pull/167
26
26
repeated TxoRef items = 1 ;
27
27
}
28
28
@@ -44,11 +44,6 @@ message ReadParamsResponse {
44
44
ChainPoint ledger_tip = 2 ; // The chain point that represent the ledger current position.
45
45
}
46
46
47
- // TODO u5c: new type
48
- message AddressArray {
49
- repeated bytes items = 1 ;
50
- }
51
-
52
47
// An evenlope that holds an UTxO from any of compatible chains
53
48
message AnyUtxoData {
54
49
bytes native_bytes = 1 ; // Original bytes as defined by the chain
@@ -60,10 +55,10 @@ message AnyUtxoData {
60
55
61
56
// Request to get specific UTxOs
62
57
message ReadUtxosRequest {
63
- // TODO u5c: new oneof
58
+ // TODO u5c: new oneof - https://github.com/utxorpc/spec/pull/167
64
59
oneof query_args {
65
60
TxoRefArray txoRefs = 1 ; // Array of Tx Output references
66
- AddressArray addresses = 2 ; // Array of addresses
61
+ utxorpc.v1alpha.cardano. AddressArray cardano_addresses = 2 ; // Array of addresses
67
62
}
68
63
google.protobuf.FieldMask field_mask = 3 ; // Field mask to selectively return fields.
69
64
}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ message SubmitTxRequest {
14
14
repeated AnyChainTx tx = 1 ; // List of transactions to submit.
15
15
}
16
16
17
- // TODO u5c: new type
17
+ // TODO u5c: new type - https://github.com/utxorpc/spec/pull/163
18
18
message TxSubmitResult {
19
19
oneof result {
20
20
bytes ref = 1 ; // Transaction references.
@@ -23,7 +23,7 @@ message TxSubmitResult {
23
23
}
24
24
25
25
// Response containing references to the submitted transactions.
26
- // TODO u5c: changed type
26
+ // TODO u5c: changed type - https://github.com/utxorpc/spec/pull/163
27
27
message SubmitTxResponse {
28
28
repeated TxSubmitResult results = 1 ; // List of either transaction references or error messages.
29
29
}
Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ import Network.GRPC.Common.Protobuf
15
15
import Proto.Utxorpc.V1alpha.Cardano.Cardano
16
16
import Proto.Utxorpc.V1alpha.Cardano.Cardano_Fields hiding
17
17
( hash
18
+ , items
18
19
, values
20
+ , vec'items
19
21
, vec'values
20
22
)
21
23
import Proto.Utxorpc.V1alpha.Query.Query
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ readUtxosMethod req = do
65
65
if
66
66
| Just txoRefs <- req ^. # maybe'txoRefs ->
67
67
QueryUTxOByTxIn . fromList <$> mapM txoRefToTxIn (txoRefs ^. # items)
68
- | Just addressesProto <- req ^. # maybe'addresses ->
68
+ | Just addressesProto <- req ^. # maybe'cardanoAddresses ->
69
69
QueryUTxOByAddress . fromList <$> mapM readAddress (addressesProto ^. # items)
70
70
| otherwise -> pure QueryUTxOWhole
71
71
You can’t perform that action at this time.
0 commit comments