mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2024-12-05 02:10:18 +00:00
misc fixes
This commit is contained in:
parent
d5b090edfa
commit
f8eb751983
@ -1,7 +1,7 @@
|
||||
import { SecurityTetraplet } from '@fluencelabs/avm';
|
||||
import type { MultiaddrInput } from '@multiformats/multiaddr';
|
||||
import { FnConfig, FunctionCallDef, ServiceDef } from './compilerSupport';
|
||||
export * from './compilerSupport';
|
||||
import { FnConfig, FunctionCallDef, ServiceDef } from './compilerSupport.js';
|
||||
export * from './compilerSupport.js';
|
||||
|
||||
/**
|
||||
* Peer ID's id as a base58 string (multihash/CIDv0).
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { aqua2ts, ts2aqua } from '../conversions';
|
||||
import { aqua2ts, ts2aqua } from '../conversions.js';
|
||||
|
||||
const i32 = { tag: 'scalar', name: 'i32' } as const;
|
||||
|
||||
|
@ -5,8 +5,8 @@ import {
|
||||
NonArrowType,
|
||||
getArgumentTypes,
|
||||
isReturnTypeVoid,
|
||||
IFluencePeer,
|
||||
} from '@fluencelabs/interface';
|
||||
import { IFluencePeer } from '@fluencelabs/interface';
|
||||
|
||||
import {
|
||||
injectRelayService,
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { jsonify } from '../js-peer/utils.js';
|
||||
import { match } from 'ts-pattern';
|
||||
import { ArrowType, ArrowWithoutCallbacks, NonArrowType } from '@fluencelabs/interface';
|
||||
import type { ArrowType, ArrowWithoutCallbacks, NonArrowType } from '@fluencelabs/interface';
|
||||
import { CallServiceData } from '../interfaces/commonTypes.js';
|
||||
|
||||
/**
|
||||
@ -103,6 +103,7 @@ export const ts2aqua = (value: any, type: NonArrowType): any => {
|
||||
return [ts2aqua(value, opt.type)];
|
||||
}
|
||||
})
|
||||
// @ts-ignore
|
||||
.with({ tag: 'scalar' }, { tag: 'bottomType' }, { tag: 'topType' }, () => {
|
||||
return value;
|
||||
})
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IFluencePeer } from '@fluencelabs/interface';
|
||||
import { ServiceDef } from '@fluencelabs/interface';
|
||||
import type { IFluencePeer, ServiceDef } from '@fluencelabs/interface';
|
||||
import { registerGlobalService, userHandlerService } from './services.js';
|
||||
|
||||
export const registerServiceImpl = (
|
||||
|
@ -3,10 +3,16 @@ import { match } from 'ts-pattern';
|
||||
|
||||
import { Particle } from '../js-peer/Particle.js';
|
||||
import { CallServiceData, GenericCallServiceHandler, ResultCodes } from '../interfaces/commonTypes.js';
|
||||
import { IFluencePeer, CallParams } from '@fluencelabs/interface';
|
||||
|
||||
import { aquaArgs2Ts, responseServiceValue2ts, returnType2Aqua, ts2aqua } from './conversions.js';
|
||||
import { ArrowWithoutCallbacks, FunctionCallConstants, FunctionCallDef, NonArrowType } from '@fluencelabs/interface';
|
||||
import {
|
||||
IFluencePeer,
|
||||
CallParams,
|
||||
ArrowWithoutCallbacks,
|
||||
FunctionCallConstants,
|
||||
FunctionCallDef,
|
||||
NonArrowType,
|
||||
} from '@fluencelabs/interface';
|
||||
|
||||
export interface ServiceDescription {
|
||||
serviceId: string;
|
||||
|
Loading…
Reference in New Issue
Block a user