@sentio/sdk 2.44.3-rc.8 → 2.44.3
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 +25 -0
- package/lib/aptos/builtin/0x1.d.ts.map +1 -1
- package/lib/aptos/builtin/0x1.js +24 -2
- package/lib/aptos/builtin/0x1.js.map +1 -1
- package/lib/aptos/builtin/0x3.js +2 -1
- package/lib/aptos/builtin/0x3.js.map +1 -1
- package/lib/aptos/builtin/0x4.js +2 -1
- package/lib/aptos/builtin/0x4.js.map +1 -1
- package/lib/aptos/codegen/codegen.js +1 -12
- package/lib/aptos/codegen/codegen.js.map +1 -1
- package/lib/aptos/network.d.ts +1 -0
- package/lib/aptos/network.d.ts.map +1 -1
- package/lib/aptos/network.js +2 -1
- package/lib/aptos/network.js.map +1 -1
- package/lib/eth/codegen/codegen.js +4 -5
- package/lib/eth/codegen/codegen.js.map +1 -1
- package/lib/fuel/codegen/codegen.js +2 -2
- package/lib/fuel/codegen/codegen.js.map +1 -1
- package/lib/move/shared-network-codegen.d.ts +3 -1
- package/lib/move/shared-network-codegen.d.ts.map +1 -1
- package/lib/move/shared-network-codegen.js +19 -6
- package/lib/move/shared-network-codegen.js.map +1 -1
- package/lib/solana/builtin/types.d.ts +170 -170
- package/lib/solana/builtin/types.d.ts.map +1 -1
- package/lib/solana/builtin/types.js +1 -1
- package/lib/solana/builtin/types.js.map +1 -1
- package/lib/stark/codegen/codegen.js +2 -2
- package/lib/stark/codegen/codegen.js.map +1 -1
- package/lib/store/codegen.js +2 -2
- package/lib/store/codegen.js.map +1 -1
- package/lib/sui/builtin/0x1.d.ts +19 -0
- package/lib/sui/builtin/0x1.d.ts.map +1 -1
- package/lib/sui/builtin/0x1.js +28 -3
- package/lib/sui/builtin/0x1.js.map +1 -1
- package/lib/sui/builtin/0x2.js +0 -2
- package/lib/sui/builtin/0x2.js.map +1 -1
- package/lib/sui/builtin/0x3.js +1 -3
- package/lib/sui/builtin/0x3.js.map +1 -1
- package/lib/sui/codegen/codegen.js +1 -12
- package/lib/sui/codegen/codegen.js.map +1 -1
- package/lib/sui/network.d.ts +0 -2
- package/lib/sui/network.d.ts.map +1 -1
- package/lib/sui/network.js +3 -3
- package/lib/sui/network.js.map +1 -1
- package/package.json +12 -16
- package/src/aptos/abis/0x1.json +73 -9
- package/src/aptos/builtin/0x1.ts +80 -2
- package/src/aptos/builtin/0x3.ts +2 -1
- package/src/aptos/builtin/0x4.ts +2 -1
- package/src/aptos/codegen/codegen.ts +1 -13
- package/src/aptos/network.ts +2 -1
- package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +204 -204
- package/src/eth/builtin/internal/eacaggregatorproxy-test-utils.ts +12 -12
- package/src/eth/builtin/internal/erc1155-processor.ts +95 -95
- package/src/eth/builtin/internal/erc1155-test-utils.ts +8 -8
- package/src/eth/builtin/internal/erc20-processor.ts +140 -140
- package/src/eth/builtin/internal/erc20-test-utils.ts +6 -6
- package/src/eth/builtin/internal/erc20bytes-processor.ts +80 -80
- package/src/eth/builtin/internal/erc20bytes-test-utils.ts +4 -4
- package/src/eth/builtin/internal/erc721-processor.ts +133 -133
- package/src/eth/builtin/internal/erc721-test-utils.ts +6 -6
- package/src/eth/builtin/internal/factories/EACAggregatorProxy__factory.ts +1 -1
- package/src/eth/builtin/internal/factories/ERC1155__factory.ts +1 -1
- package/src/eth/builtin/internal/factories/ERC20Bytes__factory.ts +1 -1
- package/src/eth/builtin/internal/weth9-processor.ts +97 -97
- package/src/eth/builtin/internal/weth9-test-utils.ts +8 -8
- package/src/eth/codegen/codegen.ts +5 -5
- package/src/fuel/codegen/codegen.ts +2 -2
- package/src/move/shared-network-codegen.ts +14 -7
- package/src/solana/builtin/types.ts +1 -1
- package/src/stark/codegen/codegen.ts +2 -2
- package/src/store/codegen.ts +2 -2
- package/src/sui/abis/0x1.json +391 -0
- package/src/sui/abis/0x3.json +20 -0
- package/src/sui/builtin/0x1.ts +44 -3
- package/src/sui/builtin/0x2.ts +0 -2
- package/src/sui/builtin/0x3.ts +1 -3
- package/src/sui/codegen/codegen.ts +1 -13
- package/src/sui/network.ts +3 -3
@@ -23,12 +23,12 @@ const mockField = {
|
|
23
23
|
|
24
24
|
export function mockApprovalLog(
|
25
25
|
contractAddress: string,
|
26
|
-
event: ApprovalEventObject
|
26
|
+
event: ApprovalEventObject,
|
27
27
|
): LogParams {
|
28
28
|
const contract = getWETH9Contract(EthChainId.ETHEREUM, contractAddress);
|
29
29
|
const encodedLog = contract.rawContract.interface.encodeEventLog(
|
30
30
|
"Approval(address,address,uint256)",
|
31
|
-
[event.src, event.guy, event.wad]
|
31
|
+
[event.src, event.guy, event.wad],
|
32
32
|
);
|
33
33
|
return {
|
34
34
|
...mockField,
|
@@ -41,12 +41,12 @@ export function mockApprovalLog(
|
|
41
41
|
|
42
42
|
export function mockTransferLog(
|
43
43
|
contractAddress: string,
|
44
|
-
event: TransferEventObject
|
44
|
+
event: TransferEventObject,
|
45
45
|
): LogParams {
|
46
46
|
const contract = getWETH9Contract(EthChainId.ETHEREUM, contractAddress);
|
47
47
|
const encodedLog = contract.rawContract.interface.encodeEventLog(
|
48
48
|
"Transfer(address,address,uint256)",
|
49
|
-
[event.src, event.dst, event.wad]
|
49
|
+
[event.src, event.dst, event.wad],
|
50
50
|
);
|
51
51
|
return {
|
52
52
|
...mockField,
|
@@ -59,12 +59,12 @@ export function mockTransferLog(
|
|
59
59
|
|
60
60
|
export function mockDepositLog(
|
61
61
|
contractAddress: string,
|
62
|
-
event: DepositEventObject
|
62
|
+
event: DepositEventObject,
|
63
63
|
): LogParams {
|
64
64
|
const contract = getWETH9Contract(EthChainId.ETHEREUM, contractAddress);
|
65
65
|
const encodedLog = contract.rawContract.interface.encodeEventLog(
|
66
66
|
"Deposit(address,uint256)",
|
67
|
-
[event.dst, event.wad]
|
67
|
+
[event.dst, event.wad],
|
68
68
|
);
|
69
69
|
return {
|
70
70
|
...mockField,
|
@@ -77,12 +77,12 @@ export function mockDepositLog(
|
|
77
77
|
|
78
78
|
export function mockWithdrawalLog(
|
79
79
|
contractAddress: string,
|
80
|
-
event: WithdrawalEventObject
|
80
|
+
event: WithdrawalEventObject,
|
81
81
|
): LogParams {
|
82
82
|
const contract = getWETH9Contract(EthChainId.ETHEREUM, contractAddress);
|
83
83
|
const encodedLog = contract.rawContract.interface.encodeEventLog(
|
84
84
|
"Withdrawal(address,uint256)",
|
85
|
-
[event.src, event.wad]
|
85
|
+
[event.src, event.wad],
|
86
86
|
);
|
87
87
|
return {
|
88
88
|
...mockField,
|
@@ -2,10 +2,10 @@ import { loadFileDescriptions, processOutput, skipEmptyAbis } from 'typechain/di
|
|
2
2
|
import * as fs from 'fs'
|
3
3
|
import { DEFAULT_FLAGS, Services } from 'typechain'
|
4
4
|
import EthersSentio, { SentioEthersConfig } from './ethers-sentio.js'
|
5
|
-
|
6
|
-
import
|
5
|
+
|
6
|
+
import synchronizedPrettier from '@prettier/sync'
|
7
7
|
import path from 'path'
|
8
|
-
import
|
8
|
+
import { mkdirpSync } from 'mkdirp'
|
9
9
|
import { YamlContractConfig } from '../../core/yaml-contract-config.js'
|
10
10
|
import chalk from 'chalk'
|
11
11
|
|
@@ -58,8 +58,8 @@ async function codegenInternal(
|
|
58
58
|
fs,
|
59
59
|
// @ts-ignore for test
|
60
60
|
// prettier: { format: (s) => s },
|
61
|
-
prettier:
|
62
|
-
mkdirp:
|
61
|
+
prettier: synchronizedPrettier,
|
62
|
+
mkdirp: mkdirpSync
|
63
63
|
}
|
64
64
|
let filesGenerated = 0
|
65
65
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import fs, { readFileSync, writeFileSync } from 'fs'
|
2
2
|
import chalk from 'chalk'
|
3
3
|
import { AbiTypeGen, IFile, IFunction, ProgramTypeEnum } from '@fuel-ts/abi-typegen'
|
4
|
-
import
|
4
|
+
import { mkdirpSync } from 'mkdirp'
|
5
5
|
import path from 'path'
|
6
6
|
import { upperFirst } from './utils.js'
|
7
7
|
import { versions as builtinVersions } from '@fuel-ts/versions'
|
@@ -65,7 +65,7 @@ async function codegenInternal(abisDir: string, outDir: string): Promise<number>
|
|
65
65
|
versions: { FUELS: builtinVersions.FUELS }
|
66
66
|
})
|
67
67
|
|
68
|
-
|
68
|
+
mkdirpSync(outDir)
|
69
69
|
let count = 0
|
70
70
|
abiTypeGen.files.forEach((file) => {
|
71
71
|
if (!file.path.endsWith('.hex.ts')) {
|
@@ -15,6 +15,10 @@ export abstract class SharedNetworkCodegen<NetworkType, ModuleTypes, StructType>
|
|
15
15
|
ModuleTypes,
|
16
16
|
StructType
|
17
17
|
> {
|
18
|
+
// readonly ALL_NETWORKS: string[]
|
19
|
+
readonly NETWORK: object
|
20
|
+
readonly networkIdToKey = new Map<NetworkType, string>()
|
21
|
+
|
18
22
|
network: NetworkType
|
19
23
|
constructor(network: NetworkType, chainAdapter: ChainAdapter<ModuleTypes, StructType>) {
|
20
24
|
super(chainAdapter)
|
@@ -25,6 +29,10 @@ export abstract class SharedNetworkCodegen<NetworkType, ModuleTypes, StructType>
|
|
25
29
|
.map((f) => this.generateForEntryFunctions(module, f))
|
26
30
|
.filter((s) => s !== '')
|
27
31
|
|
32
|
+
Object.entries(this.NETWORK).forEach(([key, value]) => {
|
33
|
+
this.networkIdToKey.set(value, key)
|
34
|
+
})
|
35
|
+
|
28
36
|
const qname = moduleQname(module)
|
29
37
|
const eventStructs = new Map<string, InternalMoveStruct>()
|
30
38
|
for (const [type, struct] of allEventStructs.entries()) {
|
@@ -73,7 +81,9 @@ export abstract class SharedNetworkCodegen<NetworkType, ModuleTypes, StructType>
|
|
73
81
|
// `
|
74
82
|
// }
|
75
83
|
|
76
|
-
|
84
|
+
generateNetworkOption(network: NetworkType): string {
|
85
|
+
return this.networkIdToKey.get(network)!
|
86
|
+
}
|
77
87
|
|
78
88
|
generateForEntryFunctions(module: InternalMoveModule, func: InternalMoveFunction) {
|
79
89
|
if (!func.isEntry) {
|
@@ -129,12 +139,9 @@ onEvent${struct.name}(func: (event: ${moduleName}.${normalizeToJSName(struct.nam
|
|
129
139
|
generateLoadAll(isSystem: boolean): string {
|
130
140
|
let source = `loadAllTypes(defaultMoveCoder(${this.PREFIX}Network.${this.generateNetworkOption(this.network)}))`
|
131
141
|
if (isSystem) {
|
132
|
-
source =
|
133
|
-
|
134
|
-
|
135
|
-
loadAllTypes(defaultMoveCoder(${this.PREFIX}Network.MOVEMENT_TEST_NET))
|
136
|
-
loadAllTypes(defaultMoveCoder(${this.PREFIX}Network.MOVEMENT_MAIN_NET))
|
137
|
-
`
|
142
|
+
source = Object.keys(this.NETWORK)
|
143
|
+
.map((network) => `loadAllTypes(defaultMoveCoder(${this.PREFIX}Network.${network}))`)
|
144
|
+
.join('\n')
|
138
145
|
}
|
139
146
|
return source
|
140
147
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import fs, { readFileSync, writeFileSync } from 'fs'
|
2
2
|
import chalk from 'chalk'
|
3
3
|
import path from 'path'
|
4
|
-
import
|
4
|
+
import { mkdirpSync } from 'mkdirp'
|
5
5
|
import { events } from 'starknet'
|
6
6
|
import { StarknetChainId } from '@sentio/chain'
|
7
7
|
import { Abi } from '@sentio/abi-wan-kanabi'
|
@@ -65,7 +65,7 @@ async function codegenInternal(abisDir: string, outDir: string): Promise<number>
|
|
65
65
|
tABIContents.push(`export const ABI_${name} = ${JSON.stringify(abi.abi, null, 2)} as const;`)
|
66
66
|
}
|
67
67
|
|
68
|
-
|
68
|
+
mkdirpSync(outDir)
|
69
69
|
writeFileSync(path.join(outDir, 'tabi.ts'), tABIContents.join('\n'))
|
70
70
|
fileCount++
|
71
71
|
for (const { name, address, chain, abi: jsonAbi } of Object.values(abis)) {
|
package/src/store/codegen.ts
CHANGED
@@ -13,7 +13,7 @@ import {
|
|
13
13
|
} from 'graphql'
|
14
14
|
import * as fs from 'node:fs'
|
15
15
|
import path from 'path'
|
16
|
-
import
|
16
|
+
import { mkdirpSync } from 'mkdirp'
|
17
17
|
import { schemaFromFile } from './schema.js'
|
18
18
|
import chalk from 'chalk'
|
19
19
|
|
@@ -239,7 +239,7 @@ DatabaseSchema.register({
|
|
239
239
|
}
|
240
240
|
})
|
241
241
|
`
|
242
|
-
|
242
|
+
mkdirpSync(path.dirname(target))
|
243
243
|
|
244
244
|
fs.writeFileSync(target, contents)
|
245
245
|
}
|
package/src/sui/abis/0x1.json
CHANGED
@@ -3012,6 +3012,397 @@
|
|
3012
3012
|
}
|
3013
3013
|
}
|
3014
3014
|
},
|
3015
|
+
"uq32_32": {
|
3016
|
+
"fileFormatVersion": 6,
|
3017
|
+
"address": "0x1",
|
3018
|
+
"name": "uq32_32",
|
3019
|
+
"friends": [],
|
3020
|
+
"structs": {
|
3021
|
+
"UQ32_32": {
|
3022
|
+
"abilities": {
|
3023
|
+
"abilities": [
|
3024
|
+
"Copy",
|
3025
|
+
"Drop",
|
3026
|
+
"Store"
|
3027
|
+
]
|
3028
|
+
},
|
3029
|
+
"typeParameters": [],
|
3030
|
+
"fields": [
|
3031
|
+
{
|
3032
|
+
"name": "pos0",
|
3033
|
+
"type": "U64"
|
3034
|
+
}
|
3035
|
+
]
|
3036
|
+
}
|
3037
|
+
},
|
3038
|
+
"exposedFunctions": {
|
3039
|
+
"add": {
|
3040
|
+
"visibility": "Public",
|
3041
|
+
"isEntry": false,
|
3042
|
+
"typeParameters": [],
|
3043
|
+
"parameters": [
|
3044
|
+
{
|
3045
|
+
"Struct": {
|
3046
|
+
"address": "0x1",
|
3047
|
+
"module": "uq32_32",
|
3048
|
+
"name": "UQ32_32",
|
3049
|
+
"typeArguments": []
|
3050
|
+
}
|
3051
|
+
},
|
3052
|
+
{
|
3053
|
+
"Struct": {
|
3054
|
+
"address": "0x1",
|
3055
|
+
"module": "uq32_32",
|
3056
|
+
"name": "UQ32_32",
|
3057
|
+
"typeArguments": []
|
3058
|
+
}
|
3059
|
+
}
|
3060
|
+
],
|
3061
|
+
"return": [
|
3062
|
+
{
|
3063
|
+
"Struct": {
|
3064
|
+
"address": "0x1",
|
3065
|
+
"module": "uq32_32",
|
3066
|
+
"name": "UQ32_32",
|
3067
|
+
"typeArguments": []
|
3068
|
+
}
|
3069
|
+
}
|
3070
|
+
]
|
3071
|
+
},
|
3072
|
+
"div": {
|
3073
|
+
"visibility": "Public",
|
3074
|
+
"isEntry": false,
|
3075
|
+
"typeParameters": [],
|
3076
|
+
"parameters": [
|
3077
|
+
{
|
3078
|
+
"Struct": {
|
3079
|
+
"address": "0x1",
|
3080
|
+
"module": "uq32_32",
|
3081
|
+
"name": "UQ32_32",
|
3082
|
+
"typeArguments": []
|
3083
|
+
}
|
3084
|
+
},
|
3085
|
+
{
|
3086
|
+
"Struct": {
|
3087
|
+
"address": "0x1",
|
3088
|
+
"module": "uq32_32",
|
3089
|
+
"name": "UQ32_32",
|
3090
|
+
"typeArguments": []
|
3091
|
+
}
|
3092
|
+
}
|
3093
|
+
],
|
3094
|
+
"return": [
|
3095
|
+
{
|
3096
|
+
"Struct": {
|
3097
|
+
"address": "0x1",
|
3098
|
+
"module": "uq32_32",
|
3099
|
+
"name": "UQ32_32",
|
3100
|
+
"typeArguments": []
|
3101
|
+
}
|
3102
|
+
}
|
3103
|
+
]
|
3104
|
+
},
|
3105
|
+
"from_int": {
|
3106
|
+
"visibility": "Public",
|
3107
|
+
"isEntry": false,
|
3108
|
+
"typeParameters": [],
|
3109
|
+
"parameters": [
|
3110
|
+
"U32"
|
3111
|
+
],
|
3112
|
+
"return": [
|
3113
|
+
{
|
3114
|
+
"Struct": {
|
3115
|
+
"address": "0x1",
|
3116
|
+
"module": "uq32_32",
|
3117
|
+
"name": "UQ32_32",
|
3118
|
+
"typeArguments": []
|
3119
|
+
}
|
3120
|
+
}
|
3121
|
+
]
|
3122
|
+
},
|
3123
|
+
"from_quotient": {
|
3124
|
+
"visibility": "Public",
|
3125
|
+
"isEntry": false,
|
3126
|
+
"typeParameters": [],
|
3127
|
+
"parameters": [
|
3128
|
+
"U64",
|
3129
|
+
"U64"
|
3130
|
+
],
|
3131
|
+
"return": [
|
3132
|
+
{
|
3133
|
+
"Struct": {
|
3134
|
+
"address": "0x1",
|
3135
|
+
"module": "uq32_32",
|
3136
|
+
"name": "UQ32_32",
|
3137
|
+
"typeArguments": []
|
3138
|
+
}
|
3139
|
+
}
|
3140
|
+
]
|
3141
|
+
},
|
3142
|
+
"from_raw": {
|
3143
|
+
"visibility": "Public",
|
3144
|
+
"isEntry": false,
|
3145
|
+
"typeParameters": [],
|
3146
|
+
"parameters": [
|
3147
|
+
"U64"
|
3148
|
+
],
|
3149
|
+
"return": [
|
3150
|
+
{
|
3151
|
+
"Struct": {
|
3152
|
+
"address": "0x1",
|
3153
|
+
"module": "uq32_32",
|
3154
|
+
"name": "UQ32_32",
|
3155
|
+
"typeArguments": []
|
3156
|
+
}
|
3157
|
+
}
|
3158
|
+
]
|
3159
|
+
},
|
3160
|
+
"ge": {
|
3161
|
+
"visibility": "Public",
|
3162
|
+
"isEntry": false,
|
3163
|
+
"typeParameters": [],
|
3164
|
+
"parameters": [
|
3165
|
+
{
|
3166
|
+
"Struct": {
|
3167
|
+
"address": "0x1",
|
3168
|
+
"module": "uq32_32",
|
3169
|
+
"name": "UQ32_32",
|
3170
|
+
"typeArguments": []
|
3171
|
+
}
|
3172
|
+
},
|
3173
|
+
{
|
3174
|
+
"Struct": {
|
3175
|
+
"address": "0x1",
|
3176
|
+
"module": "uq32_32",
|
3177
|
+
"name": "UQ32_32",
|
3178
|
+
"typeArguments": []
|
3179
|
+
}
|
3180
|
+
}
|
3181
|
+
],
|
3182
|
+
"return": [
|
3183
|
+
"Bool"
|
3184
|
+
]
|
3185
|
+
},
|
3186
|
+
"gt": {
|
3187
|
+
"visibility": "Public",
|
3188
|
+
"isEntry": false,
|
3189
|
+
"typeParameters": [],
|
3190
|
+
"parameters": [
|
3191
|
+
{
|
3192
|
+
"Struct": {
|
3193
|
+
"address": "0x1",
|
3194
|
+
"module": "uq32_32",
|
3195
|
+
"name": "UQ32_32",
|
3196
|
+
"typeArguments": []
|
3197
|
+
}
|
3198
|
+
},
|
3199
|
+
{
|
3200
|
+
"Struct": {
|
3201
|
+
"address": "0x1",
|
3202
|
+
"module": "uq32_32",
|
3203
|
+
"name": "UQ32_32",
|
3204
|
+
"typeArguments": []
|
3205
|
+
}
|
3206
|
+
}
|
3207
|
+
],
|
3208
|
+
"return": [
|
3209
|
+
"Bool"
|
3210
|
+
]
|
3211
|
+
},
|
3212
|
+
"int_div": {
|
3213
|
+
"visibility": "Public",
|
3214
|
+
"isEntry": false,
|
3215
|
+
"typeParameters": [],
|
3216
|
+
"parameters": [
|
3217
|
+
"U64",
|
3218
|
+
{
|
3219
|
+
"Struct": {
|
3220
|
+
"address": "0x1",
|
3221
|
+
"module": "uq32_32",
|
3222
|
+
"name": "UQ32_32",
|
3223
|
+
"typeArguments": []
|
3224
|
+
}
|
3225
|
+
}
|
3226
|
+
],
|
3227
|
+
"return": [
|
3228
|
+
"U64"
|
3229
|
+
]
|
3230
|
+
},
|
3231
|
+
"int_mul": {
|
3232
|
+
"visibility": "Public",
|
3233
|
+
"isEntry": false,
|
3234
|
+
"typeParameters": [],
|
3235
|
+
"parameters": [
|
3236
|
+
"U64",
|
3237
|
+
{
|
3238
|
+
"Struct": {
|
3239
|
+
"address": "0x1",
|
3240
|
+
"module": "uq32_32",
|
3241
|
+
"name": "UQ32_32",
|
3242
|
+
"typeArguments": []
|
3243
|
+
}
|
3244
|
+
}
|
3245
|
+
],
|
3246
|
+
"return": [
|
3247
|
+
"U64"
|
3248
|
+
]
|
3249
|
+
},
|
3250
|
+
"le": {
|
3251
|
+
"visibility": "Public",
|
3252
|
+
"isEntry": false,
|
3253
|
+
"typeParameters": [],
|
3254
|
+
"parameters": [
|
3255
|
+
{
|
3256
|
+
"Struct": {
|
3257
|
+
"address": "0x1",
|
3258
|
+
"module": "uq32_32",
|
3259
|
+
"name": "UQ32_32",
|
3260
|
+
"typeArguments": []
|
3261
|
+
}
|
3262
|
+
},
|
3263
|
+
{
|
3264
|
+
"Struct": {
|
3265
|
+
"address": "0x1",
|
3266
|
+
"module": "uq32_32",
|
3267
|
+
"name": "UQ32_32",
|
3268
|
+
"typeArguments": []
|
3269
|
+
}
|
3270
|
+
}
|
3271
|
+
],
|
3272
|
+
"return": [
|
3273
|
+
"Bool"
|
3274
|
+
]
|
3275
|
+
},
|
3276
|
+
"lt": {
|
3277
|
+
"visibility": "Public",
|
3278
|
+
"isEntry": false,
|
3279
|
+
"typeParameters": [],
|
3280
|
+
"parameters": [
|
3281
|
+
{
|
3282
|
+
"Struct": {
|
3283
|
+
"address": "0x1",
|
3284
|
+
"module": "uq32_32",
|
3285
|
+
"name": "UQ32_32",
|
3286
|
+
"typeArguments": []
|
3287
|
+
}
|
3288
|
+
},
|
3289
|
+
{
|
3290
|
+
"Struct": {
|
3291
|
+
"address": "0x1",
|
3292
|
+
"module": "uq32_32",
|
3293
|
+
"name": "UQ32_32",
|
3294
|
+
"typeArguments": []
|
3295
|
+
}
|
3296
|
+
}
|
3297
|
+
],
|
3298
|
+
"return": [
|
3299
|
+
"Bool"
|
3300
|
+
]
|
3301
|
+
},
|
3302
|
+
"mul": {
|
3303
|
+
"visibility": "Public",
|
3304
|
+
"isEntry": false,
|
3305
|
+
"typeParameters": [],
|
3306
|
+
"parameters": [
|
3307
|
+
{
|
3308
|
+
"Struct": {
|
3309
|
+
"address": "0x1",
|
3310
|
+
"module": "uq32_32",
|
3311
|
+
"name": "UQ32_32",
|
3312
|
+
"typeArguments": []
|
3313
|
+
}
|
3314
|
+
},
|
3315
|
+
{
|
3316
|
+
"Struct": {
|
3317
|
+
"address": "0x1",
|
3318
|
+
"module": "uq32_32",
|
3319
|
+
"name": "UQ32_32",
|
3320
|
+
"typeArguments": []
|
3321
|
+
}
|
3322
|
+
}
|
3323
|
+
],
|
3324
|
+
"return": [
|
3325
|
+
{
|
3326
|
+
"Struct": {
|
3327
|
+
"address": "0x1",
|
3328
|
+
"module": "uq32_32",
|
3329
|
+
"name": "UQ32_32",
|
3330
|
+
"typeArguments": []
|
3331
|
+
}
|
3332
|
+
}
|
3333
|
+
]
|
3334
|
+
},
|
3335
|
+
"sub": {
|
3336
|
+
"visibility": "Public",
|
3337
|
+
"isEntry": false,
|
3338
|
+
"typeParameters": [],
|
3339
|
+
"parameters": [
|
3340
|
+
{
|
3341
|
+
"Struct": {
|
3342
|
+
"address": "0x1",
|
3343
|
+
"module": "uq32_32",
|
3344
|
+
"name": "UQ32_32",
|
3345
|
+
"typeArguments": []
|
3346
|
+
}
|
3347
|
+
},
|
3348
|
+
{
|
3349
|
+
"Struct": {
|
3350
|
+
"address": "0x1",
|
3351
|
+
"module": "uq32_32",
|
3352
|
+
"name": "UQ32_32",
|
3353
|
+
"typeArguments": []
|
3354
|
+
}
|
3355
|
+
}
|
3356
|
+
],
|
3357
|
+
"return": [
|
3358
|
+
{
|
3359
|
+
"Struct": {
|
3360
|
+
"address": "0x1",
|
3361
|
+
"module": "uq32_32",
|
3362
|
+
"name": "UQ32_32",
|
3363
|
+
"typeArguments": []
|
3364
|
+
}
|
3365
|
+
}
|
3366
|
+
]
|
3367
|
+
},
|
3368
|
+
"to_int": {
|
3369
|
+
"visibility": "Public",
|
3370
|
+
"isEntry": false,
|
3371
|
+
"typeParameters": [],
|
3372
|
+
"parameters": [
|
3373
|
+
{
|
3374
|
+
"Struct": {
|
3375
|
+
"address": "0x1",
|
3376
|
+
"module": "uq32_32",
|
3377
|
+
"name": "UQ32_32",
|
3378
|
+
"typeArguments": []
|
3379
|
+
}
|
3380
|
+
}
|
3381
|
+
],
|
3382
|
+
"return": [
|
3383
|
+
"U32"
|
3384
|
+
]
|
3385
|
+
},
|
3386
|
+
"to_raw": {
|
3387
|
+
"visibility": "Public",
|
3388
|
+
"isEntry": false,
|
3389
|
+
"typeParameters": [],
|
3390
|
+
"parameters": [
|
3391
|
+
{
|
3392
|
+
"Struct": {
|
3393
|
+
"address": "0x1",
|
3394
|
+
"module": "uq32_32",
|
3395
|
+
"name": "UQ32_32",
|
3396
|
+
"typeArguments": []
|
3397
|
+
}
|
3398
|
+
}
|
3399
|
+
],
|
3400
|
+
"return": [
|
3401
|
+
"U64"
|
3402
|
+
]
|
3403
|
+
}
|
3404
|
+
}
|
3405
|
+
},
|
3015
3406
|
"vector": {
|
3016
3407
|
"fileFormatVersion": 6,
|
3017
3408
|
"address": "0x1",
|
package/src/sui/abis/0x3.json
CHANGED
@@ -392,6 +392,26 @@
|
|
392
392
|
"return": [
|
393
393
|
"U64"
|
394
394
|
]
|
395
|
+
},
|
396
|
+
"get_distribution_counter": {
|
397
|
+
"visibility": "Friend",
|
398
|
+
"isEntry": false,
|
399
|
+
"typeParameters": [],
|
400
|
+
"parameters": [
|
401
|
+
{
|
402
|
+
"Reference": {
|
403
|
+
"Struct": {
|
404
|
+
"address": "0x3",
|
405
|
+
"module": "stake_subsidy",
|
406
|
+
"name": "StakeSubsidy",
|
407
|
+
"typeArguments": []
|
408
|
+
}
|
409
|
+
}
|
410
|
+
}
|
411
|
+
],
|
412
|
+
"return": [
|
413
|
+
"U64"
|
414
|
+
]
|
395
415
|
}
|
396
416
|
}
|
397
417
|
},
|