@t3foundry/tasra-sdk 0.0.0-stage → 0.3.0-next.1
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 +148 -0
- package/LICENSE +202 -0
- package/NOTICE +94 -0
- package/README.md +137 -2
- package/SECURITY.md +115 -0
- package/dist/app/approvals.d.ts +50 -0
- package/dist/app/approvals.js +90 -0
- package/dist/app/authorization.d.ts +19 -0
- package/dist/app/authorization.js +20 -0
- package/dist/app/client.d.ts +231 -0
- package/dist/app/client.js +272 -0
- package/dist/app/creation.d.ts +73 -0
- package/dist/app/creation.js +77 -0
- package/dist/app/deployment.d.ts +36 -0
- package/dist/app/deployment.js +18 -0
- package/dist/app/identity.d.ts +211 -0
- package/dist/app/identity.js +287 -0
- package/dist/app/index.d.ts +22 -0
- package/dist/app/index.js +12 -0
- package/dist/app/manifest.d.ts +74 -0
- package/dist/app/manifest.js +120 -0
- package/dist/app/node.d.ts +30 -0
- package/dist/app/node.js +159 -0
- package/dist/app/ready-slot.d.ts +157 -0
- package/dist/app/ready-slot.js +199 -0
- package/dist/app/tasra-client.d.ts +125 -0
- package/dist/app/tasra-client.js +79 -0
- package/dist/app/viem.d.ts +10 -0
- package/dist/app/viem.js +32 -0
- package/dist/app/wallet.d.ts +126 -0
- package/dist/app/wallet.js +137 -0
- package/dist/auth/dpop.d.ts +86 -0
- package/dist/auth/dpop.js +142 -0
- package/dist/auth/holderProof.d.ts +102 -0
- package/dist/auth/holderProof.js +161 -0
- package/dist/auth/identityScope.d.ts +19 -0
- package/dist/auth/identityScope.js +82 -0
- package/dist/auth/index.d.ts +11 -0
- package/dist/auth/index.js +13 -0
- package/dist/auth/oid4vp.d.ts +230 -0
- package/dist/auth/oid4vp.js +780 -0
- package/dist/auth/rego/wasm/PINS.json +11 -0
- package/dist/auth/rego/wasm/keykeeper_rego_wasm.d.ts +76 -0
- package/dist/auth/rego/wasm/keykeeper_rego_wasm.js +379 -0
- package/dist/auth/rego/wasm/keykeeper_rego_wasm_bg.wasm +0 -0
- package/dist/auth/rego.d.ts +192 -0
- package/dist/auth/rego.js +492 -0
- package/dist/auth/verifier.d.ts +166 -0
- package/dist/auth/verifier.js +211 -0
- package/dist/chain/abis/accountantSetRegistry.d.ts +441 -0
- package/dist/chain/abis/accountantSetRegistry.js +574 -0
- package/dist/chain/abis/accountantSlashing.d.ts +2071 -0
- package/dist/chain/abis/accountantSlashing.js +2670 -0
- package/dist/chain/abis/bondingCurve.d.ts +398 -0
- package/dist/chain/abis/bondingCurve.js +521 -0
- package/dist/chain/abis/equivocationSlasher.d.ts +292 -0
- package/dist/chain/abis/equivocationSlasher.js +379 -0
- package/dist/chain/abis/fixedTasraPriceOracle.d.ts +52 -0
- package/dist/chain/abis/fixedTasraPriceOracle.js +72 -0
- package/dist/chain/abis/index.d.ts +12801 -0
- package/dist/chain/abis/index.js +64 -0
- package/dist/chain/abis/keeperShareRegistry.d.ts +519 -0
- package/dist/chain/abis/keeperShareRegistry.js +675 -0
- package/dist/chain/abis/keyRegistry.d.ts +2421 -0
- package/dist/chain/abis/keyRegistry.js +3114 -0
- package/dist/chain/abis/livenessRegistry.d.ts +402 -0
- package/dist/chain/abis/livenessRegistry.js +524 -0
- package/dist/chain/abis/mockEurc.d.ts +210 -0
- package/dist/chain/abis/mockEurc.js +276 -0
- package/dist/chain/abis/nodeRegistry.d.ts +1630 -0
- package/dist/chain/abis/nodeRegistry.js +2113 -0
- package/dist/chain/abis/platformExecutor.d.ts +328 -0
- package/dist/chain/abis/platformExecutor.js +429 -0
- package/dist/chain/abis/prevrandaoSaltBeacon.d.ts +16 -0
- package/dist/chain/abis/prevrandaoSaltBeacon.js +24 -0
- package/dist/chain/abis/serviceRegistry.d.ts +556 -0
- package/dist/chain/abis/serviceRegistry.js +719 -0
- package/dist/chain/abis/settlement.d.ts +1624 -0
- package/dist/chain/abis/settlement.js +2096 -0
- package/dist/chain/abis/tasraSwapRouter.d.ts +92 -0
- package/dist/chain/abis/tasraSwapRouter.js +122 -0
- package/dist/chain/abis/tasraToken.d.ts +455 -0
- package/dist/chain/abis/tasraToken.js +599 -0
- package/dist/chain/abis/tasraVestingVault.d.ts +165 -0
- package/dist/chain/abis/tasraVestingVault.js +215 -0
- package/dist/chain/abis/thresholdRandomBeacon.d.ts +378 -0
- package/dist/chain/abis/thresholdRandomBeacon.js +494 -0
- package/dist/chain/abis/treasury.d.ts +301 -0
- package/dist/chain/abis/treasury.js +390 -0
- package/dist/chain/abis/verifierSetRegistry.d.ts +445 -0
- package/dist/chain/abis/verifierSetRegistry.js +579 -0
- package/dist/chain/client.d.ts +212 -0
- package/dist/chain/client.js +576 -0
- package/dist/chain/commitmentRecovery.d.ts +21 -0
- package/dist/chain/commitmentRecovery.js +44 -0
- package/dist/chain/committeeClient.d.ts +102 -0
- package/dist/chain/committeeClient.js +137 -0
- package/dist/chain/deployments.d.ts +56 -0
- package/dist/chain/deployments.js +269 -0
- package/dist/chain/discovery.d.ts +49 -0
- package/dist/chain/discovery.js +107 -0
- package/dist/chain/events.d.ts +58 -0
- package/dist/chain/events.js +125 -0
- package/dist/chain/format.d.ts +25 -0
- package/dist/chain/format.js +51 -0
- package/dist/chain/index.d.ts +41 -0
- package/dist/chain/index.js +56 -0
- package/dist/chain/manifest.d.ts +165 -0
- package/dist/chain/manifest.js +132 -0
- package/dist/chain/network-profiles.json +75 -0
- package/dist/chain/networks.d.ts +73 -0
- package/dist/chain/networks.js +62 -0
- package/dist/chain/node.d.ts +44 -0
- package/dist/chain/node.js +176 -0
- package/dist/chain/offchain.d.ts +149 -0
- package/dist/chain/offchain.js +73 -0
- package/dist/chain/provisionRule.d.ts +164 -0
- package/dist/chain/provisionRule.js +212 -0
- package/dist/chain/registeredAgent.d.ts +64 -0
- package/dist/chain/registeredAgent.js +140 -0
- package/dist/chain/registeredOperation.d.ts +49 -0
- package/dist/chain/registeredOperation.js +136 -0
- package/dist/chain/registeredRelay.d.ts +206 -0
- package/dist/chain/registeredRelay.js +312 -0
- package/dist/chain/revertReason.d.ts +14 -0
- package/dist/chain/revertReason.js +62 -0
- package/dist/chain/ruleAmendment.d.ts +80 -0
- package/dist/chain/ruleAmendment.js +195 -0
- package/dist/chain/ruleAmendmentCore.d.ts +129 -0
- package/dist/chain/ruleAmendmentCore.js +152 -0
- package/dist/chain/ruleInput.d.ts +10 -0
- package/dist/chain/ruleInput.js +13 -0
- package/dist/chain/serviceIdentity.d.ts +176 -0
- package/dist/chain/serviceIdentity.js +237 -0
- package/dist/chain/serviceProfiles.d.ts +39 -0
- package/dist/chain/serviceProfiles.js +74 -0
- package/dist/chain/services.d.ts +141 -0
- package/dist/chain/services.js +79 -0
- package/dist/chain/slotClient.d.ts +55 -0
- package/dist/chain/slotClient.js +62 -0
- package/dist/chain/slotSeed.d.ts +31 -0
- package/dist/chain/slotSeed.js +98 -0
- package/dist/chain/write.d.ts +431 -0
- package/dist/chain/write.js +958 -0
- package/dist/client/client.d.ts +112 -0
- package/dist/client/client.js +111 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.js +2 -0
- package/dist/client/session.d.ts +67 -0
- package/dist/client/session.js +238 -0
- package/dist/committee/client.d.ts +284 -0
- package/dist/committee/client.js +351 -0
- package/dist/committee/dual-sign.d.ts +110 -0
- package/dist/committee/dual-sign.js +202 -0
- package/dist/committee/ecdsa.d.ts +36 -0
- package/dist/committee/ecdsa.js +45 -0
- package/dist/committee/extraction.d.ts +82 -0
- package/dist/committee/extraction.js +96 -0
- package/dist/committee/index.d.ts +19 -0
- package/dist/committee/index.js +13 -0
- package/dist/committee/oauth.d.ts +51 -0
- package/dist/committee/oauth.js +90 -0
- package/dist/committee/receipts.d.ts +51 -0
- package/dist/committee/receipts.js +59 -0
- package/dist/committee/request.d.ts +264 -0
- package/dist/committee/request.js +305 -0
- package/dist/committee/token.d.ts +274 -0
- package/dist/committee/token.js +418 -0
- package/dist/crypto/constants.d.ts +10 -0
- package/dist/crypto/constants.js +32 -0
- package/dist/crypto/detect.d.ts +20 -0
- package/dist/crypto/detect.js +44 -0
- package/dist/crypto/envelope.d.ts +60 -0
- package/dist/crypto/envelope.js +243 -0
- package/dist/crypto/frost.d.ts +49 -0
- package/dist/crypto/frost.js +152 -0
- package/dist/crypto/hex.d.ts +7 -0
- package/dist/crypto/hex.js +24 -0
- package/dist/crypto/ibe-blob.d.ts +114 -0
- package/dist/crypto/ibe-blob.js +208 -0
- package/dist/crypto/ibe.d.ts +88 -0
- package/dist/crypto/ibe.js +262 -0
- package/dist/crypto/index.d.ts +12 -0
- package/dist/crypto/index.js +12 -0
- package/dist/crypto/kem.d.ts +55 -0
- package/dist/crypto/kem.js +241 -0
- package/dist/decryption/client.d.ts +64 -0
- package/dist/decryption/client.js +82 -0
- package/dist/decryption/index.d.ts +2 -0
- package/dist/decryption/index.js +2 -0
- package/dist/errors.d.ts +124 -0
- package/dist/errors.js +167 -0
- package/dist/index.d.ts +43 -0
- package/dist/index.js +98 -0
- package/dist/keys/index.d.ts +1 -0
- package/dist/keys/index.js +4 -0
- package/dist/keys/node-client.d.ts +27 -0
- package/dist/keys/node-client.js +97 -0
- package/dist/oid4vp/binding.d.ts +76 -0
- package/dist/oid4vp/binding.js +118 -0
- package/dist/oid4vp/did-web.d.ts +49 -0
- package/dist/oid4vp/did-web.js +57 -0
- package/dist/oid4vp/index.d.ts +9 -0
- package/dist/oid4vp/index.js +10 -0
- package/dist/oid4vp/jose.d.ts +166 -0
- package/dist/oid4vp/jose.js +242 -0
- package/dist/oid4vp/jwe.d.ts +30 -0
- package/dist/oid4vp/jwe.js +93 -0
- package/dist/oid4vp/oid4vci.d.ts +84 -0
- package/dist/oid4vp/oid4vci.js +85 -0
- package/dist/oid4vp/request-object.d.ts +109 -0
- package/dist/oid4vp/request-object.js +96 -0
- package/dist/oid4vp/sd-jwt.d.ts +177 -0
- package/dist/oid4vp/sd-jwt.js +208 -0
- package/dist/oid4vp/verifier-agent.d.ts +161 -0
- package/dist/oid4vp/verifier-agent.js +132 -0
- package/dist/oid4vp/wallet.d.ts +116 -0
- package/dist/oid4vp/wallet.js +108 -0
- package/dist/recipient/store.d.ts +67 -0
- package/dist/recipient/store.js +98 -0
- package/dist/signing/ecdsa.d.ts +49 -0
- package/dist/signing/ecdsa.js +79 -0
- package/dist/signing/frost.d.ts +88 -0
- package/dist/signing/frost.js +145 -0
- package/dist/signing/index.d.ts +4 -0
- package/dist/signing/index.js +3 -0
- package/dist/slots/faucet.d.ts +23 -0
- package/dist/slots/faucet.js +35 -0
- package/dist/slots/index.d.ts +2 -0
- package/dist/slots/index.js +4 -0
- package/dist/verifier-agent/index.d.ts +241 -0
- package/dist/verifier-agent/index.js +411 -0
- package/docs/DEVELOPER-EXPERIENCE.md +62 -0
- package/docs/README.md +33 -0
- package/docs/access-control.md +76 -0
- package/docs/ai-development.md +292 -0
- package/docs/api.md +338 -0
- package/docs/application-api.md +335 -0
- package/docs/architecture.md +65 -0
- package/docs/basics.md +48 -0
- package/docs/capabilities.md +86 -0
- package/docs/chain.md +153 -0
- package/docs/compatibility.md +36 -0
- package/docs/consumer-migrations.md +80 -0
- package/docs/create-slot.md +104 -0
- package/docs/document-signing.md +243 -0
- package/docs/encrypted-notes.md +129 -0
- package/docs/encryption.md +100 -0
- package/docs/errors.md +76 -0
- package/docs/flows.md +289 -0
- package/docs/fuji.md +127 -0
- package/docs/funding.md +126 -0
- package/docs/getting-started.md +94 -0
- package/docs/glossary.md +44 -0
- package/docs/installation.md +132 -0
- package/docs/manage-slot.md +95 -0
- package/docs/native-approvals.md +124 -0
- package/docs/prerequisites.md +137 -0
- package/docs/read-slot.md +41 -0
- package/docs/reference/README.md +30 -0
- package/docs/reference/app-node.md +102 -0
- package/docs/reference/app.md +1737 -0
- package/docs/reference/chain-node.md +159 -0
- package/docs/reference/chain.md +3609 -0
- package/docs/reference/committee.md +2176 -0
- package/docs/reference/main.md +4068 -0
- package/docs/reference/oid4vp.md +2547 -0
- package/docs/reference/verifier-agent.md +498 -0
- package/docs/shared-account.md +168 -0
- package/docs/signing-and-encryption.md +52 -0
- package/docs/signing.md +172 -0
- package/examples/committee-slot.ts +16 -0
- package/examples/connect-fuji.ts +41 -0
- package/examples/connect-network.ts +14 -0
- package/examples/credential-approvals.ts +46 -0
- package/examples/document-signing/README.md +59 -0
- package/examples/document-signing/backend.ts +132 -0
- package/examples/document-signing/build.mjs +19 -0
- package/examples/document-signing/config.ts +34 -0
- package/examples/document-signing/gitignore.template +9 -0
- package/examples/document-signing/model.ts +140 -0
- package/examples/document-signing/network.ts +58 -0
- package/examples/document-signing/package.json +25 -0
- package/examples/document-signing/public/index.html +27 -0
- package/examples/document-signing/public/sample.pdf +31 -0
- package/examples/document-signing/public/styles.css +531 -0
- package/examples/document-signing/server.ts +358 -0
- package/examples/document-signing/setup.ts +111 -0
- package/examples/document-signing/store.ts +105 -0
- package/examples/document-signing/tsconfig.json +24 -0
- package/examples/document-signing/verify.ts +24 -0
- package/examples/document-signing/web/app.ts +312 -0
- package/examples/document-signing/web/preview.ts +67 -0
- package/examples/document-signing/web/wallet.ts +146 -0
- package/examples/document-signing/workflow.test.ts +228 -0
- package/examples/document-signing/workflow.ts +241 -0
- package/examples/document-signing.ts +96 -0
- package/examples/encrypted-notes.ts +86 -0
- package/examples/ethers-signer.ts +204 -0
- package/examples/fund-slot.ts +73 -0
- package/examples/getting-started.ts +25 -0
- package/examples/learning-authorize.ts +23 -0
- package/examples/learning-cancel-slot.ts +11 -0
- package/examples/learning-context.ts +28 -0
- package/examples/learning-create-slot.ts +25 -0
- package/examples/learning-read-slot.ts +8 -0
- package/examples/learning-renew-slot.ts +12 -0
- package/examples/learning-sign.ts +8 -0
- package/examples/live-config.ts +71 -0
- package/examples/minimal.ts +6 -0
- package/examples/native-approvals.ts +57 -0
- package/examples/network.ts +58 -0
- package/examples/offline.ts +16 -0
- package/examples/personal-vault.ts +20 -0
- package/examples/provision-slot.ts +47 -0
- package/examples/shared-account.ts +46 -0
- package/examples/slot-address.ts +13 -0
- package/examples/slot-creation.ts +9 -0
- package/examples/tutorial-negative.ts +26 -0
- package/examples/tutorial-support.ts +76 -0
- package/examples/viem-account.ts +203 -0
- package/package.json +303 -4
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
/** MockEurc contract interface for test-token balances, transfers, approvals and minting. */
|
|
2
|
+
export declare const mockEurcAbi: readonly [{
|
|
3
|
+
readonly type: "constructor";
|
|
4
|
+
readonly inputs: readonly [{
|
|
5
|
+
readonly name: "supply";
|
|
6
|
+
readonly type: "uint256";
|
|
7
|
+
readonly internalType: "uint256";
|
|
8
|
+
}, {
|
|
9
|
+
readonly name: "holder";
|
|
10
|
+
readonly type: "address";
|
|
11
|
+
readonly internalType: "address";
|
|
12
|
+
}, {
|
|
13
|
+
readonly name: "name_";
|
|
14
|
+
readonly type: "string";
|
|
15
|
+
readonly internalType: "string";
|
|
16
|
+
}, {
|
|
17
|
+
readonly name: "symbol_";
|
|
18
|
+
readonly type: "string";
|
|
19
|
+
readonly internalType: "string";
|
|
20
|
+
}, {
|
|
21
|
+
readonly name: "decimals_";
|
|
22
|
+
readonly type: "uint8";
|
|
23
|
+
readonly internalType: "uint8";
|
|
24
|
+
}];
|
|
25
|
+
readonly stateMutability: "nonpayable";
|
|
26
|
+
}, {
|
|
27
|
+
readonly type: "function";
|
|
28
|
+
readonly name: "allowance";
|
|
29
|
+
readonly inputs: readonly [{
|
|
30
|
+
readonly name: "";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
readonly internalType: "address";
|
|
33
|
+
}, {
|
|
34
|
+
readonly name: "";
|
|
35
|
+
readonly type: "address";
|
|
36
|
+
readonly internalType: "address";
|
|
37
|
+
}];
|
|
38
|
+
readonly outputs: readonly [{
|
|
39
|
+
readonly name: "";
|
|
40
|
+
readonly type: "uint256";
|
|
41
|
+
readonly internalType: "uint256";
|
|
42
|
+
}];
|
|
43
|
+
readonly stateMutability: "view";
|
|
44
|
+
}, {
|
|
45
|
+
readonly type: "function";
|
|
46
|
+
readonly name: "approve";
|
|
47
|
+
readonly inputs: readonly [{
|
|
48
|
+
readonly name: "spender";
|
|
49
|
+
readonly type: "address";
|
|
50
|
+
readonly internalType: "address";
|
|
51
|
+
}, {
|
|
52
|
+
readonly name: "value";
|
|
53
|
+
readonly type: "uint256";
|
|
54
|
+
readonly internalType: "uint256";
|
|
55
|
+
}];
|
|
56
|
+
readonly outputs: readonly [{
|
|
57
|
+
readonly name: "";
|
|
58
|
+
readonly type: "bool";
|
|
59
|
+
readonly internalType: "bool";
|
|
60
|
+
}];
|
|
61
|
+
readonly stateMutability: "nonpayable";
|
|
62
|
+
}, {
|
|
63
|
+
readonly type: "function";
|
|
64
|
+
readonly name: "balanceOf";
|
|
65
|
+
readonly inputs: readonly [{
|
|
66
|
+
readonly name: "";
|
|
67
|
+
readonly type: "address";
|
|
68
|
+
readonly internalType: "address";
|
|
69
|
+
}];
|
|
70
|
+
readonly outputs: readonly [{
|
|
71
|
+
readonly name: "";
|
|
72
|
+
readonly type: "uint256";
|
|
73
|
+
readonly internalType: "uint256";
|
|
74
|
+
}];
|
|
75
|
+
readonly stateMutability: "view";
|
|
76
|
+
}, {
|
|
77
|
+
readonly type: "function";
|
|
78
|
+
readonly name: "decimals";
|
|
79
|
+
readonly inputs: readonly [];
|
|
80
|
+
readonly outputs: readonly [{
|
|
81
|
+
readonly name: "";
|
|
82
|
+
readonly type: "uint8";
|
|
83
|
+
readonly internalType: "uint8";
|
|
84
|
+
}];
|
|
85
|
+
readonly stateMutability: "view";
|
|
86
|
+
}, {
|
|
87
|
+
readonly type: "function";
|
|
88
|
+
readonly name: "mint";
|
|
89
|
+
readonly inputs: readonly [{
|
|
90
|
+
readonly name: "to";
|
|
91
|
+
readonly type: "address";
|
|
92
|
+
readonly internalType: "address";
|
|
93
|
+
}, {
|
|
94
|
+
readonly name: "amount";
|
|
95
|
+
readonly type: "uint256";
|
|
96
|
+
readonly internalType: "uint256";
|
|
97
|
+
}];
|
|
98
|
+
readonly outputs: readonly [];
|
|
99
|
+
readonly stateMutability: "nonpayable";
|
|
100
|
+
}, {
|
|
101
|
+
readonly type: "function";
|
|
102
|
+
readonly name: "name";
|
|
103
|
+
readonly inputs: readonly [];
|
|
104
|
+
readonly outputs: readonly [{
|
|
105
|
+
readonly name: "";
|
|
106
|
+
readonly type: "string";
|
|
107
|
+
readonly internalType: "string";
|
|
108
|
+
}];
|
|
109
|
+
readonly stateMutability: "view";
|
|
110
|
+
}, {
|
|
111
|
+
readonly type: "function";
|
|
112
|
+
readonly name: "symbol";
|
|
113
|
+
readonly inputs: readonly [];
|
|
114
|
+
readonly outputs: readonly [{
|
|
115
|
+
readonly name: "";
|
|
116
|
+
readonly type: "string";
|
|
117
|
+
readonly internalType: "string";
|
|
118
|
+
}];
|
|
119
|
+
readonly stateMutability: "view";
|
|
120
|
+
}, {
|
|
121
|
+
readonly type: "function";
|
|
122
|
+
readonly name: "totalSupply";
|
|
123
|
+
readonly inputs: readonly [];
|
|
124
|
+
readonly outputs: readonly [{
|
|
125
|
+
readonly name: "";
|
|
126
|
+
readonly type: "uint256";
|
|
127
|
+
readonly internalType: "uint256";
|
|
128
|
+
}];
|
|
129
|
+
readonly stateMutability: "view";
|
|
130
|
+
}, {
|
|
131
|
+
readonly type: "function";
|
|
132
|
+
readonly name: "transfer";
|
|
133
|
+
readonly inputs: readonly [{
|
|
134
|
+
readonly name: "to";
|
|
135
|
+
readonly type: "address";
|
|
136
|
+
readonly internalType: "address";
|
|
137
|
+
}, {
|
|
138
|
+
readonly name: "value";
|
|
139
|
+
readonly type: "uint256";
|
|
140
|
+
readonly internalType: "uint256";
|
|
141
|
+
}];
|
|
142
|
+
readonly outputs: readonly [{
|
|
143
|
+
readonly name: "";
|
|
144
|
+
readonly type: "bool";
|
|
145
|
+
readonly internalType: "bool";
|
|
146
|
+
}];
|
|
147
|
+
readonly stateMutability: "nonpayable";
|
|
148
|
+
}, {
|
|
149
|
+
readonly type: "function";
|
|
150
|
+
readonly name: "transferFrom";
|
|
151
|
+
readonly inputs: readonly [{
|
|
152
|
+
readonly name: "from";
|
|
153
|
+
readonly type: "address";
|
|
154
|
+
readonly internalType: "address";
|
|
155
|
+
}, {
|
|
156
|
+
readonly name: "to";
|
|
157
|
+
readonly type: "address";
|
|
158
|
+
readonly internalType: "address";
|
|
159
|
+
}, {
|
|
160
|
+
readonly name: "value";
|
|
161
|
+
readonly type: "uint256";
|
|
162
|
+
readonly internalType: "uint256";
|
|
163
|
+
}];
|
|
164
|
+
readonly outputs: readonly [{
|
|
165
|
+
readonly name: "";
|
|
166
|
+
readonly type: "bool";
|
|
167
|
+
readonly internalType: "bool";
|
|
168
|
+
}];
|
|
169
|
+
readonly stateMutability: "nonpayable";
|
|
170
|
+
}, {
|
|
171
|
+
readonly type: "event";
|
|
172
|
+
readonly name: "Approval";
|
|
173
|
+
readonly inputs: readonly [{
|
|
174
|
+
readonly name: "owner";
|
|
175
|
+
readonly type: "address";
|
|
176
|
+
readonly indexed: true;
|
|
177
|
+
readonly internalType: "address";
|
|
178
|
+
}, {
|
|
179
|
+
readonly name: "spender";
|
|
180
|
+
readonly type: "address";
|
|
181
|
+
readonly indexed: true;
|
|
182
|
+
readonly internalType: "address";
|
|
183
|
+
}, {
|
|
184
|
+
readonly name: "value";
|
|
185
|
+
readonly type: "uint256";
|
|
186
|
+
readonly indexed: false;
|
|
187
|
+
readonly internalType: "uint256";
|
|
188
|
+
}];
|
|
189
|
+
readonly anonymous: false;
|
|
190
|
+
}, {
|
|
191
|
+
readonly type: "event";
|
|
192
|
+
readonly name: "Transfer";
|
|
193
|
+
readonly inputs: readonly [{
|
|
194
|
+
readonly name: "from";
|
|
195
|
+
readonly type: "address";
|
|
196
|
+
readonly indexed: true;
|
|
197
|
+
readonly internalType: "address";
|
|
198
|
+
}, {
|
|
199
|
+
readonly name: "to";
|
|
200
|
+
readonly type: "address";
|
|
201
|
+
readonly indexed: true;
|
|
202
|
+
readonly internalType: "address";
|
|
203
|
+
}, {
|
|
204
|
+
readonly name: "value";
|
|
205
|
+
readonly type: "uint256";
|
|
206
|
+
readonly indexed: false;
|
|
207
|
+
readonly internalType: "uint256";
|
|
208
|
+
}];
|
|
209
|
+
readonly anonymous: false;
|
|
210
|
+
}];
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
// Contract ABI data is refreshed from the contract build artifacts.
|
|
2
|
+
// Source: contracts/out/MockEurc.sol/MockEurc.json (`abi` field).
|
|
3
|
+
/** MockEurc contract interface for test-token balances, transfers, approvals and minting. */
|
|
4
|
+
export const mockEurcAbi = [
|
|
5
|
+
{
|
|
6
|
+
"type": "constructor",
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"name": "supply",
|
|
10
|
+
"type": "uint256",
|
|
11
|
+
"internalType": "uint256"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "holder",
|
|
15
|
+
"type": "address",
|
|
16
|
+
"internalType": "address"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "name_",
|
|
20
|
+
"type": "string",
|
|
21
|
+
"internalType": "string"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "symbol_",
|
|
25
|
+
"type": "string",
|
|
26
|
+
"internalType": "string"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "decimals_",
|
|
30
|
+
"type": "uint8",
|
|
31
|
+
"internalType": "uint8"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"stateMutability": "nonpayable"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"type": "function",
|
|
38
|
+
"name": "allowance",
|
|
39
|
+
"inputs": [
|
|
40
|
+
{
|
|
41
|
+
"name": "",
|
|
42
|
+
"type": "address",
|
|
43
|
+
"internalType": "address"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "",
|
|
47
|
+
"type": "address",
|
|
48
|
+
"internalType": "address"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"outputs": [
|
|
52
|
+
{
|
|
53
|
+
"name": "",
|
|
54
|
+
"type": "uint256",
|
|
55
|
+
"internalType": "uint256"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"stateMutability": "view"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"type": "function",
|
|
62
|
+
"name": "approve",
|
|
63
|
+
"inputs": [
|
|
64
|
+
{
|
|
65
|
+
"name": "spender",
|
|
66
|
+
"type": "address",
|
|
67
|
+
"internalType": "address"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "value",
|
|
71
|
+
"type": "uint256",
|
|
72
|
+
"internalType": "uint256"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"outputs": [
|
|
76
|
+
{
|
|
77
|
+
"name": "",
|
|
78
|
+
"type": "bool",
|
|
79
|
+
"internalType": "bool"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"stateMutability": "nonpayable"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"type": "function",
|
|
86
|
+
"name": "balanceOf",
|
|
87
|
+
"inputs": [
|
|
88
|
+
{
|
|
89
|
+
"name": "",
|
|
90
|
+
"type": "address",
|
|
91
|
+
"internalType": "address"
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"outputs": [
|
|
95
|
+
{
|
|
96
|
+
"name": "",
|
|
97
|
+
"type": "uint256",
|
|
98
|
+
"internalType": "uint256"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"stateMutability": "view"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"type": "function",
|
|
105
|
+
"name": "decimals",
|
|
106
|
+
"inputs": [],
|
|
107
|
+
"outputs": [
|
|
108
|
+
{
|
|
109
|
+
"name": "",
|
|
110
|
+
"type": "uint8",
|
|
111
|
+
"internalType": "uint8"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"stateMutability": "view"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"type": "function",
|
|
118
|
+
"name": "mint",
|
|
119
|
+
"inputs": [
|
|
120
|
+
{
|
|
121
|
+
"name": "to",
|
|
122
|
+
"type": "address",
|
|
123
|
+
"internalType": "address"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "amount",
|
|
127
|
+
"type": "uint256",
|
|
128
|
+
"internalType": "uint256"
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"outputs": [],
|
|
132
|
+
"stateMutability": "nonpayable"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"type": "function",
|
|
136
|
+
"name": "name",
|
|
137
|
+
"inputs": [],
|
|
138
|
+
"outputs": [
|
|
139
|
+
{
|
|
140
|
+
"name": "",
|
|
141
|
+
"type": "string",
|
|
142
|
+
"internalType": "string"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"stateMutability": "view"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"type": "function",
|
|
149
|
+
"name": "symbol",
|
|
150
|
+
"inputs": [],
|
|
151
|
+
"outputs": [
|
|
152
|
+
{
|
|
153
|
+
"name": "",
|
|
154
|
+
"type": "string",
|
|
155
|
+
"internalType": "string"
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
"stateMutability": "view"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"type": "function",
|
|
162
|
+
"name": "totalSupply",
|
|
163
|
+
"inputs": [],
|
|
164
|
+
"outputs": [
|
|
165
|
+
{
|
|
166
|
+
"name": "",
|
|
167
|
+
"type": "uint256",
|
|
168
|
+
"internalType": "uint256"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"stateMutability": "view"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"type": "function",
|
|
175
|
+
"name": "transfer",
|
|
176
|
+
"inputs": [
|
|
177
|
+
{
|
|
178
|
+
"name": "to",
|
|
179
|
+
"type": "address",
|
|
180
|
+
"internalType": "address"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "value",
|
|
184
|
+
"type": "uint256",
|
|
185
|
+
"internalType": "uint256"
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"outputs": [
|
|
189
|
+
{
|
|
190
|
+
"name": "",
|
|
191
|
+
"type": "bool",
|
|
192
|
+
"internalType": "bool"
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"stateMutability": "nonpayable"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"type": "function",
|
|
199
|
+
"name": "transferFrom",
|
|
200
|
+
"inputs": [
|
|
201
|
+
{
|
|
202
|
+
"name": "from",
|
|
203
|
+
"type": "address",
|
|
204
|
+
"internalType": "address"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "to",
|
|
208
|
+
"type": "address",
|
|
209
|
+
"internalType": "address"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "value",
|
|
213
|
+
"type": "uint256",
|
|
214
|
+
"internalType": "uint256"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"outputs": [
|
|
218
|
+
{
|
|
219
|
+
"name": "",
|
|
220
|
+
"type": "bool",
|
|
221
|
+
"internalType": "bool"
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
"stateMutability": "nonpayable"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"type": "event",
|
|
228
|
+
"name": "Approval",
|
|
229
|
+
"inputs": [
|
|
230
|
+
{
|
|
231
|
+
"name": "owner",
|
|
232
|
+
"type": "address",
|
|
233
|
+
"indexed": true,
|
|
234
|
+
"internalType": "address"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"name": "spender",
|
|
238
|
+
"type": "address",
|
|
239
|
+
"indexed": true,
|
|
240
|
+
"internalType": "address"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"name": "value",
|
|
244
|
+
"type": "uint256",
|
|
245
|
+
"indexed": false,
|
|
246
|
+
"internalType": "uint256"
|
|
247
|
+
}
|
|
248
|
+
],
|
|
249
|
+
"anonymous": false
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"type": "event",
|
|
253
|
+
"name": "Transfer",
|
|
254
|
+
"inputs": [
|
|
255
|
+
{
|
|
256
|
+
"name": "from",
|
|
257
|
+
"type": "address",
|
|
258
|
+
"indexed": true,
|
|
259
|
+
"internalType": "address"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"name": "to",
|
|
263
|
+
"type": "address",
|
|
264
|
+
"indexed": true,
|
|
265
|
+
"internalType": "address"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "value",
|
|
269
|
+
"type": "uint256",
|
|
270
|
+
"indexed": false,
|
|
271
|
+
"internalType": "uint256"
|
|
272
|
+
}
|
|
273
|
+
],
|
|
274
|
+
"anonymous": false
|
|
275
|
+
}
|
|
276
|
+
];
|