diff --git a/src/provider/types.ts b/src/provider/types.ts index 6513a80f..e05d47a5 100644 --- a/src/provider/types.ts +++ b/src/provider/types.ts @@ -4,6 +4,8 @@ import { U64_t } from '../basicElements/serializers/number/u64' import { SCEvent, Slot } from '../client' type CallSCCommons = { + func: string + target: string parameter?: Args | Uint8Array coins?: Mas fee?: Mas @@ -11,12 +13,10 @@ type CallSCCommons = { } export type ReadSCParams = CallSCCommons & { - func: string - target: string caller?: string } -export type CallSCParams = ReadSCParams & { +export type CallSCParams = CallSCCommons & { periodToLive?: number }