@aastar/core 0.16.8 → 0.16.11
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/abis/PaymasterV4_2.json +1193 -0
- package/dist/abis/SuperPaymaster.json +1 -1
- package/dist/abis/aPNTs.json +1160 -0
- package/dist/abis/abi.config.json +3 -3
- package/dist/abis/index.d.ts +15 -104
- package/dist/abis/index.js +22 -46
- package/dist/actions/account.d.ts +0 -15
- package/dist/actions/account.js +143 -108
- package/dist/actions/aggregator.d.ts +68 -7
- package/dist/actions/aggregator.js +328 -28
- package/dist/actions/dvt.d.ts +33 -5
- package/dist/actions/dvt.js +238 -38
- package/dist/actions/entryPoint.d.ts +3 -63
- package/dist/actions/entryPoint.js +52 -184
- package/dist/actions/factory.d.ts +48 -115
- package/dist/actions/factory.js +638 -438
- package/dist/actions/faucet.d.ts +23 -27
- package/dist/actions/faucet.js +150 -289
- package/dist/actions/index.d.ts +1 -2
- package/dist/actions/index.js +2 -4
- package/dist/actions/paymaster.d.ts +147 -0
- package/dist/actions/paymaster.js +706 -0
- package/dist/actions/paymasterV4.d.ts +26 -95
- package/dist/actions/paymasterV4.js +28 -121
- package/dist/actions/registry.d.ts +116 -165
- package/dist/actions/registry.js +855 -654
- package/dist/actions/reputation.d.ts +74 -52
- package/dist/actions/reputation.js +548 -242
- package/dist/actions/sbt.d.ts +90 -100
- package/dist/actions/sbt.js +801 -518
- package/dist/actions/staking.d.ts +45 -32
- package/dist/actions/staking.js +431 -260
- package/dist/actions/superPaymaster.d.ts +140 -158
- package/dist/actions/superPaymaster.js +965 -631
- package/dist/actions/tokens.d.ts +130 -108
- package/dist/actions/tokens.js +470 -414
- package/dist/actions/validators.d.ts +0 -73
- package/dist/actions/validators.js +0 -94
- package/dist/clients/BaseClient.d.ts +3 -3
- package/dist/clients/BundlerClient.d.ts +55 -0
- package/dist/clients/BundlerClient.js +92 -0
- package/dist/communities.js +2 -2
- package/dist/constants.js +1 -28
- package/dist/contract-addresses.d.ts +5 -14
- package/dist/contract-addresses.js +3 -9
- package/dist/contract-versions.d.ts +138 -0
- package/dist/contract-versions.js +328 -0
- package/dist/contracts.d.ts +6 -24
- package/dist/contracts.js +2 -2
- package/dist/errors/index.d.ts +57 -0
- package/dist/errors/index.js +123 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/requirementChecker.d.ts +35 -1
- package/dist/requirementChecker.js +39 -1
- package/dist/roles.d.ts +50 -61
- package/dist/roles.js +50 -61
- package/dist/validators/index.d.ts +35 -0
- package/dist/validators/index.js +60 -0
- package/package.json +5 -13
|
@@ -8,39 +8,33 @@ export type StakingActions = {
|
|
|
8
8
|
payer: Address;
|
|
9
9
|
account?: Account | Address;
|
|
10
10
|
}) => Promise<Hash>;
|
|
11
|
-
|
|
11
|
+
topUpStake: (args: {
|
|
12
12
|
user: Address;
|
|
13
13
|
roleId: Hex;
|
|
14
|
+
stakeAmount: bigint;
|
|
15
|
+
payer: Address;
|
|
14
16
|
account?: Account | Address;
|
|
15
17
|
}) => Promise<Hash>;
|
|
16
|
-
|
|
18
|
+
unlockStake: (args: {
|
|
17
19
|
user: Address;
|
|
18
20
|
roleId: Hex;
|
|
19
21
|
account?: Account | Address;
|
|
20
22
|
}) => Promise<Hash>;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}) => Promise<Hash>;
|
|
25
|
-
topUpStake: (args: {
|
|
26
|
-
amount: bigint;
|
|
27
|
-
account?: Account | Address;
|
|
28
|
-
}) => Promise<Hash>;
|
|
29
|
-
unstake: (args: {
|
|
30
|
-
amount: bigint;
|
|
23
|
+
unlockAndTransfer: (args: {
|
|
24
|
+
user: Address;
|
|
25
|
+
roleId: Hex;
|
|
31
26
|
account?: Account | Address;
|
|
32
27
|
}) => Promise<Hash>;
|
|
33
28
|
slash: (args: {
|
|
34
29
|
user: Address;
|
|
35
|
-
roleId: Hex;
|
|
36
30
|
amount: bigint;
|
|
37
31
|
reason: string;
|
|
38
32
|
account?: Account | Address;
|
|
39
33
|
}) => Promise<Hash>;
|
|
40
34
|
slashByDVT: (args: {
|
|
41
|
-
|
|
35
|
+
operator: Address;
|
|
42
36
|
roleId: Hex;
|
|
43
|
-
|
|
37
|
+
penaltyAmount: bigint;
|
|
44
38
|
reason: string;
|
|
45
39
|
account?: Account | Address;
|
|
46
40
|
}) => Promise<Hash>;
|
|
@@ -52,7 +46,12 @@ export type StakingActions = {
|
|
|
52
46
|
getStakeInfo: (args: {
|
|
53
47
|
operator: Address;
|
|
54
48
|
roleId: Hex;
|
|
55
|
-
}) => Promise<
|
|
49
|
+
}) => Promise<{
|
|
50
|
+
amount: bigint;
|
|
51
|
+
slashedAmount: bigint;
|
|
52
|
+
stakedAt: bigint;
|
|
53
|
+
unstakeRequestedAt: bigint;
|
|
54
|
+
}>;
|
|
56
55
|
getStakingBalance: (args: {
|
|
57
56
|
user: Address;
|
|
58
57
|
}) => Promise<bigint>;
|
|
@@ -62,7 +61,13 @@ export type StakingActions = {
|
|
|
62
61
|
}) => Promise<bigint>;
|
|
63
62
|
getUserRoleLocks: (args: {
|
|
64
63
|
user: Address;
|
|
65
|
-
}) => Promise<
|
|
64
|
+
}) => Promise<Array<{
|
|
65
|
+
amount: bigint;
|
|
66
|
+
entryBurn: bigint;
|
|
67
|
+
lockedAt: number;
|
|
68
|
+
roleId: Hex;
|
|
69
|
+
metadata: Hex;
|
|
70
|
+
}>>;
|
|
66
71
|
hasRoleLock: (args: {
|
|
67
72
|
user: Address;
|
|
68
73
|
roleId: Hex;
|
|
@@ -73,18 +78,18 @@ export type StakingActions = {
|
|
|
73
78
|
previewExitFee: (args: {
|
|
74
79
|
user: Address;
|
|
75
80
|
roleId: Hex;
|
|
76
|
-
}) => Promise<
|
|
81
|
+
}) => Promise<{
|
|
82
|
+
fee: bigint;
|
|
83
|
+
netAmount: bigint;
|
|
84
|
+
}>;
|
|
77
85
|
setRegistry: (args: {
|
|
78
86
|
registry: Address;
|
|
79
87
|
account?: Account | Address;
|
|
80
88
|
}) => Promise<Hash>;
|
|
81
|
-
transferOwnership: (args: {
|
|
82
|
-
newOwner: Address;
|
|
83
|
-
account?: Account | Address;
|
|
84
|
-
}) => Promise<Hash>;
|
|
85
89
|
setRoleExitFee: (args: {
|
|
86
90
|
roleId: Hex;
|
|
87
91
|
feePercent: bigint;
|
|
92
|
+
minFee: bigint;
|
|
88
93
|
account?: Account | Address;
|
|
89
94
|
}) => Promise<Hash>;
|
|
90
95
|
setTreasury: (args: {
|
|
@@ -93,14 +98,28 @@ export type StakingActions = {
|
|
|
93
98
|
}) => Promise<Hash>;
|
|
94
99
|
stakes: (args: {
|
|
95
100
|
user: Address;
|
|
96
|
-
}) => Promise<
|
|
101
|
+
}) => Promise<{
|
|
102
|
+
amount: bigint;
|
|
103
|
+
slashedAmount: bigint;
|
|
104
|
+
stakedAt: bigint;
|
|
105
|
+
unstakeRequestedAt: bigint;
|
|
106
|
+
}>;
|
|
97
107
|
roleLocks: (args: {
|
|
98
108
|
user: Address;
|
|
99
109
|
roleId: Hex;
|
|
100
|
-
}) => Promise<
|
|
110
|
+
}) => Promise<{
|
|
111
|
+
amount: bigint;
|
|
112
|
+
entryBurn: bigint;
|
|
113
|
+
lockedAt: number;
|
|
114
|
+
roleId: Hex;
|
|
115
|
+
metadata: Hex;
|
|
116
|
+
}>;
|
|
101
117
|
roleExitConfigs: (args: {
|
|
102
118
|
roleId: Hex;
|
|
103
|
-
}) => Promise<
|
|
119
|
+
}) => Promise<{
|
|
120
|
+
feePercent: bigint;
|
|
121
|
+
minFee: bigint;
|
|
122
|
+
}>;
|
|
104
123
|
userActiveRoles: (args: {
|
|
105
124
|
user: Address;
|
|
106
125
|
index: bigint;
|
|
@@ -108,17 +127,11 @@ export type StakingActions = {
|
|
|
108
127
|
authorizedSlashers: (args: {
|
|
109
128
|
slasher: Address;
|
|
110
129
|
}) => Promise<boolean>;
|
|
111
|
-
getStake: (args: {
|
|
112
|
-
account: Address;
|
|
113
|
-
}) => Promise<bigint>;
|
|
114
|
-
balanceOf: (args: {
|
|
115
|
-
account: Address;
|
|
116
|
-
}) => Promise<bigint>;
|
|
117
130
|
totalStaked: () => Promise<bigint>;
|
|
118
131
|
getTotalStaked: () => Promise<bigint>;
|
|
119
132
|
treasury: () => Promise<Address>;
|
|
120
133
|
owner: () => Promise<Address>;
|
|
121
|
-
|
|
134
|
+
transferOwnership: (args: {
|
|
122
135
|
newOwner: Address;
|
|
123
136
|
account?: Account | Address;
|
|
124
137
|
}) => Promise<Hash>;
|