Arguments: { object: { clock(): ((tx: Transaction) => { $kind: "Input"; Input: number; type?: "object"; }); denyList(): ((tx: Transaction) => { $kind: "Input"; Input: number; type?: "object"; }); option(__namedParameters: { type: string; value: null | TransactionObjectInput; }): ((tx: Transaction) => TransactionResult); random(): ((tx: Transaction) => { $kind: "Input"; Input: number; type?: "object"; }); system(): ((tx: Transaction) => { $kind: "Input"; Input: number; type?: "object"; }); (value: TransactionObjectInput): ((tx: Transaction) => { $kind: "Input"; Input: number; type?: "object"; }); }; objectRef: ((...args: [{ digest: string; objectId: string; version: string | number; }]) => ((tx: Transaction) => { $kind: "Input"; Input: number; type?: "object"; })); pure: { id: ((value: string) => ((tx: Transaction) => | { $kind: "GasCoin"; GasCoin: true; } | { $kind: "Input"; Input: number; type?: "pure"; } | { $kind: "Input"; Input: number; type?: "object"; } | { $kind: "Result"; Result: number; } | { $kind: "NestedResult"; NestedResult: [number, number]; })); address(value: string): ((tx: Transaction) => | { $kind: "GasCoin"; GasCoin: true; } | { $kind: "Input"; Input: number; type?: "pure"; } | { $kind: "Input"; Input: number; type?: "object"; } | { $kind: "Result"; Result: number; } | { $kind: "NestedResult"; NestedResult: [number, number]; }); bool(value: boolean): ((tx: Transaction) => | { $kind: "GasCoin"; GasCoin: true; } | { $kind: "Input"; Input: number; type?: "pure"; } | { $kind: "Input"; Input: number; type?: "object"; } | { $kind: "Result"; Result: number; } | { $kind: "NestedResult"; NestedResult: [number, number]; }); option<Type>(type: Type,
value: undefined | null | ShapeFromPureTypeName<Type>): ((tx: Transaction) => | { $kind: "GasCoin"; GasCoin: true; } | { $kind: "Input"; Input: number; type?: "pure"; } | { $kind: "Input"; Input: number; type?: "object"; } | { $kind: "Result"; Result: number; } | { $kind: "NestedResult"; NestedResult: [number, number]; }); string(value: string): ((tx: Transaction) => | { $kind: "GasCoin"; GasCoin: true; } | { $kind: "Input"; Input: number; type?: "pure"; } | { $kind: "Input"; Input: number; type?: "object"; } | { $kind: "Result"; Result: number; } | { $kind: "NestedResult"; NestedResult: [number, number]; }); u128(value: string | number | bigint): ((tx: Transaction) => | { $kind: "GasCoin"; GasCoin: true; } | { $kind: "Input"; Input: number; type?: "pure"; } | { $kind: "Input"; Input: number; type?: "object"; } | { $kind: "Result"; Result: number; } | { $kind: "NestedResult"; NestedResult: [number, number]; }); u16(value: number): ((tx: Transaction) => | { $kind: "GasCoin"; GasCoin: true; } | { $kind: "Input"; Input: number; type?: "pure"; } | { $kind: "Input"; Input: number; type?: "object"; } | { $kind: "Result"; Result: number; } | { $kind: "NestedResult"; NestedResult: [number, number]; }); u256(value: string | number | bigint): ((tx: Transaction) => | { $kind: "GasCoin"; GasCoin: true; } | { $kind: "Input"; Input: number; type?: "pure"; } | { $kind: "Input"; Input: number; type?: "object"; } | { $kind: "Result"; Result: number; } | { $kind: "NestedResult"; NestedResult: [number, number]; }); u32(value: number): ((tx: Transaction) => | { $kind: "GasCoin"; GasCoin: true; } | { $kind: "Input"; Input: number; type?: "pure"; } | { $kind: "Input"; Input: number; type?: "object"; } | { $kind: "Result"; Result: number; } | { $kind: "NestedResult"; NestedResult: [number, number]; }); u64(value: string | number | bigint): ((tx: Transaction) => | { $kind: "GasCoin"; GasCoin: true; } | { $kind: "Input"; Input: number; type?: "pure"; } | { $kind: "Input"; Input: number; type?: "object"; } | { $kind: "Result"; Result: number; } | { $kind: "NestedResult"; NestedResult: [number, number]; }); u8(value: number): ((tx: Transaction) => | { $kind: "GasCoin"; GasCoin: true; } | { $kind: "Input"; Input: number; type?: "pure"; } | { $kind: "Input"; Input: number; type?: "object"; } | { $kind: "Result"; Result: number; } | { $kind: "NestedResult"; NestedResult: [number, number]; }); vector<Type>(type: Type,
value: Iterable<ShapeFromPureTypeName<Type>, any, any> & { length: number; }): ((tx: Transaction) => | { $kind: "GasCoin"; GasCoin: true; } | { $kind: "Input"; Input: number; type?: "pure"; } | { $kind: "Input"; Input: number; type?: "object"; } | { $kind: "Result"; Result: number; } | { $kind: "NestedResult"; NestedResult: [number, number]; }); <T>(type: T extends PureTypeName ? ValidPureTypeName<T<T>> : T,
value: ShapeFromPureTypeName<T>): T; (value: Uint8Array | SerializedBcs<any, any>): T; }; receivingRef: ((...args: [{ digest: string; objectId: string; version: string | number; }]) => ((tx: Transaction) => { $kind: "Input"; Input: number; type?: "object"; })); sharedObjectRef: ((...args: [{ initialSharedVersion: string | number; mutable: boolean; objectId: string; }]) => ((tx: Transaction) => { $kind: "Input"; Input: number; type?: "object"; })); } = ... Type declaration
object: {
clock(): ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
});
denyList(): ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
});
option(__namedParameters: {
type: string;
value: null | TransactionObjectInput;
}): ((tx: Transaction) => TransactionResult);
random(): ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
});
system(): ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
});
(value: TransactionObjectInput): ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
});
}
- (value): ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
}) Returns ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
})
- (tx): {
$kind: "Input";
Input: number;
type?: "object";
} Returns {
$kind: "Input";
Input: number;
type?: "object";
}
$kind: "Input"
Input: number
Optional
type?: "object"
clock:function
- clock(): ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
}) Returns ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
})
- (tx): {
$kind: "Input";
Input: number;
type?: "object";
} Returns {
$kind: "Input";
Input: number;
type?: "object";
}
$kind: "Input"
Input: number
Optional
type?: "object"
denyList:function
- denyList(): ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
}) Returns ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
})
- (tx): {
$kind: "Input";
Input: number;
type?: "object";
} Returns {
$kind: "Input";
Input: number;
type?: "object";
}
$kind: "Input"
Input: number
Optional
type?: "object"
option:function
random:function
- random(): ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
}) Returns ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
})
- (tx): {
$kind: "Input";
Input: number;
type?: "object";
} Returns {
$kind: "Input";
Input: number;
type?: "object";
}
$kind: "Input"
Input: number
Optional
type?: "object"
system:function
- system(): ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
}) Returns ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
})
- (tx): {
$kind: "Input";
Input: number;
type?: "object";
} Returns {
$kind: "Input";
Input: number;
type?: "object";
}
$kind: "Input"
Input: number
Optional
type?: "object"
objectRef: ((...args: [{
digest: string;
objectId: string;
version: string | number;
}]) => ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
}))
- (...args): ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
}) Parameters
Rest
...args: [{
digest: string;
objectId: string;
version: string | number;
}]
Returns ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
})
- (tx): {
$kind: "Input";
Input: number;
type?: "object";
} Returns {
$kind: "Input";
Input: number;
type?: "object";
}
$kind: "Input"
Input: number
Optional
type?: "object"
pure: {
id: ((value: string) => ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}));
address(value: string): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
});
bool(value: boolean): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
});
option<Type>(type: Type, value: undefined | null | ShapeFromPureTypeName<Type>): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
});
string(value: string): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
});
u128(value: string | number | bigint): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
});
u16(value: number): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
});
u256(value: string | number | bigint): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
});
u32(value: number): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
});
u64(value: string | number | bigint): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
});
u8(value: number): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
});
vector<Type>(type: Type, value: Iterable<ShapeFromPureTypeName<Type>, any, any> & {
length: number;
}): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
});
<T>(type: T extends PureTypeName
? ValidPureTypeName<T<T>>
: T, value: ShapeFromPureTypeName<T>): T;
(value: Uint8Array | SerializedBcs<any, any>): T;
}
- <T>(type, value): T
Parameters
- type: T extends PureTypeName
? ValidPureTypeName<T<T>>
: T - value: ShapeFromPureTypeName<T>
Returns T
- (value): T
Returns T
id: ((value: string) => ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}))
- (value): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}) Returns ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
})
- (tx):
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
} Returns
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}
address:function
- address(value): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}) Returns ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
})
- (tx):
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
} Returns
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}
bool:function
- bool(value): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}) Returns ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
})
- (tx):
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
} Returns
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}
option:function
- option<Type>(type, value): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}) Type Parameters
- Type extends PureTypeName
Parameters
- type: Type
- value: undefined | null | ShapeFromPureTypeName<Type>
Returns ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
})
- (tx):
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
} Returns
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}
string:function
- string(value): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}) Returns ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
})
- (tx):
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
} Returns
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}
u128:function
- u128(value): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}) Parameters
- value: string | number | bigint
Returns ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
})
- (tx):
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
} Returns
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}
u16:function
- u16(value): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}) Returns ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
})
- (tx):
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
} Returns
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}
u256:function
- u256(value): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}) Parameters
- value: string | number | bigint
Returns ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
})
- (tx):
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
} Returns
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}
u32:function
- u32(value): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}) Returns ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
})
- (tx):
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
} Returns
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}
u64:function
- u64(value): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}) Parameters
- value: string | number | bigint
Returns ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
})
- (tx):
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
} Returns
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}
u8:function
- u8(value): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}) Returns ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
})
- (tx):
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
} Returns
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}
vector:function
- vector<Type>(type, value): ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}) Type Parameters
- Type extends PureTypeName
Parameters
- type: Type
- value: Iterable<ShapeFromPureTypeName<Type>, any, any> & {
length: number;
}
Returns ((tx: Transaction) =>
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
})
- (tx):
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
} Returns
| {
$kind: "GasCoin";
GasCoin: true;
}
| {
$kind: "Input";
Input: number;
type?: "pure";
}
| {
$kind: "Input";
Input: number;
type?: "object";
}
| {
$kind: "Result";
Result: number;
}
| {
$kind: "NestedResult";
NestedResult: [number, number];
}
receivingRef: ((...args: [{
digest: string;
objectId: string;
version: string | number;
}]) => ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
}))
- (...args): ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
}) Parameters
Rest
...args: [{
digest: string;
objectId: string;
version: string | number;
}]
Returns ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
})
- (tx): {
$kind: "Input";
Input: number;
type?: "object";
} Returns {
$kind: "Input";
Input: number;
type?: "object";
}
$kind: "Input"
Input: number
Optional
type?: "object"
sharedObjectRef: ((...args: [{
initialSharedVersion: string | number;
mutable: boolean;
objectId: string;
}]) => ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
}))
- (...args): ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
}) Parameters
Rest
...args: [{
initialSharedVersion: string | number;
mutable: boolean;
objectId: string;
}]
Returns ((tx: Transaction) => {
$kind: "Input";
Input: number;
type?: "object";
})
- (tx): {
$kind: "Input";
Input: number;
type?: "object";
} Returns {
$kind: "Input";
Input: number;
type?: "object";
}
$kind: "Input"
Input: number
Optional
type?: "object"
The pure value, serialized to BCS. If this is a Uint8Array, then the value is assumed to be raw bytes, and will be used directly.