New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@manahippo/move-to-ts

Package Overview
Dependencies
Maintainers
2
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@manahippo/move-to-ts - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

6

dist/aptosDataCache.d.ts

@@ -105,4 +105,4 @@ import { AptosClient, HexString, Types } from "aptos";

}
export declare type UpdateType = "update" | "delete";
export declare type ListenerType = {
export type UpdateType = "update" | "delete";
export type ListenerType = {
id: string;

@@ -132,3 +132,3 @@ callback: (type: UpdateType, value: any) => void;

}
export declare type AppType = {
export type AppType = {
client: AptosClient;

@@ -135,0 +135,0 @@ repo: AptosParserRepo;

@@ -1,7 +0,7 @@

export declare type TypeTagString = string;
export declare type JsonStructFieldType = {
export type TypeTagString = string;
export type JsonStructFieldType = {
name: string;
type: TypeTagString;
};
export declare type JsonNamedConstantType = {
export type JsonNamedConstantType = {
name: string;

@@ -11,4 +11,4 @@ type: TypeTagString;

};
export declare type JsonAbilityType = "key" | "store" | "copy" | "drop";
export declare type JsonTypeParamType = {
export type JsonAbilityType = "key" | "store" | "copy" | "drop";
export type JsonTypeParamType = {
name: string;

@@ -18,3 +18,3 @@ abilities: JsonAbilityType[];

};
export declare type JsonStructType = {
export type JsonStructType = {
name: string;

@@ -25,7 +25,7 @@ abilities: JsonAbilityType[];

};
export declare type JsonFuncParamType = {
export type JsonFuncParamType = {
name: string;
type: TypeTagString;
};
export declare type JsonFuncType = {
export type JsonFuncType = {
name: string;

@@ -35,3 +35,3 @@ type_params: JsonTypeParamType[];

};
export declare type JsonModuleType = {
export type JsonModuleType = {
address: string;

@@ -38,0 +38,0 @@ module: string;

import { TypeTag } from "./typeTag";
import { AptosClient, HexString } from "aptos";
import { U128, U16, U256, U32, U64, U8 } from "./builtinTypes";
export declare type TypeParamDeclType = {
export type TypeParamDeclType = {
name: string;
isPhantom: boolean;
};
export declare type FieldDeclType = {
export type FieldDeclType = {
name: string;

@@ -22,3 +22,3 @@ typeTag: TypeTag;

export declare function parseStructProto(data: any, typeTag: TypeTag, repo: AptosParserRepo, struct: StructInfoType): any;
export declare type ParserFunc = (data: any, typeTag: TypeTag, repo: AptosParserRepo) => any;
export type ParserFunc = (data: any, typeTag: TypeTag, repo: AptosParserRepo) => any;
export declare function U8Parser(data: any, typeTag: TypeTag, _repo: AptosParserRepo): U8;

@@ -25,0 +25,0 @@ export declare function U16Parser(data: any, typeTag: TypeTag, _repo: AptosParserRepo): U16;

@@ -6,4 +6,4 @@ import { AptosClient, AptosAccount, Types, TxnBuilderTypes, HexString } from "aptos";

import { ActualStringClass } from "./nativeFuncs";
declare type AcceptedScriptFuncArgType = any[] | U8 | U64 | U128 | HexString | boolean | ActualStringClass;
export declare type OptionTransaction = {
type AcceptedScriptFuncArgType = any[] | U8 | U64 | U128 | HexString | boolean | ActualStringClass;
export type OptionTransaction = {
maxGasAmount?: number;

@@ -13,6 +13,8 @@ gasUnitPrice?: number;

};
export declare function buildViewPayload(moduleAddress: HexString, moduleName: string, funcName: string, typeArguments: string[], args: AcceptedScriptFuncArgType[]): Types.ViewRequest;
export declare function buildPayload(moduleAddress: HexString, moduleName: string, funcName: string, typeArguments: string[], args: AcceptedScriptFuncArgType[], isJSON?: boolean): TxnBuilderTypes.TransactionPayloadEntryFunction | Types.TransactionPayload_EntryFunctionPayload;
export declare function sendPayloadTx(client: AptosClient, account: AptosAccount, payload: TxnBuilderTypes.TransactionPayload | Types.TransactionPayload_EntryFunctionPayload, option?: OptionTransaction): Promise<Types.UserTransaction>;
export declare function sendViewPayload(client: AptosClient, payload: Types.ViewRequest, ledger_version?: string): Promise<void>;
export declare function sendPayloadTxAndLog(client: AptosClient, account: AptosAccount, payload: TxnBuilderTypes.TransactionPayload | Types.TransactionPayload_EntryFunctionPayload, option?: OptionTransaction, log?: boolean): Promise<Types.UserTransaction>;
export declare type SimulationKeys = {
export type SimulationKeys = {
pubkey: HexString;

@@ -19,0 +21,0 @@ address: HexString;

@@ -47,3 +47,3 @@ import { HexString } from "aptos";

}
export declare type TypeTag = AtomicTypeTag | VectorTag | StructTag | TypeParamIdx;
export type TypeTag = AtomicTypeTag | VectorTag | StructTag | TypeParamIdx;
export declare function getTypeTagFullname(typeTag: TypeTag): string;

@@ -50,0 +50,0 @@ export declare function getShortAddressTypeTagFullname(typeTag: TypeTag): string;

{
"name": "@manahippo/move-to-ts",
"version": "2.0.1",
"version": "2.0.2",
"license": "MIT",

@@ -5,0 +5,0 @@ "scripts": {

@@ -37,2 +37,16 @@ import {

export function buildViewPayload(
moduleAddress: HexString,
moduleName: string,
funcName: string,
typeArguments: string[],
args: AcceptedScriptFuncArgType[],
):Types.ViewRequest{
return {
function: `${moduleAddress.toShortString()}::${moduleName}::${funcName}`,
type_arguments: typeArguments,
arguments: args.map((v) => payloadArg(v))
};
}
export function buildPayload(

@@ -120,2 +134,10 @@ moduleAddress: HexString,

export async function sendViewPayload(
client: AptosClient,
payload: Types.ViewRequest,
ledger_version?: string
){
await client.view(payload, ledger_version)
}
export async function sendPayloadTxAndLog(

@@ -122,0 +144,0 @@ client: AptosClient,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc