@0xobelisk/sui-client 0.5.26 → 0.5.27
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/index.js +33 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +33 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dubhe.ts +32 -0
package/src/dubhe.ts
CHANGED
|
@@ -140,6 +140,22 @@ export class Dubhe {
|
|
|
140
140
|
'0x1::option::Option<u128>': bcs.option(bcs.u128()),
|
|
141
141
|
'0x1::option::Option<u256>': bcs.option(bcs.u256()),
|
|
142
142
|
'0x1::option::Option<bool>': bcs.option(bcs.bool()),
|
|
143
|
+
'0x1::option::Option<vector<address>>': bcs.option(
|
|
144
|
+
bcs.vector(
|
|
145
|
+
bcs.bytes(32).transform({
|
|
146
|
+
// To change the input type, you need to provide a type definition for the input
|
|
147
|
+
input: (val: string) => fromHEX(val),
|
|
148
|
+
output: (val) => toHEX(val),
|
|
149
|
+
})
|
|
150
|
+
)
|
|
151
|
+
),
|
|
152
|
+
'0x1::option::Option<vector<u8>>': bcs.option(bcs.vector(bcs.u8())),
|
|
153
|
+
'0x1::option::Option<vector<u16>>': bcs.option(bcs.vector(bcs.u16())),
|
|
154
|
+
'0x1::option::Option<vector<u32>>': bcs.option(bcs.vector(bcs.u32())),
|
|
155
|
+
'0x1::option::Option<vector<u64>>': bcs.option(bcs.vector(bcs.u64())),
|
|
156
|
+
'0x1::option::Option<vector<u128>>': bcs.option(bcs.vector(bcs.u128())),
|
|
157
|
+
'0x1::option::Option<vector<u256>>': bcs.option(bcs.vector(bcs.u256())),
|
|
158
|
+
'0x1::option::Option<vector<bool>>': bcs.option(bcs.vector(bcs.bool())),
|
|
143
159
|
'vector<address>': bcs.vector(
|
|
144
160
|
bcs.bytes(32).transform({
|
|
145
161
|
// To change the input type, you need to provide a type definition for the input
|
|
@@ -154,6 +170,22 @@ export class Dubhe {
|
|
|
154
170
|
'vector<u128>': bcs.vector(bcs.u128()),
|
|
155
171
|
'vector<u256>': bcs.vector(bcs.u256()),
|
|
156
172
|
'vector<bool>': bcs.vector(bcs.bool()),
|
|
173
|
+
'vector<vector<address>>': bcs.vector(
|
|
174
|
+
bcs.vector(
|
|
175
|
+
bcs.bytes(32).transform({
|
|
176
|
+
// To change the input type, you need to provide a type definition for the input
|
|
177
|
+
input: (val: string) => fromHEX(val),
|
|
178
|
+
output: (val) => toHEX(val),
|
|
179
|
+
})
|
|
180
|
+
)
|
|
181
|
+
),
|
|
182
|
+
'vector<vector<u8>>': bcs.vector(bcs.vector(bcs.u8())),
|
|
183
|
+
'vector<vector<u16>>': bcs.vector(bcs.vector(bcs.u16())),
|
|
184
|
+
'vector<vector<u32>>': bcs.vector(bcs.vector(bcs.u32())),
|
|
185
|
+
'vector<vector<u64>>': bcs.vector(bcs.vector(bcs.u64())),
|
|
186
|
+
'vector<vector<u128>>': bcs.vector(bcs.vector(bcs.u128())),
|
|
187
|
+
'vector<vector<u256>>': bcs.vector(bcs.vector(bcs.u256())),
|
|
188
|
+
'vector<vector<bool>>': bcs.vector(bcs.vector(bcs.bool())),
|
|
157
189
|
};
|
|
158
190
|
|
|
159
191
|
/**
|