Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

minanft

Package Overview
Dependencies
Maintainers
1
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minanft - npm Package Compare versions

Comparing version 1.15.1 to 1.15.2

2

lib/ts/src/config.js

@@ -10,3 +10,3 @@ "use strict";

MINANFT_NAME_SERVICE: "B62qrryunX2LzaZ1sGtqfJqzSdNdN7pVSZw8YtnxQNxrrF9Vt56bNFT",
MINANFT_NAME_SERVICE_V2: "B62qoknCPWJ5KuzKnS5rvsFjCkKdpfr3aJdvYAJ9k138jmXhHMWjNFT",
MINANFT_NAME_SERVICE_V2: "B62qmyH2mH345LmUu7XTim79XVSZvJe7WdXz931M4J5Ycah2yFe1NFT",
MINANFT_NAME_SERVICE_OLD: "B62qpiD9ZWPi1JCx7hd4XcRujM1qc5jCADhhJVzTm3zZBWBpyRr3NFT",

@@ -13,0 +13,0 @@ MINANFT_NFT_ADDRESS: "B62qjfEWNWx4WzD5WvMomzv37FiPhuph4pTMtKDvkSQbNt8HN1BDGtQ",

import { Field, PublicKey, SmartContract, State, DeployArgs, TokenContract, AccountUpdateForest, VerificationKey, UInt32, UInt64, Signature, Provable } from "o1js";
import { Metadata } from "../contract/metadata";
import { Storage } from "../contract/metadata";
export declare function networkIdHash(): Field;
export declare const SELL_FEE = 1000000000n;

@@ -5,0 +6,0 @@ export declare const TRANSFER_FEE = 1000000000n;

@@ -12,7 +12,11 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.NameContractV2 = exports.NFTContractV2 = exports.NFTparams = exports.UpdateParams = exports.MintEvent = exports.MintParams = exports.TransferParams = exports.BuyParams = exports.SellParams = exports.MetadataParams = exports.wallet = exports.UPDATE_FEE = exports.TRANSFER_FEE = exports.SELL_FEE = void 0;
exports.NameContractV2 = exports.NFTContractV2 = exports.NFTparams = exports.UpdateParams = exports.MintEvent = exports.MintParams = exports.TransferParams = exports.BuyParams = exports.SellParams = exports.MetadataParams = exports.wallet = exports.UPDATE_FEE = exports.TRANSFER_FEE = exports.SELL_FEE = exports.networkIdHash = void 0;
const o1js_1 = require("o1js");
const metadata_1 = require("../contract/metadata");
const metadata_2 = require("../contract/metadata");
const mina_1 = require("../mina");
//import { getNetworkIdHash } from "../mina";
function networkIdHash() {
return o1js_1.Encoding.stringToFields("testnet")[0];
}
exports.networkIdHash = networkIdHash;
exports.SELL_FEE = 1000000000n;

@@ -236,3 +240,3 @@ exports.TRANSFER_FEE = 1000000000n;

...this.address.toFields(),
(0, mina_1.getNetworkIdHash)(),
networkIdHash(),
])

@@ -302,3 +306,3 @@ .assertEquals(true);

expiry.value,
(0, mina_1.getNetworkIdHash)(),
networkIdHash(),
(0, o1js_1.Field)(1),

@@ -324,3 +328,3 @@ ])

expiry.value,
(0, mina_1.getNetworkIdHash)(),
networkIdHash(),
(0, o1js_1.Field)(2),

@@ -327,0 +331,0 @@ ])

@@ -70,2 +70,3 @@ "use strict";

exports.VERIFICATION_KEY_HASH = VERIFICATION_KEY_HASH;
const VERIFICATION_KEY_HASH_V2 = "26642047990598952650691749057820860988308765986853048840756694765819475797555";
const VERIFIER = "B62qqzwDxiH172SXE4SUVYsNV2FteL2UeYFsjRqF4Qf42KnE1q1VNFT";

@@ -72,0 +73,0 @@ exports.VERIFIER = VERIFIER;

@@ -8,3 +8,2 @@ "use strict";

const fetch_1 = require("./fetch");
const mina_1 = require("./mina");
class MinaNFTNameServiceV2 {

@@ -34,4 +33,5 @@ /**

const verificationKey = (await nft_1.NFTContractV2.compile()).verificationKey;
await nft_1.NameContractV2.compile();
const vk = (await nft_1.NameContractV2.compile()).verificationKey;
console.timeEnd(`compiled`);
console.log(`vk hash: ${vk.hash.toJSON()}`);
const zkApp = new nft_1.NameContractV2(zkAppPublicKey);

@@ -118,3 +118,3 @@ await (0, fetch_1.fetchMinaAccount)({ publicKey: sender });

...this.address.toFields(),
(0, mina_1.getNetworkIdHash)(),
(0, nft_1.networkIdHash)(),
]);

@@ -121,0 +121,0 @@ }

@@ -8,3 +8,3 @@ const config = {

MINANFT_NAME_SERVICE: "B62qrryunX2LzaZ1sGtqfJqzSdNdN7pVSZw8YtnxQNxrrF9Vt56bNFT",
MINANFT_NAME_SERVICE_V2: "B62qoknCPWJ5KuzKnS5rvsFjCkKdpfr3aJdvYAJ9k138jmXhHMWjNFT",
MINANFT_NAME_SERVICE_V2: "B62qmyH2mH345LmUu7XTim79XVSZvJe7WdXz931M4J5Ycah2yFe1NFT",
MINANFT_NAME_SERVICE_OLD: "B62qpiD9ZWPi1JCx7hd4XcRujM1qc5jCADhhJVzTm3zZBWBpyRr3NFT",

@@ -11,0 +11,0 @@ MINANFT_NFT_ADDRESS: "B62qjfEWNWx4WzD5WvMomzv37FiPhuph4pTMtKDvkSQbNt8HN1BDGtQ",

import { Field, PublicKey, SmartContract, State, DeployArgs, TokenContract, AccountUpdateForest, VerificationKey, UInt32, UInt64, Signature, Provable } from "o1js";
import { Metadata } from "../contract/metadata";
import { Storage } from "../contract/metadata";
export declare function networkIdHash(): Field;
export declare const SELL_FEE = 1000000000n;

@@ -5,0 +6,0 @@ export declare const TRANSFER_FEE = 1000000000n;

import { __decorate, __metadata } from "tslib";
import { Field, PublicKey, AccountUpdate, Bool, SmartContract, method, state, State, Permissions, TokenContract, VerificationKey, Struct, UInt32, UInt64, Signature, } from "o1js";
import { Field, PublicKey, AccountUpdate, Bool, SmartContract, method, state, State, Permissions, TokenContract, VerificationKey, Struct, UInt32, UInt64, Signature, Encoding, } from "o1js";
import { Metadata } from "../contract/metadata";
import { Storage } from "../contract/metadata";
import { getNetworkIdHash } from "../mina";
//import { getNetworkIdHash } from "../mina";
export function networkIdHash() {
return Encoding.stringToFields("testnet")[0];
}
export const SELL_FEE = 1000000000n;

@@ -215,3 +218,3 @@ export const TRANSFER_FEE = 1000000000n;

...this.address.toFields(),
getNetworkIdHash(),
networkIdHash(),
])

@@ -281,3 +284,3 @@ .assertEquals(true);

expiry.value,
getNetworkIdHash(),
networkIdHash(),
Field(1),

@@ -303,3 +306,3 @@ ])

expiry.value,
getNetworkIdHash(),
networkIdHash(),
Field(2),

@@ -306,0 +309,0 @@ ])

@@ -47,2 +47,3 @@ import { Field } from "o1js";

const VERIFICATION_KEY_HASH = "10063414310819081074150032663721926544337121483850004965294429026545856295819";
const VERIFICATION_KEY_HASH_V2 = "26642047990598952650691749057820860988308765986853048840756694765819475797555";
const VERIFIER = "B62qqzwDxiH172SXE4SUVYsNV2FteL2UeYFsjRqF4Qf42KnE1q1VNFT";

@@ -49,0 +50,0 @@ const { MINANFT_NAME_SERVICE_V2, VERIFICATION_KEY_V2_JSON } = config;

export { MinaNFTNameServiceV2 };
import { Mina, PrivateKey, AccountUpdate, Signature, } from "o1js";
import { MinaNFT } from "./minanft";
import { NFTContractV2, NameContractV2 } from "./contract-v2/nft";
import { NFTContractV2, NameContractV2, networkIdHash, } from "./contract-v2/nft";
import { fetchMinaAccount } from "./fetch";
import { getNetworkIdHash } from "./mina";
class MinaNFTNameServiceV2 {

@@ -31,4 +30,5 @@ /**

const verificationKey = (await NFTContractV2.compile()).verificationKey;
await NameContractV2.compile();
const vk = (await NameContractV2.compile()).verificationKey;
console.timeEnd(`compiled`);
console.log(`vk hash: ${vk.hash.toJSON()}`);
const zkApp = new NameContractV2(zkAppPublicKey);

@@ -115,3 +115,3 @@ await fetchMinaAccount({ publicKey: sender });

...this.address.toFields(),
getNetworkIdHash(),
networkIdHash(),
]);

@@ -118,0 +118,0 @@ }

{
"name": "minanft",
"version": "1.15.1",
"version": "1.15.2",
"description": "MinaNFT Typescript/JavaScript integration library",

@@ -5,0 +5,0 @@ "author": "dfst.io",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc