diff --git a/consensus/synchro/pb/message.pb.go b/consensus/synchro/pb/message.pb.go index 8aeb574b8..3a07e0dbb 100644 --- a/consensus/synchro/pb/message.pb.go +++ b/consensus/synchro/pb/message.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 -// protoc v3.19.4 +// protoc-gen-go v1.31.0 +// protoc v4.24.2 // source: consensus/synchro/pb/message.proto package msgpb diff --git a/core/block/pb/block.pb.go b/core/block/pb/block.pb.go index 9b58557b6..794f375ea 100644 --- a/core/block/pb/block.pb.go +++ b/core/block/pb/block.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 -// protoc v3.19.4 +// protoc-gen-go v1.31.0 +// protoc v4.24.2 // source: core/block/pb/block.proto package pb diff --git a/core/blockcache/block_cache.pb.go b/core/blockcache/block_cache.pb.go index 22cf509b2..c23e87c22 100644 --- a/core/blockcache/block_cache.pb.go +++ b/core/blockcache/block_cache.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 -// protoc v3.19.4 +// protoc-gen-go v1.31.0 +// protoc v4.24.2 // source: core/blockcache/block_cache.proto package blockcache diff --git a/core/contract/contract.pb.go b/core/contract/contract.pb.go index 532e56213..4af9ef168 100644 --- a/core/contract/contract.pb.go +++ b/core/contract/contract.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 -// protoc v3.19.4 +// protoc-gen-go v1.31.0 +// protoc v4.24.2 // source: core/contract/contract.proto package contract diff --git a/core/merkletree/merkle_tree.pb.go b/core/merkletree/merkle_tree.pb.go index 8241367a9..a52a1c299 100644 --- a/core/merkletree/merkle_tree.pb.go +++ b/core/merkletree/merkle_tree.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 -// protoc v3.19.4 +// protoc-gen-go v1.31.0 +// protoc v4.24.2 // source: core/merkletree/merkle_tree.proto package merkletree diff --git a/core/tx/pb/tx.pb.go b/core/tx/pb/tx.pb.go index 104064a0f..08a62baf6 100644 --- a/core/tx/pb/tx.pb.go +++ b/core/tx/pb/tx.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 -// protoc v3.19.4 +// protoc-gen-go v1.31.0 +// protoc v4.24.2 // source: core/tx/pb/tx.proto package txpb diff --git a/crypto/pb/signature.pb.go b/crypto/pb/signature.pb.go index 40bd164b3..f6abe4b3d 100644 --- a/crypto/pb/signature.pb.go +++ b/crypto/pb/signature.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 -// protoc v3.19.4 +// protoc-gen-go v1.31.0 +// protoc v4.24.2 // source: crypto/pb/signature.proto package pb diff --git a/db/wal/log.pb.go b/db/wal/log.pb.go index c4f03300b..6ec447953 100644 --- a/db/wal/log.pb.go +++ b/db/wal/log.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 -// protoc v3.19.4 +// protoc-gen-go v1.31.0 +// protoc v4.24.2 // source: db/wal/log.proto package wal diff --git a/p2p/pb/message.pb.go b/p2p/pb/message.pb.go index 9a3daafdf..ec7a932a3 100644 --- a/p2p/pb/message.pb.go +++ b/p2p/pb/message.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 -// protoc v3.19.4 +// protoc-gen-go v1.31.0 +// protoc v4.24.2 // source: p2p/pb/message.proto package p2pb diff --git a/rpc/pb/rpc.pb.go b/rpc/pb/rpc.pb.go index 451e82daf..8773d7b8f 100644 --- a/rpc/pb/rpc.pb.go +++ b/rpc/pb/rpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.0 -// protoc v3.19.4 +// protoc-gen-go v1.31.0 +// protoc v4.24.2 // source: rpc/pb/rpc.proto package rpcpb @@ -5868,9 +5868,9 @@ var file_rpc_pb_rpc_proto_rawDesc = []byte{ 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x79, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x79, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x22, - 0x16, 0x2f, 0x67, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x42, 0x79, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x65, 0x0a, 0x0a, 0x47, 0x65, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x3a, + 0x01, 0x2a, 0x22, 0x16, 0x2f, 0x67, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x42, 0x79, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x65, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x2e, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, @@ -5950,51 +5950,51 @@ var file_rpc_pb_rpc_proto_rawDesc = []byte{ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x18, 0x22, 0x13, 0x2f, 0x67, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x8d, 0x01, 0x0a, 0x17, 0x47, 0x65, + 0x18, 0x3a, 0x01, 0x2a, 0x22, 0x13, 0x2f, 0x67, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x8d, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x25, 0x2e, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f, 0x67, - 0x65, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x7d, 0x0a, 0x13, 0x4c, 0x69, 0x73, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x3a, 0x01, 0x2a, 0x22, + 0x18, 0x2f, 0x67, 0x65, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x7d, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x21, 0x2e, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x22, - 0x14, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x91, 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x3a, + 0x01, 0x2a, 0x22, 0x14, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x91, 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x26, 0x2e, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x22, 0x19, - 0x2f, 0x67, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x3a, 0x01, 0x2a, 0x12, 0x60, 0x0a, 0x0f, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, + 0x2a, 0x22, 0x19, 0x2f, 0x67, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x60, 0x0a, 0x0f, 0x53, 0x65, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x2e, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x12, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x0c, 0x22, 0x07, 0x2f, 0x73, 0x65, 0x6e, 0x64, 0x54, 0x78, 0x3a, 0x01, 0x2a, 0x12, 0x52, + 0x02, 0x0c, 0x3a, 0x01, 0x2a, 0x22, 0x07, 0x2f, 0x73, 0x65, 0x6e, 0x64, 0x54, 0x78, 0x12, 0x52, 0x0a, 0x0f, 0x45, 0x78, 0x65, 0x63, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x2e, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2e, 0x54, 0x78, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x22, 0x12, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0c, 0x22, 0x07, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x54, 0x78, 0x3a, - 0x01, 0x2a, 0x12, 0x57, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0c, 0x3a, 0x01, 0x2a, 0x22, 0x07, 0x2f, 0x65, 0x78, 0x65, 0x63, + 0x54, 0x78, 0x12, 0x57, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12, 0x17, 0x2e, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x15, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x22, 0x0a, 0x2f, 0x73, 0x75, 0x62, - 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x3a, 0x01, 0x2a, 0x30, 0x01, 0x12, 0x6e, 0x0a, 0x0d, 0x47, + 0x73, 0x65, 0x22, 0x15, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x3a, 0x01, 0x2a, 0x22, 0x0a, 0x2f, + 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x30, 0x01, 0x12, 0x6e, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x56, 0x6f, 0x74, 0x65, 0x72, 0x42, 0x6f, 0x6e, 0x75, 0x73, 0x12, 0x18, 0x2e, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2e, 0x56, @@ -6023,8 +6023,8 @@ var file_rpc_pb_rpc_proto_rawDesc = []byte{ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x78, 0x73, 0x42, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x1b, 0x22, 0x16, 0x2f, 0x67, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x78, 0x73, - 0x42, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x3a, 0x01, 0x2a, 0x42, 0x2f, 0x5a, + 0x02, 0x1b, 0x3a, 0x01, 0x2a, 0x22, 0x16, 0x2f, 0x67, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x54, 0x78, 0x73, 0x42, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6f, 0x73, 0x74, 0x2d, 0x6f, 0x66, 0x66, 0x69, 0x63, 0x69, 0x61, 0x6c, 0x2f, 0x67, 0x6f, 0x2d, 0x69, 0x6f, 0x73, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x72, 0x70, 0x63, 0x70, 0x62, 0x62, 0x06, diff --git a/rpc/pb/rpc.pb.gw.go b/rpc/pb/rpc.pb.gw.go index a453a4ea3..1ab2d5d79 100644 --- a/rpc/pb/rpc.pb.gw.go +++ b/rpc/pb/rpc.pb.gw.go @@ -1605,20 +1605,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetNodeInfo", runtime.WithHTTPPathPattern("/getNodeInfo")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetNodeInfo", runtime.WithHTTPPathPattern("/getNodeInfo")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetNodeInfo_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetNodeInfo_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetNodeInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetNodeInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1629,20 +1630,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetChainInfo", runtime.WithHTTPPathPattern("/getChainInfo")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetChainInfo", runtime.WithHTTPPathPattern("/getChainInfo")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetChainInfo_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetChainInfo_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetChainInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetChainInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1653,20 +1655,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetRAMInfo", runtime.WithHTTPPathPattern("/getRAMInfo")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetRAMInfo", runtime.WithHTTPPathPattern("/getRAMInfo")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetRAMInfo_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetRAMInfo_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetRAMInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetRAMInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1677,20 +1680,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetTxByHash", runtime.WithHTTPPathPattern("/getTxByHash/{hash}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetTxByHash", runtime.WithHTTPPathPattern("/getTxByHash/{hash}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetTxByHash_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetTxByHash_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetTxByHash_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetTxByHash_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1701,20 +1705,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetTxReceiptByTxHash", runtime.WithHTTPPathPattern("/getTxReceiptByTxHash/{hash}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetTxReceiptByTxHash", runtime.WithHTTPPathPattern("/getTxReceiptByTxHash/{hash}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetTxReceiptByTxHash_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetTxReceiptByTxHash_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetTxReceiptByTxHash_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetTxReceiptByTxHash_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1725,20 +1730,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetBlockByHash", runtime.WithHTTPPathPattern("/getBlockByHash/{hash}/{complete}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetBlockByHash", runtime.WithHTTPPathPattern("/getBlockByHash/{hash}/{complete}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetBlockByHash_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetBlockByHash_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetBlockByHash_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetBlockByHash_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1749,20 +1755,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetBlockByNumber", runtime.WithHTTPPathPattern("/getBlockByNumber/{number}/{complete}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetBlockByNumber", runtime.WithHTTPPathPattern("/getBlockByNumber/{number}/{complete}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetBlockByNumber_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetBlockByNumber_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetBlockByNumber_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetBlockByNumber_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1773,20 +1780,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetRawBlockByNumber", runtime.WithHTTPPathPattern("/getRawBlockByNumber/{number}/{complete}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetRawBlockByNumber", runtime.WithHTTPPathPattern("/getRawBlockByNumber/{number}/{complete}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetRawBlockByNumber_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetRawBlockByNumber_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetRawBlockByNumber_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetRawBlockByNumber_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1797,20 +1805,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetBlockHeaderByRange", runtime.WithHTTPPathPattern("/getBlockHeaderByRange")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetBlockHeaderByRange", runtime.WithHTTPPathPattern("/getBlockHeaderByRange")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetBlockHeaderByRange_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetBlockHeaderByRange_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetBlockHeaderByRange_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetBlockHeaderByRange_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1821,20 +1830,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetAccount", runtime.WithHTTPPathPattern("/getAccount/{name}/{by_longest_chain}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetAccount", runtime.WithHTTPPathPattern("/getAccount/{name}/{by_longest_chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetAccount_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetAccount_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetAccount_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetAccount_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1845,20 +1855,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetTokenBalance", runtime.WithHTTPPathPattern("/getTokenBalance/{account}/{token}/{by_longest_chain}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetTokenBalance", runtime.WithHTTPPathPattern("/getTokenBalance/{account}/{token}/{by_longest_chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetTokenBalance_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetTokenBalance_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetTokenBalance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetTokenBalance_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1869,20 +1880,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetToken721Balance", runtime.WithHTTPPathPattern("/getToken721Balance/{account}/{token}/{by_longest_chain}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetToken721Balance", runtime.WithHTTPPathPattern("/getToken721Balance/{account}/{token}/{by_longest_chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetToken721Balance_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetToken721Balance_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetToken721Balance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetToken721Balance_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1893,20 +1905,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetToken721Metadata", runtime.WithHTTPPathPattern("/getToken721Metadata/{token}/{token_id}/{by_longest_chain}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetToken721Metadata", runtime.WithHTTPPathPattern("/getToken721Metadata/{token}/{token_id}/{by_longest_chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetToken721Metadata_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetToken721Metadata_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetToken721Metadata_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetToken721Metadata_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1917,20 +1930,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetToken721Owner", runtime.WithHTTPPathPattern("/getToken721Owner/{token}/{token_id}/{by_longest_chain}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetToken721Owner", runtime.WithHTTPPathPattern("/getToken721Owner/{token}/{token_id}/{by_longest_chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetToken721Owner_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetToken721Owner_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetToken721Owner_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetToken721Owner_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1941,20 +1955,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetGasRatio", runtime.WithHTTPPathPattern("/getGasRatio")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetGasRatio", runtime.WithHTTPPathPattern("/getGasRatio")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetGasRatio_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetGasRatio_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetGasRatio_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetGasRatio_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1965,20 +1980,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetProducerVoteInfo", runtime.WithHTTPPathPattern("/getProducerVoteInfo/{account}/{by_longest_chain}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetProducerVoteInfo", runtime.WithHTTPPathPattern("/getProducerVoteInfo/{account}/{by_longest_chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetProducerVoteInfo_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetProducerVoteInfo_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetProducerVoteInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetProducerVoteInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1989,20 +2005,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetContract", runtime.WithHTTPPathPattern("/getContract/{id}/{by_longest_chain}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetContract", runtime.WithHTTPPathPattern("/getContract/{id}/{by_longest_chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetContract_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetContract_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetContract_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetContract_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2013,20 +2030,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetContractVote", runtime.WithHTTPPathPattern("/getContractVote/{id}/{by_longest_chain}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetContractVote", runtime.WithHTTPPathPattern("/getContractVote/{id}/{by_longest_chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetContractVote_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetContractVote_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetContractVote_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetContractVote_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2037,20 +2055,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetContractStorage", runtime.WithHTTPPathPattern("/getContractStorage")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetContractStorage", runtime.WithHTTPPathPattern("/getContractStorage")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetContractStorage_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetContractStorage_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetContractStorage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetContractStorage_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2061,20 +2080,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetBatchContractStorage", runtime.WithHTTPPathPattern("/getBatchContractStorage")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetBatchContractStorage", runtime.WithHTTPPathPattern("/getBatchContractStorage")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetBatchContractStorage_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetBatchContractStorage_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetBatchContractStorage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetBatchContractStorage_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2085,20 +2105,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/ListContractStorage", runtime.WithHTTPPathPattern("/listContractStorage")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/ListContractStorage", runtime.WithHTTPPathPattern("/listContractStorage")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_ListContractStorage_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_ListContractStorage_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_ListContractStorage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_ListContractStorage_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2109,20 +2130,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetContractStorageFields", runtime.WithHTTPPathPattern("/getContractStorageFields")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetContractStorageFields", runtime.WithHTTPPathPattern("/getContractStorageFields")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetContractStorageFields_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetContractStorageFields_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetContractStorageFields_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetContractStorageFields_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2133,20 +2155,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/SendTransaction", runtime.WithHTTPPathPattern("/sendTx")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/SendTransaction", runtime.WithHTTPPathPattern("/sendTx")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_SendTransaction_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_SendTransaction_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_SendTransaction_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_SendTransaction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2157,20 +2180,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/ExecTransaction", runtime.WithHTTPPathPattern("/execTx")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/ExecTransaction", runtime.WithHTTPPathPattern("/execTx")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_ExecTransaction_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_ExecTransaction_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_ExecTransaction_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_ExecTransaction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2188,20 +2212,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetVoterBonus", runtime.WithHTTPPathPattern("/getVoterBonus/{name}/{by_longest_chain}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetVoterBonus", runtime.WithHTTPPathPattern("/getVoterBonus/{name}/{by_longest_chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetVoterBonus_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetVoterBonus_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetVoterBonus_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetVoterBonus_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2212,20 +2237,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetCandidateBonus", runtime.WithHTTPPathPattern("/getCandidateBonus/{name}/{by_longest_chain}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetCandidateBonus", runtime.WithHTTPPathPattern("/getCandidateBonus/{name}/{by_longest_chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetCandidateBonus_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetCandidateBonus_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetCandidateBonus_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetCandidateBonus_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2236,20 +2262,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetTokenInfo", runtime.WithHTTPPathPattern("/getTokenInfo/{symbol}/{by_longest_chain}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetTokenInfo", runtime.WithHTTPPathPattern("/getTokenInfo/{symbol}/{by_longest_chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetTokenInfo_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetTokenInfo_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetTokenInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetTokenInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2260,20 +2287,21 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetBlockTxsByContract", runtime.WithHTTPPathPattern("/getBlockTxsByContract")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rpcpb.ApiService/GetBlockTxsByContract", runtime.WithHTTPPathPattern("/getBlockTxsByContract")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_ApiService_GetBlockTxsByContract_0(ctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_ApiService_GetBlockTxsByContract_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetBlockTxsByContract_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetBlockTxsByContract_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2283,7 +2311,7 @@ func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, // RegisterApiServiceHandlerFromEndpoint is same as RegisterApiServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterApiServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } @@ -2323,19 +2351,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetNodeInfo", runtime.WithHTTPPathPattern("/getNodeInfo")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetNodeInfo", runtime.WithHTTPPathPattern("/getNodeInfo")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetNodeInfo_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetNodeInfo_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetNodeInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetNodeInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2344,19 +2373,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetChainInfo", runtime.WithHTTPPathPattern("/getChainInfo")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetChainInfo", runtime.WithHTTPPathPattern("/getChainInfo")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetChainInfo_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetChainInfo_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetChainInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetChainInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2365,19 +2395,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetRAMInfo", runtime.WithHTTPPathPattern("/getRAMInfo")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetRAMInfo", runtime.WithHTTPPathPattern("/getRAMInfo")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetRAMInfo_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetRAMInfo_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetRAMInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetRAMInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2386,19 +2417,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetTxByHash", runtime.WithHTTPPathPattern("/getTxByHash/{hash}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetTxByHash", runtime.WithHTTPPathPattern("/getTxByHash/{hash}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetTxByHash_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetTxByHash_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetTxByHash_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetTxByHash_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2407,19 +2439,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetTxReceiptByTxHash", runtime.WithHTTPPathPattern("/getTxReceiptByTxHash/{hash}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetTxReceiptByTxHash", runtime.WithHTTPPathPattern("/getTxReceiptByTxHash/{hash}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetTxReceiptByTxHash_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetTxReceiptByTxHash_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetTxReceiptByTxHash_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetTxReceiptByTxHash_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2428,19 +2461,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetBlockByHash", runtime.WithHTTPPathPattern("/getBlockByHash/{hash}/{complete}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetBlockByHash", runtime.WithHTTPPathPattern("/getBlockByHash/{hash}/{complete}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetBlockByHash_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetBlockByHash_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetBlockByHash_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetBlockByHash_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2449,19 +2483,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetBlockByNumber", runtime.WithHTTPPathPattern("/getBlockByNumber/{number}/{complete}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetBlockByNumber", runtime.WithHTTPPathPattern("/getBlockByNumber/{number}/{complete}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetBlockByNumber_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetBlockByNumber_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetBlockByNumber_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetBlockByNumber_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2470,19 +2505,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetRawBlockByNumber", runtime.WithHTTPPathPattern("/getRawBlockByNumber/{number}/{complete}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetRawBlockByNumber", runtime.WithHTTPPathPattern("/getRawBlockByNumber/{number}/{complete}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetRawBlockByNumber_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetRawBlockByNumber_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetRawBlockByNumber_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetRawBlockByNumber_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2491,19 +2527,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetBlockHeaderByRange", runtime.WithHTTPPathPattern("/getBlockHeaderByRange")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetBlockHeaderByRange", runtime.WithHTTPPathPattern("/getBlockHeaderByRange")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetBlockHeaderByRange_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetBlockHeaderByRange_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetBlockHeaderByRange_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetBlockHeaderByRange_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2512,19 +2549,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetAccount", runtime.WithHTTPPathPattern("/getAccount/{name}/{by_longest_chain}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetAccount", runtime.WithHTTPPathPattern("/getAccount/{name}/{by_longest_chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetAccount_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetAccount_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetAccount_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetAccount_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2533,19 +2571,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetTokenBalance", runtime.WithHTTPPathPattern("/getTokenBalance/{account}/{token}/{by_longest_chain}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetTokenBalance", runtime.WithHTTPPathPattern("/getTokenBalance/{account}/{token}/{by_longest_chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetTokenBalance_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetTokenBalance_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetTokenBalance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetTokenBalance_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2554,19 +2593,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetToken721Balance", runtime.WithHTTPPathPattern("/getToken721Balance/{account}/{token}/{by_longest_chain}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetToken721Balance", runtime.WithHTTPPathPattern("/getToken721Balance/{account}/{token}/{by_longest_chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetToken721Balance_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetToken721Balance_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetToken721Balance_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetToken721Balance_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2575,19 +2615,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetToken721Metadata", runtime.WithHTTPPathPattern("/getToken721Metadata/{token}/{token_id}/{by_longest_chain}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetToken721Metadata", runtime.WithHTTPPathPattern("/getToken721Metadata/{token}/{token_id}/{by_longest_chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetToken721Metadata_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetToken721Metadata_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetToken721Metadata_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetToken721Metadata_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2596,19 +2637,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetToken721Owner", runtime.WithHTTPPathPattern("/getToken721Owner/{token}/{token_id}/{by_longest_chain}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetToken721Owner", runtime.WithHTTPPathPattern("/getToken721Owner/{token}/{token_id}/{by_longest_chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetToken721Owner_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetToken721Owner_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetToken721Owner_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetToken721Owner_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2617,19 +2659,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetGasRatio", runtime.WithHTTPPathPattern("/getGasRatio")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetGasRatio", runtime.WithHTTPPathPattern("/getGasRatio")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetGasRatio_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetGasRatio_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetGasRatio_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetGasRatio_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2638,19 +2681,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetProducerVoteInfo", runtime.WithHTTPPathPattern("/getProducerVoteInfo/{account}/{by_longest_chain}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetProducerVoteInfo", runtime.WithHTTPPathPattern("/getProducerVoteInfo/{account}/{by_longest_chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetProducerVoteInfo_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetProducerVoteInfo_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetProducerVoteInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetProducerVoteInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2659,19 +2703,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetContract", runtime.WithHTTPPathPattern("/getContract/{id}/{by_longest_chain}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetContract", runtime.WithHTTPPathPattern("/getContract/{id}/{by_longest_chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetContract_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetContract_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetContract_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetContract_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2680,19 +2725,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetContractVote", runtime.WithHTTPPathPattern("/getContractVote/{id}/{by_longest_chain}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetContractVote", runtime.WithHTTPPathPattern("/getContractVote/{id}/{by_longest_chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetContractVote_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetContractVote_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetContractVote_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetContractVote_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2701,19 +2747,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetContractStorage", runtime.WithHTTPPathPattern("/getContractStorage")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetContractStorage", runtime.WithHTTPPathPattern("/getContractStorage")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetContractStorage_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetContractStorage_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetContractStorage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetContractStorage_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2722,19 +2769,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetBatchContractStorage", runtime.WithHTTPPathPattern("/getBatchContractStorage")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetBatchContractStorage", runtime.WithHTTPPathPattern("/getBatchContractStorage")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetBatchContractStorage_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetBatchContractStorage_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetBatchContractStorage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetBatchContractStorage_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2743,19 +2791,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/ListContractStorage", runtime.WithHTTPPathPattern("/listContractStorage")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/ListContractStorage", runtime.WithHTTPPathPattern("/listContractStorage")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_ListContractStorage_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_ListContractStorage_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_ListContractStorage_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_ListContractStorage_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2764,19 +2813,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetContractStorageFields", runtime.WithHTTPPathPattern("/getContractStorageFields")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetContractStorageFields", runtime.WithHTTPPathPattern("/getContractStorageFields")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetContractStorageFields_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetContractStorageFields_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetContractStorageFields_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetContractStorageFields_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2785,19 +2835,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/SendTransaction", runtime.WithHTTPPathPattern("/sendTx")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/SendTransaction", runtime.WithHTTPPathPattern("/sendTx")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_SendTransaction_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_SendTransaction_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_SendTransaction_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_SendTransaction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2806,19 +2857,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/ExecTransaction", runtime.WithHTTPPathPattern("/execTx")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/ExecTransaction", runtime.WithHTTPPathPattern("/execTx")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_ExecTransaction_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_ExecTransaction_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_ExecTransaction_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_ExecTransaction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2827,19 +2879,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/Subscribe", runtime.WithHTTPPathPattern("/subscribe")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/Subscribe", runtime.WithHTTPPathPattern("/subscribe")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_Subscribe_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_Subscribe_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_Subscribe_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) + forward_ApiService_Subscribe_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) }) @@ -2848,19 +2901,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetVoterBonus", runtime.WithHTTPPathPattern("/getVoterBonus/{name}/{by_longest_chain}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetVoterBonus", runtime.WithHTTPPathPattern("/getVoterBonus/{name}/{by_longest_chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetVoterBonus_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetVoterBonus_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetVoterBonus_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetVoterBonus_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2869,19 +2923,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetCandidateBonus", runtime.WithHTTPPathPattern("/getCandidateBonus/{name}/{by_longest_chain}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetCandidateBonus", runtime.WithHTTPPathPattern("/getCandidateBonus/{name}/{by_longest_chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetCandidateBonus_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetCandidateBonus_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetCandidateBonus_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetCandidateBonus_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2890,19 +2945,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetTokenInfo", runtime.WithHTTPPathPattern("/getTokenInfo/{symbol}/{by_longest_chain}")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetTokenInfo", runtime.WithHTTPPathPattern("/getTokenInfo/{symbol}/{by_longest_chain}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetTokenInfo_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetTokenInfo_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetTokenInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetTokenInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -2911,19 +2967,20 @@ func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error - ctx, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetBlockTxsByContract", runtime.WithHTTPPathPattern("/getBlockTxsByContract")) + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rpcpb.ApiService/GetBlockTxsByContract", runtime.WithHTTPPathPattern("/getBlockTxsByContract")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_ApiService_GetBlockTxsByContract_0(ctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) + resp, md, err := request_ApiService_GetBlockTxsByContract_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_ApiService_GetBlockTxsByContract_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_ApiService_GetBlockTxsByContract_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) diff --git a/rpc/pb/rpc.swagger.json b/rpc/pb/rpc.swagger.json index 6e37e564b..be02523fa 100644 --- a/rpc/pb/rpc.swagger.json +++ b/rpc/pb/rpc.swagger.json @@ -37,6 +37,7 @@ "parameters": [ { "name": "body", + "description": "The message defines the transaction request.", "in": "body", "required": true, "schema": { @@ -109,6 +110,7 @@ "parameters": [ { "name": "body", + "description": "The message defines get batch contract storage request.", "in": "body", "required": true, "schema": { @@ -386,6 +388,7 @@ "parameters": [ { "name": "body", + "description": "The message defines get contract storage request.", "in": "body", "required": true, "schema": { @@ -419,6 +422,7 @@ "parameters": [ { "name": "body", + "description": "The message defines get contract storage request.", "in": "body", "required": true, "schema": { @@ -995,6 +999,7 @@ "parameters": [ { "name": "body", + "description": "The message defines the transaction request.", "in": "body", "required": true, "schema": { @@ -1037,6 +1042,7 @@ "parameters": [ { "name": "body", + "description": "The message defines subscribe request.", "in": "body", "required": true, "schema": { @@ -1080,6 +1086,7 @@ "pledgedInfo": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/AccountPledgeInfo" }, "title": "pledge information" @@ -1097,6 +1104,7 @@ "items": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/AccountItem" }, "title": "permission items" @@ -1144,6 +1152,7 @@ "items": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/AccountItem" }, "title": "permission items" @@ -1284,12 +1293,14 @@ "txs": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/txpbTx" } }, "receipts": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/txpbTxReceipt" } }, @@ -1380,6 +1391,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } @@ -1431,6 +1443,7 @@ "frozenBalances": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/rpcpbFrozenBalance" }, "title": "frozen balance information" @@ -1438,6 +1451,7 @@ "voteInfos": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/rpcpbVoteInfo" }, "title": "vote information" @@ -1536,6 +1550,7 @@ "transactions": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/rpcpbTransaction" }, "title": "block transactions" @@ -1549,6 +1564,7 @@ "blockList": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/blockpbBlock" } } @@ -1615,6 +1631,7 @@ "txList": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/rpcpbTransaction" }, "title": "transaction" @@ -1627,6 +1644,7 @@ "blocktxList": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/rpcpbBlockTxs" } } @@ -1737,6 +1755,7 @@ "abis": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/rpcpbContractABI" }, "title": "contract abis" @@ -1761,6 +1780,7 @@ "amountLimit": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/rpcpbAmountLimit" }, "title": "abi amount limt" @@ -1774,6 +1794,7 @@ "voteInfos": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/rpcpbVoteInfo" }, "title": "vote information" @@ -1841,6 +1862,7 @@ "keyFields": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/GetBatchContractStorageRequestKeyField" }, "title": "the batch query" @@ -2075,6 +2097,7 @@ "frozenBalances": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/rpcpbFrozenBalance" }, "title": "frozen balance information" @@ -2119,6 +2142,7 @@ "datas": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/ListContractStorageResponseData" } }, @@ -2391,6 +2415,7 @@ "actions": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/rpcpbAction" }, "title": "action list" @@ -2413,6 +2438,7 @@ "amountLimit": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/rpcpbAmountLimit" }, "title": "amount limit" @@ -2460,6 +2486,7 @@ "actions": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/rpcpbAction" }, "title": "action list" @@ -2467,6 +2494,7 @@ "amountLimit": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/rpcpbAmountLimit" }, "title": "amount limit" @@ -2481,6 +2509,7 @@ "signatures": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/rpcpbSignature" }, "title": "signatures of signers" @@ -2492,6 +2521,7 @@ "publisherSigs": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/rpcpbSignature" }, "title": "signatures of publisher" @@ -2566,6 +2596,7 @@ "receipts": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/rpcpbTxReceiptReceipt" }, "title": "transaction receipts" @@ -2702,6 +2733,7 @@ "actions": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/txpbAction" } }, @@ -2714,6 +2746,7 @@ "signs": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/sigpbSignature" } }, @@ -2723,6 +2756,7 @@ "publishSigns": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/sigpbSignature" } }, @@ -2741,6 +2775,7 @@ "amountLimit": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/contractAmount" } }, @@ -2780,6 +2815,7 @@ "receipts": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/txpbReceipt" } } diff --git a/rpc/pb/rpc_grpc.pb.go b/rpc/pb/rpc_grpc.pb.go index 8d0979b7e..97812c060 100644 --- a/rpc/pb/rpc_grpc.pb.go +++ b/rpc/pb/rpc_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.19.4 +// - protoc-gen-go-grpc v1.3.0 +// - protoc v4.24.2 // source: rpc/pb/rpc.proto package rpcpb @@ -18,6 +18,38 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + ApiService_GetNodeInfo_FullMethodName = "/rpcpb.ApiService/GetNodeInfo" + ApiService_GetChainInfo_FullMethodName = "/rpcpb.ApiService/GetChainInfo" + ApiService_GetRAMInfo_FullMethodName = "/rpcpb.ApiService/GetRAMInfo" + ApiService_GetTxByHash_FullMethodName = "/rpcpb.ApiService/GetTxByHash" + ApiService_GetTxReceiptByTxHash_FullMethodName = "/rpcpb.ApiService/GetTxReceiptByTxHash" + ApiService_GetBlockByHash_FullMethodName = "/rpcpb.ApiService/GetBlockByHash" + ApiService_GetBlockByNumber_FullMethodName = "/rpcpb.ApiService/GetBlockByNumber" + ApiService_GetRawBlockByNumber_FullMethodName = "/rpcpb.ApiService/GetRawBlockByNumber" + ApiService_GetBlockHeaderByRange_FullMethodName = "/rpcpb.ApiService/GetBlockHeaderByRange" + ApiService_GetAccount_FullMethodName = "/rpcpb.ApiService/GetAccount" + ApiService_GetTokenBalance_FullMethodName = "/rpcpb.ApiService/GetTokenBalance" + ApiService_GetToken721Balance_FullMethodName = "/rpcpb.ApiService/GetToken721Balance" + ApiService_GetToken721Metadata_FullMethodName = "/rpcpb.ApiService/GetToken721Metadata" + ApiService_GetToken721Owner_FullMethodName = "/rpcpb.ApiService/GetToken721Owner" + ApiService_GetGasRatio_FullMethodName = "/rpcpb.ApiService/GetGasRatio" + ApiService_GetProducerVoteInfo_FullMethodName = "/rpcpb.ApiService/GetProducerVoteInfo" + ApiService_GetContract_FullMethodName = "/rpcpb.ApiService/GetContract" + ApiService_GetContractVote_FullMethodName = "/rpcpb.ApiService/GetContractVote" + ApiService_GetContractStorage_FullMethodName = "/rpcpb.ApiService/GetContractStorage" + ApiService_GetBatchContractStorage_FullMethodName = "/rpcpb.ApiService/GetBatchContractStorage" + ApiService_ListContractStorage_FullMethodName = "/rpcpb.ApiService/ListContractStorage" + ApiService_GetContractStorageFields_FullMethodName = "/rpcpb.ApiService/GetContractStorageFields" + ApiService_SendTransaction_FullMethodName = "/rpcpb.ApiService/SendTransaction" + ApiService_ExecTransaction_FullMethodName = "/rpcpb.ApiService/ExecTransaction" + ApiService_Subscribe_FullMethodName = "/rpcpb.ApiService/Subscribe" + ApiService_GetVoterBonus_FullMethodName = "/rpcpb.ApiService/GetVoterBonus" + ApiService_GetCandidateBonus_FullMethodName = "/rpcpb.ApiService/GetCandidateBonus" + ApiService_GetTokenInfo_FullMethodName = "/rpcpb.ApiService/GetTokenInfo" + ApiService_GetBlockTxsByContract_FullMethodName = "/rpcpb.ApiService/GetBlockTxsByContract" +) + // ApiServiceClient is the client API for ApiService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -87,7 +119,7 @@ func NewApiServiceClient(cc grpc.ClientConnInterface) ApiServiceClient { func (c *apiServiceClient) GetNodeInfo(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*NodeInfoResponse, error) { out := new(NodeInfoResponse) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetNodeInfo", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetNodeInfo_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -96,7 +128,7 @@ func (c *apiServiceClient) GetNodeInfo(ctx context.Context, in *EmptyRequest, op func (c *apiServiceClient) GetChainInfo(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ChainInfoResponse, error) { out := new(ChainInfoResponse) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetChainInfo", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetChainInfo_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -105,7 +137,7 @@ func (c *apiServiceClient) GetChainInfo(ctx context.Context, in *EmptyRequest, o func (c *apiServiceClient) GetRAMInfo(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*RAMInfoResponse, error) { out := new(RAMInfoResponse) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetRAMInfo", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetRAMInfo_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -114,7 +146,7 @@ func (c *apiServiceClient) GetRAMInfo(ctx context.Context, in *EmptyRequest, opt func (c *apiServiceClient) GetTxByHash(ctx context.Context, in *TxHashRequest, opts ...grpc.CallOption) (*TransactionResponse, error) { out := new(TransactionResponse) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetTxByHash", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetTxByHash_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -123,7 +155,7 @@ func (c *apiServiceClient) GetTxByHash(ctx context.Context, in *TxHashRequest, o func (c *apiServiceClient) GetTxReceiptByTxHash(ctx context.Context, in *TxHashRequest, opts ...grpc.CallOption) (*TxReceipt, error) { out := new(TxReceipt) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetTxReceiptByTxHash", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetTxReceiptByTxHash_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -132,7 +164,7 @@ func (c *apiServiceClient) GetTxReceiptByTxHash(ctx context.Context, in *TxHashR func (c *apiServiceClient) GetBlockByHash(ctx context.Context, in *GetBlockByHashRequest, opts ...grpc.CallOption) (*BlockResponse, error) { out := new(BlockResponse) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetBlockByHash", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetBlockByHash_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -141,7 +173,7 @@ func (c *apiServiceClient) GetBlockByHash(ctx context.Context, in *GetBlockByHas func (c *apiServiceClient) GetBlockByNumber(ctx context.Context, in *GetBlockByNumberRequest, opts ...grpc.CallOption) (*BlockResponse, error) { out := new(BlockResponse) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetBlockByNumber", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetBlockByNumber_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -150,7 +182,7 @@ func (c *apiServiceClient) GetBlockByNumber(ctx context.Context, in *GetBlockByN func (c *apiServiceClient) GetRawBlockByNumber(ctx context.Context, in *GetBlockByNumberRequest, opts ...grpc.CallOption) (*RawBlockResponse, error) { out := new(RawBlockResponse) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetRawBlockByNumber", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetRawBlockByNumber_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -159,7 +191,7 @@ func (c *apiServiceClient) GetRawBlockByNumber(ctx context.Context, in *GetBlock func (c *apiServiceClient) GetBlockHeaderByRange(ctx context.Context, in *GetBlockHeaderByRangeRequest, opts ...grpc.CallOption) (*BlockHeaderByRangeResponse, error) { out := new(BlockHeaderByRangeResponse) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetBlockHeaderByRange", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetBlockHeaderByRange_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -168,7 +200,7 @@ func (c *apiServiceClient) GetBlockHeaderByRange(ctx context.Context, in *GetBlo func (c *apiServiceClient) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*Account, error) { out := new(Account) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetAccount", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetAccount_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -177,7 +209,7 @@ func (c *apiServiceClient) GetAccount(ctx context.Context, in *GetAccountRequest func (c *apiServiceClient) GetTokenBalance(ctx context.Context, in *GetTokenBalanceRequest, opts ...grpc.CallOption) (*GetTokenBalanceResponse, error) { out := new(GetTokenBalanceResponse) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetTokenBalance", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetTokenBalance_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -186,7 +218,7 @@ func (c *apiServiceClient) GetTokenBalance(ctx context.Context, in *GetTokenBala func (c *apiServiceClient) GetToken721Balance(ctx context.Context, in *GetTokenBalanceRequest, opts ...grpc.CallOption) (*GetToken721BalanceResponse, error) { out := new(GetToken721BalanceResponse) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetToken721Balance", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetToken721Balance_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -195,7 +227,7 @@ func (c *apiServiceClient) GetToken721Balance(ctx context.Context, in *GetTokenB func (c *apiServiceClient) GetToken721Metadata(ctx context.Context, in *GetToken721InfoRequest, opts ...grpc.CallOption) (*GetToken721MetadataResponse, error) { out := new(GetToken721MetadataResponse) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetToken721Metadata", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetToken721Metadata_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -204,7 +236,7 @@ func (c *apiServiceClient) GetToken721Metadata(ctx context.Context, in *GetToken func (c *apiServiceClient) GetToken721Owner(ctx context.Context, in *GetToken721InfoRequest, opts ...grpc.CallOption) (*GetToken721OwnerResponse, error) { out := new(GetToken721OwnerResponse) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetToken721Owner", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetToken721Owner_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -213,7 +245,7 @@ func (c *apiServiceClient) GetToken721Owner(ctx context.Context, in *GetToken721 func (c *apiServiceClient) GetGasRatio(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*GasRatioResponse, error) { out := new(GasRatioResponse) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetGasRatio", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetGasRatio_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -222,7 +254,7 @@ func (c *apiServiceClient) GetGasRatio(ctx context.Context, in *EmptyRequest, op func (c *apiServiceClient) GetProducerVoteInfo(ctx context.Context, in *GetProducerVoteInfoRequest, opts ...grpc.CallOption) (*GetProducerVoteInfoResponse, error) { out := new(GetProducerVoteInfoResponse) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetProducerVoteInfo", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetProducerVoteInfo_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -231,7 +263,7 @@ func (c *apiServiceClient) GetProducerVoteInfo(ctx context.Context, in *GetProdu func (c *apiServiceClient) GetContract(ctx context.Context, in *GetContractRequest, opts ...grpc.CallOption) (*Contract, error) { out := new(Contract) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetContract", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetContract_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -240,7 +272,7 @@ func (c *apiServiceClient) GetContract(ctx context.Context, in *GetContractReque func (c *apiServiceClient) GetContractVote(ctx context.Context, in *GetContractRequest, opts ...grpc.CallOption) (*ContractVote, error) { out := new(ContractVote) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetContractVote", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetContractVote_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -249,7 +281,7 @@ func (c *apiServiceClient) GetContractVote(ctx context.Context, in *GetContractR func (c *apiServiceClient) GetContractStorage(ctx context.Context, in *GetContractStorageRequest, opts ...grpc.CallOption) (*GetContractStorageResponse, error) { out := new(GetContractStorageResponse) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetContractStorage", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetContractStorage_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -258,7 +290,7 @@ func (c *apiServiceClient) GetContractStorage(ctx context.Context, in *GetContra func (c *apiServiceClient) GetBatchContractStorage(ctx context.Context, in *GetBatchContractStorageRequest, opts ...grpc.CallOption) (*GetBatchContractStorageResponse, error) { out := new(GetBatchContractStorageResponse) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetBatchContractStorage", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetBatchContractStorage_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -267,7 +299,7 @@ func (c *apiServiceClient) GetBatchContractStorage(ctx context.Context, in *GetB func (c *apiServiceClient) ListContractStorage(ctx context.Context, in *ListContractStorageRequest, opts ...grpc.CallOption) (*ListContractStorageResponse, error) { out := new(ListContractStorageResponse) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/ListContractStorage", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_ListContractStorage_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -276,7 +308,7 @@ func (c *apiServiceClient) ListContractStorage(ctx context.Context, in *ListCont func (c *apiServiceClient) GetContractStorageFields(ctx context.Context, in *GetContractStorageFieldsRequest, opts ...grpc.CallOption) (*GetContractStorageFieldsResponse, error) { out := new(GetContractStorageFieldsResponse) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetContractStorageFields", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetContractStorageFields_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -285,7 +317,7 @@ func (c *apiServiceClient) GetContractStorageFields(ctx context.Context, in *Get func (c *apiServiceClient) SendTransaction(ctx context.Context, in *TransactionRequest, opts ...grpc.CallOption) (*SendTransactionResponse, error) { out := new(SendTransactionResponse) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/SendTransaction", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_SendTransaction_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -294,7 +326,7 @@ func (c *apiServiceClient) SendTransaction(ctx context.Context, in *TransactionR func (c *apiServiceClient) ExecTransaction(ctx context.Context, in *TransactionRequest, opts ...grpc.CallOption) (*TxReceipt, error) { out := new(TxReceipt) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/ExecTransaction", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_ExecTransaction_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -302,7 +334,7 @@ func (c *apiServiceClient) ExecTransaction(ctx context.Context, in *TransactionR } func (c *apiServiceClient) Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (ApiService_SubscribeClient, error) { - stream, err := c.cc.NewStream(ctx, &ApiService_ServiceDesc.Streams[0], "/rpcpb.ApiService/Subscribe", opts...) + stream, err := c.cc.NewStream(ctx, &ApiService_ServiceDesc.Streams[0], ApiService_Subscribe_FullMethodName, opts...) if err != nil { return nil, err } @@ -335,7 +367,7 @@ func (x *apiServiceSubscribeClient) Recv() (*SubscribeResponse, error) { func (c *apiServiceClient) GetVoterBonus(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*VoterBonus, error) { out := new(VoterBonus) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetVoterBonus", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetVoterBonus_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -344,7 +376,7 @@ func (c *apiServiceClient) GetVoterBonus(ctx context.Context, in *GetAccountRequ func (c *apiServiceClient) GetCandidateBonus(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*CandidateBonus, error) { out := new(CandidateBonus) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetCandidateBonus", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetCandidateBonus_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -353,7 +385,7 @@ func (c *apiServiceClient) GetCandidateBonus(ctx context.Context, in *GetAccount func (c *apiServiceClient) GetTokenInfo(ctx context.Context, in *GetTokenInfoRequest, opts ...grpc.CallOption) (*TokenInfo, error) { out := new(TokenInfo) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetTokenInfo", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetTokenInfo_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -362,7 +394,7 @@ func (c *apiServiceClient) GetTokenInfo(ctx context.Context, in *GetTokenInfoReq func (c *apiServiceClient) GetBlockTxsByContract(ctx context.Context, in *GetBlockTxsByContractRequest, opts ...grpc.CallOption) (*BlockTxsByContractResponse, error) { out := new(BlockTxsByContractResponse) - err := c.cc.Invoke(ctx, "/rpcpb.ApiService/GetBlockTxsByContract", in, out, opts...) + err := c.cc.Invoke(ctx, ApiService_GetBlockTxsByContract_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -541,7 +573,7 @@ func _ApiService_GetNodeInfo_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetNodeInfo", + FullMethod: ApiService_GetNodeInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetNodeInfo(ctx, req.(*EmptyRequest)) @@ -559,7 +591,7 @@ func _ApiService_GetChainInfo_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetChainInfo", + FullMethod: ApiService_GetChainInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetChainInfo(ctx, req.(*EmptyRequest)) @@ -577,7 +609,7 @@ func _ApiService_GetRAMInfo_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetRAMInfo", + FullMethod: ApiService_GetRAMInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetRAMInfo(ctx, req.(*EmptyRequest)) @@ -595,7 +627,7 @@ func _ApiService_GetTxByHash_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetTxByHash", + FullMethod: ApiService_GetTxByHash_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetTxByHash(ctx, req.(*TxHashRequest)) @@ -613,7 +645,7 @@ func _ApiService_GetTxReceiptByTxHash_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetTxReceiptByTxHash", + FullMethod: ApiService_GetTxReceiptByTxHash_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetTxReceiptByTxHash(ctx, req.(*TxHashRequest)) @@ -631,7 +663,7 @@ func _ApiService_GetBlockByHash_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetBlockByHash", + FullMethod: ApiService_GetBlockByHash_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetBlockByHash(ctx, req.(*GetBlockByHashRequest)) @@ -649,7 +681,7 @@ func _ApiService_GetBlockByNumber_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetBlockByNumber", + FullMethod: ApiService_GetBlockByNumber_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetBlockByNumber(ctx, req.(*GetBlockByNumberRequest)) @@ -667,7 +699,7 @@ func _ApiService_GetRawBlockByNumber_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetRawBlockByNumber", + FullMethod: ApiService_GetRawBlockByNumber_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetRawBlockByNumber(ctx, req.(*GetBlockByNumberRequest)) @@ -685,7 +717,7 @@ func _ApiService_GetBlockHeaderByRange_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetBlockHeaderByRange", + FullMethod: ApiService_GetBlockHeaderByRange_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetBlockHeaderByRange(ctx, req.(*GetBlockHeaderByRangeRequest)) @@ -703,7 +735,7 @@ func _ApiService_GetAccount_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetAccount", + FullMethod: ApiService_GetAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetAccount(ctx, req.(*GetAccountRequest)) @@ -721,7 +753,7 @@ func _ApiService_GetTokenBalance_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetTokenBalance", + FullMethod: ApiService_GetTokenBalance_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetTokenBalance(ctx, req.(*GetTokenBalanceRequest)) @@ -739,7 +771,7 @@ func _ApiService_GetToken721Balance_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetToken721Balance", + FullMethod: ApiService_GetToken721Balance_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetToken721Balance(ctx, req.(*GetTokenBalanceRequest)) @@ -757,7 +789,7 @@ func _ApiService_GetToken721Metadata_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetToken721Metadata", + FullMethod: ApiService_GetToken721Metadata_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetToken721Metadata(ctx, req.(*GetToken721InfoRequest)) @@ -775,7 +807,7 @@ func _ApiService_GetToken721Owner_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetToken721Owner", + FullMethod: ApiService_GetToken721Owner_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetToken721Owner(ctx, req.(*GetToken721InfoRequest)) @@ -793,7 +825,7 @@ func _ApiService_GetGasRatio_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetGasRatio", + FullMethod: ApiService_GetGasRatio_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetGasRatio(ctx, req.(*EmptyRequest)) @@ -811,7 +843,7 @@ func _ApiService_GetProducerVoteInfo_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetProducerVoteInfo", + FullMethod: ApiService_GetProducerVoteInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetProducerVoteInfo(ctx, req.(*GetProducerVoteInfoRequest)) @@ -829,7 +861,7 @@ func _ApiService_GetContract_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetContract", + FullMethod: ApiService_GetContract_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetContract(ctx, req.(*GetContractRequest)) @@ -847,7 +879,7 @@ func _ApiService_GetContractVote_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetContractVote", + FullMethod: ApiService_GetContractVote_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetContractVote(ctx, req.(*GetContractRequest)) @@ -865,7 +897,7 @@ func _ApiService_GetContractStorage_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetContractStorage", + FullMethod: ApiService_GetContractStorage_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetContractStorage(ctx, req.(*GetContractStorageRequest)) @@ -883,7 +915,7 @@ func _ApiService_GetBatchContractStorage_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetBatchContractStorage", + FullMethod: ApiService_GetBatchContractStorage_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetBatchContractStorage(ctx, req.(*GetBatchContractStorageRequest)) @@ -901,7 +933,7 @@ func _ApiService_ListContractStorage_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/ListContractStorage", + FullMethod: ApiService_ListContractStorage_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).ListContractStorage(ctx, req.(*ListContractStorageRequest)) @@ -919,7 +951,7 @@ func _ApiService_GetContractStorageFields_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetContractStorageFields", + FullMethod: ApiService_GetContractStorageFields_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetContractStorageFields(ctx, req.(*GetContractStorageFieldsRequest)) @@ -937,7 +969,7 @@ func _ApiService_SendTransaction_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/SendTransaction", + FullMethod: ApiService_SendTransaction_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).SendTransaction(ctx, req.(*TransactionRequest)) @@ -955,7 +987,7 @@ func _ApiService_ExecTransaction_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/ExecTransaction", + FullMethod: ApiService_ExecTransaction_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).ExecTransaction(ctx, req.(*TransactionRequest)) @@ -994,7 +1026,7 @@ func _ApiService_GetVoterBonus_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetVoterBonus", + FullMethod: ApiService_GetVoterBonus_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetVoterBonus(ctx, req.(*GetAccountRequest)) @@ -1012,7 +1044,7 @@ func _ApiService_GetCandidateBonus_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetCandidateBonus", + FullMethod: ApiService_GetCandidateBonus_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetCandidateBonus(ctx, req.(*GetAccountRequest)) @@ -1030,7 +1062,7 @@ func _ApiService_GetTokenInfo_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetTokenInfo", + FullMethod: ApiService_GetTokenInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetTokenInfo(ctx, req.(*GetTokenInfoRequest)) @@ -1048,7 +1080,7 @@ func _ApiService_GetBlockTxsByContract_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rpcpb.ApiService/GetBlockTxsByContract", + FullMethod: ApiService_GetBlockTxsByContract_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ApiServiceServer).GetBlockTxsByContract(ctx, req.(*GetBlockTxsByContractRequest))