@mysten/sui 1.35.0 → 1.36.0
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/CHANGELOG.md +14 -0
- package/dist/cjs/bcs/bcs.d.ts +5 -10
- package/dist/cjs/bcs/bcs.js +2 -4
- package/dist/cjs/bcs/bcs.js.map +2 -2
- package/dist/cjs/bcs/effects.d.ts +30 -60
- package/dist/cjs/bcs/index.d.ts +35 -70
- package/dist/cjs/client/types/generated.d.ts +22 -14
- package/dist/cjs/client/types/generated.js.map +1 -1
- package/dist/cjs/client/types/params.d.ts +1 -1
- package/dist/cjs/client/types/params.js.map +1 -1
- package/dist/cjs/experimental/client.d.ts +1 -1
- package/dist/cjs/experimental/client.js +6 -2
- package/dist/cjs/experimental/client.js.map +2 -2
- package/dist/cjs/experimental/core.d.ts +1 -0
- package/dist/cjs/experimental/core.js +6 -2
- package/dist/cjs/experimental/core.js.map +2 -2
- package/dist/cjs/experimental/transports/graphql.js +8 -2
- package/dist/cjs/experimental/transports/graphql.js.map +2 -2
- package/dist/cjs/experimental/transports/json-rpc-resolver.js +1 -1
- package/dist/cjs/experimental/transports/json-rpc-resolver.js.map +2 -2
- package/dist/cjs/experimental/transports/jsonRPC.js +5 -8
- package/dist/cjs/experimental/transports/jsonRPC.js.map +2 -2
- package/dist/cjs/experimental/types.d.ts +8 -11
- package/dist/cjs/experimental/types.js.map +1 -1
- package/dist/cjs/graphql/generated/latest/tada-env.d.ts +33 -32
- package/dist/cjs/graphql/generated/latest/tada-env.js +38 -39
- package/dist/cjs/graphql/generated/latest/tada-env.js.map +2 -2
- package/dist/cjs/graphql/generated/queries.d.ts +36 -34
- package/dist/cjs/graphql/generated/queries.js +24 -30
- package/dist/cjs/graphql/generated/queries.js.map +2 -2
- package/dist/cjs/transactions/Transaction.d.ts +2 -2
- package/dist/cjs/transactions/TransactionData.d.ts +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/cjs/zklogin/publickey.d.ts +1 -1
- package/dist/cjs/zklogin/publickey.js.map +2 -2
- package/dist/esm/bcs/bcs.d.ts +5 -10
- package/dist/esm/bcs/bcs.js +2 -4
- package/dist/esm/bcs/bcs.js.map +2 -2
- package/dist/esm/bcs/effects.d.ts +30 -60
- package/dist/esm/bcs/index.d.ts +35 -70
- package/dist/esm/client/types/generated.d.ts +22 -14
- package/dist/esm/client/types/params.d.ts +1 -1
- package/dist/esm/experimental/client.d.ts +1 -1
- package/dist/esm/experimental/client.js +6 -2
- package/dist/esm/experimental/client.js.map +2 -2
- package/dist/esm/experimental/core.d.ts +1 -0
- package/dist/esm/experimental/core.js +6 -2
- package/dist/esm/experimental/core.js.map +2 -2
- package/dist/esm/experimental/transports/graphql.js +8 -2
- package/dist/esm/experimental/transports/graphql.js.map +2 -2
- package/dist/esm/experimental/transports/json-rpc-resolver.js +1 -1
- package/dist/esm/experimental/transports/json-rpc-resolver.js.map +2 -2
- package/dist/esm/experimental/transports/jsonRPC.js +5 -8
- package/dist/esm/experimental/transports/jsonRPC.js.map +2 -2
- package/dist/esm/experimental/types.d.ts +8 -11
- package/dist/esm/graphql/generated/latest/tada-env.d.ts +33 -32
- package/dist/esm/graphql/generated/latest/tada-env.js +38 -39
- package/dist/esm/graphql/generated/latest/tada-env.js.map +2 -2
- package/dist/esm/graphql/generated/queries.d.ts +36 -34
- package/dist/esm/graphql/generated/queries.js +24 -30
- package/dist/esm/graphql/generated/queries.js.map +2 -2
- package/dist/esm/transactions/Transaction.d.ts +2 -2
- package/dist/esm/transactions/TransactionData.d.ts +2 -2
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/esm/zklogin/publickey.d.ts +1 -1
- package/dist/esm/zklogin/publickey.js.map +2 -2
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/bcs/bcs.ts +2 -4
- package/src/client/types/generated.ts +23 -13
- package/src/client/types/params.ts +1 -2
- package/src/experimental/client.ts +7 -2
- package/src/experimental/core.ts +12 -2
- package/src/experimental/transports/graphql.ts +8 -2
- package/src/experimental/transports/json-rpc-resolver.ts +6 -2
- package/src/experimental/transports/jsonRPC.ts +5 -8
- package/src/experimental/types.ts +13 -13
- package/src/graphql/generated/latest/schema.graphql +15 -18
- package/src/graphql/generated/latest/tada-env.ts +38 -39
- package/src/graphql/generated/queries.ts +42 -53
- package/src/graphql/queries/objects.graphql +4 -5
- package/src/version.ts +1 -1
- package/src/zklogin/publickey.ts +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @mysten/sui.js
|
|
2
2
|
|
|
3
|
+
## 1.36.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 783bb9e: make verifyZkLoginSignature a required part of the core api
|
|
8
|
+
- 783bb9e: Add ConsensusAddressOwner support
|
|
9
|
+
- 5cbbb21: Add default mvr urls
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [1c4a82d]
|
|
14
|
+
- @mysten/utils@0.1.1
|
|
15
|
+
- @mysten/bcs@1.6.4
|
|
16
|
+
|
|
3
17
|
## 1.35.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/dist/cjs/bcs/bcs.d.ts
CHANGED
|
@@ -60,24 +60,19 @@ export declare const Owner: BcsType<import("@mysten/bcs").EnumOutputShapeWithKey
|
|
|
60
60
|
initialSharedVersion: string;
|
|
61
61
|
};
|
|
62
62
|
Immutable: true;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
SingleOwner: string;
|
|
66
|
-
$kind: "SingleOwner";
|
|
67
|
-
};
|
|
63
|
+
ConsensusAddressOwner: {
|
|
64
|
+
owner: string;
|
|
68
65
|
startVersion: string;
|
|
69
66
|
};
|
|
70
|
-
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "
|
|
67
|
+
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "ConsensusAddressOwner">, import("@mysten/bcs").EnumInputShape<{
|
|
71
68
|
AddressOwner: string | Uint8Array<ArrayBufferLike>;
|
|
72
69
|
ObjectOwner: string | Uint8Array<ArrayBufferLike>;
|
|
73
70
|
Shared: {
|
|
74
71
|
initialSharedVersion: string | number | bigint;
|
|
75
72
|
};
|
|
76
73
|
Immutable: boolean | object | null;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
SingleOwner: string | Uint8Array<ArrayBufferLike>;
|
|
80
|
-
};
|
|
74
|
+
ConsensusAddressOwner: {
|
|
75
|
+
owner: string | Uint8Array<ArrayBufferLike>;
|
|
81
76
|
startVersion: string | number | bigint;
|
|
82
77
|
};
|
|
83
78
|
}>>;
|
package/dist/cjs/bcs/bcs.js
CHANGED
|
@@ -112,10 +112,8 @@ const Owner = import_bcs.bcs.enum("Owner", {
|
|
|
112
112
|
initialSharedVersion: import_bcs.bcs.u64()
|
|
113
113
|
}),
|
|
114
114
|
Immutable: null,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
SingleOwner: Address
|
|
118
|
-
}),
|
|
115
|
+
ConsensusAddressOwner: import_bcs.bcs.struct("ConsensusAddressOwner", {
|
|
116
|
+
owner: Address,
|
|
119
117
|
startVersion: import_bcs.bcs.u64()
|
|
120
118
|
})
|
|
121
119
|
});
|
package/dist/cjs/bcs/bcs.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/bcs/bcs.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { BcsType, BcsTypeOptions } from '@mysten/bcs';\nimport { bcs, fromBase58, fromBase64, fromHex, toBase58, toBase64, toHex } from '@mysten/bcs';\n\nimport { isValidSuiAddress, normalizeSuiAddress, SUI_ADDRESS_LENGTH } from '../utils/sui-types.js';\nimport { TypeTagSerializer } from './type-tag-serializer.js';\nimport type { TypeTag as TypeTagType } from './types.js';\n\nfunction unsafe_u64(options?: BcsTypeOptions<number>) {\n\treturn bcs\n\t\t.u64({\n\t\t\tname: 'unsafe_u64',\n\t\t\t...(options as object),\n\t\t})\n\t\t.transform({\n\t\t\tinput: (val: number | string) => val,\n\t\t\toutput: (val) => Number(val),\n\t\t});\n}\n\nfunction optionEnum<T extends BcsType<any, any>>(type: T) {\n\treturn bcs.enum('Option', {\n\t\tNone: null,\n\t\tSome: type,\n\t});\n}\n\nexport const Address = bcs.bytes(SUI_ADDRESS_LENGTH).transform({\n\tvalidate: (val) => {\n\t\tconst address = typeof val === 'string' ? val : toHex(val);\n\t\tif (!address || !isValidSuiAddress(normalizeSuiAddress(address))) {\n\t\t\tthrow new Error(`Invalid Sui address ${address}`);\n\t\t}\n\t},\n\tinput: (val: string | Uint8Array) =>\n\t\ttypeof val === 'string' ? fromHex(normalizeSuiAddress(val)) : val,\n\toutput: (val) => normalizeSuiAddress(toHex(val)),\n});\n\nexport const ObjectDigest = bcs.vector(bcs.u8()).transform({\n\tname: 'ObjectDigest',\n\tinput: (value: string) => fromBase58(value),\n\toutput: (value) => toBase58(new Uint8Array(value)),\n\tvalidate: (value) => {\n\t\tif (fromBase58(value).length !== 32) {\n\t\t\tthrow new Error('ObjectDigest must be 32 bytes');\n\t\t}\n\t},\n});\n\nexport const SuiObjectRef = bcs.struct('SuiObjectRef', {\n\tobjectId: Address,\n\tversion: bcs.u64(),\n\tdigest: ObjectDigest,\n});\n\nexport const SharedObjectRef = bcs.struct('SharedObjectRef', {\n\tobjectId: Address,\n\tinitialSharedVersion: bcs.u64(),\n\tmutable: bcs.bool(),\n});\n\nexport const ObjectArg = bcs.enum('ObjectArg', {\n\tImmOrOwnedObject: SuiObjectRef,\n\tSharedObject: SharedObjectRef,\n\tReceiving: SuiObjectRef,\n});\n\nexport const Owner = bcs.enum('Owner', {\n\tAddressOwner: Address,\n\tObjectOwner: Address,\n\tShared: bcs.struct('Shared', {\n\t\tinitialSharedVersion: bcs.u64(),\n\t}),\n\tImmutable: null,\n\
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,iBAAgF;AAEhF,uBAA2E;AAC3E,iCAAkC;AAGlC,SAAS,WAAW,SAAkC;AACrD,SAAO,eACL,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,GAAI;AAAA,EACL,CAAC,EACA,UAAU;AAAA,IACV,OAAO,CAAC,QAAyB;AAAA,IACjC,QAAQ,CAAC,QAAQ,OAAO,GAAG;AAAA,EAC5B,CAAC;AACH;AAEA,SAAS,WAAwC,MAAS;AACzD,SAAO,eAAI,KAAK,UAAU;AAAA,IACzB,MAAM;AAAA,IACN,MAAM;AAAA,EACP,CAAC;AACF;AAEO,MAAM,UAAU,eAAI,MAAM,mCAAkB,EAAE,UAAU;AAAA,EAC9D,UAAU,CAAC,QAAQ;AAClB,UAAM,UAAU,OAAO,QAAQ,WAAW,UAAM,kBAAM,GAAG;AACzD,QAAI,CAAC,WAAW,KAAC,wCAAkB,sCAAoB,OAAO,CAAC,GAAG;AACjE,YAAM,IAAI,MAAM,uBAAuB,OAAO,EAAE;AAAA,IACjD;AAAA,EACD;AAAA,EACA,OAAO,CAAC,QACP,OAAO,QAAQ,eAAW,wBAAQ,sCAAoB,GAAG,CAAC,IAAI;AAAA,EAC/D,QAAQ,CAAC,YAAQ,0CAAoB,kBAAM,GAAG,CAAC;AAChD,CAAC;AAEM,MAAM,eAAe,eAAI,OAAO,eAAI,GAAG,CAAC,EAAE,UAAU;AAAA,EAC1D,MAAM;AAAA,EACN,OAAO,CAAC,cAAkB,uBAAW,KAAK;AAAA,EAC1C,QAAQ,CAAC,cAAU,qBAAS,IAAI,WAAW,KAAK,CAAC;AAAA,EACjD,UAAU,CAAC,UAAU;AACpB,YAAI,uBAAW,KAAK,EAAE,WAAW,IAAI;AACpC,YAAM,IAAI,MAAM,+BAA+B;AAAA,IAChD;AAAA,EACD;AACD,CAAC;AAEM,MAAM,eAAe,eAAI,OAAO,gBAAgB;AAAA,EACtD,UAAU;AAAA,EACV,SAAS,eAAI,IAAI;AAAA,EACjB,QAAQ;AACT,CAAC;AAEM,MAAM,kBAAkB,eAAI,OAAO,mBAAmB;AAAA,EAC5D,UAAU;AAAA,EACV,sBAAsB,eAAI,IAAI;AAAA,EAC9B,SAAS,eAAI,KAAK;AACnB,CAAC;AAEM,MAAM,YAAY,eAAI,KAAK,aAAa;AAAA,EAC9C,kBAAkB;AAAA,EAClB,cAAc;AAAA,EACd,WAAW;AACZ,CAAC;AAEM,MAAM,QAAQ,eAAI,KAAK,SAAS;AAAA,EACtC,cAAc;AAAA,EACd,aAAa;AAAA,EACb,QAAQ,eAAI,OAAO,UAAU;AAAA,IAC5B,sBAAsB,eAAI,IAAI;AAAA,EAC/B,CAAC;AAAA,EACD,WAAW;AAAA,EACX,
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { BcsType, BcsTypeOptions } from '@mysten/bcs';\nimport { bcs, fromBase58, fromBase64, fromHex, toBase58, toBase64, toHex } from '@mysten/bcs';\n\nimport { isValidSuiAddress, normalizeSuiAddress, SUI_ADDRESS_LENGTH } from '../utils/sui-types.js';\nimport { TypeTagSerializer } from './type-tag-serializer.js';\nimport type { TypeTag as TypeTagType } from './types.js';\n\nfunction unsafe_u64(options?: BcsTypeOptions<number>) {\n\treturn bcs\n\t\t.u64({\n\t\t\tname: 'unsafe_u64',\n\t\t\t...(options as object),\n\t\t})\n\t\t.transform({\n\t\t\tinput: (val: number | string) => val,\n\t\t\toutput: (val) => Number(val),\n\t\t});\n}\n\nfunction optionEnum<T extends BcsType<any, any>>(type: T) {\n\treturn bcs.enum('Option', {\n\t\tNone: null,\n\t\tSome: type,\n\t});\n}\n\nexport const Address = bcs.bytes(SUI_ADDRESS_LENGTH).transform({\n\tvalidate: (val) => {\n\t\tconst address = typeof val === 'string' ? val : toHex(val);\n\t\tif (!address || !isValidSuiAddress(normalizeSuiAddress(address))) {\n\t\t\tthrow new Error(`Invalid Sui address ${address}`);\n\t\t}\n\t},\n\tinput: (val: string | Uint8Array) =>\n\t\ttypeof val === 'string' ? fromHex(normalizeSuiAddress(val)) : val,\n\toutput: (val) => normalizeSuiAddress(toHex(val)),\n});\n\nexport const ObjectDigest = bcs.vector(bcs.u8()).transform({\n\tname: 'ObjectDigest',\n\tinput: (value: string) => fromBase58(value),\n\toutput: (value) => toBase58(new Uint8Array(value)),\n\tvalidate: (value) => {\n\t\tif (fromBase58(value).length !== 32) {\n\t\t\tthrow new Error('ObjectDigest must be 32 bytes');\n\t\t}\n\t},\n});\n\nexport const SuiObjectRef = bcs.struct('SuiObjectRef', {\n\tobjectId: Address,\n\tversion: bcs.u64(),\n\tdigest: ObjectDigest,\n});\n\nexport const SharedObjectRef = bcs.struct('SharedObjectRef', {\n\tobjectId: Address,\n\tinitialSharedVersion: bcs.u64(),\n\tmutable: bcs.bool(),\n});\n\nexport const ObjectArg = bcs.enum('ObjectArg', {\n\tImmOrOwnedObject: SuiObjectRef,\n\tSharedObject: SharedObjectRef,\n\tReceiving: SuiObjectRef,\n});\n\nexport const Owner = bcs.enum('Owner', {\n\tAddressOwner: Address,\n\tObjectOwner: Address,\n\tShared: bcs.struct('Shared', {\n\t\tinitialSharedVersion: bcs.u64(),\n\t}),\n\tImmutable: null,\n\tConsensusAddressOwner: bcs.struct('ConsensusAddressOwner', {\n\t\towner: Address,\n\t\tstartVersion: bcs.u64(),\n\t}),\n});\n\nexport const CallArg = bcs.enum('CallArg', {\n\tPure: bcs.struct('Pure', {\n\t\tbytes: bcs.vector(bcs.u8()).transform({\n\t\t\tinput: (val: string | Uint8Array) => (typeof val === 'string' ? fromBase64(val) : val),\n\t\t\toutput: (val) => toBase64(new Uint8Array(val)),\n\t\t}),\n\t}),\n\tObject: ObjectArg,\n});\n\nconst InnerTypeTag: BcsType<TypeTagType, TypeTagType> = bcs.enum('TypeTag', {\n\tbool: null,\n\tu8: null,\n\tu64: null,\n\tu128: null,\n\taddress: null,\n\tsigner: null,\n\tvector: bcs.lazy(() => InnerTypeTag),\n\tstruct: bcs.lazy(() => StructTag),\n\tu16: null,\n\tu32: null,\n\tu256: null,\n}) as BcsType<TypeTagType>;\n\nexport const TypeTag = InnerTypeTag.transform({\n\tinput: (typeTag: string | TypeTagType) =>\n\t\ttypeof typeTag === 'string' ? TypeTagSerializer.parseFromStr(typeTag, true) : typeTag,\n\toutput: (typeTag: TypeTagType) => TypeTagSerializer.tagToString(typeTag),\n});\n\nexport const Argument = bcs.enum('Argument', {\n\tGasCoin: null,\n\tInput: bcs.u16(),\n\tResult: bcs.u16(),\n\tNestedResult: bcs.tuple([bcs.u16(), bcs.u16()]),\n});\n\nexport const ProgrammableMoveCall = bcs.struct('ProgrammableMoveCall', {\n\tpackage: Address,\n\tmodule: bcs.string(),\n\tfunction: bcs.string(),\n\ttypeArguments: bcs.vector(TypeTag),\n\targuments: bcs.vector(Argument),\n});\n\nexport const Command = bcs.enum('Command', {\n\t/**\n\t * A Move Call - any public Move function can be called via\n\t * this transaction. The results can be used that instant to pass\n\t * into the next transaction.\n\t */\n\tMoveCall: ProgrammableMoveCall,\n\t/**\n\t * Transfer vector of objects to a receiver.\n\t */\n\tTransferObjects: bcs.struct('TransferObjects', {\n\t\tobjects: bcs.vector(Argument),\n\t\taddress: Argument,\n\t}),\n\t// /**\n\t// * Split `amount` from a `coin`.\n\t// */\n\tSplitCoins: bcs.struct('SplitCoins', {\n\t\tcoin: Argument,\n\t\tamounts: bcs.vector(Argument),\n\t}),\n\t// /**\n\t// * Merge Vector of Coins (`sources`) into a `destination`.\n\t// */\n\tMergeCoins: bcs.struct('MergeCoins', {\n\t\tdestination: Argument,\n\t\tsources: bcs.vector(Argument),\n\t}),\n\t// /**\n\t// * Publish a Move module.\n\t// */\n\tPublish: bcs.struct('Publish', {\n\t\tmodules: bcs.vector(\n\t\t\tbcs.vector(bcs.u8()).transform({\n\t\t\t\tinput: (val: string | Uint8Array) => (typeof val === 'string' ? fromBase64(val) : val),\n\t\t\t\toutput: (val) => toBase64(new Uint8Array(val)),\n\t\t\t}),\n\t\t),\n\t\tdependencies: bcs.vector(Address),\n\t}),\n\t// /**\n\t// * Build a vector of objects using the input arguments.\n\t// * It is impossible to export construct a `vector<T: key>` otherwise,\n\t// * so this call serves a utility function.\n\t// */\n\tMakeMoveVec: bcs.struct('MakeMoveVec', {\n\t\ttype: optionEnum(TypeTag).transform({\n\t\t\tinput: (val: string | null) =>\n\t\t\t\tval === null\n\t\t\t\t\t? {\n\t\t\t\t\t\t\tNone: true,\n\t\t\t\t\t\t}\n\t\t\t\t\t: {\n\t\t\t\t\t\t\tSome: val,\n\t\t\t\t\t\t},\n\t\t\toutput: (val) => val.Some ?? null,\n\t\t}),\n\t\telements: bcs.vector(Argument),\n\t}),\n\tUpgrade: bcs.struct('Upgrade', {\n\t\tmodules: bcs.vector(\n\t\t\tbcs.vector(bcs.u8()).transform({\n\t\t\t\tinput: (val: string | Uint8Array) => (typeof val === 'string' ? fromBase64(val) : val),\n\t\t\t\toutput: (val) => toBase64(new Uint8Array(val)),\n\t\t\t}),\n\t\t),\n\t\tdependencies: bcs.vector(Address),\n\t\tpackage: Address,\n\t\tticket: Argument,\n\t}),\n});\n\nexport const ProgrammableTransaction = bcs.struct('ProgrammableTransaction', {\n\tinputs: bcs.vector(CallArg),\n\tcommands: bcs.vector(Command),\n});\n\nexport const TransactionKind = bcs.enum('TransactionKind', {\n\tProgrammableTransaction: ProgrammableTransaction,\n\tChangeEpoch: null,\n\tGenesis: null,\n\tConsensusCommitPrologue: null,\n});\n\nexport const TransactionExpiration = bcs.enum('TransactionExpiration', {\n\tNone: null,\n\tEpoch: unsafe_u64(),\n});\n\nexport const StructTag = bcs.struct('StructTag', {\n\taddress: Address,\n\tmodule: bcs.string(),\n\tname: bcs.string(),\n\ttypeParams: bcs.vector(InnerTypeTag),\n});\n\nexport const GasData = bcs.struct('GasData', {\n\tpayment: bcs.vector(SuiObjectRef),\n\towner: Address,\n\tprice: bcs.u64(),\n\tbudget: bcs.u64(),\n});\n\nexport const TransactionDataV1 = bcs.struct('TransactionDataV1', {\n\tkind: TransactionKind,\n\tsender: Address,\n\tgasData: GasData,\n\texpiration: TransactionExpiration,\n});\n\nexport const TransactionData = bcs.enum('TransactionData', {\n\tV1: TransactionDataV1,\n});\n\nexport const IntentScope = bcs.enum('IntentScope', {\n\tTransactionData: null,\n\tTransactionEffects: null,\n\tCheckpointSummary: null,\n\tPersonalMessage: null,\n});\n\nexport const IntentVersion = bcs.enum('IntentVersion', {\n\tV0: null,\n});\n\nexport const AppId = bcs.enum('AppId', {\n\tSui: null,\n});\n\nexport const Intent = bcs.struct('Intent', {\n\tscope: IntentScope,\n\tversion: IntentVersion,\n\tappId: AppId,\n});\n\nexport function IntentMessage<T extends BcsType<any>>(T: T) {\n\treturn bcs.struct(`IntentMessage<${T.name}>`, {\n\t\tintent: Intent,\n\t\tvalue: T,\n\t});\n}\n\nexport const CompressedSignature = bcs.enum('CompressedSignature', {\n\tED25519: bcs.fixedArray(64, bcs.u8()),\n\tSecp256k1: bcs.fixedArray(64, bcs.u8()),\n\tSecp256r1: bcs.fixedArray(64, bcs.u8()),\n\tZkLogin: bcs.vector(bcs.u8()),\n});\n\nexport const PublicKey = bcs.enum('PublicKey', {\n\tED25519: bcs.fixedArray(32, bcs.u8()),\n\tSecp256k1: bcs.fixedArray(33, bcs.u8()),\n\tSecp256r1: bcs.fixedArray(33, bcs.u8()),\n\tZkLogin: bcs.vector(bcs.u8()),\n});\n\nexport const MultiSigPkMap = bcs.struct('MultiSigPkMap', {\n\tpubKey: PublicKey,\n\tweight: bcs.u8(),\n});\n\nexport const MultiSigPublicKey = bcs.struct('MultiSigPublicKey', {\n\tpk_map: bcs.vector(MultiSigPkMap),\n\tthreshold: bcs.u16(),\n});\n\nexport const MultiSig = bcs.struct('MultiSig', {\n\tsigs: bcs.vector(CompressedSignature),\n\tbitmap: bcs.u16(),\n\tmultisig_pk: MultiSigPublicKey,\n});\n\nexport const base64String = bcs.vector(bcs.u8()).transform({\n\tinput: (val: string | Uint8Array) => (typeof val === 'string' ? fromBase64(val) : val),\n\toutput: (val) => toBase64(new Uint8Array(val)),\n});\n\nexport const SenderSignedTransaction = bcs.struct('SenderSignedTransaction', {\n\tintentMessage: IntentMessage(TransactionData),\n\ttxSignatures: bcs.vector(base64String),\n});\n\nexport const SenderSignedData = bcs.vector(SenderSignedTransaction, {\n\tname: 'SenderSignedData',\n});\n\nexport const PasskeyAuthenticator = bcs.struct('PasskeyAuthenticator', {\n\tauthenticatorData: bcs.vector(bcs.u8()),\n\tclientDataJson: bcs.string(),\n\tuserSignature: bcs.vector(bcs.u8()),\n});\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,iBAAgF;AAEhF,uBAA2E;AAC3E,iCAAkC;AAGlC,SAAS,WAAW,SAAkC;AACrD,SAAO,eACL,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,GAAI;AAAA,EACL,CAAC,EACA,UAAU;AAAA,IACV,OAAO,CAAC,QAAyB;AAAA,IACj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AAI,OAAO,eAAI,GAAG,CAAC;AAC7B,CAAC;AAEM,MAAM,gBAAgB,eAAI,OAAO,iBAAiB;AAAA,EACxD,QAAQ;AAAA,EACR,QAAQ,eAAI,GAAG;AAChB,CAAC;AAEM,MAAM,oBAAoB,eAAI,OAAO,qBAAqB;AAAA,EAChE,QAAQ,eAAI,OAAO,aAAa;AAAA,EAChC,WAAW,eAAI,IAAI;AACpB,CAAC;AAEM,MAAM,WAAW,eAAI,OAAO,YAAY;AAAA,EAC9C,MAAM,eAAI,OAAO,mBAAmB;AAAA,EACpC,QAAQ,eAAI,IAAI;AAAA,EAChB,aAAa;AACd,CAAC;AAEM,MAAM,eAAe,eAAI,OAAO,eAAI,GAAG,CAAC,EAAE,UAAU;AAAA,EAC1D,OAAO,CAAC,QAA8B,OAAO,QAAQ,eAAW,uBAAW,GAAG,IAAI;AAAA,EAClF,QAAQ,CAAC,YAAQ,qBAAS,IAAI,WAAW,GAAG,CAAC;AAC9C,CAAC;AAEM,MAAM,0BAA0B,eAAI,OAAO,2BAA2B;AAAA,EAC5E,eAAe,cAAc,eAAe;AAAA,EAC5C,cAAc,eAAI,OAAO,YAAY;AACtC,CAAC;AAEM,MAAM,mBAAmB,eAAI,OAAO,yBAAyB;AAAA,EACnE,MAAM;AACP,CAAC;AAEM,MAAM,uBAAuB,eAAI,OAAO,wBAAwB;AAAA,EACtE,mBAAmB,eAAI,OAAO,eAAI,GAAG,CAAC;AAAA,EACtC,gBAAgB,eAAI,OAAO;AAAA,EAC3B,eAAe,eAAI,OAAO,eAAI,GAAG,CAAC;AACnC,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -161,14 +161,11 @@ export declare const TransactionEffects: import("@mysten/bcs").BcsType<import("@
|
|
|
161
161
|
initialSharedVersion: string;
|
|
162
162
|
};
|
|
163
163
|
Immutable: true;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
SingleOwner: string;
|
|
167
|
-
$kind: "SingleOwner";
|
|
168
|
-
};
|
|
164
|
+
ConsensusAddressOwner: {
|
|
165
|
+
owner: string;
|
|
169
166
|
startVersion: string;
|
|
170
167
|
};
|
|
171
|
-
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "
|
|
168
|
+
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "ConsensusAddressOwner">][];
|
|
172
169
|
mutated: [{
|
|
173
170
|
objectId: string;
|
|
174
171
|
version: string;
|
|
@@ -180,14 +177,11 @@ export declare const TransactionEffects: import("@mysten/bcs").BcsType<import("@
|
|
|
180
177
|
initialSharedVersion: string;
|
|
181
178
|
};
|
|
182
179
|
Immutable: true;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
SingleOwner: string;
|
|
186
|
-
$kind: "SingleOwner";
|
|
187
|
-
};
|
|
180
|
+
ConsensusAddressOwner: {
|
|
181
|
+
owner: string;
|
|
188
182
|
startVersion: string;
|
|
189
183
|
};
|
|
190
|
-
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "
|
|
184
|
+
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "ConsensusAddressOwner">][];
|
|
191
185
|
unwrapped: [{
|
|
192
186
|
objectId: string;
|
|
193
187
|
version: string;
|
|
@@ -199,14 +193,11 @@ export declare const TransactionEffects: import("@mysten/bcs").BcsType<import("@
|
|
|
199
193
|
initialSharedVersion: string;
|
|
200
194
|
};
|
|
201
195
|
Immutable: true;
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
SingleOwner: string;
|
|
205
|
-
$kind: "SingleOwner";
|
|
206
|
-
};
|
|
196
|
+
ConsensusAddressOwner: {
|
|
197
|
+
owner: string;
|
|
207
198
|
startVersion: string;
|
|
208
199
|
};
|
|
209
|
-
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "
|
|
200
|
+
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "ConsensusAddressOwner">][];
|
|
210
201
|
deleted: {
|
|
211
202
|
objectId: string;
|
|
212
203
|
version: string;
|
|
@@ -233,14 +224,11 @@ export declare const TransactionEffects: import("@mysten/bcs").BcsType<import("@
|
|
|
233
224
|
initialSharedVersion: string;
|
|
234
225
|
};
|
|
235
226
|
Immutable: true;
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
SingleOwner: string;
|
|
239
|
-
$kind: "SingleOwner";
|
|
240
|
-
};
|
|
227
|
+
ConsensusAddressOwner: {
|
|
228
|
+
owner: string;
|
|
241
229
|
startVersion: string;
|
|
242
230
|
};
|
|
243
|
-
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "
|
|
231
|
+
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "ConsensusAddressOwner">];
|
|
244
232
|
eventsDigest: string | null;
|
|
245
233
|
dependencies: string[];
|
|
246
234
|
};
|
|
@@ -403,14 +391,11 @@ export declare const TransactionEffects: import("@mysten/bcs").BcsType<import("@
|
|
|
403
391
|
initialSharedVersion: string;
|
|
404
392
|
};
|
|
405
393
|
Immutable: true;
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
SingleOwner: string;
|
|
409
|
-
$kind: "SingleOwner";
|
|
410
|
-
};
|
|
394
|
+
ConsensusAddressOwner: {
|
|
395
|
+
owner: string;
|
|
411
396
|
startVersion: string;
|
|
412
397
|
};
|
|
413
|
-
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "
|
|
398
|
+
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "ConsensusAddressOwner">];
|
|
414
399
|
}, "NotExist" | "Exist">;
|
|
415
400
|
outputState: import("@mysten/bcs").EnumOutputShapeWithKeys<{
|
|
416
401
|
NotExist: true;
|
|
@@ -421,14 +406,11 @@ export declare const TransactionEffects: import("@mysten/bcs").BcsType<import("@
|
|
|
421
406
|
initialSharedVersion: string;
|
|
422
407
|
};
|
|
423
408
|
Immutable: true;
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
SingleOwner: string;
|
|
427
|
-
$kind: "SingleOwner";
|
|
428
|
-
};
|
|
409
|
+
ConsensusAddressOwner: {
|
|
410
|
+
owner: string;
|
|
429
411
|
startVersion: string;
|
|
430
412
|
};
|
|
431
|
-
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "
|
|
413
|
+
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "ConsensusAddressOwner">];
|
|
432
414
|
PackageWrite: [string, string];
|
|
433
415
|
}, "NotExist" | "ObjectWrite" | "PackageWrite">;
|
|
434
416
|
idOperation: import("@mysten/bcs").EnumOutputShapeWithKeys<{
|
|
@@ -617,10 +599,8 @@ export declare const TransactionEffects: import("@mysten/bcs").BcsType<import("@
|
|
|
617
599
|
initialSharedVersion: string | number | bigint;
|
|
618
600
|
};
|
|
619
601
|
Immutable: boolean | object | null;
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
SingleOwner: string | Uint8Array<ArrayBufferLike>;
|
|
623
|
-
};
|
|
602
|
+
ConsensusAddressOwner: {
|
|
603
|
+
owner: string | Uint8Array<ArrayBufferLike>;
|
|
624
604
|
startVersion: string | number | bigint;
|
|
625
605
|
};
|
|
626
606
|
}>]> & {
|
|
@@ -637,10 +617,8 @@ export declare const TransactionEffects: import("@mysten/bcs").BcsType<import("@
|
|
|
637
617
|
initialSharedVersion: string | number | bigint;
|
|
638
618
|
};
|
|
639
619
|
Immutable: boolean | object | null;
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
SingleOwner: string | Uint8Array<ArrayBufferLike>;
|
|
643
|
-
};
|
|
620
|
+
ConsensusAddressOwner: {
|
|
621
|
+
owner: string | Uint8Array<ArrayBufferLike>;
|
|
644
622
|
startVersion: string | number | bigint;
|
|
645
623
|
};
|
|
646
624
|
}>]> & {
|
|
@@ -657,10 +635,8 @@ export declare const TransactionEffects: import("@mysten/bcs").BcsType<import("@
|
|
|
657
635
|
initialSharedVersion: string | number | bigint;
|
|
658
636
|
};
|
|
659
637
|
Immutable: boolean | object | null;
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
SingleOwner: string | Uint8Array<ArrayBufferLike>;
|
|
663
|
-
};
|
|
638
|
+
ConsensusAddressOwner: {
|
|
639
|
+
owner: string | Uint8Array<ArrayBufferLike>;
|
|
664
640
|
startVersion: string | number | bigint;
|
|
665
641
|
};
|
|
666
642
|
}>]> & {
|
|
@@ -698,10 +674,8 @@ export declare const TransactionEffects: import("@mysten/bcs").BcsType<import("@
|
|
|
698
674
|
initialSharedVersion: string | number | bigint;
|
|
699
675
|
};
|
|
700
676
|
Immutable: boolean | object | null;
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
SingleOwner: string | Uint8Array<ArrayBufferLike>;
|
|
704
|
-
};
|
|
677
|
+
ConsensusAddressOwner: {
|
|
678
|
+
owner: string | Uint8Array<ArrayBufferLike>;
|
|
705
679
|
startVersion: string | number | bigint;
|
|
706
680
|
};
|
|
707
681
|
}>];
|
|
@@ -875,10 +849,8 @@ export declare const TransactionEffects: import("@mysten/bcs").BcsType<import("@
|
|
|
875
849
|
initialSharedVersion: string | number | bigint;
|
|
876
850
|
};
|
|
877
851
|
Immutable: boolean | object | null;
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
SingleOwner: string | Uint8Array<ArrayBufferLike>;
|
|
881
|
-
};
|
|
852
|
+
ConsensusAddressOwner: {
|
|
853
|
+
owner: string | Uint8Array<ArrayBufferLike>;
|
|
882
854
|
startVersion: string | number | bigint;
|
|
883
855
|
};
|
|
884
856
|
}>];
|
|
@@ -892,10 +864,8 @@ export declare const TransactionEffects: import("@mysten/bcs").BcsType<import("@
|
|
|
892
864
|
initialSharedVersion: string | number | bigint;
|
|
893
865
|
};
|
|
894
866
|
Immutable: boolean | object | null;
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
SingleOwner: string | Uint8Array<ArrayBufferLike>;
|
|
898
|
-
};
|
|
867
|
+
ConsensusAddressOwner: {
|
|
868
|
+
owner: string | Uint8Array<ArrayBufferLike>;
|
|
899
869
|
startVersion: string | number | bigint;
|
|
900
870
|
};
|
|
901
871
|
}>];
|
package/dist/cjs/bcs/index.d.ts
CHANGED
|
@@ -499,24 +499,19 @@ declare const suiBcs: {
|
|
|
499
499
|
initialSharedVersion: string;
|
|
500
500
|
};
|
|
501
501
|
Immutable: true;
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
SingleOwner: string;
|
|
505
|
-
$kind: "SingleOwner";
|
|
506
|
-
};
|
|
502
|
+
ConsensusAddressOwner: {
|
|
503
|
+
owner: string;
|
|
507
504
|
startVersion: string;
|
|
508
505
|
};
|
|
509
|
-
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "
|
|
506
|
+
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "ConsensusAddressOwner">, import("@mysten/bcs").EnumInputShape<{
|
|
510
507
|
AddressOwner: string | Uint8Array<ArrayBufferLike>;
|
|
511
508
|
ObjectOwner: string | Uint8Array<ArrayBufferLike>;
|
|
512
509
|
Shared: {
|
|
513
510
|
initialSharedVersion: string | number | bigint;
|
|
514
511
|
};
|
|
515
512
|
Immutable: boolean | object | null;
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
SingleOwner: string | Uint8Array<ArrayBufferLike>;
|
|
519
|
-
};
|
|
513
|
+
ConsensusAddressOwner: {
|
|
514
|
+
owner: string | Uint8Array<ArrayBufferLike>;
|
|
520
515
|
startVersion: string | number | bigint;
|
|
521
516
|
};
|
|
522
517
|
}>>;
|
|
@@ -2213,14 +2208,11 @@ declare const suiBcs: {
|
|
|
2213
2208
|
initialSharedVersion: string;
|
|
2214
2209
|
};
|
|
2215
2210
|
Immutable: true;
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
SingleOwner: string;
|
|
2219
|
-
$kind: "SingleOwner";
|
|
2220
|
-
};
|
|
2211
|
+
ConsensusAddressOwner: {
|
|
2212
|
+
owner: string;
|
|
2221
2213
|
startVersion: string;
|
|
2222
2214
|
};
|
|
2223
|
-
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "
|
|
2215
|
+
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "ConsensusAddressOwner">][];
|
|
2224
2216
|
mutated: [{
|
|
2225
2217
|
objectId: string;
|
|
2226
2218
|
version: string;
|
|
@@ -2232,14 +2224,11 @@ declare const suiBcs: {
|
|
|
2232
2224
|
initialSharedVersion: string;
|
|
2233
2225
|
};
|
|
2234
2226
|
Immutable: true;
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
SingleOwner: string;
|
|
2238
|
-
$kind: "SingleOwner";
|
|
2239
|
-
};
|
|
2227
|
+
ConsensusAddressOwner: {
|
|
2228
|
+
owner: string;
|
|
2240
2229
|
startVersion: string;
|
|
2241
2230
|
};
|
|
2242
|
-
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "
|
|
2231
|
+
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "ConsensusAddressOwner">][];
|
|
2243
2232
|
unwrapped: [{
|
|
2244
2233
|
objectId: string;
|
|
2245
2234
|
version: string;
|
|
@@ -2251,14 +2240,11 @@ declare const suiBcs: {
|
|
|
2251
2240
|
initialSharedVersion: string;
|
|
2252
2241
|
};
|
|
2253
2242
|
Immutable: true;
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
SingleOwner: string;
|
|
2257
|
-
$kind: "SingleOwner";
|
|
2258
|
-
};
|
|
2243
|
+
ConsensusAddressOwner: {
|
|
2244
|
+
owner: string;
|
|
2259
2245
|
startVersion: string;
|
|
2260
2246
|
};
|
|
2261
|
-
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "
|
|
2247
|
+
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "ConsensusAddressOwner">][];
|
|
2262
2248
|
deleted: {
|
|
2263
2249
|
objectId: string;
|
|
2264
2250
|
version: string;
|
|
@@ -2285,14 +2271,11 @@ declare const suiBcs: {
|
|
|
2285
2271
|
initialSharedVersion: string;
|
|
2286
2272
|
};
|
|
2287
2273
|
Immutable: true;
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
SingleOwner: string;
|
|
2291
|
-
$kind: "SingleOwner";
|
|
2292
|
-
};
|
|
2274
|
+
ConsensusAddressOwner: {
|
|
2275
|
+
owner: string;
|
|
2293
2276
|
startVersion: string;
|
|
2294
2277
|
};
|
|
2295
|
-
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "
|
|
2278
|
+
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "ConsensusAddressOwner">];
|
|
2296
2279
|
eventsDigest: string | null;
|
|
2297
2280
|
dependencies: string[];
|
|
2298
2281
|
};
|
|
@@ -2455,14 +2438,11 @@ declare const suiBcs: {
|
|
|
2455
2438
|
initialSharedVersion: string;
|
|
2456
2439
|
};
|
|
2457
2440
|
Immutable: true;
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
SingleOwner: string;
|
|
2461
|
-
$kind: "SingleOwner";
|
|
2462
|
-
};
|
|
2441
|
+
ConsensusAddressOwner: {
|
|
2442
|
+
owner: string;
|
|
2463
2443
|
startVersion: string;
|
|
2464
2444
|
};
|
|
2465
|
-
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "
|
|
2445
|
+
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "ConsensusAddressOwner">];
|
|
2466
2446
|
}, "NotExist" | "Exist">;
|
|
2467
2447
|
outputState: import("@mysten/bcs").EnumOutputShapeWithKeys<{
|
|
2468
2448
|
NotExist: true;
|
|
@@ -2473,14 +2453,11 @@ declare const suiBcs: {
|
|
|
2473
2453
|
initialSharedVersion: string;
|
|
2474
2454
|
};
|
|
2475
2455
|
Immutable: true;
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
SingleOwner: string;
|
|
2479
|
-
$kind: "SingleOwner";
|
|
2480
|
-
};
|
|
2456
|
+
ConsensusAddressOwner: {
|
|
2457
|
+
owner: string;
|
|
2481
2458
|
startVersion: string;
|
|
2482
2459
|
};
|
|
2483
|
-
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "
|
|
2460
|
+
}, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "ConsensusAddressOwner">];
|
|
2484
2461
|
PackageWrite: [string, string];
|
|
2485
2462
|
}, "NotExist" | "ObjectWrite" | "PackageWrite">;
|
|
2486
2463
|
idOperation: import("@mysten/bcs").EnumOutputShapeWithKeys<{
|
|
@@ -2669,10 +2646,8 @@ declare const suiBcs: {
|
|
|
2669
2646
|
initialSharedVersion: string | number | bigint;
|
|
2670
2647
|
};
|
|
2671
2648
|
Immutable: boolean | object | null;
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
SingleOwner: string | Uint8Array<ArrayBufferLike>;
|
|
2675
|
-
};
|
|
2649
|
+
ConsensusAddressOwner: {
|
|
2650
|
+
owner: string | Uint8Array<ArrayBufferLike>;
|
|
2676
2651
|
startVersion: string | number | bigint;
|
|
2677
2652
|
};
|
|
2678
2653
|
}>]> & {
|
|
@@ -2689,10 +2664,8 @@ declare const suiBcs: {
|
|
|
2689
2664
|
initialSharedVersion: string | number | bigint;
|
|
2690
2665
|
};
|
|
2691
2666
|
Immutable: boolean | object | null;
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
SingleOwner: string | Uint8Array<ArrayBufferLike>;
|
|
2695
|
-
};
|
|
2667
|
+
ConsensusAddressOwner: {
|
|
2668
|
+
owner: string | Uint8Array<ArrayBufferLike>;
|
|
2696
2669
|
startVersion: string | number | bigint;
|
|
2697
2670
|
};
|
|
2698
2671
|
}>]> & {
|
|
@@ -2709,10 +2682,8 @@ declare const suiBcs: {
|
|
|
2709
2682
|
initialSharedVersion: string | number | bigint;
|
|
2710
2683
|
};
|
|
2711
2684
|
Immutable: boolean | object | null;
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
SingleOwner: string | Uint8Array<ArrayBufferLike>;
|
|
2715
|
-
};
|
|
2685
|
+
ConsensusAddressOwner: {
|
|
2686
|
+
owner: string | Uint8Array<ArrayBufferLike>;
|
|
2716
2687
|
startVersion: string | number | bigint;
|
|
2717
2688
|
};
|
|
2718
2689
|
}>]> & {
|
|
@@ -2750,10 +2721,8 @@ declare const suiBcs: {
|
|
|
2750
2721
|
initialSharedVersion: string | number | bigint;
|
|
2751
2722
|
};
|
|
2752
2723
|
Immutable: boolean | object | null;
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
SingleOwner: string | Uint8Array<ArrayBufferLike>;
|
|
2756
|
-
};
|
|
2724
|
+
ConsensusAddressOwner: {
|
|
2725
|
+
owner: string | Uint8Array<ArrayBufferLike>;
|
|
2757
2726
|
startVersion: string | number | bigint;
|
|
2758
2727
|
};
|
|
2759
2728
|
}>];
|
|
@@ -2927,10 +2896,8 @@ declare const suiBcs: {
|
|
|
2927
2896
|
initialSharedVersion: string | number | bigint;
|
|
2928
2897
|
};
|
|
2929
2898
|
Immutable: boolean | object | null;
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
SingleOwner: string | Uint8Array<ArrayBufferLike>;
|
|
2933
|
-
};
|
|
2899
|
+
ConsensusAddressOwner: {
|
|
2900
|
+
owner: string | Uint8Array<ArrayBufferLike>;
|
|
2934
2901
|
startVersion: string | number | bigint;
|
|
2935
2902
|
};
|
|
2936
2903
|
}>];
|
|
@@ -2944,10 +2911,8 @@ declare const suiBcs: {
|
|
|
2944
2911
|
initialSharedVersion: string | number | bigint;
|
|
2945
2912
|
};
|
|
2946
2913
|
Immutable: boolean | object | null;
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
SingleOwner: string | Uint8Array<ArrayBufferLike>;
|
|
2950
|
-
};
|
|
2914
|
+
ConsensusAddressOwner: {
|
|
2915
|
+
owner: string | Uint8Array<ArrayBufferLike>;
|
|
2951
2916
|
startVersion: string | number | bigint;
|
|
2952
2917
|
};
|
|
2953
2918
|
}>];
|
|
@@ -6,11 +6,6 @@
|
|
|
6
6
|
* This file is generated from:
|
|
7
7
|
* /crates/sui-open-rpc/spec/openrpc.json
|
|
8
8
|
*/
|
|
9
|
-
export type Authenticator =
|
|
10
|
-
/** The contained SuiAddress exclusively has all permissions: read, write, delete, transfer */
|
|
11
|
-
{
|
|
12
|
-
SingleOwner: string;
|
|
13
|
-
};
|
|
14
9
|
export interface Balance {
|
|
15
10
|
coinObjectCount: number;
|
|
16
11
|
coinType: string;
|
|
@@ -622,14 +617,9 @@ export type ObjectOwner =
|
|
|
622
617
|
/** The version at which the object became shared */
|
|
623
618
|
initial_shared_version: string;
|
|
624
619
|
};
|
|
625
|
-
} | 'Immutable' /**
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
* Note: wondering what happened to `V1`? `Shared` above was the V1 of consensus objects.
|
|
629
|
-
*/ | {
|
|
630
|
-
ConsensusV2: {
|
|
631
|
-
/** The authentication mode of the object */
|
|
632
|
-
authenticator: Authenticator;
|
|
620
|
+
} | 'Immutable' /** Object is exclusively owned by a single address and sequenced via consensus. */ | {
|
|
621
|
+
ConsensusAddressOwner: {
|
|
622
|
+
owner: string;
|
|
633
623
|
/**
|
|
634
624
|
* The version at which the object most recently became a consensus object. This serves the same
|
|
635
625
|
* function as `initial_shared_version`, except it may change if the object's Owner type changes.
|
|
@@ -874,7 +864,7 @@ export interface CoinMetadata {
|
|
|
874
864
|
/** Symbol for the token */
|
|
875
865
|
symbol: string;
|
|
876
866
|
}
|
|
877
|
-
export type SuiEndOfEpochTransactionKind = 'AuthenticatorStateCreate' | 'RandomnessStateCreate' | 'CoinDenyListStateCreate' | 'StoreExecutionTimeObservations' | {
|
|
867
|
+
export type SuiEndOfEpochTransactionKind = 'AuthenticatorStateCreate' | 'RandomnessStateCreate' | 'CoinDenyListStateCreate' | 'StoreExecutionTimeObservations' | 'AccumulatorRootCreate' | {
|
|
878
868
|
ChangeEpoch: SuiChangeEpoch;
|
|
879
869
|
} | {
|
|
880
870
|
AuthenticatorStateExpire: SuiAuthenticatorStateExpire;
|
|
@@ -903,6 +893,12 @@ export type SuiMoveAbility = 'Copy' | 'Drop' | 'Store' | 'Key';
|
|
|
903
893
|
export interface SuiMoveAbilitySet {
|
|
904
894
|
abilities: SuiMoveAbility[];
|
|
905
895
|
}
|
|
896
|
+
export interface SuiMoveAbort {
|
|
897
|
+
error_code?: string | null;
|
|
898
|
+
function?: string | null;
|
|
899
|
+
line?: number | null;
|
|
900
|
+
module_id?: string | null;
|
|
901
|
+
}
|
|
906
902
|
export interface SuiMoveModuleId {
|
|
907
903
|
address: string;
|
|
908
904
|
name: string;
|
|
@@ -910,6 +906,7 @@ export interface SuiMoveModuleId {
|
|
|
910
906
|
export interface SuiMoveNormalizedEnum {
|
|
911
907
|
abilities: SuiMoveAbilitySet;
|
|
912
908
|
typeParameters: SuiMoveStructTypeParameter[];
|
|
909
|
+
variantDeclarationOrder?: string[] | null;
|
|
913
910
|
variants: {
|
|
914
911
|
[key: string]: SuiMoveNormalizedField[];
|
|
915
912
|
};
|
|
@@ -1239,6 +1236,8 @@ export type TransactionBlockData = {
|
|
|
1239
1236
|
export type TransactionEffects =
|
|
1240
1237
|
/** The response from processing a transaction or a certified transaction */
|
|
1241
1238
|
{
|
|
1239
|
+
/** The abort error populated if the transaction failed with an abort code. */
|
|
1240
|
+
abortError?: SuiMoveAbort | null;
|
|
1242
1241
|
/** ObjectRef and owner of new objects created. */
|
|
1243
1242
|
created?: OwnedObjectRef[];
|
|
1244
1243
|
/** Object Refs of objects now deleted (the old refs). */
|
|
@@ -1351,6 +1350,15 @@ export type SuiTransactionBlockKind =
|
|
|
1351
1350
|
kind: 'ConsensusCommitPrologueV4';
|
|
1352
1351
|
round: string;
|
|
1353
1352
|
sub_dag_index?: string | null;
|
|
1353
|
+
} /** A series of commands where the results of one command can be used in future commands */ | {
|
|
1354
|
+
/** Input objects or primitive values */
|
|
1355
|
+
inputs: SuiCallArg[];
|
|
1356
|
+
kind: 'ProgrammableSystemTransaction';
|
|
1357
|
+
/**
|
|
1358
|
+
* The transactions to be executed sequentially. A failure in any transaction will result in the
|
|
1359
|
+
* failure of the entire programmable transaction block.
|
|
1360
|
+
*/
|
|
1361
|
+
transactions: SuiTransaction[];
|
|
1354
1362
|
};
|
|
1355
1363
|
export interface SuiTransactionBlockResponse {
|
|
1356
1364
|
balanceChanges?: BalanceChange[] | null;
|