-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: Graalvm reachable metadata * Implement StakePoolParamsQuery deserialization Added functionality to deserialize StakePoolParamsQuery results, converting CBOR data items into PoolParams objects. Updated integration tests to validate the deserialization process.
- Loading branch information
Showing
9 changed files
with
291 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...com/bloxbean/cardano/yaci/core/protocol/localstate/queries/StakePoolParamQueryResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
package com.bloxbean.cardano.yaci.core.protocol.localstate.queries; | ||
|
||
import com.bloxbean.cardano.yaci.core.model.PoolParams; | ||
import com.bloxbean.cardano.yaci.core.protocol.localstate.api.QueryResult; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.ToString; | ||
|
||
@Getter | ||
@ToString | ||
@AllArgsConstructor | ||
public class StakePoolParamQueryResult implements QueryResult { | ||
private java.util.Map<String, PoolParams> poolParams; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
core/src/main/resources/META-INF/native-image/yaci/jni-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[ | ||
{ | ||
"name" : "io.netty.channel.kqueue.KQueueStaticallyReferencedJniMethods" | ||
}, | ||
{ | ||
"name" : "io.netty.channel.kqueue.Native" | ||
}, | ||
{ | ||
"name" : "io.netty.channel.kqueue.BsdSocket" | ||
} | ||
] |
14 changes: 14 additions & 0 deletions
14
core/src/main/resources/META-INF/native-image/yaci/native-image.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Args = --initialize-at-run-time=io.netty.channel.epoll.Epoll \ | ||
--initialize-at-run-time=io.netty.channel.epoll.Native \ | ||
--initialize-at-run-time=io.netty.channel.epoll.EpollEventLoop \ | ||
--initialize-at-run-time=io.netty.channel.epoll.EpollEventArray \ | ||
--initialize-at-run-time=io.netty.channel.DefaultFileRegion \ | ||
--initialize-at-run-time=io.netty.channel.kqueue.KQueueEventArray \ | ||
--initialize-at-run-time=io.netty.channel.kqueue.KQueueEventLoop \ | ||
--initialize-at-run-time=io.netty.channel.kqueue.Native \ | ||
--initialize-at-run-time=io.netty.channel.unix.Errors \ | ||
--initialize-at-run-time=io.netty.channel.unix.IovArray \ | ||
--initialize-at-run-time=io.netty.channel.unix.Limits \ | ||
--initialize-at-run-time=io.netty.util.internal.logging.Log4JLogger \ | ||
--initialize-at-run-time=io.netty.channel.kqueue.KQueue \ | ||
--initialize-at-run-time=io.netty.handler.ssl.BouncyCastleAlpnSslUtils |
14 changes: 14 additions & 0 deletions
14
core/src/main/resources/META-INF/native-image/yaci/native-image.properties.ci
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Args = --static --libc=musl --initialize-at-run-time=io.netty.channel.epoll.Epoll \ | ||
--initialize-at-run-time=io.netty.channel.epoll.Native \ | ||
--initialize-at-run-time=io.netty.channel.epoll.EpollEventLoop \ | ||
--initialize-at-run-time=io.netty.channel.epoll.EpollEventArray \ | ||
--initialize-at-run-time=io.netty.channel.DefaultFileRegion \ | ||
--initialize-at-run-time=io.netty.channel.kqueue.KQueueEventArray \ | ||
--initialize-at-run-time=io.netty.channel.kqueue.KQueueEventLoop \ | ||
--initialize-at-run-time=io.netty.channel.kqueue.Native \ | ||
--initialize-at-run-time=io.netty.channel.unix.Errors \ | ||
--initialize-at-run-time=io.netty.channel.unix.IovArray \ | ||
--initialize-at-run-time=io.netty.channel.unix.Limits \ | ||
--initialize-at-run-time=io.netty.util.internal.logging.Log4JLogger \ | ||
--initialize-at-run-time=io.netty.channel.kqueue.KQueue \ | ||
--initialize-at-run-time=io.netty.handler.ssl.BouncyCastleAlpnSslUtils |
148 changes: 148 additions & 0 deletions
148
core/src/main/resources/META-INF/native-image/yaci/reflect-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
[ | ||
{ | ||
"name":"io.netty.buffer.AbstractByteBufAllocator", | ||
"queryAllDeclaredMethods":true | ||
}, | ||
{ | ||
"name":"io.netty.buffer.AbstractReferenceCountedByteBuf", | ||
"fields":[{"name":"refCnt"}] | ||
}, | ||
{ | ||
"name":"io.netty.buffer.PooledByteBufAllocator" | ||
}, | ||
{ | ||
"name":"io.netty.channel.AbstractChannelHandlerContext", | ||
"fields":[{"name":"handlerState"}] | ||
}, | ||
{ | ||
"name":"io.netty.channel.ChannelHandlerAdapter", | ||
"methods":[{"name":"exceptionCaught","parameterTypes":["io.netty.channel.ChannelHandlerContext","java.lang.Throwable"] }] | ||
}, | ||
{ | ||
"name":"io.netty.channel.ChannelInboundHandlerAdapter", | ||
"methods":[{"name":"channelActive","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"channelInactive","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"channelRead","parameterTypes":["io.netty.channel.ChannelHandlerContext","java.lang.Object"] }, {"name":"channelReadComplete","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"channelRegistered","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"channelUnregistered","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"channelWritabilityChanged","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"exceptionCaught","parameterTypes":["io.netty.channel.ChannelHandlerContext","java.lang.Throwable"] }, {"name":"userEventTriggered","parameterTypes":["io.netty.channel.ChannelHandlerContext","java.lang.Object"] }] | ||
}, | ||
{ | ||
"name":"io.netty.channel.ChannelInitializer", | ||
"methods":[{"name":"channelRegistered","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"exceptionCaught","parameterTypes":["io.netty.channel.ChannelHandlerContext","java.lang.Throwable"] }] | ||
}, | ||
{ | ||
"name":"io.netty.channel.ChannelOutboundBuffer", | ||
"fields":[{"name":"totalPendingSize"}, {"name":"unwritable"}] | ||
}, | ||
{ | ||
"name":"io.netty.channel.ChannelOutboundHandlerAdapter", | ||
"methods":[{"name":"bind","parameterTypes":["io.netty.channel.ChannelHandlerContext","java.net.SocketAddress","io.netty.channel.ChannelPromise"] }, {"name":"close","parameterTypes":["io.netty.channel.ChannelHandlerContext","io.netty.channel.ChannelPromise"] }, {"name":"connect","parameterTypes":["io.netty.channel.ChannelHandlerContext","java.net.SocketAddress","java.net.SocketAddress","io.netty.channel.ChannelPromise"] }, {"name":"deregister","parameterTypes":["io.netty.channel.ChannelHandlerContext","io.netty.channel.ChannelPromise"] }, {"name":"disconnect","parameterTypes":["io.netty.channel.ChannelHandlerContext","io.netty.channel.ChannelPromise"] }, {"name":"flush","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"read","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }] | ||
}, | ||
{ | ||
"name":"io.netty.channel.DefaultChannelConfig", | ||
"fields":[{"name":"autoRead"}, {"name":"writeBufferWaterMark"}] | ||
}, | ||
{ | ||
"name":"io.netty.channel.DefaultChannelPipeline", | ||
"fields":[{"name":"estimatorHandle"}] | ||
}, | ||
{ | ||
"name":"io.netty.channel.DefaultChannelPipeline$HeadContext", | ||
"methods":[{"name":"bind","parameterTypes":["io.netty.channel.ChannelHandlerContext","java.net.SocketAddress","io.netty.channel.ChannelPromise"] }, {"name":"channelActive","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"channelInactive","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"channelRead","parameterTypes":["io.netty.channel.ChannelHandlerContext","java.lang.Object"] }, {"name":"channelReadComplete","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"channelRegistered","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"channelUnregistered","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"channelWritabilityChanged","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"close","parameterTypes":["io.netty.channel.ChannelHandlerContext","io.netty.channel.ChannelPromise"] }, {"name":"connect","parameterTypes":["io.netty.channel.ChannelHandlerContext","java.net.SocketAddress","java.net.SocketAddress","io.netty.channel.ChannelPromise"] }, {"name":"deregister","parameterTypes":["io.netty.channel.ChannelHandlerContext","io.netty.channel.ChannelPromise"] }, {"name":"disconnect","parameterTypes":["io.netty.channel.ChannelHandlerContext","io.netty.channel.ChannelPromise"] }, {"name":"exceptionCaught","parameterTypes":["io.netty.channel.ChannelHandlerContext","java.lang.Throwable"] }, {"name":"flush","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"read","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"userEventTriggered","parameterTypes":["io.netty.channel.ChannelHandlerContext","java.lang.Object"] }, {"name":"write","parameterTypes":["io.netty.channel.ChannelHandlerContext","java.lang.Object","io.netty.channel.ChannelPromise"] }] | ||
}, | ||
{ | ||
"name":"io.netty.channel.DefaultChannelPipeline$TailContext", | ||
"methods":[{"name":"channelActive","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"channelInactive","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"channelRead","parameterTypes":["io.netty.channel.ChannelHandlerContext","java.lang.Object"] }, {"name":"channelReadComplete","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"channelRegistered","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"channelUnregistered","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"channelWritabilityChanged","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"exceptionCaught","parameterTypes":["io.netty.channel.ChannelHandlerContext","java.lang.Throwable"] }, {"name":"userEventTriggered","parameterTypes":["io.netty.channel.ChannelHandlerContext","java.lang.Object"] }] | ||
}, | ||
{ | ||
"name":"io.netty.channel.DefaultFileRegion" | ||
}, | ||
{ | ||
"name":"io.netty.channel.kqueue.KQueueDomainSocketChannel", | ||
"methods":[{"name":"<init>","parameterTypes":[] }] | ||
}, | ||
{ | ||
"name":"io.netty.channel.kqueue.KQueueEventLoop", | ||
"fields":[{"name":"wakenUp"}] | ||
}, | ||
{ | ||
"name":"io.netty.channel.socket.nio.NioSocketChannel", | ||
"methods":[{"name":"<init>","parameterTypes":[] }] | ||
}, | ||
{ | ||
"name":"io.netty.channel.unix.DatagramSocketAddress" | ||
}, | ||
{ | ||
"name":"io.netty.channel.unix.DomainDatagramSocketAddress" | ||
}, | ||
{ | ||
"name":"io.netty.channel.unix.FileDescriptor", | ||
"fields":[{"name":"state"}] | ||
}, | ||
{ | ||
"name":"io.netty.channel.unix.PeerCredentials" | ||
}, | ||
{ | ||
"name":"io.netty.handler.codec.ByteToMessageDecoder", | ||
"methods":[{"name":"channelInactive","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"channelRead","parameterTypes":["io.netty.channel.ChannelHandlerContext","java.lang.Object"] }, {"name":"channelReadComplete","parameterTypes":["io.netty.channel.ChannelHandlerContext"] }, {"name":"userEventTriggered","parameterTypes":["io.netty.channel.ChannelHandlerContext","java.lang.Object"] }] | ||
}, | ||
{ | ||
"name":"io.netty.handler.codec.MessageToByteEncoder", | ||
"methods":[{"name":"write","parameterTypes":["io.netty.channel.ChannelHandlerContext","java.lang.Object","io.netty.channel.ChannelPromise"] }] | ||
}, | ||
{ | ||
"name":"io.netty.util.AbstractReferenceCounted", | ||
"fields":[{"name":"refCnt"}] | ||
}, | ||
{ | ||
"name":"io.netty.util.DefaultAttributeMap", | ||
"fields":[{"name":"attributes"}] | ||
}, | ||
{ | ||
"name":"io.netty.util.NettyRuntime" | ||
}, | ||
{ | ||
"name":"io.netty.util.Recycler$DefaultHandle", | ||
"fields":[{"name":"state"}] | ||
}, | ||
{ | ||
"name":"io.netty.util.ReferenceCountUtil", | ||
"queryAllDeclaredMethods":true | ||
}, | ||
{ | ||
"name":"io.netty.util.ResourceLeakDetector$DefaultResourceLeak", | ||
"fields":[{"name":"droppedRecords"}, {"name":"head"}] | ||
}, | ||
{ | ||
"name":"io.netty.util.concurrent.DefaultPromise", | ||
"fields":[{"name":"result"}] | ||
}, | ||
{ | ||
"name":"io.netty.util.concurrent.SingleThreadEventExecutor", | ||
"fields":[{"name":"state"}, {"name":"threadProperties"}] | ||
}, | ||
{ | ||
"name":"io.netty.util.internal.NativeLibraryUtil", | ||
"methods":[{"name":"loadLibrary","parameterTypes":["java.lang.String","boolean"] }] | ||
}, | ||
{ | ||
"name":"io.netty.util.internal.shaded.org.jctools.queues.BaseMpscLinkedArrayQueueColdProducerFields", | ||
"fields":[{"name":"producerLimit"}] | ||
}, | ||
{ | ||
"name":"io.netty.util.internal.shaded.org.jctools.queues.BaseMpscLinkedArrayQueueConsumerFields", | ||
"fields":[{"name":"consumerIndex"}] | ||
}, | ||
{ | ||
"name":"io.netty.util.internal.shaded.org.jctools.queues.BaseMpscLinkedArrayQueueProducerFields", | ||
"fields":[{"name":"producerIndex"}] | ||
}, | ||
{ | ||
"name":"io.netty.util.internal.shaded.org.jctools.queues.MpscArrayQueueConsumerIndexField", | ||
"fields":[{"name":"consumerIndex"}] | ||
}, | ||
{ | ||
"name":"io.netty.util.internal.shaded.org.jctools.queues.MpscArrayQueueProducerIndexField", | ||
"fields":[{"name":"producerIndex"}] | ||
}, | ||
{ | ||
"name":"io.netty.util.internal.shaded.org.jctools.queues.MpscArrayQueueProducerLimitField", | ||
"fields":[{"name":"producerLimit"}] | ||
} | ||
] |
13 changes: 13 additions & 0 deletions
13
core/src/main/resources/META-INF/native-image/yaci/resource-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"resources": { | ||
"includes": [ | ||
{ | ||
"pattern":"\\QMETA-INF/native/libnetty_transport_native_kqueue_aarch_64.dylib\\E" | ||
}, | ||
{ | ||
"pattern":"\\QMETA-INF/native/libnetty_transport_native_kqueue_aarch_64.jnilib\\E" | ||
} | ||
], | ||
"excludes": [] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters