@aastar/dapp 0.16.7
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/LICENSE +21 -0
- package/dist/core/src/abis/BLSAggregator.json +686 -0
- package/dist/core/src/abis/BLSValidator.json +42 -0
- package/dist/core/src/abis/DVTValidator.json +368 -0
- package/dist/core/src/abis/EntryPoint.json +1382 -0
- package/dist/core/src/abis/GToken.json +513 -0
- package/dist/core/src/abis/GTokenStaking.json +949 -0
- package/dist/core/src/abis/MySBT.json +1518 -0
- package/dist/core/src/abis/Paymaster.json +1143 -0
- package/dist/core/src/abis/PaymasterFactory.json +640 -0
- package/dist/core/src/abis/Registry.json +1942 -0
- package/dist/core/src/abis/ReputationSystem.json +699 -0
- package/dist/core/src/abis/SimpleAccount.json +560 -0
- package/dist/core/src/abis/SimpleAccountFactory.json +111 -0
- package/dist/core/src/abis/SuperPaymaster.json +1781 -0
- package/dist/core/src/abis/index.d.ts +1126 -0
- package/dist/core/src/abis/index.js +91 -0
- package/dist/core/src/abis/xPNTsFactory.json +718 -0
- package/dist/core/src/abis/xPNTsToken.json +1280 -0
- package/dist/core/src/actions/StateValidator.d.ts +68 -0
- package/dist/core/src/actions/StateValidator.js +187 -0
- package/dist/core/src/actions/account.d.ts +55 -0
- package/dist/core/src/actions/account.js +133 -0
- package/dist/core/src/actions/aggregator.d.ts +17 -0
- package/dist/core/src/actions/aggregator.js +31 -0
- package/dist/core/src/actions/dvt.d.ts +30 -0
- package/dist/core/src/actions/dvt.js +41 -0
- package/dist/core/src/actions/entryPoint.d.ts +90 -0
- package/dist/core/src/actions/entryPoint.js +211 -0
- package/dist/core/src/actions/factory.d.ts +215 -0
- package/dist/core/src/actions/factory.js +442 -0
- package/dist/core/src/actions/faucet.d.ts +48 -0
- package/dist/core/src/actions/faucet.js +337 -0
- package/dist/core/src/actions/gtokenExtended.d.ts +39 -0
- package/dist/core/src/actions/gtokenExtended.js +115 -0
- package/dist/core/src/actions/index.d.ts +15 -0
- package/dist/core/src/actions/index.js +17 -0
- package/dist/core/src/actions/paymasterV4.d.ts +170 -0
- package/dist/core/src/actions/paymasterV4.js +334 -0
- package/dist/core/src/actions/registry.d.ts +246 -0
- package/dist/core/src/actions/registry.js +667 -0
- package/dist/core/src/actions/reputation.d.ts +129 -0
- package/dist/core/src/actions/reputation.js +281 -0
- package/dist/core/src/actions/sbt.d.ts +191 -0
- package/dist/core/src/actions/sbt.js +533 -0
- package/dist/core/src/actions/staking.d.ts +132 -0
- package/dist/core/src/actions/staking.js +330 -0
- package/dist/core/src/actions/superPaymaster.d.ts +237 -0
- package/dist/core/src/actions/superPaymaster.js +644 -0
- package/dist/core/src/actions/tokens.d.ts +229 -0
- package/dist/core/src/actions/tokens.js +415 -0
- package/dist/core/src/branding.d.ts +30 -0
- package/dist/core/src/branding.js +30 -0
- package/dist/core/src/clients/BaseClient.d.ts +25 -0
- package/dist/core/src/clients/BaseClient.js +66 -0
- package/dist/core/src/clients/types.d.ts +60 -0
- package/dist/core/src/clients/types.js +1 -0
- package/dist/core/src/clients.d.ts +5 -0
- package/dist/core/src/clients.js +11 -0
- package/dist/core/src/communities.d.ts +52 -0
- package/dist/core/src/communities.js +73 -0
- package/dist/core/src/config/ContractConfigManager.d.ts +20 -0
- package/dist/core/src/config/ContractConfigManager.js +48 -0
- package/dist/core/src/constants.d.ts +88 -0
- package/dist/core/src/constants.js +125 -0
- package/dist/core/src/contract-addresses.d.ts +110 -0
- package/dist/core/src/contract-addresses.js +99 -0
- package/dist/core/src/contracts.d.ts +424 -0
- package/dist/core/src/contracts.js +343 -0
- package/dist/core/src/crypto/blsSigner.d.ts +64 -0
- package/dist/core/src/crypto/blsSigner.js +98 -0
- package/dist/core/src/crypto/index.d.ts +1 -0
- package/dist/core/src/crypto/index.js +1 -0
- package/dist/core/src/index.d.ts +21 -0
- package/dist/core/src/index.js +21 -0
- package/dist/core/src/networks.d.ts +127 -0
- package/dist/core/src/networks.js +118 -0
- package/dist/core/src/requirementChecker.d.ts +38 -0
- package/dist/core/src/requirementChecker.js +139 -0
- package/dist/core/src/roles.d.ts +204 -0
- package/dist/core/src/roles.js +211 -0
- package/dist/core/src/utils/validation.d.ts +24 -0
- package/dist/core/src/utils/validation.js +56 -0
- package/dist/dapp/src/index.d.ts +3 -0
- package/dist/dapp/src/index.js +3 -0
- package/dist/dapp/src/ui/components/EvaluationPanel.d.ts +11 -0
- package/dist/dapp/src/ui/components/EvaluationPanel.js +37 -0
- package/dist/dapp/src/ui/hooks/useCreditScore.d.ts +13 -0
- package/dist/dapp/src/ui/hooks/useCreditScore.js +32 -0
- package/dist/dapp/src/ui/hooks/useSuperPaymaster.d.ts +8 -0
- package/dist/dapp/src/ui/hooks/useSuperPaymaster.js +23 -0
- package/dist/dapp/src/ui/index.d.ts +4 -0
- package/dist/dapp/src/ui/index.js +17 -0
- package/dist/paymaster/src/SuperPaymaster/index.d.ts +44 -0
- package/dist/paymaster/src/SuperPaymaster/index.js +133 -0
- package/dist/paymaster/src/V4/PaymasterClient.d.ts +79 -0
- package/dist/paymaster/src/V4/PaymasterClient.js +315 -0
- package/dist/paymaster/src/V4/PaymasterOperator.d.ts +41 -0
- package/dist/paymaster/src/V4/PaymasterOperator.js +241 -0
- package/dist/paymaster/src/V4/PaymasterUtils.d.ts +55 -0
- package/dist/paymaster/src/V4/PaymasterUtils.js +124 -0
- package/dist/paymaster/src/V4/SuperPaymasterClient.d.ts +21 -0
- package/dist/paymaster/src/V4/SuperPaymasterClient.js +73 -0
- package/dist/paymaster/src/V4/index.d.ts +4 -0
- package/dist/paymaster/src/V4/index.js +4 -0
- package/dist/paymaster/src/index.d.ts +2 -0
- package/dist/paymaster/src/index.js +4 -0
- package/package.json +31 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Smart Contract ABIs (Unified Naming)
|
|
3
|
+
*
|
|
4
|
+
* 命名策略:
|
|
5
|
+
* - 文件名:统一无版本号(如 BLSAggregator.json)
|
|
6
|
+
* - 版本信息:通过 ABI 中的 version() 函数获取
|
|
7
|
+
* - 同步时自动去除版本号后缀(V3 等)
|
|
8
|
+
*/
|
|
9
|
+
// Core System
|
|
10
|
+
import RegistryABIData from './Registry.json' with { type: 'json' };
|
|
11
|
+
import GTokenABIData from './GToken.json' with { type: 'json' };
|
|
12
|
+
import GTokenStakingABIData from './GTokenStaking.json' with { type: 'json' };
|
|
13
|
+
import SuperPaymasterABIData from './SuperPaymaster.json' with { type: 'json' };
|
|
14
|
+
import PaymasterFactoryABIData from './PaymasterFactory.json' with { type: 'json' };
|
|
15
|
+
import PaymasterABIData from './Paymaster.json' with { type: 'json' };
|
|
16
|
+
// AA Standard (从 out/ 提取)
|
|
17
|
+
import EntryPointABIData from './EntryPoint.json' with { type: 'json' };
|
|
18
|
+
import SimpleAccountABIData from './SimpleAccount.json' with { type: 'json' };
|
|
19
|
+
import SimpleAccountFactoryABIData from './SimpleAccountFactory.json' with { type: 'json' };
|
|
20
|
+
// Token System
|
|
21
|
+
import xPNTsTokenABIData from './xPNTsToken.json' with { type: 'json' };
|
|
22
|
+
import xPNTsFactoryABIData from './xPNTsFactory.json' with { type: 'json' };
|
|
23
|
+
import MySBTABIData from './MySBT.json' with { type: 'json' };
|
|
24
|
+
// Identity & Reputation
|
|
25
|
+
import ReputationSystemABIData from './ReputationSystem.json' with { type: 'json' };
|
|
26
|
+
// Monitoring System
|
|
27
|
+
import DVTValidatorABIData from './DVTValidator.json' with { type: 'json' };
|
|
28
|
+
import BLSAggregatorABIData from './BLSAggregator.json' with { type: 'json' };
|
|
29
|
+
import BLSValidatorABIData from './BLSValidator.json' with { type: 'json' };
|
|
30
|
+
// ========== Re-export ABIs (Raw Arrays) ==========
|
|
31
|
+
// ========== Re-export ABIs (Raw Arrays) ==========
|
|
32
|
+
function extractAbi(artifact) {
|
|
33
|
+
// If it's an array, it IS the ABI. If it's an object, try .abi.
|
|
34
|
+
// If .abi is undefined but it's not an array, it might be an older format or unexpected,
|
|
35
|
+
// but strictly checking Array.isArray helps standard foundry artifacts vs hardhat artifacts.
|
|
36
|
+
return Array.isArray(artifact) ? artifact : artifact.abi;
|
|
37
|
+
}
|
|
38
|
+
export const RegistryABI = extractAbi(RegistryABIData);
|
|
39
|
+
export const GTokenABI = extractAbi(GTokenABIData);
|
|
40
|
+
export const GTokenStakingABI = extractAbi(GTokenStakingABIData);
|
|
41
|
+
export const SuperPaymasterABI = extractAbi(SuperPaymasterABIData);
|
|
42
|
+
export const PaymasterFactoryABI = extractAbi(PaymasterFactoryABIData);
|
|
43
|
+
export const PaymasterV4ABI = extractAbi(PaymasterABIData);
|
|
44
|
+
export const PaymasterABI = extractAbi(PaymasterABIData);
|
|
45
|
+
export const EntryPointABI = extractAbi(EntryPointABIData);
|
|
46
|
+
export const SimpleAccountABI = extractAbi(SimpleAccountABIData);
|
|
47
|
+
export const SimpleAccountFactoryABI = extractAbi(SimpleAccountFactoryABIData);
|
|
48
|
+
export const xPNTsTokenABI = extractAbi(xPNTsTokenABIData);
|
|
49
|
+
export const xPNTsFactoryABI = extractAbi(xPNTsFactoryABIData);
|
|
50
|
+
export const MySBTABI = extractAbi(MySBTABIData);
|
|
51
|
+
export const ReputationSystemABI = extractAbi(ReputationSystemABIData);
|
|
52
|
+
export const DVTValidatorABI = extractAbi(DVTValidatorABIData);
|
|
53
|
+
export const BLSAggregatorABI = extractAbi(BLSAggregatorABIData);
|
|
54
|
+
export const BLSValidatorABI = extractAbi(BLSValidatorABIData);
|
|
55
|
+
// ========== Artifacts (Flattened) ==========
|
|
56
|
+
export const RegistryArtifact = RegistryABIData;
|
|
57
|
+
export const GTokenArtifact = GTokenABIData;
|
|
58
|
+
export const GTokenStakingArtifact = GTokenStakingABIData;
|
|
59
|
+
export const SuperPaymasterArtifact = SuperPaymasterABIData;
|
|
60
|
+
export const PaymasterFactoryArtifact = PaymasterFactoryABIData;
|
|
61
|
+
export const PaymasterV4Artifact = PaymasterABIData;
|
|
62
|
+
export const PaymasterArtifact = PaymasterABIData;
|
|
63
|
+
export const EntryPointArtifact = EntryPointABIData;
|
|
64
|
+
export const SimpleAccountArtifact = SimpleAccountABIData;
|
|
65
|
+
export const SimpleAccountFactoryArtifact = SimpleAccountFactoryABIData;
|
|
66
|
+
export const xPNTsTokenArtifact = xPNTsTokenABIData;
|
|
67
|
+
export const xPNTsFactoryArtifact = xPNTsFactoryABIData;
|
|
68
|
+
export const MySBTArtifact = MySBTABIData;
|
|
69
|
+
export const ReputationSystemArtifact = ReputationSystemABIData;
|
|
70
|
+
export const DVTValidatorArtifact = DVTValidatorABIData;
|
|
71
|
+
export const BLSAggregatorArtifact = BLSAggregatorABIData;
|
|
72
|
+
export const BLSValidatorArtifact = BLSValidatorABIData;
|
|
73
|
+
// ========== Abis Namespace (Unified Access) ==========
|
|
74
|
+
export const Abis = {
|
|
75
|
+
Registry: RegistryABI,
|
|
76
|
+
GToken: GTokenABI,
|
|
77
|
+
GTokenStaking: GTokenStakingABI,
|
|
78
|
+
SuperPaymaster: SuperPaymasterABI,
|
|
79
|
+
PaymasterFactory: PaymasterFactoryABI,
|
|
80
|
+
Paymaster: PaymasterABI,
|
|
81
|
+
EntryPoint: EntryPointABI,
|
|
82
|
+
SimpleAccount: SimpleAccountABI,
|
|
83
|
+
SimpleAccountFactory: SimpleAccountFactoryABI,
|
|
84
|
+
xPNTsToken: xPNTsTokenABI,
|
|
85
|
+
xPNTsFactory: xPNTsFactoryABI,
|
|
86
|
+
MySBT: MySBTABI,
|
|
87
|
+
ReputationSystem: ReputationSystemABI,
|
|
88
|
+
DVTValidator: DVTValidatorABI,
|
|
89
|
+
BLSAggregator: BLSAggregatorABI,
|
|
90
|
+
BLSValidator: BLSValidatorABI,
|
|
91
|
+
};
|