@aqb-foundation/aqb-agent 0.0.0-stage → 1.0.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/LICENSE +21 -0
- package/README.md +77 -2
- package/WHITEPAPER.md +80 -0
- package/artifacts/AgentQuantumCredit.json +730 -0
- package/artifacts/AgentRegistry.json +246 -0
- package/artifacts/GenesisSale.json +226 -0
- package/artifacts/IAQB.json +111 -0
- package/artifacts/IERC20.json +78 -0
- package/artifacts/IPQAccount.json +19 -0
- package/artifacts/IPQVerifier.json +40 -0
- package/artifacts/IUSD.json +59 -0
- package/artifacts/MLDSAVerifier.json +123 -0
- package/artifacts/MockUSDC.json +144 -0
- package/artifacts/MockVerifier.json +40 -0
- package/artifacts/PQSmartAccount.json +249 -0
- package/client/aqb.mjs +149 -0
- package/docs/CARD.md +36 -0
- package/docs/LAUNCH.md +40 -0
- package/docs/MARKETING.md +55 -0
- package/docs/SPEC.md +49 -0
- package/docs/pq-note.md +6 -0
- package/docs/x402.md +31 -0
- package/mcp/server.mjs +60 -0
- package/package.json +47 -3
- package/pq/pq.mjs +59 -0
- package/registry/README.md +16 -0
- package/registry/agent-coin.json +86 -0
- package/registry/llms.txt +1 -0
- package/registry/logo.svg +8 -0
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
{
|
|
2
|
+
"file": "contracts/AgentRegistry.sol",
|
|
3
|
+
"abi": [
|
|
4
|
+
{
|
|
5
|
+
"inputs": [],
|
|
6
|
+
"name": "AlreadyRegistered",
|
|
7
|
+
"type": "error"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"inputs": [],
|
|
11
|
+
"name": "BadKey",
|
|
12
|
+
"type": "error"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"inputs": [],
|
|
16
|
+
"name": "NotPQAccount",
|
|
17
|
+
"type": "error"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"inputs": [],
|
|
21
|
+
"name": "NotRegistered",
|
|
22
|
+
"type": "error"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"anonymous": false,
|
|
26
|
+
"inputs": [
|
|
27
|
+
{
|
|
28
|
+
"indexed": true,
|
|
29
|
+
"internalType": "address",
|
|
30
|
+
"name": "stealth",
|
|
31
|
+
"type": "address"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"indexed": false,
|
|
35
|
+
"internalType": "bytes",
|
|
36
|
+
"name": "ephemeralPubKey",
|
|
37
|
+
"type": "bytes"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"indexed": false,
|
|
41
|
+
"internalType": "bytes1",
|
|
42
|
+
"name": "viewTag",
|
|
43
|
+
"type": "bytes1"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"indexed": false,
|
|
47
|
+
"internalType": "bytes32",
|
|
48
|
+
"name": "metadataHash",
|
|
49
|
+
"type": "bytes32"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"name": "Announce",
|
|
53
|
+
"type": "event"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"anonymous": false,
|
|
57
|
+
"inputs": [
|
|
58
|
+
{
|
|
59
|
+
"indexed": true,
|
|
60
|
+
"internalType": "address",
|
|
61
|
+
"name": "agent",
|
|
62
|
+
"type": "address"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"indexed": false,
|
|
66
|
+
"internalType": "bytes32",
|
|
67
|
+
"name": "cardHash",
|
|
68
|
+
"type": "bytes32"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"name": "CardUpdated",
|
|
72
|
+
"type": "event"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"anonymous": false,
|
|
76
|
+
"inputs": [
|
|
77
|
+
{
|
|
78
|
+
"indexed": true,
|
|
79
|
+
"internalType": "address",
|
|
80
|
+
"name": "agent",
|
|
81
|
+
"type": "address"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"name": "Deactivated",
|
|
85
|
+
"type": "event"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"anonymous": false,
|
|
89
|
+
"inputs": [
|
|
90
|
+
{
|
|
91
|
+
"indexed": true,
|
|
92
|
+
"internalType": "address",
|
|
93
|
+
"name": "agent",
|
|
94
|
+
"type": "address"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"indexed": false,
|
|
98
|
+
"internalType": "bytes32",
|
|
99
|
+
"name": "pqKeyHash",
|
|
100
|
+
"type": "bytes32"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"indexed": false,
|
|
104
|
+
"internalType": "bytes32",
|
|
105
|
+
"name": "cardHash",
|
|
106
|
+
"type": "bytes32"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"name": "Registered",
|
|
110
|
+
"type": "event"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"inputs": [],
|
|
114
|
+
"name": "agentCount",
|
|
115
|
+
"outputs": [
|
|
116
|
+
{
|
|
117
|
+
"internalType": "uint256",
|
|
118
|
+
"name": "",
|
|
119
|
+
"type": "uint256"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"stateMutability": "view",
|
|
123
|
+
"type": "function"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"inputs": [
|
|
127
|
+
{
|
|
128
|
+
"internalType": "address",
|
|
129
|
+
"name": "",
|
|
130
|
+
"type": "address"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"name": "agents",
|
|
134
|
+
"outputs": [
|
|
135
|
+
{
|
|
136
|
+
"internalType": "bytes32",
|
|
137
|
+
"name": "pqKeyHash",
|
|
138
|
+
"type": "bytes32"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"internalType": "bytes32",
|
|
142
|
+
"name": "cardHash",
|
|
143
|
+
"type": "bytes32"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"internalType": "uint64",
|
|
147
|
+
"name": "registeredAt",
|
|
148
|
+
"type": "uint64"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"internalType": "bool",
|
|
152
|
+
"name": "active",
|
|
153
|
+
"type": "bool"
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
"stateMutability": "view",
|
|
157
|
+
"type": "function"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"inputs": [
|
|
161
|
+
{
|
|
162
|
+
"internalType": "address",
|
|
163
|
+
"name": "stealth",
|
|
164
|
+
"type": "address"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"internalType": "bytes",
|
|
168
|
+
"name": "ephemeralPubKey",
|
|
169
|
+
"type": "bytes"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"internalType": "bytes1",
|
|
173
|
+
"name": "viewTag",
|
|
174
|
+
"type": "bytes1"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"internalType": "bytes32",
|
|
178
|
+
"name": "metadataHash",
|
|
179
|
+
"type": "bytes32"
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
"name": "announce",
|
|
183
|
+
"outputs": [],
|
|
184
|
+
"stateMutability": "nonpayable",
|
|
185
|
+
"type": "function"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"inputs": [],
|
|
189
|
+
"name": "deactivate",
|
|
190
|
+
"outputs": [],
|
|
191
|
+
"stateMutability": "nonpayable",
|
|
192
|
+
"type": "function"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"inputs": [
|
|
196
|
+
{
|
|
197
|
+
"internalType": "address",
|
|
198
|
+
"name": "a",
|
|
199
|
+
"type": "address"
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"name": "isAgent",
|
|
203
|
+
"outputs": [
|
|
204
|
+
{
|
|
205
|
+
"internalType": "bool",
|
|
206
|
+
"name": "",
|
|
207
|
+
"type": "bool"
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"stateMutability": "view",
|
|
211
|
+
"type": "function"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"inputs": [
|
|
215
|
+
{
|
|
216
|
+
"internalType": "bytes32",
|
|
217
|
+
"name": "pqKeyHash",
|
|
218
|
+
"type": "bytes32"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"internalType": "bytes32",
|
|
222
|
+
"name": "cardHash",
|
|
223
|
+
"type": "bytes32"
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
"name": "register",
|
|
227
|
+
"outputs": [],
|
|
228
|
+
"stateMutability": "nonpayable",
|
|
229
|
+
"type": "function"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"inputs": [
|
|
233
|
+
{
|
|
234
|
+
"internalType": "bytes32",
|
|
235
|
+
"name": "cardHash",
|
|
236
|
+
"type": "bytes32"
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
"name": "updateCard",
|
|
240
|
+
"outputs": [],
|
|
241
|
+
"stateMutability": "nonpayable",
|
|
242
|
+
"type": "function"
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
"bytecode": "0x608060405234801561000f575f80fd5b506106d28061001d5f395ff3fe608060405234801561000f575f80fd5b506004361061007a575f3560e01c8063b7dc128411610058578063b7dc1284146100e5578063d661db3a146100fc578063d872254f1461010f578063fd66091e14610122575f80fd5b80631ffbb0641461007e5780632f926732146100c857806351b42b00146100dd575b5f80fd5b6100b361008c366004610523565b6001600160a01b03165f90815260208190526040902060020154600160401b900460ff1690565b60405190151581526020015b60405180910390f35b6100db6100d6366004610543565b610198565b005b6100db61035c565b6100ee60015481565b6040519081526020016100bf565b6100db61010a366004610563565b6103de565b6100db61011d36600461057a565b610481565b610166610130366004610523565b5f6020819052908152604090208054600182015460029092015490919067ffffffffffffffff811690600160401b900460ff1684565b6040516100bf9493929190938452602084019290925267ffffffffffffffff1660408301521515606082015260800190565b335f90815260208190526040902060020154600160401b900460ff16156101d257604051630ea075bf60e21b815260040160405180910390fd5b8115806101dd575080155b156101fb5760405163ee9f2d5360e01b815260040160405180910390fd5b336001600160a01b031663e10e6a896040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610255575060408051601f3d908101601f191682019092526102529181019061061c565b60015b6102725760405163ba77812d60e01b815260040160405180910390fd5b8281146102925760405163ee9f2d5360e01b815260040160405180910390fd5b5060408051608081018252838152602080820184815267ffffffffffffffff428116848601908152600160608601818152335f9081529586905296852095518655925185840155516002909401805495511515600160401b0268ffffffffffffffffff199096169490911693909317939093179091558154829190610318908390610633565b9091555050604080518381526020810183905233917f6e7788094390b17970960cf310096f0de10956a8bcc4ec0cabe0bbfeb24d06f7910160405180910390a25050565b335f90815260208190526040902060020154600160401b900460ff166103955760405163aba4733960e01b815260040160405180910390fd5b335f81815260208190526040808220600201805468ff000000000000000019169055517f749cb6b4c510bc468cf6b9c2086d6f0a54d6b18e25d37bf3200e68eab0880c009190a2565b335f90815260208190526040902060020154600160401b900460ff166104175760405163aba4733960e01b815260040160405180910390fd5b5f8190036104385760405163ee9f2d5360e01b815260040160405180910390fd5b335f818152602081815260409182902060010184905590518381527f906f464a1d74c2b1a6d01dd7f638374694f375c2feb6fbdada0a87e4c486fafb910160405180910390a250565b335f90815260208190526040902060020154600160401b900460ff166104ba5760405163aba4733960e01b815260040160405180910390fd5b846001600160a01b03167f1c2c3175b557a20d1d4b9f9bbfa9d2174d1eac4ccda480ff469782e910f51def858585856040516104f99493929190610658565b60405180910390a25050505050565b80356001600160a01b038116811461051e575f80fd5b919050565b5f60208284031215610533575f80fd5b61053c82610508565b9392505050565b5f8060408385031215610554575f80fd5b50508035926020909101359150565b5f60208284031215610573575f80fd5b5035919050565b5f805f805f6080868803121561058e575f80fd5b61059786610508565b9450602086013567ffffffffffffffff808211156105b3575f80fd5b818801915088601f8301126105c6575f80fd5b8135818111156105d4575f80fd5b8960208285010111156105e5575f80fd5b60209290920195509093505060408601356001600160f81b03198116811461060b575f80fd5b949793965091946060013592915050565b5f6020828403121561062c575f80fd5b5051919050565b8082018082111561065257634e487b7160e01b5f52601160045260245ffd5b92915050565b60608152836060820152838560808301375f608085830101525f6080601f19601f870116830101905060ff60f81b841660208301528260408301529594505050505056fea26469706673582212202617af8b3d5bb8b1dc664264f875378487e7700ad4a3fcb3fa581764fdfb9a3964736f6c63430008180033"
|
|
246
|
+
}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
{
|
|
2
|
+
"file": "contracts/GenesisSale.sol",
|
|
3
|
+
"abi": [
|
|
4
|
+
{
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"internalType": "address",
|
|
8
|
+
"name": "token_",
|
|
9
|
+
"type": "address"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"internalType": "address",
|
|
13
|
+
"name": "usdc_",
|
|
14
|
+
"type": "address"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"internalType": "address",
|
|
18
|
+
"name": "seller_",
|
|
19
|
+
"type": "address"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"internalType": "uint256",
|
|
23
|
+
"name": "allotment_",
|
|
24
|
+
"type": "uint256"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"stateMutability": "nonpayable",
|
|
28
|
+
"type": "constructor"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"inputs": [],
|
|
32
|
+
"name": "BadAmount",
|
|
33
|
+
"type": "error"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"inputs": [],
|
|
37
|
+
"name": "Closed_",
|
|
38
|
+
"type": "error"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"inputs": [],
|
|
42
|
+
"name": "NotAdmin",
|
|
43
|
+
"type": "error"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"inputs": [],
|
|
47
|
+
"name": "OverAllotment",
|
|
48
|
+
"type": "error"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"anonymous": false,
|
|
52
|
+
"inputs": [
|
|
53
|
+
{
|
|
54
|
+
"indexed": true,
|
|
55
|
+
"internalType": "address",
|
|
56
|
+
"name": "buyer",
|
|
57
|
+
"type": "address"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"indexed": false,
|
|
61
|
+
"internalType": "uint256",
|
|
62
|
+
"name": "usdIn",
|
|
63
|
+
"type": "uint256"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"indexed": false,
|
|
67
|
+
"internalType": "uint256",
|
|
68
|
+
"name": "aqbOut",
|
|
69
|
+
"type": "uint256"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"name": "Bought",
|
|
73
|
+
"type": "event"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"anonymous": false,
|
|
77
|
+
"inputs": [],
|
|
78
|
+
"name": "Closed",
|
|
79
|
+
"type": "event"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"inputs": [],
|
|
83
|
+
"name": "PRICE",
|
|
84
|
+
"outputs": [
|
|
85
|
+
{
|
|
86
|
+
"internalType": "uint256",
|
|
87
|
+
"name": "",
|
|
88
|
+
"type": "uint256"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"stateMutability": "view",
|
|
92
|
+
"type": "function"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"inputs": [],
|
|
96
|
+
"name": "admin",
|
|
97
|
+
"outputs": [
|
|
98
|
+
{
|
|
99
|
+
"internalType": "address",
|
|
100
|
+
"name": "",
|
|
101
|
+
"type": "address"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"stateMutability": "view",
|
|
105
|
+
"type": "function"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"inputs": [],
|
|
109
|
+
"name": "allotment",
|
|
110
|
+
"outputs": [
|
|
111
|
+
{
|
|
112
|
+
"internalType": "uint256",
|
|
113
|
+
"name": "",
|
|
114
|
+
"type": "uint256"
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"stateMutability": "view",
|
|
118
|
+
"type": "function"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"inputs": [
|
|
122
|
+
{
|
|
123
|
+
"internalType": "uint256",
|
|
124
|
+
"name": "usdIn",
|
|
125
|
+
"type": "uint256"
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"name": "buy",
|
|
129
|
+
"outputs": [
|
|
130
|
+
{
|
|
131
|
+
"internalType": "uint256",
|
|
132
|
+
"name": "aqbOut",
|
|
133
|
+
"type": "uint256"
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"stateMutability": "nonpayable",
|
|
137
|
+
"type": "function"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"inputs": [],
|
|
141
|
+
"name": "close",
|
|
142
|
+
"outputs": [],
|
|
143
|
+
"stateMutability": "nonpayable",
|
|
144
|
+
"type": "function"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"inputs": [],
|
|
148
|
+
"name": "closed",
|
|
149
|
+
"outputs": [
|
|
150
|
+
{
|
|
151
|
+
"internalType": "bool",
|
|
152
|
+
"name": "",
|
|
153
|
+
"type": "bool"
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
"stateMutability": "view",
|
|
157
|
+
"type": "function"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"inputs": [],
|
|
161
|
+
"name": "remaining",
|
|
162
|
+
"outputs": [
|
|
163
|
+
{
|
|
164
|
+
"internalType": "uint256",
|
|
165
|
+
"name": "",
|
|
166
|
+
"type": "uint256"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"stateMutability": "view",
|
|
170
|
+
"type": "function"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"inputs": [],
|
|
174
|
+
"name": "seller",
|
|
175
|
+
"outputs": [
|
|
176
|
+
{
|
|
177
|
+
"internalType": "address",
|
|
178
|
+
"name": "",
|
|
179
|
+
"type": "address"
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
"stateMutability": "view",
|
|
183
|
+
"type": "function"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"inputs": [],
|
|
187
|
+
"name": "sold",
|
|
188
|
+
"outputs": [
|
|
189
|
+
{
|
|
190
|
+
"internalType": "uint256",
|
|
191
|
+
"name": "",
|
|
192
|
+
"type": "uint256"
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"stateMutability": "view",
|
|
196
|
+
"type": "function"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"inputs": [],
|
|
200
|
+
"name": "token",
|
|
201
|
+
"outputs": [
|
|
202
|
+
{
|
|
203
|
+
"internalType": "address",
|
|
204
|
+
"name": "",
|
|
205
|
+
"type": "address"
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"stateMutability": "view",
|
|
209
|
+
"type": "function"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"inputs": [],
|
|
213
|
+
"name": "usdc",
|
|
214
|
+
"outputs": [
|
|
215
|
+
{
|
|
216
|
+
"internalType": "address",
|
|
217
|
+
"name": "",
|
|
218
|
+
"type": "address"
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"stateMutability": "view",
|
|
222
|
+
"type": "function"
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
"bytecode": "0x610120604052348015610010575f80fd5b506040516109f73803806109f783398101604081905261002f91610071565b6001600160a01b0393841660a05291831660c05290911660e05260805233610100526100b9565b80516001600160a01b038116811461006c575f80fd5b919050565b5f805f8060808587031215610084575f80fd5b61008d85610056565b935061009b60208601610056565b92506100a960408601610056565b6060959095015193969295505050565b60805160a05160c05160e051610100516108ae6101495f395f81816101a501526101f901525f818160ca01526105e401525f81816101090152818161034e015261044301525f81816101cc01528181610414015281816104fb0152818161056e01528181610619015261075f01525f818161016b0152818161024a015281816102cc01526106f901526108ae5ff3fe608060405234801561000f575f80fd5b50600436106100a6575f3560e01c8063597e1fb51161006e578063597e1fb51461013d5780638d859f3e1461015a578063ce01b16914610166578063d96a094a1461018d578063f851a440146101a0578063fc0c546a146101c7575f80fd5b806302c7e7af146100aa57806308551a53146100c55780633e413bee1461010457806343d726d61461012b57806355234ec014610135575b5f80fd5b6100b25f5481565b6040519081526020015b60405180910390f35b6100ec7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100bc565b6100ec7f000000000000000000000000000000000000000000000000000000000000000081565b6101336101ee565b005b6100b2610241565b60015461014a9060ff1681565b60405190151581526020016100bc565b6100b264e8d4a5100081565b6100b27f000000000000000000000000000000000000000000000000000000000000000081565b6100b261019b3660046107e4565b610273565b6100ec7f000000000000000000000000000000000000000000000000000000000000000081565b6100ec7f000000000000000000000000000000000000000000000000000000000000000081565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461023757604051637bfa4b9f60e01b815260040160405180910390fd5b61023f61072c565b565b5f805461026e907f000000000000000000000000000000000000000000000000000000000000000061080f565b905090565b6001545f9060ff161561029957604051632707c68960e01b815260040160405180910390fd5b815f036102b95760405163749b593960e01b815260040160405180910390fd5b6102c864e8d4a5100083610828565b90507f0000000000000000000000000000000000000000000000000000000000000000815f546102f8919061083f565b1115610317576040516318f7fc5f60e31b815260040160405180910390fd5b805f80828254610327919061083f565b90915550506040516323b872dd60e01b8152336004820152306024820152604481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303815f875af115801561039c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103c09190610852565b6103fd5760405162461bcd60e51b81526020600482015260096024820152681554d110d7d415531360ba1b60448201526064015b60405180910390fd5b60405163a9059cbb60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018490527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303815f875af1158015610489573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104ad9190610852565b6104e55760405162461bcd60e51b8152602060048201526009602482015268555344435f4d4f564560b81b60448201526064016103f4565b604051633e17558d60e01b8152600481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690633e17558d906024015f604051808303815f87803b158015610544575f80fd5b505af1158015610556573d5f803e3d5ffd5b505060405163ef48436560e01b8152600481018490527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316925063ef48436591506024015f604051808303815f87803b1580156105b9575f80fd5b505af11580156105cb573d5f803e3d5ffd5b50506040516323b872dd60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152336024830152604482018590527f00000000000000000000000000000000000000000000000000000000000000001692506323b872dd91506064016020604051808303815f875af1158015610661573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106859190610852565b6106bc5760405162461bcd60e51b81526020600482015260086024820152674151425f4d4f564560c01b60448201526064016103f4565b604080518381526020810183905233917fa9a40dec7a304e5915d11358b968c1e8d365992abf20f82285d1df1b30c8e24c910160405180910390a27f00000000000000000000000000000000000000000000000000000000000000005f54036107275761072761072c565b919050565b60015460ff161561073957565b6001805460ff1916811790556040805163772af7f760e11b815290516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163ee55efee916004808301925f92919082900301818387803b1580156107a4575f80fd5b505af11580156107b6573d5f803e3d5ffd5b50506040517f1cdde67b72a90f19919ac732a437ac2f7a10fc128d28c2a6e525d89ce5cd9d3a92505f9150a1565b5f602082840312156107f4575f80fd5b5035919050565b634e487b7160e01b5f52601160045260245ffd5b81810381811115610822576108226107fb565b92915050565b8082028115828204841417610822576108226107fb565b80820180821115610822576108226107fb565b5f60208284031215610862575f80fd5b81518015158114610871575f80fd5b939250505056fea264697066735822122041e56ddf929c3b9ef8e7d3d62ad0d29b4627db15932ca5fd24710399d112e93564736f6c63430008180033"
|
|
226
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"file": "contracts/GenesisSale.sol",
|
|
3
|
+
"abi": [
|
|
4
|
+
{
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"internalType": "address",
|
|
8
|
+
"name": "who",
|
|
9
|
+
"type": "address"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"name": "balanceOf",
|
|
13
|
+
"outputs": [
|
|
14
|
+
{
|
|
15
|
+
"internalType": "uint256",
|
|
16
|
+
"name": "",
|
|
17
|
+
"type": "uint256"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"stateMutability": "view",
|
|
21
|
+
"type": "function"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"inputs": [],
|
|
25
|
+
"name": "closeSale",
|
|
26
|
+
"outputs": [],
|
|
27
|
+
"stateMutability": "nonpayable",
|
|
28
|
+
"type": "function"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"inputs": [
|
|
32
|
+
{
|
|
33
|
+
"internalType": "uint256",
|
|
34
|
+
"name": "usdAmount",
|
|
35
|
+
"type": "uint256"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"name": "depositBacking",
|
|
39
|
+
"outputs": [],
|
|
40
|
+
"stateMutability": "nonpayable",
|
|
41
|
+
"type": "function"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"inputs": [
|
|
45
|
+
{
|
|
46
|
+
"internalType": "uint256",
|
|
47
|
+
"name": "amount",
|
|
48
|
+
"type": "uint256"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"name": "noteSold",
|
|
52
|
+
"outputs": [],
|
|
53
|
+
"stateMutability": "nonpayable",
|
|
54
|
+
"type": "function"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"inputs": [
|
|
58
|
+
{
|
|
59
|
+
"internalType": "address",
|
|
60
|
+
"name": "to",
|
|
61
|
+
"type": "address"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"internalType": "uint256",
|
|
65
|
+
"name": "amount",
|
|
66
|
+
"type": "uint256"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"name": "transfer",
|
|
70
|
+
"outputs": [
|
|
71
|
+
{
|
|
72
|
+
"internalType": "bool",
|
|
73
|
+
"name": "",
|
|
74
|
+
"type": "bool"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"stateMutability": "nonpayable",
|
|
78
|
+
"type": "function"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"inputs": [
|
|
82
|
+
{
|
|
83
|
+
"internalType": "address",
|
|
84
|
+
"name": "from",
|
|
85
|
+
"type": "address"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"internalType": "address",
|
|
89
|
+
"name": "to",
|
|
90
|
+
"type": "address"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"internalType": "uint256",
|
|
94
|
+
"name": "amount",
|
|
95
|
+
"type": "uint256"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"name": "transferFrom",
|
|
99
|
+
"outputs": [
|
|
100
|
+
{
|
|
101
|
+
"internalType": "bool",
|
|
102
|
+
"name": "",
|
|
103
|
+
"type": "bool"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"stateMutability": "nonpayable",
|
|
107
|
+
"type": "function"
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"bytecode": "0x"
|
|
111
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"file": "contracts/AgentQuantumCredit.sol",
|
|
3
|
+
"abi": [
|
|
4
|
+
{
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"internalType": "address",
|
|
8
|
+
"name": "who",
|
|
9
|
+
"type": "address"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"name": "balanceOf",
|
|
13
|
+
"outputs": [
|
|
14
|
+
{
|
|
15
|
+
"internalType": "uint256",
|
|
16
|
+
"name": "",
|
|
17
|
+
"type": "uint256"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"stateMutability": "view",
|
|
21
|
+
"type": "function"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"inputs": [
|
|
25
|
+
{
|
|
26
|
+
"internalType": "address",
|
|
27
|
+
"name": "to",
|
|
28
|
+
"type": "address"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"internalType": "uint256",
|
|
32
|
+
"name": "amount",
|
|
33
|
+
"type": "uint256"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"name": "transfer",
|
|
37
|
+
"outputs": [
|
|
38
|
+
{
|
|
39
|
+
"internalType": "bool",
|
|
40
|
+
"name": "",
|
|
41
|
+
"type": "bool"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"stateMutability": "nonpayable",
|
|
45
|
+
"type": "function"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"inputs": [
|
|
49
|
+
{
|
|
50
|
+
"internalType": "address",
|
|
51
|
+
"name": "from",
|
|
52
|
+
"type": "address"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"internalType": "address",
|
|
56
|
+
"name": "to",
|
|
57
|
+
"type": "address"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"internalType": "uint256",
|
|
61
|
+
"name": "amount",
|
|
62
|
+
"type": "uint256"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"name": "transferFrom",
|
|
66
|
+
"outputs": [
|
|
67
|
+
{
|
|
68
|
+
"internalType": "bool",
|
|
69
|
+
"name": "",
|
|
70
|
+
"type": "bool"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"stateMutability": "nonpayable",
|
|
74
|
+
"type": "function"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"bytecode": "0x"
|
|
78
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"file": "contracts/AgentRegistry.sol",
|
|
3
|
+
"abi": [
|
|
4
|
+
{
|
|
5
|
+
"inputs": [],
|
|
6
|
+
"name": "pqKeyHash",
|
|
7
|
+
"outputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "bytes32",
|
|
10
|
+
"name": "",
|
|
11
|
+
"type": "bytes32"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"stateMutability": "view",
|
|
15
|
+
"type": "function"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"bytecode": "0x"
|
|
19
|
+
}
|