zkcloudworker 0.15.5 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/ts/src/mina/V1/FungibleToken.d.ts +338 -0
- package/lib/ts/src/mina/V1/FungibleToken.js +308 -0
- package/lib/ts/src/mina/V1/FungibleTokenAdmin.d.ts +31 -0
- package/lib/ts/src/mina/V1/FungibleTokenAdmin.js +102 -0
- package/lib/ts/src/mina/V1/index.d.ts +29 -0
- package/lib/ts/src/mina/V1/index.js +12 -0
- package/lib/ts/src/mina/V1/vk.d.ts +22 -0
- package/lib/ts/src/mina/V1/vk.js +25 -0
- package/lib/ts/src/mina/index.d.ts +1 -0
- package/lib/ts/src/mina/index.js +1 -0
- package/lib/ts/src/mina/nft/whitelist-admin.d.ts +1 -1
- package/lib/ts/src/mina/nft/whitelist-admin.js +3 -2
- package/lib/ts/src/mina/token/index.d.ts +1 -0
- package/lib/ts/src/mina/token/index.js +1 -0
- package/lib/ts/src/mina/token/vk.d.ts +22 -0
- package/lib/ts/src/mina/token/vk.js +25 -0
- package/lib/ts/src/mina/transactions/blockberry.d.ts +5 -0
- package/lib/ts/src/mina/transactions/blockberry.js +31 -0
- package/lib/ts/tsconfig.tsbuildinfo +1 -1
- package/lib/web/src/mina/V1/FungibleToken.d.ts +338 -0
- package/lib/web/src/mina/V1/FungibleToken.js +292 -0
- package/lib/web/src/mina/V1/FungibleToken.js.map +1 -0
- package/lib/web/src/mina/V1/FungibleTokenAdmin.d.ts +31 -0
- package/lib/web/src/mina/V1/FungibleTokenAdmin.js +91 -0
- package/lib/web/src/mina/V1/FungibleTokenAdmin.js.map +1 -0
- package/lib/web/src/mina/V1/index.d.ts +29 -0
- package/lib/web/src/mina/V1/index.js +10 -0
- package/lib/web/src/mina/V1/index.js.map +1 -0
- package/lib/web/src/mina/V1/vk.d.ts +22 -0
- package/lib/web/src/mina/V1/vk.js +23 -0
- package/lib/web/src/mina/V1/vk.js.map +1 -0
- package/lib/web/src/mina/index.d.ts +1 -0
- package/lib/web/src/mina/index.js +1 -0
- package/lib/web/src/mina/index.js.map +1 -1
- package/lib/web/src/mina/nft/whitelist-admin.d.ts +1 -1
- package/lib/web/src/mina/nft/whitelist-admin.js +3 -2
- package/lib/web/src/mina/nft/whitelist-admin.js.map +1 -1
- package/lib/web/src/mina/token/index.d.ts +1 -0
- package/lib/web/src/mina/token/index.js +1 -0
- package/lib/web/src/mina/token/index.js.map +1 -1
- package/lib/web/src/mina/token/vk.d.ts +22 -0
- package/lib/web/src/mina/token/vk.js +23 -0
- package/lib/web/src/mina/token/vk.js.map +1 -0
- package/lib/web/src/mina/transactions/blockberry.d.ts +5 -0
- package/lib/web/src/mina/transactions/blockberry.js +30 -0
- package/lib/web/src/mina/transactions/blockberry.js.map +1 -1
- package/lib/web/tsconfig.web.tsbuildinfo +1 -1
- package/package.json +3 -2
@@ -0,0 +1,91 @@
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
2
|
+
import { AccountUpdate, assert, Bool, method, Permissions, Provable, PublicKey, SmartContract, State, state, VerificationKey, } from "o1js_v1";
|
3
|
+
/** A contract that grants permissions for administrative actions on a token.
|
4
|
+
*
|
5
|
+
* We separate this out into a dedicated contract. That way, when issuing a token, a user can
|
6
|
+
* specify their own rules for administrative actions, without changing the token contract itself.
|
7
|
+
*
|
8
|
+
* The advantage is that third party applications that only use the token in a non-privileged way
|
9
|
+
* can integrate against the unchanged token contract.
|
10
|
+
*/
|
11
|
+
export class FungibleTokenAdmin extends SmartContract {
|
12
|
+
constructor() {
|
13
|
+
super(...arguments);
|
14
|
+
this.adminPublicKey = State();
|
15
|
+
}
|
16
|
+
async deploy(props) {
|
17
|
+
await super.deploy(props);
|
18
|
+
this.adminPublicKey.set(props.adminPublicKey);
|
19
|
+
this.account.permissions.set({
|
20
|
+
...Permissions.default(),
|
21
|
+
setVerificationKey: Permissions.VerificationKey.impossibleDuringCurrentVersion(),
|
22
|
+
setPermissions: Permissions.impossible(),
|
23
|
+
});
|
24
|
+
}
|
25
|
+
/** Update the verification key.
|
26
|
+
* Note that because we have set the permissions for setting the verification key to `impossibleDuringCurrentVersion()`, this will only be possible in case of a protocol update that requires an update.
|
27
|
+
*/
|
28
|
+
async updateVerificationKey(vk) {
|
29
|
+
this.account.verificationKey.set(vk);
|
30
|
+
}
|
31
|
+
async ensureAdminSignature() {
|
32
|
+
const admin = await Provable.witnessAsync(PublicKey, async () => {
|
33
|
+
let pk = await this.adminPublicKey.fetch();
|
34
|
+
assert(pk !== undefined, "could not fetch admin public key");
|
35
|
+
return pk;
|
36
|
+
});
|
37
|
+
this.adminPublicKey.requireEquals(admin);
|
38
|
+
return AccountUpdate.createSigned(admin);
|
39
|
+
}
|
40
|
+
async canMint(_accountUpdate) {
|
41
|
+
await this.ensureAdminSignature();
|
42
|
+
return Bool(true);
|
43
|
+
}
|
44
|
+
async canChangeAdmin(_admin) {
|
45
|
+
await this.ensureAdminSignature();
|
46
|
+
return Bool(true);
|
47
|
+
}
|
48
|
+
async canPause() {
|
49
|
+
await this.ensureAdminSignature();
|
50
|
+
return Bool(true);
|
51
|
+
}
|
52
|
+
async canResume() {
|
53
|
+
await this.ensureAdminSignature();
|
54
|
+
return Bool(true);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
__decorate([
|
58
|
+
state(PublicKey),
|
59
|
+
__metadata("design:type", Object)
|
60
|
+
], FungibleTokenAdmin.prototype, "adminPublicKey", void 0);
|
61
|
+
__decorate([
|
62
|
+
method,
|
63
|
+
__metadata("design:type", Function),
|
64
|
+
__metadata("design:paramtypes", [VerificationKey]),
|
65
|
+
__metadata("design:returntype", Promise)
|
66
|
+
], FungibleTokenAdmin.prototype, "updateVerificationKey", null);
|
67
|
+
__decorate([
|
68
|
+
method.returns(Bool),
|
69
|
+
__metadata("design:type", Function),
|
70
|
+
__metadata("design:paramtypes", [AccountUpdate]),
|
71
|
+
__metadata("design:returntype", Promise)
|
72
|
+
], FungibleTokenAdmin.prototype, "canMint", null);
|
73
|
+
__decorate([
|
74
|
+
method.returns(Bool),
|
75
|
+
__metadata("design:type", Function),
|
76
|
+
__metadata("design:paramtypes", [PublicKey]),
|
77
|
+
__metadata("design:returntype", Promise)
|
78
|
+
], FungibleTokenAdmin.prototype, "canChangeAdmin", null);
|
79
|
+
__decorate([
|
80
|
+
method.returns(Bool),
|
81
|
+
__metadata("design:type", Function),
|
82
|
+
__metadata("design:paramtypes", []),
|
83
|
+
__metadata("design:returntype", Promise)
|
84
|
+
], FungibleTokenAdmin.prototype, "canPause", null);
|
85
|
+
__decorate([
|
86
|
+
method.returns(Bool),
|
87
|
+
__metadata("design:type", Function),
|
88
|
+
__metadata("design:paramtypes", []),
|
89
|
+
__metadata("design:returntype", Promise)
|
90
|
+
], FungibleTokenAdmin.prototype, "canResume", null);
|
91
|
+
//# sourceMappingURL=FungibleTokenAdmin.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FungibleTokenAdmin.js","sourceRoot":"","sources":["../../../../../../src/mina/V1/FungibleTokenAdmin.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,aAAa,EACb,MAAM,EACN,IAAI,EAEJ,MAAM,EACN,WAAW,EACX,QAAQ,EACR,SAAS,EACT,aAAa,EACb,KAAK,EACL,KAAK,EACL,eAAe,GAChB,MAAM,SAAS,CAAC;AAcjB;;;;;;;GAOG;AACH,MAAM,OAAO,kBACX,SAAQ,aAAa;IADvB;;QAKU,mBAAc,GAAG,KAAK,EAAa,CAAC;IAsD9C,CAAC;IApDC,KAAK,CAAC,MAAM,CAAC,KAAoC;QAC/C,MAAM,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC1B,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC;YAC3B,GAAG,WAAW,CAAC,OAAO,EAAE;YACxB,kBAAkB,EAChB,WAAW,CAAC,eAAe,CAAC,8BAA8B,EAAE;YAC9D,cAAc,EAAE,WA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;qCACyB,eAAe;;+DAE9C;AAaY;IADZ,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;;qCACgB,aAAa;;iDAGjD;AAGY;IADZ,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;;qCACe,SAAS;;wDAG5C;AAGY;IADZ,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;;;;kDAIpB;AAGY;IADZ,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;;;;mDAIpB"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { FungibleToken } from "./FungibleToken.js";
|
2
|
+
import { FungibleTokenAdmin } from "./FungibleTokenAdmin.js";
|
3
|
+
declare const O1JS_V1_CODE: {
|
4
|
+
FungibleToken: typeof FungibleToken;
|
5
|
+
FungibleTokenAdmin: typeof FungibleTokenAdmin;
|
6
|
+
fungibleTokenVerificationKeys: {
|
7
|
+
testnet: {
|
8
|
+
admin: {
|
9
|
+
hash: string;
|
10
|
+
data: string;
|
11
|
+
};
|
12
|
+
token: {
|
13
|
+
hash: string;
|
14
|
+
data: string;
|
15
|
+
};
|
16
|
+
};
|
17
|
+
mainnet: {
|
18
|
+
admin: {
|
19
|
+
hash: string;
|
20
|
+
data: string;
|
21
|
+
};
|
22
|
+
token: {
|
23
|
+
hash: string;
|
24
|
+
data: string;
|
25
|
+
};
|
26
|
+
};
|
27
|
+
};
|
28
|
+
};
|
29
|
+
export { O1JS_V1_CODE };
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { FungibleToken } from "./FungibleToken.js";
|
2
|
+
import { FungibleTokenAdmin } from "./FungibleTokenAdmin.js";
|
3
|
+
import { fungibleTokenVerificationKeys } from "./vk.js";
|
4
|
+
const O1JS_V1_CODE = {
|
5
|
+
FungibleToken,
|
6
|
+
FungibleTokenAdmin,
|
7
|
+
fungibleTokenVerificationKeys,
|
8
|
+
};
|
9
|
+
export { O1JS_V1_CODE };
|
10
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/mina/V1/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAExD,MAAM,YAAY,GAAG;IACnB,aAAa;IACb,kBAAkB;IAClB,6BAA6B;CAC9B,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
export declare const fungibleTokenVerificationKeys: {
|
2
|
+
testnet: {
|
3
|
+
admin: {
|
4
|
+
hash: string;
|
5
|
+
data: string;
|
6
|
+
};
|
7
|
+
token: {
|
8
|
+
hash: string;
|
9
|
+
data: string;
|
10
|
+
};
|
11
|
+
};
|
12
|
+
mainnet: {
|
13
|
+
admin: {
|
14
|
+
hash: string;
|
15
|
+
data: string;
|
16
|
+
};
|
17
|
+
token: {
|
18
|
+
hash: string;
|
19
|
+
data: string;
|
20
|
+
};
|
21
|
+
};
|
22
|
+
};
|
@@ -0,0 +1,23 @@
|
|
1
|
+
export const fungibleTokenVerificationKeys = {
|
2
|
+
testnet: {
|
3
|
+
admin: {
|
4
|
+
hash: "1200635497217107248831982322269320244173535715339356861513501242012238077174",
|
5
|
+
data: "AABvj1TjS95sAoY8puZRG2h4hxjs9c5enwfo4vZAQC/COWHgEjNupRIxb3LVxaRU2mkaG94By4OqrJ3M7YXNs4oiAhMdOuU5+NrHN3RCJtswX+WPvwaHJnihtSy2FcJPyghvBVTi2i7dtWIPQLVDIzC5ARu8f8H9JWjzjVVYE/rQLruuq2qUsCrqdVsdRaw+6OjIFeAXS6mzvrVv5iYGslg5CV5mgLBg3xC408jZJ0pe8ua2mcIEDMGEdSR/+VuhPQaqxZTJPBVhazVc1P9gRyS26SdOohL85UmEc4duqlJOOlXOFuwOT6dvoiUcdQtzuPp1pzA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3rCiq8DeLD0OHjqOBZ+IEv9zEkb5fHTJvxoxnZlArtZSBpD6iIDPVDymuK+BsOggZav3K+TytjeD2Gcld5NfyRISFWUIMkZNFQRL8AQpET6RJnG1HSW0CaRfNeomtjCBWIr85wFCrp06j/D1J8B3EyhloZLJJ6ywxt41smXVugxA8LRTO+6lVBOBF14jHQCCUl6u7uiWCe1z4/bC5wQXPwWSljp8NVU8Erp1U9ModNK7W63Pkh0efvgSD5d0nLzbfa0jTdxZ1JkfKsnvYk43Ed+vmXooHZhUeZAIX8ZCizhb1Gfvm02JFwxYXmiYAOp5wkGzweU2I5zo8r5yZFI1r4XibNQs7eAfKGRv3gh8/EuLkX/bdettgPvNsI8ndpQ3kL/V8W2PQN4/hjC9AKCYBeXQG42bRncYZdLe++R2KA1ZdPDxQPF3sxUIKhzmRWqbozrtv310Maorwv6eZJjldlCJwICR9QgcDwDuNj+UFJnX3RWsdIWsUbI1T4wO0sE2sBiMX/OqmiGJEAnBegioistlFyfRvm54h+duNOl/ol1Fva7NoXvsL/wThAWUly7bnc7/Al2bBQlUrmEX46UnKXzYntkZDee7Lx1u1BBkJAj/5BH1YZOPmMCh498rBUiHmc+4uQqebqNSHdOSgC39ESss4u7GNhWj3fi9XXta6UT9wapEMGq0WTg2Kry6xNP2YZ5X8eaapRQc/KzYgz9XjQL6TKpqNuGEbRlmfYvIuoFbnOkZI7RYoGp3YheMs1pQErwOxLzZa9W3Okwx16TSDwPLR0xMdAyogMrOdKN4JSMyNnmOaoVf6PkN+K9fz7RuHtvgjKpuz4vsK5Z2wRneqPrnfu6PkgHcRQrd0SxqCbN23Z/yp8qOcN6XU49iCNEBjztT00tolQ9hCPMSE/eTZ+ioez7m3pJFVks3T5Rk/e+6MeowJWIOv20x6CPS9mhpr1JPwdNFrWdgs19VsobntCpF/rWxksdrYyk=",
|
6
|
+
},
|
7
|
+
token: {
|
8
|
+
hash: "25084457276132306637089336910977939820654927814172888515895248592725736067489",
|
9
|
+
data: "AABoR9W/JCk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U+ZensV1x4sS4VCjQgoPlo9sV7wJDUOTsUkgux38w39sqiSfONzmyhfXqZocojTv1m3vHh8gnCFUbZ/d3WvywDE67VPRlTYX5ZR80Yyjz3byDH2/+DWOsjv2q8KUv2mtgkiOTZ1D3tAF6Vl6tSWlixMYc1tfC8KDWDOq2eg7M72MqjfiMTuBPXr2ZB/nTdtCi9lDQQESzBmgJaV/KCZOAaIKQR9hibvy4vt3wlSZ9XTK+FFZPQc=",
|
10
|
+
},
|
11
|
+
},
|
12
|
+
mainnet: {
|
13
|
+
admin: {
|
14
|
+
hash: "16115269877914581564299853766147447229664556890591132763176560855029019233817",
|
15
|
+
data: "AABvj1TjS95sAoY8puZRG2h4hxjs9c5enwfo4vZAQC/COWHgEjNupRIxb3LVxaRU2mkaG94By4OqrJ3M7YXNs4oiAhMdOuU5+NrHN3RCJtswX+WPvwaHJnihtSy2FcJPyghvBVTi2i7dtWIPQLVDIzC5ARu8f8H9JWjzjVVYE/rQLruuq2qUsCrqdVsdRaw+6OjIFeAXS6mzvrVv5iYGslg5CV5mgLBg3xC408jZJ0pe8ua2mcIEDMGEdSR/+VuhPQaqxZTJPBVhazVc1P9gRyS26SdOohL85UmEc4duqlJOOlXOFuwOT6dvoiUcdQtzuPp1pzA/LHueqm9yQG9mlT0Df8uY/A+rwM4l/ypTP/o0+5GCM9jJf9bl/z0DpGWheCJY+LZbIGeBUOpg0Gx1+KZsD9ivWJ0vxNz8zKcAS1i3FqFhahkJHiiKgikn6Qig5+Yf3MJs0WKSNkCkgW2B48srVTR9ykLyO+68NiWLEnLXvJd+rmUHR4K92whqctZZ8zvd2+5u+b62pkvFqqZZ9r24SMQOe9Bl2ZfMew2DyFLMPzwTowHw8onMEXcVKabFs9zQVp66AMf/wlipirNztdguAP2Hmpi/swGffC3cXDOY7T51PcPNIq+JcNbtKixzm7oIFyZ0FUgAhg5L7sDAkgRAXnQlKGuhGr24T+lV1YAdTheSiQ4YBcpnqpfVYnYG5iziTEdl5+3SENlC7E6M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G42bRncYZdLe++R2KA1ZdPDxQPF3sxUIKhzmRWqbozrtv310Maorwv6eZJjldlCJwICR9QgcDwDuNj+UFJnX3RWsdIWsUbI1T4wO0sE2sBiMX/OqmiGJEAnBegioistlFyfRvm54h+duNOl/ol1Fva7NoXvsL/wThAWUly7bnc7/Al2bBQlUrmEX46UnKXzYntkZDee7Lx1u1BBkJAj/5BH1YZOPmMCh498rBUiHmc+4uQqebqNSHdOSgC39ESss4u7GNhWj3fi9XXta6UT9wapEMGq0WTg2Kry6xNP2YZ5X8eaapRQc/KzYgz9XjQL6TKpqNuGEbRlmfYvIuoFbnOkZI7RYoGp3YheMs1pQErwOxLzZa9W3Okwx16TSDwPLR0xMdAyogMrOdKN4JSMyNnmOaoVf6PkN+K9fz7RuHtvgjKpuz4vsK5Z2wRneqPrnfu6PkgHcRQrd0SxqCbN23Z/yp8qOcN6XU49iCNEBjztT00tolQ9hCPMSE/eTZ+ioez7m3pJFVks3T5Rk/e+6MeowJWIOv20x6CPS9mhpr1JPwdNFrWdgs19VsobntCpF/rWxksdrYyk=",
|
16
|
+
},
|
17
|
+
token: {
|
18
|
+
hash: "12320223354843720065815824451082596238990220882343256724550451075683722289248",
|
19
|
+
data: "AABoR9W/JCk+QV7xmR0EmMunepTBYRNFuyTe3jy0YL4FPMZvsY3S7Erek8aQc6iEbg0gx8yQZuX7/I9abchc2AM3/JhaHwmIVJYlvR+hIhruFPB3wgxMNv0w0gKKcrMUjwumIsjP5rBKR/iI66NePvgPuC29OEcvCy1WA7VGa4jkJdudep82RUdWGRWK2+TESBdYTcmhDVuKl71sFjmOdRsHPuHz9tgXl+pkmjmsRFUu0NL0uf7+4UZZ3qwo5JDu+CK6Ec77HZQNWTxobryIa5NH8CwGRTykkaJMUmjbfWiFPCUHzvcqpOIDa/P0WVqqmkAksmXroqqmKGk7zQBN+Ak0GHEPqQDSJIQv98Wm/EluR3MtPMixUI0OSCdbCe++KR4gIKwvRX+AyBCIcMUEuQ7CN4TcDQmD4dsn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BSbktYOxGFqHjMyPtx2k0+pZ+Qsu/GjsmeMbJSLcUPTObWIfFVco2SSBUteZsA3ZgP4jhEWWtOzXYIHjWqj3g9XOVuVJ4TcbO2FK4mVJ9ETnRxKH0AmGPnXb0Nc+sC9nRnDN2OTqPtXJkeRfI7jkHCFb79u8QPvuqhsYWVSS8bI3rXE1kWY1ZKYoC3FtfenG9e8haWYXUyk1783IQJ4W1jkscQTU1RZrL0cWoaCxIXnXsdDJStgz8B9EQ0uUEkfXSXYEbQtIA4DVKzTO4uqxOzafqAOLnvOxi5Vn95JCOu3CEAFr0WQEOnA2X3nw31spFvLj0jykGpn1ECHhW4Ft9EOkHDr4qDA8Mi5gH9EB+g0AhObwxj7RZB2Wq5PSmZw131mkHzgYOgD3JC9tlaGMSxesjF1O3+U3wUOLrrU89s128Y0PpiEzO6Jsm1aDzbF1pkz3asy0z+Enb4BMg/Jv5j/EZkKM6Okv746/ETIs69fv3e5Iucae7lyyYVNCYBtucWrOQK2Pfi4QzRZjkC29hj8OenHSn+75qcX/v5ejhSBAb24Bp1INNVgaF3VHGz1+ULEcs73b/b0K1AQJYfdkfD4fqrj1nUIlVYv3yw1SyEKClpoiBaLiRxg/04rgb3enmxe6msVApSIlAYs+qeRAIRDCU+ZensV1x4sS4VCjQgoPlo9sV7wJDUOTsUkgux38w39sqiSfONzmyhfXqZocojTv1m3vHh8gnCFUbZ/d3WvywDE67VPRlTYX5ZR80Yyjz3byDH2/+DWOsjv2q8KUv2mtgkiOTZ1D3tAF6Vl6tSWlixMYc1tfC8KDWDOq2eg7M72MqjfiMTuBPXr2ZB/nTdtCi9lDQQESzBmgJaV/KCZOAaIKQR9hibvy4vt3wlSZ9XTK+FFZPQc=",
|
20
|
+
},
|
21
|
+
},
|
22
|
+
};
|
23
|
+
//# sourceMappingURL=vk.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"vk.js","sourceRoot":"","sources":["../../../../../../src/mina/V1/vk.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,OAAO,EAAE;QACP,KAAK,EAAE;YACL,IAAI,EAAE,8EAA8E;YACpF,IAAI,EAAE,81EAA81E;SACr2E;QACD,KAAK,EAAE;YACL,IAAI,EAAE,+EAA+E;YACrF,IAAI,EAAE,81EAA81E;SACr2E;KACF;IACD,OAAO,EAAE;QACP,KAAK,EAAE;YACL,IAAI,EAAE,+EAA+E;YACrF,IAAI,EAAE,81EAA81E;SACr2E;QACD,KAAK,EAAE;YACL,IAAI,EAAE,+EAA+E;YACrF,IAAI,EAAE,81EAA81E;SACr2E;KACF;CACF,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/mina/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,+BAA+B;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,OAAO,CAAC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/mina/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,+BAA+B;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,OAAO,CAAC;AACtB,cAAc,MAAM,CAAC"}
|
@@ -19,5 +19,5 @@ export declare class NFTWhitelistedAdmin extends SmartContract implements NFTAdm
|
|
19
19
|
canTransfer(address: PublicKey, from: PublicKey, to: PublicKey): Promise<import("o1js/dist/node/lib/provable/bool").Bool>;
|
20
20
|
canSell(address: PublicKey, seller: PublicKey, price: UInt64): Promise<import("o1js/dist/node/lib/provable/bool").Bool>;
|
21
21
|
canBuy(address: PublicKey, seller: PublicKey, buyer: PublicKey, price: UInt64): Promise<import("o1js/dist/node/lib/provable/bool").Bool>;
|
22
|
-
updateMerkleMapRoot(root: Field): Promise<void>;
|
22
|
+
updateMerkleMapRoot(root: Field, storage: Storage): Promise<void>;
|
23
23
|
}
|
@@ -57,10 +57,11 @@ export class NFTWhitelistedAdmin extends SmartContract {
|
|
57
57
|
async canBuy(address, seller, buyer, price) {
|
58
58
|
return (await this.isWhitelisted(buyer, price)).and(await this.isWhitelisted(seller, price));
|
59
59
|
}
|
60
|
-
async updateMerkleMapRoot(root) {
|
60
|
+
async updateMerkleMapRoot(root, storage) {
|
61
61
|
const sender = this.sender.getAndRequireSignature();
|
62
62
|
this.admin.getAndRequireEquals().assertEquals(sender);
|
63
63
|
this.whitelist.set(root);
|
64
|
+
this.storage.set(storage);
|
64
65
|
}
|
65
66
|
}
|
66
67
|
__decorate([
|
@@ -121,7 +122,7 @@ __decorate([
|
|
121
122
|
__decorate([
|
122
123
|
method,
|
123
124
|
__metadata("design:type", Function),
|
124
|
-
__metadata("design:paramtypes", [Field]),
|
125
|
+
__metadata("design:paramtypes", [Field, Storage]),
|
125
126
|
__metadata("design:returntype", Promise)
|
126
127
|
], NFTWhitelistedAdmin.prototype, "updateMerkleMapRoot", null);
|
127
128
|
//# sourceMappingURL=whitelist-admin.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"whitelist-admin.js","sourceRoot":"","sources":["../../../../../../src/mina/nft/whitelist-admin.ts"],"names":[],"mappings":";AAAA,OAAO,EAEL,IAAI,EAEJ,MAAM,EACN,WAAW,EACX,QAAQ,EACR,SAAS,EACT,aAAa,EACb,KAAK,EACL,KAAK,EACL,eAAe,EACf,MAAM,EAEN,KAAK,EACL,QAAQ,GACT,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAgB,OAAO,EAAE,MAAM,SAA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MAAM,CAAC,sBAAsB,EAAE,CAAC;QACpD,IAAI,CAAC,KAAK,CAAC,mBAAmB,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QACtD,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACzB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC5B,CAAC;CACF;AAjFmB;IAAjB,KAAK,CAAC,SAAS,CAAC;;uDAAiC;AAChC;IAAjB,KAAK,CAAC,SAAS,CAAC;;kDAA4B;AAC/B;IAAb,KAAK,CAAC,KAAK,CAAC;;sDAA4B;AACzB;IAAf,KAAK,CAAC,OAAO,CAAC;;oDAA4B;AAiCrC;IADL,MAAM;;qCACyB,eAAe;;gEAI9C;AAGY;IADZ,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;;qCACQ,UAAU;;kDAEtC;AAGY;IADZ,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;;qCACS,QAAQ,EAAU,QAAQ;;oDAEvD;AAGY;IADZ,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;;qCACa,SAAS,EAAQ,SAAS,EAAM,SAAS;;sDAE1E;AAGY;IADZ,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;;qCACS,SAAS,EAAU,SAAS,EAAS,MAAM;;kDAExE;AAGY;IADZ,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;;qCAEV,SAAS;QACV,SAAS;QACV,SAAS;QACT,MAAM;;iDAKd;AAGK;IADL,MAAM;;qCACyB,KAAK,EAAW,OAAO;;8DAKtD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/mina/token/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,OAAO,CAAC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/mina/token/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,OAAO,CAAC;AACtB,cAAc,MAAM,CAAC"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
export declare const fungibleTokenVerificationKeys: {
|
2
|
+
testnet: {
|
3
|
+
admin: {
|
4
|
+
hash: string;
|
5
|
+
data: string;
|
6
|
+
};
|
7
|
+
token: {
|
8
|
+
hash: string;
|
9
|
+
data: string;
|
10
|
+
};
|
11
|
+
};
|
12
|
+
mainnet: {
|
13
|
+
admin: {
|
14
|
+
hash: string;
|
15
|
+
data: string;
|
16
|
+
};
|
17
|
+
token: {
|
18
|
+
hash: string;
|
19
|
+
data: string;
|
20
|
+
};
|
21
|
+
};
|
22
|
+
};
|
@@ -0,0 +1,23 @@
|
|
1
|
+
export const fungibleTokenVerificationKeys = {
|
2
|
+
testnet: {
|
3
|
+
admin: {
|
4
|
+
hash: "1200635497217107248831982322269320244173535715339356861513501242012238077174",
|
5
|
+
data: "AABvj1TjS95sAoY8puZRG2h4hxjs9c5enwfo4vZAQC/COWHgEjNupRIxb3LVxaRU2mkaG94By4OqrJ3M7YXNs4oiAhMdOuU5+NrHN3RCJtswX+WPvwaHJnihtSy2FcJPyghvBVTi2i7dtWIPQLVDIzC5ARu8f8H9JWjzjVVYE/rQLruuq2qUsCrqdVsdRaw+6OjIFeAXS6mzvrVv5iYGslg5CV5mgLBg3xC408jZJ0pe8ua2mcIEDMGEdSR/+VuhPQaqxZTJPBVhazVc1P9gRyS26SdOohL85UmEc4duqlJOOlXOFuwOT6dvoiUcdQtzuPp1pzA/LHueqm9yQG9mlT0Df8uY/A+rwM4l/ypTP/o0+5GCM9jJf9bl/z0DpGWheCJY+LZbIGeBUOpg0Gx1+KZsD9ivWJ0vxNz8zKcAS1i3FqFhahkJHiiKgikn6Qig5+Yf3MJs0WKSNkCkgW2B48srVTR9ykLyO+68NiWLEnLXvJd+rmUHR4K92whqctZZ8zvd2+5u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Ce1z4/bC5wQXPwWSljp8NVU8Erp1U9ModNK7W63Pkh0efvgSD5d0nLzbfa0jTdxZ1JkfKsnvYk43Ed+vmXooHZhUeZAIX8ZCizhb1Gfvm02JFwxYXmiYAOp5wkGzweU2I5zo8r5yZFI1r4XibNQs7eAfKGRv3gh8/EuLkX/bdettgPvNsI8ndpQ3kL/V8W2PQN4/hjC9AKCYBeXQG42bRncYZdLe++R2KA1ZdPDxQPF3sxUIKhzmRWqbozrtv310Maorwv6eZJjldlCJwICR9QgcDwDuNj+UFJnX3RWsdIWsUbI1T4wO0sE2sBiMX/OqmiGJEAnBegioistlFyfRvm54h+duNOl/ol1Fva7NoXvsL/wThAWUly7bnc7/Al2bBQlUrmEX46UnKXzYntkZDee7Lx1u1BBkJAj/5BH1YZOPmMCh498rBUiHmc+4uQqebqNSHdOSgC39ESss4u7GNhWj3fi9XXta6UT9wapEMGq0WTg2Kry6xNP2YZ5X8eaapRQc/KzYgz9XjQL6TKpqNuGEbRlmfYvIuoFbnOkZI7RYoGp3YheMs1pQErwOxLzZa9W3Okwx16TSDwPLR0xMdAyogMrOdKN4JSMyNnmOaoVf6PkN+K9fz7RuHtvgjKpuz4vsK5Z2wRneqPrnfu6PkgHcRQrd0SxqCbN23Z/yp8qOcN6XU49iCNEBjztT00tolQ9hCPMSE/eTZ+ioez7m3pJFVks3T5Rk/e+6MeowJWIOv20x6CPS9mhpr1JPwdNFrWdgs19VsobntCpF/rWxksdrYyk=",
|
6
|
+
},
|
7
|
+
token: {
|
8
|
+
hash: "25084457276132306637089336910977939820654927814172888515895248592725736067489",
|
9
|
+
data: "AABoR9W/JCk+QV7xmR0EmMunepTBYRNFuyTe3jy0YL4FPMZvsY3S7Erek8aQc6iEbg0gx8yQZuX7/I9abchc2AM3/JhaHwmIVJYlvR+hIhruFPB3wgxMNv0w0gKKcrMUjwumIsjP5rBKR/iI66NePvgPuC29OEcvCy1WA7VGa4jkJdudep82RUdWGRWK2+TESBdYTcmhDVuKl71sFjmOd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lDQQESzBmgJaV/KCZOAaIKQR9hibvy4vt3wlSZ9XTK+FFZPQc=",
|
10
|
+
},
|
11
|
+
},
|
12
|
+
mainnet: {
|
13
|
+
admin: {
|
14
|
+
hash: "16115269877914581564299853766147447229664556890591132763176560855029019233817",
|
15
|
+
data: "AABvj1TjS95sAoY8puZRG2h4hxjs9c5enwfo4vZAQC/COWHgEjNupRIxb3LVxaRU2mkaG94By4OqrJ3M7YXNs4oiAhMdOuU5+NrHN3RCJtswX+WPvwaHJnihtSy2FcJPyghvBVTi2i7dtWIPQLVDIzC5ARu8f8H9JWjzjVVYE/rQLruuq2qUsCrqdVsdRaw+6OjIFeAXS6mzvrVv5iYGslg5CV5mgLBg3xC408jZJ0pe8ua2mcIEDMGEdSR/+VuhPQaqxZTJPBVhazVc1P9gRyS26SdOohL85UmEc4duqlJOOlXOFuwOT6dvoiUcdQtzuPp1pzA/LHueqm9yQG9mlT0Df8uY/A+rwM4l/ypTP/o0+5GCM9jJf9bl/z0DpGWheCJY+LZbIGeBUOpg0Gx1+KZsD9ivWJ0vxNz8zKcAS1i3FqFhahkJHiiKgikn6Qig5+Yf3MJs0WKSNkCkgW2B48srVTR9ykLyO+68NiWLEnLXvJd+rmUHR4K92whqctZZ8zvd2+5u+b62pkvFqqZZ9r24SMQOe9Bl2ZfMew2DyFLMPzwTowHw8onMEXcVKabFs9zQVp66AMf/wlipirNztdguAP2Hmpi/swGffC3cXDOY7T51PcPNIq+JcNbtKixzm7oIFyZ0FUgAhg5L7sDAkgRAXnQlKGuhGr24T+lV1YAdTheSiQ4YBcpnqpfVYnYG5iziTEdl5+3SENlC7E6MhR2PDoc/TmMvbEHnhNlo6tskqcmEUBQj+At5EO2NmogFDJIN6sRfrXOdH5l+QV7vR2v385RKRtfnmcJeUQcpq5/JTgVwagDJ/FarTN5jFsrBBRTeW3yZ5/CfVNA7NNWxoKhjBaHVIhn/fLT5sFLYzYdCx/uTsusyZmE2d6iqnLS+j1IXNJX/zR0ZD3aGuoUc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BBkJAj/5BH1YZOPmMCh498rBUiHmc+4uQqebqNSHdOSgC39ESss4u7GNhWj3fi9XXta6UT9wapEMGq0WTg2Kry6xNP2YZ5X8eaapRQc/KzYgz9XjQL6TKpqNuGEbRlmfYvIuoFbnOkZI7RYoGp3YheMs1pQErwOxLzZa9W3Okwx16TSDwPLR0xMdAyogMrOdKN4JSMyNnmOaoVf6PkN+K9fz7RuHtvgjKpuz4vsK5Z2wRneqPrnfu6PkgHcRQrd0SxqCbN23Z/yp8qOcN6XU49iCNEBjztT00tolQ9hCPMSE/eTZ+ioez7m3pJFVks3T5Rk/e+6MeowJWIOv20x6CPS9mhpr1JPwdNFrWdgs19VsobntCpF/rWxksdrYyk=",
|
16
|
+
},
|
17
|
+
token: {
|
18
|
+
hash: "12320223354843720065815824451082596238990220882343256724550451075683722289248",
|
19
|
+
data: "AABoR9W/JCk+QV7xmR0EmMunepTBYRNFuyTe3jy0YL4FPMZvsY3S7Erek8aQc6iEbg0gx8yQZuX7/I9abchc2AM3/JhaHwmIVJYlvR+hIhruFPB3wgxMNv0w0gKKcrMUjwumIsjP5rBKR/iI66NePvgPuC29OEcvCy1WA7VGa4jkJdudep82RUdWGRWK2+TESBdYTcmhDVuKl71sFjmOdRsHPuHz9tgXl+pkmjmsRFUu0NL0uf7+4UZZ3qwo5JDu+CK6Ec77HZQNWTxobryIa5NH8CwGRTykkaJMUmjbfWiFPCUHzvcqpOIDa/P0WVqqmkAksmXroqqmKGk7zQBN+Ak0GHEPqQDSJIQv98Wm/EluR3MtPMixUI0OSCdbCe++KR4gIKwvRX+AyBCIcMUEuQ7CN4TcDQmD4dsnU3Ywu2cTLCmf1z6el9AHdoTNg5kHvhrxJtV5O5sUnQEW+LPdxSMkxmO3ao9cj4Pdjpf//o1wVN9GR9uyGgj7JxOzi0e1HC2DWmTr5hsWR+J7Pz5rAY5jv5xAcpzUgdqRLr+0Z5wQBovJXign+HwE1cLbTGjZjc2WzRyDEAUfk+VvpE9GcgUdAEXynFIBB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3FtfenG9e8haWYXUyk1783IQJ4W1jkscQTU1RZrL0cWoaCxIXnXsdDJStgz8B9EQ0uUEkfXSXYEbQtIA4DVKzTO4uqxOzafqAOLnvOxi5Vn95JCOu3CEAFr0WQEOnA2X3nw31spFvLj0jykGpn1ECHhW4Ft9EOkHDr4qDA8Mi5gH9EB+g0AhObwxj7RZB2Wq5PSmZw131mkHzgYOgD3JC9tlaGMSxesjF1O3+U3wUOLrrU89s128Y0PpiEzO6Jsm1aDzbF1pkz3asy0z+Enb4BMg/Jv5j/EZkKM6Okv746/ETIs69fv3e5Iucae7lyyYVNCYBtucWrOQK2Pfi4QzRZjkC29hj8OenHSn+75qcX/v5ejhSBAb24Bp1INNVgaF3VHGz1+ULEcs73b/b0K1AQJYfdkfD4fqrj1nUIlVYv3yw1SyEKClpoiBaLiRxg/04rgb3enmxe6msVApSIlAYs+qeRAIRDCU+ZensV1x4sS4VCjQgoPlo9sV7wJDUOTsUkgux38w39sqiSfONzmyhfXqZocojTv1m3vHh8gnCFUbZ/d3WvywDE67VPRlTYX5ZR80Yyjz3byDH2/+DWOsjv2q8KUv2mtgkiOTZ1D3tAF6Vl6tSWlixMYc1tfC8KDWDOq2eg7M72MqjfiMTuBPXr2ZB/nTdtCi9lDQQESzBmgJaV/KCZOAaIKQR9hibvy4vt3wlSZ9XTK+FFZPQc=",
|
20
|
+
},
|
21
|
+
},
|
22
|
+
};
|
23
|
+
//# sourceMappingURL=vk.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"vk.js","sourceRoot":"","sources":["../../../../../../src/mina/token/vk.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,OAAO,EAAE;QACP,KAAK,EAAE;YACL,IAAI,EAAE,8EAA8E;YACpF,IAAI,EAAE,81EAA81E;SACr2E;QACD,KAAK,EAAE;YACL,IAAI,EAAE,+EAA+E;YACrF,IAAI,EAAE,81EAA81E;SACr2E;KACF;IACD,OAAO,EAAE;QACP,KAAK,EAAE;YACL,IAAI,EAAE,+EAA+E;YACrF,IAAI,EAAE,81EAA81E;SACr2E;QACD,KAAK,EAAE;YACL,IAAI,EAAE,+EAA+E;YACrF,IAAI,EAAE,81EAA81E;SACr2E;KACF;CACF,CAAC"}
|
@@ -14,3 +14,8 @@ export declare function getZkAppTxFromBlockBerry(params: {
|
|
14
14
|
chain: BlockBerryChain;
|
15
15
|
blockBerryApiKey: string;
|
16
16
|
}): Promise<any>;
|
17
|
+
export declare function getZkAppFromBlockBerry(params: {
|
18
|
+
account: string;
|
19
|
+
chain: BlockBerryChain;
|
20
|
+
blockBerryApiKey: string;
|
21
|
+
}): Promise<any>;
|
@@ -73,4 +73,34 @@ export async function getZkAppTxFromBlockBerry(params) {
|
|
73
73
|
return undefined;
|
74
74
|
}
|
75
75
|
}
|
76
|
+
export async function getZkAppFromBlockBerry(params) {
|
77
|
+
const { account, chain, blockBerryApiKey } = params;
|
78
|
+
const options = {
|
79
|
+
method: "GET",
|
80
|
+
headers: {
|
81
|
+
accept: "application/json",
|
82
|
+
"x-api-key": blockBerryApiKey,
|
83
|
+
},
|
84
|
+
};
|
85
|
+
try {
|
86
|
+
const response = await fetch(`https://api.blockberry.one/mina-${chain}/v1/zkapps/${account}`, options);
|
87
|
+
if (response.ok) {
|
88
|
+
const result = await response.json();
|
89
|
+
return result;
|
90
|
+
}
|
91
|
+
else {
|
92
|
+
console.error("getZkAppFromBlockBerry error while getting account", {
|
93
|
+
account,
|
94
|
+
chain,
|
95
|
+
text: response.statusText,
|
96
|
+
status: response.status,
|
97
|
+
});
|
98
|
+
return undefined;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
catch (err) {
|
102
|
+
console.error("getZkAppFromBlockBerry error while getting account - catch", account, chain, err);
|
103
|
+
return undefined;
|
104
|
+
}
|
105
|
+
}
|
76
106
|
//# sourceMappingURL=blockberry.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"blockberry.js","sourceRoot":"","sources":["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AAE,CAAC;QACb,OAAO,CAAC,KAAK,CACX,mEAAmE,EACnE,IAAI,EACJ,KAAK,EACL,GAAG,CACJ,CAAC;QACF,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC"}
|
1
|
+
{"version":3,"file":"blockberry.js","sourceRoot":"","sources":["../../../../../../src/mina/transactions/blockberry.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAAC,MAI/C;IACC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,GAAG,MAAM,CAAC;IACpD,MAAM,OAAO,GAAG;QACd,MAAM,EAAE,KAAK;QACb,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,WAAW,EAAE,gBAAgB;SAC9B;KACF,CAAC;IACF,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,KAAK,CAC1B,mCAAmC,KAAK,uBAAuB,OAAO,sCAAsC,EAC5G,OAAO,CACR,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YACjB,OAAO,CAAC,KAAK,CACX,qCAAqC,EACrC,OAAO,EACP,KAAK,EACL,QAAQ,CAAC,UAAU,CACpB,CAAC;YACF,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACrC,kCAAkC;QAClC,OAAO,MAAM,CAAC;IAChB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CACX,6CAA6C,EAC7C,OAAO,EACP,KAAK,EACL,GAAG,CACJ,CAAC;QACF,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAAC,MAIjD;IACC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,GAAG,MAAM,CAAC;IACpD,MAAM,OAAO,GAAG;QACd,MAAM,EAAE,KAAK;Q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