Changes
/bcs
Types
SuiObjectRef: removing bigint fromversionshould we remove this completelyObjectArg:ImmOrOwned->ImmOrOwnedObjectandShared->SharedObject- Added
ObjectCallArg PureArgChanged ArrayLike to Array not sure if this is correct
Bcs Types
CallArgremovedObjVecArgumentenumKind to enum, Removed nested structs to align with Rust definitionsProgrammableMoveCallSplit target intopackage,moduleandfunction, typeArguments now TypeTag instead of StringTransactionenumKind to enum, replaced nested structs with tuples to align with Rust definitions
/transactions
Types
TransactionObjectArgumentshape changedTransactionResultshape changedTransactionObjectInputshape changedTransactionArgumentshape changedTransactionBlockInputshape changed
TransactionBlock
blockDatais deprecated, returns snapshot of v1 blockData, should this be removed?- added getBlockData that returns new v2 blockData
exports
- getPureSerializationType removed
- added getPureBcsSchema, normalizedTypeToMoveTypeSignature
/utils
Removed is and assert helpers
/multisig
- publicKeyFromSuiBytes moved to /verify
TODO
- Remove Input and Transaction exports?
- Move helpers in inputs.ts
- Should remove legacy BCS registry
- Should remove BCS registry name exports
- TransactionBlock constructor args?
- Remove pure inputs without types
- Need to export types for blockData
- Remove all type-exports from bcs, only export export implementations and helper types to get type from implementation
- Serialize should be updated to allow exporting v2 state
- Define TypeTag output type rather than input type?
- Use valibot parser in TypeTagSerializer
- Figure out what bcs should still export
- cleanup typescript/bcs exports
- maybe remove intent exports from cryptography and just use bcs intent encoding/decoding directly
- Should fromB64, toB64, fromHEX, toHEX still be exported from utils?
- Parse typeArguments from string in input
- rename normalizeInputs hook
- accept
(txb) -> txb.objectas txb argument? - handle string and address structs when encoding raw values (see getPureSerializationType)