mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-30 00:25:45 +00:00
272 lines
17 KiB
C
272 lines
17 KiB
C
/* Generated by Nim Compiler v1.2.6 */
|
|
/* (c) 2020 Andreas Rumpf */
|
|
/* The generated code is subject to the original license. */
|
|
/* Compiled for: Linux, amd64, gcc */
|
|
/* Command for C compiler:
|
|
gcc -c -w -pthread -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/install/usr/include -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1/src -DHAVE_CONFIG_H -DHAVE_BUILTIN_EXPECT -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/src -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/inc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/tools -DBR_USE_UNIX_TIME=1 -DBR_USE_URANDOM=1 -DBR_LE_UNALIGNED=1 -DBR_64=1 -DBR_amd64=1 -DBR_INT128=1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/certs -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/libnatpmp-upstream -DENABLE_STRNATPMPERR -march=native -g3 -Og -O3 -fno-strict-aliasing -fno-ident -I/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib -I/home/runner/work/nim-waku/nim-waku/examples/v2 -o nimcache/release/chat2/@m..@s..@svendor@snim-eth@seth@scommon@stransaction.nim.c.o nimcache/release/chat2/@m..@s..@svendor@snim-eth@seth@scommon@stransaction.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.h"
|
|
#include <string.h>
|
|
#undef LANGUAGE_C
|
|
#undef MIPSEB
|
|
#undef MIPSEL
|
|
#undef PPC
|
|
#undef R3000
|
|
#undef R4000
|
|
#undef i386
|
|
#undef linux
|
|
#undef mips
|
|
#undef near
|
|
#undef far
|
|
#undef powerpc
|
|
#undef unix
|
|
#define nimfr_(x, y)
|
|
#define nimln_(x, y)
|
|
typedef struct tyObject_MDigest__law9ct65KplMYBvtmjCQxbw tyObject_MDigest__law9ct65KplMYBvtmjCQxbw;
|
|
typedef struct tyObject_Transaction__an2k3C73XSxhXgjDTIv1jQ tyObject_Transaction__an2k3C73XSxhXgjDTIv1jQ;
|
|
typedef struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ tySequence__6H5Oh5UUvVCLiakt9aTwtUQ;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
typedef struct tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg;
|
|
typedef struct tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA;
|
|
typedef struct tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g;
|
|
typedef struct TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
typedef struct NimStringDesc NimStringDesc;
|
|
typedef struct tyObject_TransHashObj__tnxeBks6zpz8BrCtd4KChg tyObject_TransHashObj__tnxeBks6zpz8BrCtd4KChg;
|
|
typedef NU8 tyArray__vEOa9c5qaE9ajWxR5R4zwfQg[32];
|
|
struct tyObject_MDigest__law9ct65KplMYBvtmjCQxbw {tyArray__vEOa9c5qaE9ajWxR5R4zwfQg data;
|
|
};
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
typedef NU8 tyArray__YtcvxHNKV4YiecPE9ap1mcA[20];
|
|
struct tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g {NU64 lo;
|
|
NU64 hi;
|
|
};
|
|
struct tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA {tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g lo;
|
|
tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g hi;
|
|
};
|
|
struct tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg {tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA data;
|
|
};
|
|
struct tyObject_Transaction__an2k3C73XSxhXgjDTIv1jQ {NU64 accountNonce;
|
|
NI64 gasPrice;
|
|
NI64 gasLimit;
|
|
tyArray__YtcvxHNKV4YiecPE9ap1mcA to;
|
|
tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg value;
|
|
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* payload;
|
|
NU8 V;
|
|
tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg R;
|
|
tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg S;
|
|
NIM_BOOL isContractCreation;
|
|
};
|
|
typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A;
|
|
typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ;
|
|
typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op);
|
|
typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p);
|
|
struct TNimType {NI size;
|
|
tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind;
|
|
tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags;
|
|
TNimType* base;
|
|
TNimNode* node;
|
|
void* finalizer;
|
|
tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
|
|
tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
|
|
NCSTRING name;
|
|
TNimType* nextType;
|
|
NI instances;
|
|
NI sizes;
|
|
};
|
|
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
|
|
struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
|
|
NI offset;
|
|
TNimType* typ;
|
|
NCSTRING name;
|
|
NI len;
|
|
TNimNode** sons;
|
|
};
|
|
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
struct tyObject_TransHashObj__tnxeBks6zpz8BrCtd4KChg {NU64 accountNonce;
|
|
NI64 gasPrice;
|
|
NI64 gasLimit;
|
|
tyArray__YtcvxHNKV4YiecPE9ap1mcA to;
|
|
tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg value;
|
|
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* payload;
|
|
NIM_BOOL mIsContractCreation;
|
|
};
|
|
struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ { TGenericSeq Sup; NU8 data[SEQ_DECL_SIZE];};static N_INLINE(void, nimZeroMem)(void* p, NI size);
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_MDigest__law9ct65KplMYBvtmjCQxbw, digest__kUuxyH0Wbp0DnT9anHK9b9c2g_2)(NU8* data_0, NI data_0Len_0);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, rlpEncodeEIP155__XsqYeGkeV6orRwEY9chcEWg)(tyObject_Transaction__an2k3C73XSxhXgjDTIv1jQ* tx);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseDivByZero)(void);
|
|
static N_INLINE(NIM_BOOL, nimDivInt)(NI a, NI b, NI* res);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, encode__MMuxKvEh01rRcqfnwH7VmA)(tyObject_Transaction__an2k3C73XSxhXgjDTIv1jQ* v);
|
|
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(void, genericSeqAssign)(void* dest_0, void* src, TNimType* mt);
|
|
static N_INLINE(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg, u256__2ue2zkVRv5mHDJuq9aO19cbQstint)(NI n_0);
|
|
static N_INLINE(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg, stuint__UwRf9b7zX0yVUpI9cXIgYLOgio)(NI n_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg);
|
|
static N_INLINE(void, assignLo__XPoN7uOFyvGUONFR87FYZwio)(tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA* result, NI n_0);
|
|
static N_INLINE(void, assignLo__9be9amFVyw2jZTn1n6rIVHDwio)(tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g* result, NI n_0);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, rlpEncode__9c7matn2sc79bCWY6sYweznA)(tyObject_Transaction__an2k3C73XSxhXgjDTIv1jQ* transaction);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, encode__ymmOg2NCQ9cPI8BBzKObyFQ)(tyObject_TransHashObj__tnxeBks6zpz8BrCtd4KChg* v);
|
|
extern TNimType NTI__6H5Oh5UUvVCLiakt9aTwtUQ_;
|
|
STRING_LITERAL(TM__9aO7BkA3OfAFlmNOKew1Meg_4, "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.n"
|
|
"im(36, 12) `\0120.T <= n` ", 86);
|
|
|
|
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) { void* T1_;
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
T1_ = (void*)0; T1_ = memset(a, v, ((size_t) (size)));}
|
|
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size) {
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size);
|
|
}
|
|
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
static N_INLINE(NIM_BOOL, nimDivInt)(NI a, NI b, NI* res) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
T3_ = (NIM_BOOL)0;
|
|
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
T3_ = (a == ((NI) (IL64(-9223372036854775807) - IL64(1)))); if (!(T3_)) goto LA4_;
|
|
|
|
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
T3_ = (b == ((NI) -1)); LA4_: ;
|
|
if (!T3_) goto LA5_;
|
|
|
|
#line 118 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
result = NIM_TRUE; }
|
|
goto LA1_;
|
|
LA5_: ;
|
|
{
|
|
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
|
|
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
(*res) = (NI)(a / b); }
|
|
LA1_: ;
|
|
return result;}
|
|
|
|
#line 11 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) { void* T1_;
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
T1_ = (void*)0; T1_ = memcpy(dest, source, ((size_t) (size)));}
|
|
|
|
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
static N_INLINE(void, assignLo__9be9amFVyw2jZTn1n6rIVHDwio)(tyObject_UintImpl__7gzUBTJUlPE55RUsMXYp5g* result, NI n_0) {
|
|
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
(*result).lo = ((NU64) (n_0));}
|
|
|
|
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
static N_INLINE(void, assignLo__XPoN7uOFyvGUONFR87FYZwio)(tyObject_UintImpl__3RPAuTAh9bcIRq9bgsNKRahA* result, NI n_0) {
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
assignLo__9be9amFVyw2jZTn1n6rIVHDwio((&(*result).lo), n_0);
|
|
}
|
|
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
static N_INLINE(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg, stuint__UwRf9b7zX0yVUpI9cXIgYLOgio)(NI n_0) { tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg result; nimZeroMem((void*)(&result), sizeof(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg));
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
{
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
if (!!((((NI) 0) <= n_0))) goto LA3_;
|
|
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__9aO7BkA3OfAFlmNOKew1Meg_4));
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 39 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
|
|
#line 39 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint/io.nim"
|
|
assignLo__XPoN7uOFyvGUONFR87FYZwio((&result.data), n_0);
|
|
return result;}
|
|
|
|
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint.nim"
|
|
static N_INLINE(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg, u256__2ue2zkVRv5mHDJuq9aO19cbQstint)(NI n_0) { tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg result; nimZeroMem((void*)(&result), sizeof(tyObject_StUint__zk9cGwjKuqNvWysDWG2FjHg));
|
|
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint.nim"
|
|
|
|
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stint/stint.nim"
|
|
result = stuint__UwRf9b7zX0yVUpI9cXIgYLOgio(n_0); return result;}
|
|
|
|
#line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, rlpEncodeEIP155__XsqYeGkeV6orRwEY9chcEWg)(tyObject_Transaction__an2k3C73XSxhXgjDTIv1jQ* tx) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* result; NI V_1; NI TM__9aO7BkA3OfAFlmNOKew1Meg_2; NI TM__9aO7BkA3OfAFlmNOKew1Meg_3; tyObject_Transaction__an2k3C73XSxhXgjDTIv1jQ T1_;{ result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0;
|
|
#line 55 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
|
|
#line 55 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
|
|
#line 55 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
if (nimSubInt(((NI) ((*tx).V)), ((NI) 35), &TM__9aO7BkA3OfAFlmNOKew1Meg_2)) { raiseOverflow(); }; if (((NI) 2) == 0){ raiseDivByZero(); } if (nimDivInt((NI)(TM__9aO7BkA3OfAFlmNOKew1Meg_2), ((NI) 2), &TM__9aO7BkA3OfAFlmNOKew1Meg_3)) { raiseOverflow(); }; V_1 = (NI)(TM__9aO7BkA3OfAFlmNOKew1Meg_3);
|
|
#line 57 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
|
|
#line 57 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
nimZeroMem((void*)(&T1_), sizeof(tyObject_Transaction__an2k3C73XSxhXgjDTIv1jQ)); nimZeroMem((void*)(&T1_), sizeof(tyObject_Transaction__an2k3C73XSxhXgjDTIv1jQ)); T1_.accountNonce = (*tx).accountNonce; T1_.gasPrice = (*tx).gasPrice; T1_.gasLimit = (*tx).gasLimit; nimCopyMem((void*)T1_.to, (NIM_CONST void*)(*tx).to, sizeof(tyArray__YtcvxHNKV4YiecPE9ap1mcA)); T1_.value = (*tx).value; genericSeqAssign((&T1_.payload), (*tx).payload, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); T1_.isContractCreation = (*tx).isContractCreation; T1_.V = ((NU8) (V_1));
|
|
#line 66 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
|
|
#line 66 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
T1_.R = u256__2ue2zkVRv5mHDJuq9aO19cbQstint(((NI) 0));
|
|
#line 67 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
|
|
#line 67 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
T1_.S = u256__2ue2zkVRv5mHDJuq9aO19cbQstint(((NI) 0));
|
|
#line 57 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
result = encode__MMuxKvEh01rRcqfnwH7VmA((&T1_)); goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 42 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, rlpEncode__9c7matn2sc79bCWY6sYweznA)(tyObject_Transaction__an2k3C73XSxhXgjDTIv1jQ* transaction) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* result; tyObject_TransHashObj__tnxeBks6zpz8BrCtd4KChg T1_;{ result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0;
|
|
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
|
|
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
nimZeroMem((void*)(&T1_), sizeof(tyObject_TransHashObj__tnxeBks6zpz8BrCtd4KChg)); nimZeroMem((void*)(&T1_), sizeof(tyObject_TransHashObj__tnxeBks6zpz8BrCtd4KChg)); T1_.accountNonce = (*transaction).accountNonce; T1_.gasPrice = (*transaction).gasPrice; T1_.gasLimit = (*transaction).gasLimit; nimCopyMem((void*)T1_.to, (NIM_CONST void*)(*transaction).to, sizeof(tyArray__YtcvxHNKV4YiecPE9ap1mcA)); T1_.value = (*transaction).value; genericSeqAssign((&T1_.payload), (*transaction).payload, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); T1_.mIsContractCreation = (*transaction).isContractCreation;
|
|
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
result = encode__ymmOg2NCQ9cPI8BBzKObyFQ((&T1_)); goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 70 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_MDigest__law9ct65KplMYBvtmjCQxbw, txHashNoSignature__0xeyZOA74IrzYIDJLOTn9bQ)(tyObject_Transaction__an2k3C73XSxhXgjDTIv1jQ* tx) { tyObject_MDigest__law9ct65KplMYBvtmjCQxbw result; tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* T1_;{ nimZeroMem((void*)(&result), sizeof(tyObject_MDigest__law9ct65KplMYBvtmjCQxbw));
|
|
#line 72 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
|
|
#line 72 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
T1_ = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0;
|
|
#line 72 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
{
|
|
#line 72 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
if (!(((NI) 35) <= ((NI) ((*tx).V)))) goto LA4_;
|
|
|
|
#line 72 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
|
|
#line 72 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
T1_ = rlpEncodeEIP155__XsqYeGkeV6orRwEY9chcEWg(tx); }
|
|
goto LA2_;
|
|
LA4_: ;
|
|
{
|
|
#line 72 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
|
|
#line 72 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
T1_ = rlpEncode__9c7matn2sc79bCWY6sYweznA(tx); }
|
|
LA2_: ;
|
|
|
|
#line 72 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/common/transaction.nim"
|
|
result = digest__kUuxyH0Wbp0DnT9anHK9b9c2g_2(T1_->data, (T1_ ? T1_->Sup.len : 0)); goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|