mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-15 17:35:45 +00:00
758 lines
47 KiB
C
758 lines
47 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..@swaku@sv2@sprotocol@swaku_swap@swaku_swap_contracts.nim.c.o nimcache/release/chat2/@m..@s..@swaku@sv2@sprotocol@swaku_swap@swaku_swap_contracts.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.h"
|
|
#include <string.h>
|
|
#include <setjmp.h>
|
|
#include <sys/types.h>
|
|
#include <pthread.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 NimStringDesc NimStringDesc;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
typedef struct tyObject_Result__M20b89b4X7FYizjpfMZLjjA tyObject_Result__M20b89b4X7FYizjpfMZLjjA;
|
|
typedef struct tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q;
|
|
typedef struct Exception Exception;
|
|
typedef struct RootObj RootObj;
|
|
typedef struct TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA;
|
|
typedef struct TSafePoint TSafePoint;
|
|
typedef struct tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA;
|
|
typedef struct tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg;
|
|
typedef struct tyTuple__yobv8JsmBBRNC1NIieLJzQ tyTuple__yobv8JsmBBRNC1NIieLJzQ;
|
|
typedef struct tyObject_StdOutOutput__QHttWltDMaZ0hK1JkeyuCA tyObject_StdOutOutput__QHttWltDMaZ0hK1JkeyuCA;
|
|
typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA;
|
|
typedef struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g;
|
|
typedef struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w;
|
|
typedef struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ;
|
|
typedef struct tyObject_GcStack__7fytPA5bBsob6See21YMRA tyObject_GcStack__7fytPA5bBsob6See21YMRA;
|
|
typedef struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg;
|
|
typedef struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ;
|
|
typedef struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg;
|
|
typedef struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw;
|
|
typedef struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA;
|
|
typedef struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw;
|
|
typedef struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw;
|
|
typedef struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg;
|
|
typedef struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyTuple__ujsjpB2O9cjj3uDHsXbnSzg;
|
|
typedef struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg;
|
|
typedef struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ;
|
|
typedef struct tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg;
|
|
typedef struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw;
|
|
typedef struct tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg;
|
|
typedef struct tyTuple__XOVT24GHXwqiEj5GCsEGCA tyTuple__XOVT24GHXwqiEj5GCsEGCA;
|
|
typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA;
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
struct tyObject_Result__M20b89b4X7FYizjpfMZLjjA {NIM_BOOL o;
|
|
union{
|
|
struct {NimStringDesc* e;
|
|
} _o_1;
|
|
struct {tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* v;
|
|
} _o_2;
|
|
};
|
|
};
|
|
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;
|
|
};
|
|
struct RootObj {TNimType* m_type;};
|
|
struct Exception { RootObj Sup;Exception* parent;
|
|
NCSTRING name;
|
|
NimStringDesc* message;
|
|
tySequence__uB9b75OUPRENsBAu4AnoePA* trace;
|
|
Exception* up;
|
|
};
|
|
typedef long tyArray__TcvIiMAJvcwzNLsZkfnFnQ[25];
|
|
struct TSafePoint {TSafePoint* prev;
|
|
NI status;
|
|
jmp_buf context;
|
|
};
|
|
struct tyObject_StdOutOutput__QHttWltDMaZ0hK1JkeyuCA {char dummy;
|
|
};
|
|
struct tyTuple__yobv8JsmBBRNC1NIieLJzQ {
|
|
tyObject_StdOutOutput__QHttWltDMaZ0hK1JkeyuCA Field0;
|
|
};
|
|
struct tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg {tyTuple__yobv8JsmBBRNC1NIieLJzQ finalOutputs;
|
|
NimStringDesc* buffer;
|
|
};
|
|
typedef NU8 tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA;
|
|
struct tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA {tyObject_BufferedOutput__8P9alBgCoSqOy9alEKOH4etg output;
|
|
tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA level;
|
|
};
|
|
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
|
|
struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
|
|
NI offset;
|
|
TNimType* typ;
|
|
NCSTRING name;
|
|
NI len;
|
|
TNimNode** sons;
|
|
};
|
|
struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA { Exception Sup;};
|
|
struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g {NI refcount;
|
|
TNimType* typ;
|
|
};
|
|
struct tyObject_GcStack__7fytPA5bBsob6See21YMRA {void* bottom;
|
|
};
|
|
struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w {NI len;
|
|
NI cap;
|
|
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
|
|
};
|
|
typedef tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* tyArray__SiRwrEKZdLgxqz9a9aoVBglg[512];
|
|
typedef NU32 tyArray__BHbOSqU1t9b3Gt7K2c6fQig[24];
|
|
typedef tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* tyArray__N1u1nqOgmuJN9cSZrnMHgOQ[32];
|
|
typedef tyArray__N1u1nqOgmuJN9cSZrnMHgOQ tyArray__B6durA4ZCi1xjJvRtyYxMg[24];
|
|
typedef tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* tyArray__lh2A89ahMmYg9bCmpVaplLbA[256];
|
|
struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA {tyArray__lh2A89ahMmYg9bCmpVaplLbA data;
|
|
};
|
|
typedef tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* tyArray__0aOLqZchNi8nWtMTi8ND8w[2];
|
|
struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw {tyArray__0aOLqZchNi8nWtMTi8ND8w link;
|
|
NI key;
|
|
NI upperBound;
|
|
NI level;
|
|
};
|
|
struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg {
|
|
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* Field0;
|
|
NI Field1;
|
|
};
|
|
typedef tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyArray__LzOv2eCDGiceMKQstCLmhw[30];
|
|
struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg {NI len;
|
|
tyArray__LzOv2eCDGiceMKQstCLmhw chunks;
|
|
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* next;
|
|
};
|
|
struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg {NI minLargeObj;
|
|
NI maxLargeObj;
|
|
tyArray__SiRwrEKZdLgxqz9a9aoVBglg freeSmallChunks;
|
|
NU32 flBitmap;
|
|
tyArray__BHbOSqU1t9b3Gt7K2c6fQig slBitmap;
|
|
tyArray__B6durA4ZCi1xjJvRtyYxMg matrix;
|
|
tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* llmem;
|
|
NI currMem;
|
|
NI maxMem;
|
|
NI freeMem;
|
|
NI occ;
|
|
NI lastSize;
|
|
tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA chunkStarts;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* deleted;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* last;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* freeAvlNodes;
|
|
NIM_BOOL locked;
|
|
NIM_BOOL blockChunkSizeIncrease;
|
|
NI nextChunkSize;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw bottomData;
|
|
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg heapLinks;
|
|
NI allocCounter;
|
|
NI deallocCounter;
|
|
};
|
|
struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg {NI stackScans;
|
|
NI cycleCollections;
|
|
NI maxThreshold;
|
|
NI maxStackSize;
|
|
NI maxStackCells;
|
|
NI cycleTableSize;
|
|
NI64 maxPause;
|
|
};
|
|
struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ {NI counter;
|
|
NI max;
|
|
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* head;
|
|
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** data;
|
|
};
|
|
typedef long tyArray__xDUyu9aScDpt0JZLU6q9aEZQ[5];
|
|
struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw {tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* head;
|
|
tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* tail;
|
|
pthread_mutex_t lock;
|
|
};
|
|
struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ {tyObject_GcStack__7fytPA5bBsob6See21YMRA stack;
|
|
NI cycleThreshold;
|
|
NI zctThreshold;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w zct;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w decStack;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack;
|
|
NI recGcLock;
|
|
tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region;
|
|
tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat;
|
|
tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ marked;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots;
|
|
tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw toDispose;
|
|
NI gcThreadId;
|
|
};
|
|
typedef NU8 tySet_tyEnum_ProcessOption__bnU6W8LhTMnT4JaSWtGlSA;
|
|
struct tyTuple__XOVT24GHXwqiEj5GCsEGCA {
|
|
NimStringDesc* Field0;
|
|
NI Field1;
|
|
};
|
|
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {NCSTRING procname;
|
|
NI line;
|
|
NCSTRING filename;
|
|
};
|
|
struct tySequence__uB9b75OUPRENsBAu4AnoePA { TGenericSeq Sup; tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];};static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
|
|
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size);
|
|
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
|
|
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(void, execNodeTaskJson__9bvf9buEPjzjLMe7zzKnchbQ)(NimStringDesc* taskStr, tyObject_Result__M20b89b4X7FYizjpfMZLjjA* Result);
|
|
N_LIB_PRIVATE N_NOINLINE(void, chckNil)(void* p);
|
|
N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
|
|
static N_INLINE(void, pushSafePoint)(TSafePoint* s);
|
|
N_LIB_PRIVATE N_NIMCALL(void, initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r, tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA lvl, NimStringDesc* topics, NimStringDesc* name_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, setProperty__czv7v33Y9bwyVAHI9b2eiKDw)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r, NimStringDesc* key_0, NI val_0);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, setProperty__U2vmGWVLHFSD9cvjHnmuu2A)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r, NimStringDesc* key_0, NimStringDesc* val_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r);
|
|
N_LIB_PRIVATE N_NIMCALL(void, flushRecord__2TFyTWhDxeU5kGr2yqnA6w)(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA* r);
|
|
static N_INLINE(void, popSafePoint)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass);
|
|
static N_INLINE(Exception*, nimBorrowCurrentException)(void);
|
|
static N_INLINE(Exception*, getCurrentException)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg)(NCSTRING msg, Exception* ex);
|
|
static N_INLINE(void, popCurrentException)(void);
|
|
static N_INLINE(void, asgnRef)(void** dest, void* src);
|
|
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y);
|
|
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr);
|
|
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y);
|
|
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y);
|
|
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
N_LIB_PRIVATE N_NOINLINE(void, addZCT__Y66tOYFjgwJ0k4aLz4bc0Q)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
N_LIB_PRIVATE N_NIMCALL(void, reraiseException)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, execCmdEx__9cTpvDl4v9c9c9aFgpXBZMyDDA)(NimStringDesc* command, tySet_tyEnum_ProcessOption__bnU6W8LhTMnT4JaSWtGlSA options, tyTuple__XOVT24GHXwqiEj5GCsEGCA* Result);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q*, parseJson__Y9cImsF2VGDWROPSsgTGewQ)(NimStringDesc* buffer);
|
|
N_LIB_PRIVATE N_NIMCALL(void, genericAssign)(void* dest_0, void* src, TNimType* mt);
|
|
STRING_LITERAL(TM__N9cMeyMLENEUug7LiFiuiEw_2, "signCheque --swapaddress \'", 26);
|
|
STRING_LITERAL(TM__N9cMeyMLENEUug7LiFiuiEw_3, "\'", 1);
|
|
STRING_LITERAL(TM__N9cMeyMLENEUug7LiFiuiEw_4, "cd ../swap-contracts-module; npx hardhat --network localhost ", 61);
|
|
STRING_LITERAL(TM__N9cMeyMLENEUug7LiFiuiEw_6, "wakuswapcontracts", 17);
|
|
STRING_LITERAL(TM__N9cMeyMLENEUug7LiFiuiEw_7, "execNodeTask", 12);
|
|
STRING_LITERAL(TM__N9cMeyMLENEUug7LiFiuiEw_8, "tid", 3);
|
|
STRING_LITERAL(TM__N9cMeyMLENEUug7LiFiuiEw_9, "cmdString", 9);
|
|
extern TNimType NTI__qrLSDoe2oBoAqNtJ9badtnA_;
|
|
STRING_LITERAL(TM__N9cMeyMLENEUug7LiFiuiEw_12, "Error executing node task", 25);
|
|
STRING_LITERAL(TM__N9cMeyMLENEUug7LiFiuiEw_13, "output", 6);
|
|
STRING_LITERAL(TM__N9cMeyMLENEUug7LiFiuiEw_15, "Command executed", 16);
|
|
extern TNimType NTI__XTejXaID1NT7KS9byQm3Jxg_;
|
|
STRING_LITERAL(TM__N9cMeyMLENEUug7LiFiuiEw_17, "Unable to parse JSON:", 21);
|
|
extern TNimType NTI__XEycrCsme5C8CVWAYEcdBQ_;
|
|
extern TNimType NTI__BeJgrOdDsczOwEWOZbRfKA_;
|
|
STRING_LITERAL(TM__N9cMeyMLENEUug7LiFiuiEw_18, "Unable to execute command, OSError:", 35);
|
|
STRING_LITERAL(TM__N9cMeyMLENEUug7LiFiuiEw_19, "Unable to execute command:", 26);
|
|
extern TNimType NTI__M20b89b4X7FYizjpfMZLjjA_;
|
|
extern NIM_THREADVAR TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g;
|
|
extern NIM_THREADVAR TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g;
|
|
extern NIM_THREADVAR TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g;
|
|
extern NIM_THREADVAR TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g;
|
|
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
|
|
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
|
|
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
|
|
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
|
|
extern NIM_THREADVAR tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
|
|
|
|
#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 2112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size) {
|
|
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
nimCopyMem(dest, source, size);
|
|
}
|
|
|
|
#line 217 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
|
|
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
{
|
|
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
|
|
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
if (!!((src == NIM_NIL))) goto LA3_;
|
|
|
|
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
|
|
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
|
|
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&(*dest).data[(*dest).Sup.len]))), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
|
|
|
|
#line 220 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
(*dest).Sup.len += (*src).Sup.len; }
|
|
LA3_: ;
|
|
}
|
|
|
|
#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 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
|
|
static N_INLINE(void, pushSafePoint)(TSafePoint* s) {
|
|
#line 108 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
|
|
(*s).prev = excHandler__rqLlY5bs9atDw2OXYqJEn5g;
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
|
|
excHandler__rqLlY5bs9atDw2OXYqJEn5g = s;}
|
|
|
|
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
|
|
static N_INLINE(void, popSafePoint)(void) {
|
|
#line 112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
|
|
excHandler__rqLlY5bs9atDw2OXYqJEn5g = (*excHandler__rqLlY5bs9atDw2OXYqJEn5g).prev;}
|
|
|
|
#line 2292 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(Exception*, nimBorrowCurrentException)(void) { Exception* result; result = (Exception*)0;
|
|
#line 2295 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
result = currException__9bVPeDJlYTi9bQApZpfH8wjg; return result;}
|
|
|
|
#line 2288 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(Exception*, getCurrentException)(void) { Exception* result; result = (Exception*)0;
|
|
#line 2290 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
result = currException__9bVPeDJlYTi9bQApZpfH8wjg; return result;}
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y) { NI result; result = (NI)0;
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
|
|
#line 430 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y)))))); return result;}
|
|
|
|
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*c).refcount = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem((*c).refcount, ((NI) 8));}
|
|
|
|
#line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y) { NI result; result = (NI)0;
|
|
#line 437 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
|
|
#line 441 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y)))))); return result;}
|
|
|
|
#line 128 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result; NI T1_; result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T1_ = (NI)0; T1_ = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system(((NI) (ptrdiff_t) (usr)), ((NI) 16)); result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_)); return result;}
|
|
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y)))); return result;}
|
|
|
|
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
addZCT__Y66tOYFjgwJ0k4aLz4bc0Q((&gch__IcYaEuuWivYAS86vFMTS3Q.zct), c);
|
|
}
|
|
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*c).refcount = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system((*c).refcount, ((NI) 8));
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem((*c).refcount, ((NI) 8)); if (!T3_) goto LA4_;
|
|
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system(c);
|
|
}
|
|
LA4_: ;
|
|
}
|
|
|
|
#line 235 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, asgnRef)(void** dest, void* src) {
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_;
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
if (!!((src == NIM_NIL))) goto LA3_;
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T5_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T5_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(src);
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
incRef__AT1eRuflKWyTTBdLjEDZbg_3system(T5_);
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_;
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
if (!!(((*dest) == NIM_NIL))) goto LA8_;
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T10_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T10_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem((*dest));
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T10_);
|
|
}
|
|
LA8_: ;
|
|
|
|
#line 241 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*dest) = src;}
|
|
|
|
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
|
|
static N_INLINE(void, popCurrentException)(void) {
|
|
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
|
|
asgnRef((void**) (&currException__9bVPeDJlYTi9bQApZpfH8wjg), (*currException__9bVPeDJlYTi9bQApZpfH8wjg).up);}
|
|
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, execNodeTaskJson__9bvf9buEPjzjLMe7zzKnchbQ)(NimStringDesc* taskStr, tyObject_Result__M20b89b4X7FYizjpfMZLjjA* Result) { NimStringDesc* cmdString; NimStringDesc* T1_; TSafePoint TM__N9cMeyMLENEUug7LiFiuiEw_5; TSafePoint TM__N9cMeyMLENEUug7LiFiuiEw_10;{ chckNil((void*)Result); switch ((*Result).o) {
|
|
case NIM_FALSE:
|
|
unsureAsgnRef((void**)&(*Result)._o_1.e, NIM_NIL); break;
|
|
case NIM_TRUE:
|
|
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
|
|
}
|
|
(*Result).o = 0;
|
|
#line 30 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
|
|
#line 30 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
T1_ = (NimStringDesc*)0; T1_ = rawNewString((taskStr ? taskStr->Sup.len : 0) + 61);appendString(T1_, ((NimStringDesc*) &TM__N9cMeyMLENEUug7LiFiuiEw_4));appendString(T1_, taskStr); cmdString = T1_;
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
pushSafePoint(&TM__N9cMeyMLENEUug7LiFiuiEw_5); TM__N9cMeyMLENEUug7LiFiuiEw_5.status = setjmp(TM__N9cMeyMLENEUug7LiFiuiEw_5.context); if (TM__N9cMeyMLENEUug7LiFiuiEw_5.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record; NI T4_; nimZeroMem((void*)(&record), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
|
|
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
chckNil((void*)(&record)); nimZeroMem((void*)(&record), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
|
|
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
|
|
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 2), ((NimStringDesc*) &TM__N9cMeyMLENEUug7LiFiuiEw_6), ((NimStringDesc*) &TM__N9cMeyMLENEUug7LiFiuiEw_7));
|
|
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
T4_ = (NI)0; T4_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record), ((NimStringDesc*) &TM__N9cMeyMLENEUug7LiFiuiEw_8), T4_);
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
setProperty__U2vmGWVLHFSD9cvjHnmuu2A((&record), ((NimStringDesc*) &TM__N9cMeyMLENEUug7LiFiuiEw_9), cmdString);
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record));
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record));
|
|
}
|
|
popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym155280019_; Exception* T7_; Exception* T8_; TM__N9cMeyMLENEUug7LiFiuiEw_5.status = 0;
|
|
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
|
|
#line 0 "\?\?\?"
|
|
|
|
#line 0 "\?\?\?"
|
|
T7_ = (Exception*)0; T7_ = getCurrentException(); errX60gensym155280019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T7_));
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
T8_ = (Exception*)0; T8_ = &errX60gensym155280019_->Sup;
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("execNodeTask", T8_);
|
|
popCurrentException(); }
|
|
}
|
|
if (TM__N9cMeyMLENEUug7LiFiuiEw_5.status != 0) reraiseException();
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
pushSafePoint(&TM__N9cMeyMLENEUug7LiFiuiEw_10); TM__N9cMeyMLENEUug7LiFiuiEw_10.status = setjmp(TM__N9cMeyMLENEUug7LiFiuiEw_10.context); if (TM__N9cMeyMLENEUug7LiFiuiEw_10.status == 0) { tyTuple__XOVT24GHXwqiEj5GCsEGCA T10_; NimStringDesc* output; NI errC; TSafePoint TM__N9cMeyMLENEUug7LiFiuiEw_14; TSafePoint TM__N9cMeyMLENEUug7LiFiuiEw_16;
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
nimZeroMem((void*)(&T10_), sizeof(tyTuple__XOVT24GHXwqiEj5GCsEGCA)); execCmdEx__9cTpvDl4v9c9c9aFgpXBZMyDDA(cmdString, 10, (&T10_));
|
|
output = (NimStringDesc*)0; output = T10_.Field0; errC = (NI)0; errC = T10_.Field1;
|
|
#line 35 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
{ TSafePoint TM__N9cMeyMLENEUug7LiFiuiEw_11;
|
|
#line 35 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
if (!(((NI) 0) < errC)) goto LA13_;
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
pushSafePoint(&TM__N9cMeyMLENEUug7LiFiuiEw_11); TM__N9cMeyMLENEUug7LiFiuiEw_11.status = setjmp(TM__N9cMeyMLENEUug7LiFiuiEw_11.context); if (TM__N9cMeyMLENEUug7LiFiuiEw_11.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record_2; NI T17_; nimZeroMem((void*)(&record_2), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
|
|
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
chckNil((void*)(&record_2)); nimZeroMem((void*)(&record_2), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
|
|
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
|
|
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record_2), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 6), ((NimStringDesc*) &TM__N9cMeyMLENEUug7LiFiuiEw_6), ((NimStringDesc*) &TM__N9cMeyMLENEUug7LiFiuiEw_12));
|
|
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
T17_ = (NI)0; T17_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record_2), ((NimStringDesc*) &TM__N9cMeyMLENEUug7LiFiuiEw_8), T17_);
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
setProperty__U2vmGWVLHFSD9cvjHnmuu2A((&record_2), ((NimStringDesc*) &TM__N9cMeyMLENEUug7LiFiuiEw_13), output);
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record_2));
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record_2));
|
|
}
|
|
popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym155350019_; Exception* T20_; Exception* T21_; TM__N9cMeyMLENEUug7LiFiuiEw_11.status = 0;
|
|
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
|
|
#line 0 "\?\?\?"
|
|
|
|
#line 0 "\?\?\?"
|
|
T20_ = (Exception*)0; T20_ = getCurrentException(); errX60gensym155350019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T20_));
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
T21_ = (Exception*)0; T21_ = &errX60gensym155350019_->Sup;
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("Error executing node task", T21_);
|
|
popCurrentException(); }
|
|
}
|
|
if (TM__N9cMeyMLENEUug7LiFiuiEw_11.status != 0) reraiseException();
|
|
#line 37 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
|
|
#line 37 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
chckNil((void*)Result); switch ((*Result).o) {
|
|
case NIM_FALSE:
|
|
unsureAsgnRef((void**)&(*Result)._o_1.e, NIM_NIL); break;
|
|
case NIM_TRUE:
|
|
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
|
|
}
|
|
(*Result).o = 0; (*Result).o = NIM_FALSE; unsureAsgnRef((void**) (&(*Result)._o_1.e), copyString(output)); popSafePoint(); goto BeforeRet_;
|
|
}
|
|
LA13_: ;
|
|
|
|
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
pushSafePoint(&TM__N9cMeyMLENEUug7LiFiuiEw_14); TM__N9cMeyMLENEUug7LiFiuiEw_14.status = setjmp(TM__N9cMeyMLENEUug7LiFiuiEw_14.context); if (TM__N9cMeyMLENEUug7LiFiuiEw_14.status == 0) { { tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA volatile record_3; NI T24_; nimZeroMem((void*)(&record_3), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
|
|
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
chckNil((void*)(&record_3)); nimZeroMem((void*)(&record_3), sizeof(tyObject_TextLineRecord__EhHqp0aF43SxfS6MTF9b0hA));
|
|
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
|
|
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
initLogRecord__HL9c9cddRJSOGQAMUgF3lB0w((&record_3), ((tyEnum_LogLevel__9bciZEQ8iC1G2PermjsuXmA) 2), ((NimStringDesc*) &TM__N9cMeyMLENEUug7LiFiuiEw_6), ((NimStringDesc*) &TM__N9cMeyMLENEUug7LiFiuiEw_15));
|
|
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
T24_ = (NI)0; T24_ = getLogThreadId__MquaZIXVsrxU5lCSpmC3Jw();
|
|
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
setProperty__czv7v33Y9bwyVAHI9b2eiKDw((&record_3), ((NimStringDesc*) &TM__N9cMeyMLENEUug7LiFiuiEw_8), T24_);
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
setProperty__U2vmGWVLHFSD9cvjHnmuu2A((&record_3), ((NimStringDesc*) &TM__N9cMeyMLENEUug7LiFiuiEw_13), output);
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
logAllDynamicProperties__2fo45m4EsDq89bdWxK19aOpQ((&record_3));
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles/log_output.nim"
|
|
flushRecord__2TFyTWhDxeU5kGr2yqnA6w((&record_3));
|
|
}
|
|
popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* errX60gensym155425019_; Exception* T27_; Exception* T28_; TM__N9cMeyMLENEUug7LiFiuiEw_14.status = 0;
|
|
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
|
|
#line 0 "\?\?\?"
|
|
|
|
#line 0 "\?\?\?"
|
|
T27_ = (Exception*)0; T27_ = getCurrentException(); errX60gensym155425019_ = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T27_));
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
T28_ = (Exception*)0; T28_ = &errX60gensym155425019_->Sup;
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronicles/chronicles.nim"
|
|
logLoggingFailure__HTlKfqAl9c6Ci7zIH6cYlmg("Command executed", T28_);
|
|
popCurrentException(); }
|
|
}
|
|
if (TM__N9cMeyMLENEUug7LiFiuiEw_14.status != 0) reraiseException();
|
|
#line 41 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
pushSafePoint(&TM__N9cMeyMLENEUug7LiFiuiEw_16); TM__N9cMeyMLENEUug7LiFiuiEw_16.status = setjmp(TM__N9cMeyMLENEUug7LiFiuiEw_16.context); if (TM__N9cMeyMLENEUug7LiFiuiEw_16.status == 0) { tyObject_JsonNodeObj__df9bshXB7C9cTiWPIOtX3j1Q* json;
|
|
#line 42 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
|
|
#line 42 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
json = parseJson__Y9cImsF2VGDWROPSsgTGewQ(output);
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
|
|
#line 43 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
chckNil((void*)Result); switch ((*Result).o) {
|
|
case NIM_FALSE:
|
|
unsureAsgnRef((void**)&(*Result)._o_1.e, NIM_NIL); break;
|
|
case NIM_TRUE:
|
|
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
|
|
}
|
|
(*Result).o = 0; (*Result).o = NIM_TRUE; unsureAsgnRef((void**) (&(*Result)._o_2.v), json); popSafePoint(); popSafePoint(); goto BeforeRet_;
|
|
popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__XTejXaID1NT7KS9byQm3Jxg_))) { NimStringDesc* T32_; TM__N9cMeyMLENEUug7LiFiuiEw_16.status = 0;
|
|
#line 45 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
|
|
#line 45 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
chckNil((void*)Result); switch ((*Result).o) {
|
|
case NIM_FALSE:
|
|
unsureAsgnRef((void**)&(*Result)._o_1.e, NIM_NIL); break;
|
|
case NIM_TRUE:
|
|
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
|
|
}
|
|
(*Result).o = 0; (*Result).o = NIM_FALSE;
|
|
#line 45 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
T32_ = (NimStringDesc*)0; T32_ = rawNewString((output ? output->Sup.len : 0) + 21);appendString(T32_, ((NimStringDesc*) &TM__N9cMeyMLENEUug7LiFiuiEw_17));appendString(T32_, output); unsureAsgnRef((void**) (&(*Result)._o_1.e), T32_); popSafePoint(); popCurrentException(); goto BeforeRet_;
|
|
popCurrentException(); }
|
|
else if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__XEycrCsme5C8CVWAYEcdBQ_))) { NimStringDesc* T34_; TM__N9cMeyMLENEUug7LiFiuiEw_16.status = 0;
|
|
#line 47 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
|
|
#line 47 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
chckNil((void*)Result); switch ((*Result).o) {
|
|
case NIM_FALSE:
|
|
unsureAsgnRef((void**)&(*Result)._o_1.e, NIM_NIL); break;
|
|
case NIM_TRUE:
|
|
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
|
|
}
|
|
(*Result).o = 0; (*Result).o = NIM_FALSE;
|
|
#line 47 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
T34_ = (NimStringDesc*)0; T34_ = rawNewString((output ? output->Sup.len : 0) + 21);appendString(T34_, ((NimStringDesc*) &TM__N9cMeyMLENEUug7LiFiuiEw_17));appendString(T34_, output); unsureAsgnRef((void**) (&(*Result)._o_1.e), T34_); popSafePoint(); popCurrentException(); goto BeforeRet_;
|
|
popCurrentException(); }
|
|
}
|
|
if (TM__N9cMeyMLENEUug7LiFiuiEw_16.status != 0) reraiseException(); popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__BeJgrOdDsczOwEWOZbRfKA_))) { NimStringDesc* T37_; TM__N9cMeyMLENEUug7LiFiuiEw_10.status = 0;
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
chckNil((void*)Result); switch ((*Result).o) {
|
|
case NIM_FALSE:
|
|
unsureAsgnRef((void**)&(*Result)._o_1.e, NIM_NIL); break;
|
|
case NIM_TRUE:
|
|
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
|
|
}
|
|
(*Result).o = 0; (*Result).o = NIM_FALSE;
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
T37_ = (NimStringDesc*)0; T37_ = rawNewString((taskStr ? taskStr->Sup.len : 0) + 35);appendString(T37_, ((NimStringDesc*) &TM__N9cMeyMLENEUug7LiFiuiEw_18));appendString(T37_, taskStr); unsureAsgnRef((void**) (&(*Result)._o_1.e), T37_); popCurrentException(); goto BeforeRet_;
|
|
popCurrentException(); }
|
|
else if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__XEycrCsme5C8CVWAYEcdBQ_))) { NimStringDesc* T39_; TM__N9cMeyMLENEUug7LiFiuiEw_10.status = 0;
|
|
#line 52 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
|
|
#line 52 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
chckNil((void*)Result); switch ((*Result).o) {
|
|
case NIM_FALSE:
|
|
unsureAsgnRef((void**)&(*Result)._o_1.e, NIM_NIL); break;
|
|
case NIM_TRUE:
|
|
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
|
|
}
|
|
(*Result).o = 0; (*Result).o = NIM_FALSE;
|
|
#line 52 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
T39_ = (NimStringDesc*)0; T39_ = rawNewString((taskStr ? taskStr->Sup.len : 0) + 26);appendString(T39_, ((NimStringDesc*) &TM__N9cMeyMLENEUug7LiFiuiEw_19));appendString(T39_, taskStr); unsureAsgnRef((void**) (&(*Result)._o_1.e), T39_); popCurrentException(); goto BeforeRet_;
|
|
popCurrentException(); }
|
|
}
|
|
if (TM__N9cMeyMLENEUug7LiFiuiEw_10.status != 0) reraiseException(); }BeforeRet_: ;
|
|
}
|
|
|
|
#line 64 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, signCheque__FIMnyoKpKhU1aoIva2TClA)(NimStringDesc* swapAddress, tyObject_Result__M20b89b4X7FYizjpfMZLjjA* Result) { NimStringDesc* task; NimStringDesc* T1_; tyObject_Result__M20b89b4X7FYizjpfMZLjjA res;{
|
|
#line 65 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
|
|
#line 65 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
T1_ = (NimStringDesc*)0; T1_ = rawNewString((swapAddress ? swapAddress->Sup.len : 0) + 27);appendString(T1_, ((NimStringDesc*) &TM__N9cMeyMLENEUug7LiFiuiEw_2));appendString(T1_, swapAddress);appendString(T1_, ((NimStringDesc*) &TM__N9cMeyMLENEUug7LiFiuiEw_3)); task = T1_; nimZeroMem((void*)(&res), sizeof(tyObject_Result__M20b89b4X7FYizjpfMZLjjA));
|
|
#line 66 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
|
|
#line 66 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
execNodeTaskJson__9bvf9buEPjzjLMe7zzKnchbQ(task, (&res));
|
|
|
|
#line 67 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
|
|
#line 67 "/home/runner/work/nim-waku/nim-waku/waku/v2/protocol/waku_swap/waku_swap_contracts.nim"
|
|
genericAssign((void*)Result, (void*)(&res), (&NTI__M20b89b4X7FYizjpfMZLjjA_)); goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
}
|