@sentio/sdk 2.61.0 → 2.62.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/lib/aptos/builtin/0x1.d.ts +31 -0
- package/lib/aptos/builtin/0x1.d.ts.map +1 -1
- package/lib/aptos/builtin/0x1.js +62 -1
- package/lib/aptos/builtin/0x1.js.map +1 -1
- package/lib/iota/builtin/0x1.d.ts +65 -110
- package/lib/iota/builtin/0x1.d.ts.map +1 -1
- package/lib/iota/builtin/0x1.js.map +1 -1
- package/lib/iota/builtin/0x2.d.ts +595 -853
- package/lib/iota/builtin/0x2.d.ts.map +1 -1
- package/lib/iota/builtin/0x2.js.map +1 -1
- package/lib/iota/builtin/0x3.d.ts +289 -405
- package/lib/iota/builtin/0x3.d.ts.map +1 -1
- package/lib/iota/builtin/0x3.js +42 -1
- package/lib/iota/builtin/0x3.js.map +1 -1
- package/lib/sui/builtin/0x1.d.ts +10 -0
- package/lib/sui/builtin/0x1.d.ts.map +1 -1
- package/lib/sui/builtin/0x1.js +109 -1
- package/lib/sui/builtin/0x1.js.map +1 -1
- package/lib/sui/builtin/0x2.d.ts +109 -0
- package/lib/sui/builtin/0x2.d.ts.map +1 -1
- package/lib/sui/builtin/0x2.js +437 -1
- package/lib/sui/builtin/0x2.js.map +1 -1
- package/lib/sui/builtin/0x3.d.ts +4 -0
- package/lib/sui/builtin/0x3.d.ts.map +1 -1
- package/lib/sui/builtin/0x3.js +41 -1
- package/lib/sui/builtin/0x3.js.map +1 -1
- package/lib/testing/test-processor-server.d.ts.map +1 -1
- package/lib/testing/test-processor-server.js +2 -2
- package/lib/testing/test-processor-server.js.map +1 -1
- package/lib/testing/test-provider.js +2 -2
- package/package.json +16 -16
- package/src/aptos/abis/0x1.json +111 -9
- package/src/aptos/builtin/0x1.ts +118 -1
- package/src/iota/abis/0x3.json +70 -0
- package/src/iota/builtin/0x1.ts +65 -110
- package/src/iota/builtin/0x2.ts +595 -853
- package/src/iota/builtin/0x3.ts +341 -404
- package/src/sui/abis/0x1.json +123 -0
- package/src/sui/abis/0x2.json +607 -32
- package/src/sui/abis/0x3.json +52 -0
- package/src/sui/builtin/0x1.ts +153 -1
- package/src/sui/builtin/0x2.ts +708 -44
- package/src/sui/builtin/0x3.ts +57 -1
- package/src/testing/test-processor-server.ts +2 -2
- package/src/testing/test-provider.ts +2 -2
package/lib/sui/builtin/0x2.d.ts
CHANGED
@@ -41,6 +41,9 @@ export declare namespace accumulator {
|
|
41
41
|
}
|
42
42
|
namespace builder {
|
43
43
|
function accumulatorAddress<T0 = any>(tx: Transaction, args: [string | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
44
|
+
function accumulatorKey<T0 = any>(tx: Transaction, args: [string | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
45
|
+
function createU128(tx: Transaction, args: [bigint | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
46
|
+
function destroyU128(tx: Transaction, args: [accumulator.U128 | TransactionArgument]): TransactionArgument & [TransactionArgument];
|
44
47
|
function emitDepositEvent<T0 = any>(tx: Transaction, args: [
|
45
48
|
string | TransactionArgument,
|
46
49
|
string | TransactionArgument,
|
@@ -59,13 +62,115 @@ export declare namespace accumulator {
|
|
59
62
|
TransactionArgument,
|
60
63
|
TransactionArgument
|
61
64
|
];
|
65
|
+
function isZeroU128(tx: Transaction, args: [string | TransactionObjectArgument]): TransactionArgument & [TransactionArgument];
|
66
|
+
function rootAddAccumulator<T0 = any, T1 = any>(tx: Transaction, args: [
|
67
|
+
string | TransactionObjectArgument,
|
68
|
+
accumulator.Key<T0> | TransactionArgument,
|
69
|
+
T1 | TransactionArgument
|
70
|
+
], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): TransactionArgument & [
|
71
|
+
TransactionArgument,
|
72
|
+
TransactionArgument,
|
73
|
+
TransactionArgument
|
74
|
+
];
|
75
|
+
function rootBorrowAccumulatorMut<T0 = any, T1 = any>(tx: Transaction, args: [
|
76
|
+
string | TransactionObjectArgument,
|
77
|
+
accumulator.Key<T0> | TransactionArgument
|
78
|
+
], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
79
|
+
function rootHasAccumulator<T0 = any, T1 = any>(tx: Transaction, args: [
|
80
|
+
string | TransactionObjectArgument,
|
81
|
+
accumulator.Key<T0> | TransactionArgument
|
82
|
+
], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
83
|
+
function rootId(tx: Transaction, args: [string | TransactionObjectArgument]): TransactionArgument & [TransactionArgument];
|
84
|
+
function rootIdMut(tx: Transaction, args: [string | TransactionObjectArgument]): TransactionArgument & [TransactionArgument];
|
85
|
+
function rootRemoveAccumulator<T0 = any, T1 = any>(tx: Transaction, args: [
|
86
|
+
string | TransactionObjectArgument,
|
87
|
+
accumulator.Key<T0> | TransactionArgument
|
88
|
+
], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
89
|
+
function updateU128(tx: Transaction, args: [
|
90
|
+
string | TransactionObjectArgument,
|
91
|
+
bigint | TransactionArgument,
|
92
|
+
bigint | TransactionArgument
|
93
|
+
]): TransactionArgument & [
|
94
|
+
TransactionArgument,
|
95
|
+
TransactionArgument,
|
96
|
+
TransactionArgument
|
97
|
+
];
|
62
98
|
}
|
63
99
|
namespace view {
|
64
100
|
function accumulatorAddress<T0 = any>(client: SuiClient, args: [string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[string]>>;
|
101
|
+
function accumulatorKey<T0 = any>(client: SuiClient, args: [string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[accumulator.Key<T0>]>>;
|
102
|
+
function createU128(client: SuiClient, args: [bigint]): Promise<TypedDevInspectResults<[accumulator.U128]>>;
|
103
|
+
function destroyU128(client: SuiClient, args: [accumulator.U128]): Promise<TypedDevInspectResults<[]>>;
|
65
104
|
function emitDepositEvent<T0 = any>(client: SuiClient, args: [string, string, bigint], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[]>>;
|
66
105
|
function emitWithdrawEvent<T0 = any>(client: SuiClient, args: [string, string, bigint], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[]>>;
|
106
|
+
function isZeroU128(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[boolean]>>;
|
107
|
+
function rootAddAccumulator<T0 = any, T1 = any>(client: SuiClient, args: [string, accumulator.Key<T0>, T1], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): Promise<TypedDevInspectResults<[]>>;
|
108
|
+
function rootBorrowAccumulatorMut<T0 = any, T1 = any>(client: SuiClient, args: [string, accumulator.Key<T0>], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): Promise<TypedDevInspectResults<[string]>>;
|
109
|
+
function rootHasAccumulator<T0 = any, T1 = any>(client: SuiClient, args: [string, accumulator.Key<T0>], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): Promise<TypedDevInspectResults<[boolean]>>;
|
110
|
+
function rootId(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[string]>>;
|
111
|
+
function rootIdMut(client: SuiClient, args: [string]): Promise<TypedDevInspectResults<[string]>>;
|
112
|
+
function rootRemoveAccumulator<T0 = any, T1 = any>(client: SuiClient, args: [string, accumulator.Key<T0>], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): Promise<TypedDevInspectResults<[T1]>>;
|
113
|
+
function updateU128(client: SuiClient, args: [string, bigint, bigint]): Promise<TypedDevInspectResults<[]>>;
|
67
114
|
}
|
68
115
|
}
|
116
|
+
export declare class accumulator_metadata extends SuiBaseProcessor {
|
117
|
+
constructor(options: SuiBindOptions);
|
118
|
+
static DEFAULT_OPTIONS: SuiBindOptions;
|
119
|
+
static bind(options?: Partial<SuiBindOptions>): accumulator_metadata;
|
120
|
+
onEventMetadataKey(func: (event: accumulator_metadata.MetadataKeyInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions<MoveFetchConfig, accumulator_metadata.MetadataKeyInstance>, eventFilter?: Omit<EventFilter, "type" | "account">): accumulator_metadata;
|
121
|
+
onEventOwnerKey(func: (event: accumulator_metadata.OwnerKeyInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions<MoveFetchConfig, accumulator_metadata.OwnerKeyInstance>, eventFilter?: Omit<EventFilter, "type" | "account">): accumulator_metadata;
|
122
|
+
}
|
123
|
+
export declare namespace accumulator_metadata {
|
124
|
+
interface Metadata<T0> {
|
125
|
+
fields: bag.Bag;
|
126
|
+
}
|
127
|
+
namespace Metadata {
|
128
|
+
const TYPE_QNAME = "0x2::accumulator_metadata::Metadata";
|
129
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<Metadata<T0>>;
|
130
|
+
}
|
131
|
+
interface MetadataKey<T0> {
|
132
|
+
dummy_field: boolean;
|
133
|
+
}
|
134
|
+
namespace MetadataKey {
|
135
|
+
const TYPE_QNAME = "0x2::accumulator_metadata::MetadataKey";
|
136
|
+
function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<MetadataKey<T0>>;
|
137
|
+
}
|
138
|
+
type MetadataKeyInstance = TypedEventInstance<MetadataKey<any>> & {
|
139
|
+
data_decoded: MetadataKey<any>;
|
140
|
+
type_arguments: [string];
|
141
|
+
};
|
142
|
+
interface Owner {
|
143
|
+
balances: bag.Bag;
|
144
|
+
owner: string;
|
145
|
+
}
|
146
|
+
namespace Owner {
|
147
|
+
const TYPE_QNAME = "0x2::accumulator_metadata::Owner";
|
148
|
+
function type(): TypeDescriptor<Owner>;
|
149
|
+
}
|
150
|
+
interface OwnerKey {
|
151
|
+
owner: string;
|
152
|
+
}
|
153
|
+
namespace OwnerKey {
|
154
|
+
const TYPE_QNAME = "0x2::accumulator_metadata::OwnerKey";
|
155
|
+
function type(): TypeDescriptor<OwnerKey>;
|
156
|
+
}
|
157
|
+
type OwnerKeyInstance = TypedEventInstance<OwnerKey> & {
|
158
|
+
data_decoded: OwnerKey;
|
159
|
+
type_arguments: [];
|
160
|
+
};
|
161
|
+
namespace builder {
|
162
|
+
function createAccumulatorMetadata<T0 = any>(tx: Transaction, args: [string | TransactionObjectArgument, string | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
163
|
+
function removeAccumulatorMetadata<T0 = any>(tx: Transaction, args: [string | TransactionObjectArgument, string | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument, TransactionArgument];
|
164
|
+
}
|
165
|
+
namespace view {
|
166
|
+
function createAccumulatorMetadata<T0 = any>(client: SuiClient, args: [string, string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[]>>;
|
167
|
+
function removeAccumulatorMetadata<T0 = any>(client: SuiClient, args: [string, string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[]>>;
|
168
|
+
}
|
169
|
+
}
|
170
|
+
export declare namespace accumulator_settlement {
|
171
|
+
namespace builder { }
|
172
|
+
namespace view { }
|
173
|
+
}
|
69
174
|
export declare namespace address {
|
70
175
|
namespace builder {
|
71
176
|
function fromAsciiBytes(tx: Transaction, args: [string | TransactionObjectArgument]): TransactionArgument & [TransactionArgument];
|
@@ -3938,6 +4043,7 @@ export declare namespace vec_map {
|
|
3938
4043
|
function intoKeysValues<T0 = any, T1 = any>(tx: Transaction, args: [vec_map.VecMap<T0, T1> | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): TransactionArgument & [TransactionArgument];
|
3939
4044
|
function isEmpty<T0 = any, T1 = any>(tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): TransactionArgument & [TransactionArgument];
|
3940
4045
|
function keys<T0 = any, T1 = any>(tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): TransactionArgument & [TransactionArgument];
|
4046
|
+
function length<T0 = any, T1 = any>(tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): TransactionArgument & [TransactionArgument];
|
3941
4047
|
function pop<T0 = any, T1 = any>(tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): TransactionArgument & [TransactionArgument];
|
3942
4048
|
function remove<T0 = any, T1 = any>(tx: Transaction, args: [
|
3943
4049
|
string | TransactionObjectArgument,
|
@@ -3965,6 +4071,7 @@ export declare namespace vec_map {
|
|
3965
4071
|
function intoKeysValues<T0 = any, T1 = any>(client: SuiClient, args: [vec_map.VecMap<T0, T1>], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): Promise<TypedDevInspectResults<[T0[], T1[]]>>;
|
3966
4072
|
function isEmpty<T0 = any, T1 = any>(client: SuiClient, args: [string], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): Promise<TypedDevInspectResults<[boolean]>>;
|
3967
4073
|
function keys<T0 = any, T1 = any>(client: SuiClient, args: [string], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): Promise<TypedDevInspectResults<[T0[]]>>;
|
4074
|
+
function length<T0 = any, T1 = any>(client: SuiClient, args: [string], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): Promise<TypedDevInspectResults<[bigint]>>;
|
3968
4075
|
function pop<T0 = any, T1 = any>(client: SuiClient, args: [string], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): Promise<TypedDevInspectResults<[T0, T1]>>;
|
3969
4076
|
function remove<T0 = any, T1 = any>(client: SuiClient, args: [string, string], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): Promise<TypedDevInspectResults<[T0, T1]>>;
|
3970
4077
|
function removeEntryByIdx<T0 = any, T1 = any>(client: SuiClient, args: [string, bigint], typeArguments: [TypeDescriptor<T0> | string, TypeDescriptor<T1> | string]): Promise<TypedDevInspectResults<[T0, T1]>>;
|
@@ -4001,6 +4108,7 @@ export declare namespace vec_set {
|
|
4001
4108
|
function intoKeys<T0 = any>(tx: Transaction, args: [vec_set.VecSet<T0> | TransactionArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
4002
4109
|
function isEmpty<T0 = any>(tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
4003
4110
|
function keys<T0 = any>(tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
4111
|
+
function length<T0 = any>(tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor<T0> | string]): TransactionArgument & [TransactionArgument];
|
4004
4112
|
function remove<T0 = any>(tx: Transaction, args: [
|
4005
4113
|
string | TransactionObjectArgument,
|
4006
4114
|
string | TransactionObjectArgument
|
@@ -4016,6 +4124,7 @@ export declare namespace vec_set {
|
|
4016
4124
|
function intoKeys<T0 = any>(client: SuiClient, args: [vec_set.VecSet<T0>], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[T0[]]>>;
|
4017
4125
|
function isEmpty<T0 = any>(client: SuiClient, args: [string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[boolean]>>;
|
4018
4126
|
function keys<T0 = any>(client: SuiClient, args: [string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[string]>>;
|
4127
|
+
function length<T0 = any>(client: SuiClient, args: [string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[bigint]>>;
|
4019
4128
|
function remove<T0 = any>(client: SuiClient, args: [string, string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[]>>;
|
4020
4129
|
function singleton<T0 = any>(client: SuiClient, args: [T0], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[vec_set.VecSet<T0>]>>;
|
4021
4130
|
function size<T0 = any>(client: SuiClient, args: [string], typeArguments: [TypeDescriptor<T0> | string]): Promise<TypedDevInspectResults<[bigint]>>;
|