@typemove/sui 1.11.1-rc.2 → 1.12.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/builtin/0x2.d.ts +98 -0
- package/dist/cjs/builtin/0x2.d.ts.map +1 -1
- package/dist/cjs/builtin/0x2.js +364 -3
- package/dist/cjs/builtin/0x2.js.map +1 -1
- package/dist/cjs/builtin/0x3.d.ts +4 -0
- package/dist/cjs/builtin/0x3.d.ts.map +1 -1
- package/dist/cjs/builtin/0x3.js +41 -1
- package/dist/cjs/builtin/0x3.js.map +1 -1
- package/dist/esm/builtin/0x2.d.ts +98 -0
- package/dist/esm/builtin/0x2.d.ts.map +1 -1
- package/dist/esm/builtin/0x2.js +362 -1
- package/dist/esm/builtin/0x2.js.map +1 -1
- package/dist/esm/builtin/0x3.d.ts +4 -0
- package/dist/esm/builtin/0x3.d.ts.map +1 -1
- package/dist/esm/builtin/0x3.js +41 -1
- package/dist/esm/builtin/0x3.js.map +1 -1
- package/package.json +3 -3
- package/src/abis/0x2.json +508 -0
- package/src/abis/0x3.json +52 -0
- package/src/builtin/0x2.ts +537 -1
- package/src/builtin/0x3.ts +57 -1
|
@@ -32,6 +32,9 @@ export declare namespace accumulator {
|
|
|
32
32
|
}
|
|
33
33
|
namespace builder {
|
|
34
34
|
function accumulatorAddress<T0 = any>(tx: Transaction, args: [string | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
35
|
+
function accumulatorKey<T0 = any>(tx: Transaction, args: [string | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
|
36
|
+
function createU128(tx: Transaction, args: [bigint | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
37
|
+
function destroyU128(tx: Transaction, args: [accumulator.U128 | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
|
35
38
|
function emitDepositEvent<T0 = any>(tx: Transaction, args: [
|
|
36
39
|
string | TransactionArgument,
|
|
37
40
|
string | TransactionArgument,
|
|
@@ -50,12 +53,107 @@ export declare namespace accumulator {
|
|
|
50
53
|
TransactionArgument,
|
|
51
54
|
TransactionArgument
|
|
52
55
|
];
|
|
56
|
+
function isZeroU128(tx: Transaction, args: [string | TransactionObjectArgument]): TransactionArgument & [TransactionArgument];
|
|
57
|
+
function rootAddAccumulator<T0 = any, T1 = any>(tx: Transaction, args: [
|
|
58
|
+
string | TransactionObjectArgument,
|
|
59
|
+
accumulator.Key<T0> | TransactionArgument,
|
|
60
|
+
T1 | TransactionArgument
|
|
61
|
+
], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): TransactionArgument & [
|
|
62
|
+
TransactionArgument,
|
|
63
|
+
TransactionArgument,
|
|
64
|
+
TransactionArgument
|
|
65
|
+
];
|
|
66
|
+
function rootBorrowAccumulatorMut<T0 = any, T1 = any>(tx: Transaction, args: [
|
|
67
|
+
string | TransactionObjectArgument,
|
|
68
|
+
accumulator.Key<T0> | TransactionArgument
|
|
69
|
+
], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
70
|
+
function rootHasAccumulator<T0 = any, T1 = any>(tx: Transaction, args: [
|
|
71
|
+
string | TransactionObjectArgument,
|
|
72
|
+
accumulator.Key<T0> | TransactionArgument
|
|
73
|
+
], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
74
|
+
function rootId(tx: Transaction, args: [string | TransactionObjectArgument]): TransactionArgument & [TransactionArgument];
|
|
75
|
+
function rootIdMut(tx: Transaction, args: [string | TransactionObjectArgument]): TransactionArgument & [TransactionArgument];
|
|
76
|
+
function rootRemoveAccumulator<T0 = any, T1 = any>(tx: Transaction, args: [
|
|
77
|
+
string | TransactionObjectArgument,
|
|
78
|
+
accumulator.Key<T0> | TransactionArgument
|
|
79
|
+
], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
80
|
+
function updateU128(tx: Transaction, args: [
|
|
81
|
+
string | TransactionObjectArgument,
|
|
82
|
+
bigint | TransactionArgument,
|
|
83
|
+
bigint | TransactionArgument
|
|
84
|
+
]): TransactionArgument & [
|
|
85
|
+
TransactionArgument,
|
|
86
|
+
TransactionArgument,
|
|
87
|
+
TransactionArgument
|
|
88
|
+
];
|
|
53
89
|
}
|
|
54
90
|
namespace view {
|
|
55
91
|
function accumulatorAddress<T0 = any>(client: SuiClient, args: [string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[string]>>;
|
|
92
|
+
function accumulatorKey<T0 = any>(client: SuiClient, args: [string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[accumulator.Key<T0>]>>;
|
|
93
|
+
function createU128(client: SuiClient, args: [bigint]): Promise<TypedDevInspectResults<[accumulator.U128]>>;
|
|
94
|
+
function destroyU128(client: SuiClient, args: [accumulator.U128]): Promise<TypedDevInspectResults<[]>>;
|
|
56
95
|
function emitDepositEvent<T0 = any>(client: SuiClient, args: [string, string, bigint], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[]>>;
|
|
57
96
|
function emitWithdrawEvent<T0 = any>(client: SuiClient, args: [string, string, bigint], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[]>>;
|
|
97
|
+
function isZeroU128(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[boolean]>>;
|
|
98
|
+
function rootAddAccumulator<T0 = any, T1 = any>(client: SuiClient, args: [string, accumulator.Key<T0>, T1], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): Promise<TypedDevInspectResults<[]>>;
|
|
99
|
+
function rootBorrowAccumulatorMut<T0 = any, T1 = any>(client: SuiClient, args: [string, accumulator.Key<T0>], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): Promise<TypedDevInspectResults<[string]>>;
|
|
100
|
+
function rootHasAccumulator<T0 = any, T1 = any>(client: SuiClient, args: [string, accumulator.Key<T0>], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): Promise<TypedDevInspectResults<[boolean]>>;
|
|
101
|
+
function rootId(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[string]>>;
|
|
102
|
+
function rootIdMut(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[string]>>;
|
|
103
|
+
function rootRemoveAccumulator<T0 = any, T1 = any>(client: SuiClient, args: [string, accumulator.Key<T0>], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): Promise<TypedDevInspectResults<[T1]>>;
|
|
104
|
+
function updateU128(client: SuiClient, args: [string, bigint, bigint]): Promise<TypedDevInspectResults<[]>>;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
export declare namespace accumulator_metadata {
|
|
108
|
+
interface Metadata<T0> {
|
|
109
|
+
fields: bag.Bag;
|
|
110
|
+
}
|
|
111
|
+
namespace Metadata {
|
|
112
|
+
const TYPE_QNAME = "0x2::accumulator_metadata::Metadata";
|
|
113
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Metadata<T0>>;
|
|
114
|
+
}
|
|
115
|
+
interface MetadataKey<T0> {
|
|
116
|
+
dummy_field: boolean;
|
|
117
|
+
}
|
|
118
|
+
namespace MetadataKey {
|
|
119
|
+
const TYPE_QNAME = "0x2::accumulator_metadata::MetadataKey";
|
|
120
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<MetadataKey<T0>>;
|
|
121
|
+
}
|
|
122
|
+
type MetadataKeyInstance = TypedEventInstance<MetadataKey<any>> & {
|
|
123
|
+
data_decoded: MetadataKey<any>;
|
|
124
|
+
type_arguments: [string];
|
|
125
|
+
};
|
|
126
|
+
interface Owner {
|
|
127
|
+
balances: bag.Bag;
|
|
128
|
+
owner: string;
|
|
129
|
+
}
|
|
130
|
+
namespace Owner {
|
|
131
|
+
const TYPE_QNAME = "0x2::accumulator_metadata::Owner";
|
|
132
|
+
function type(): TypeDescriptor<Owner>;
|
|
133
|
+
}
|
|
134
|
+
interface OwnerKey {
|
|
135
|
+
owner: string;
|
|
136
|
+
}
|
|
137
|
+
namespace OwnerKey {
|
|
138
|
+
const TYPE_QNAME = "0x2::accumulator_metadata::OwnerKey";
|
|
139
|
+
function type(): TypeDescriptor<OwnerKey>;
|
|
140
|
+
}
|
|
141
|
+
type OwnerKeyInstance = TypedEventInstance<OwnerKey> & {
|
|
142
|
+
data_decoded: OwnerKey;
|
|
143
|
+
type_arguments: [];
|
|
144
|
+
};
|
|
145
|
+
namespace builder {
|
|
146
|
+
function createAccumulatorMetadata<T0 = any>(tx: Transaction, args: [string | TransactionObjectArgument, string | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
147
|
+
function removeAccumulatorMetadata<T0 = any>(tx: Transaction, args: [string | TransactionObjectArgument, string | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
|
58
148
|
}
|
|
149
|
+
namespace view {
|
|
150
|
+
function createAccumulatorMetadata<T0 = any>(client: SuiClient, args: [string, string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[]>>;
|
|
151
|
+
function removeAccumulatorMetadata<T0 = any>(client: SuiClient, args: [string, string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[]>>;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
export declare namespace accumulator_settlement {
|
|
155
|
+
namespace builder { }
|
|
156
|
+
namespace view { }
|
|
59
157
|
}
|
|
60
158
|
export declare namespace address {
|
|
61
159
|
namespace builder {
|