Skip to content

Commit

Permalink
Merge pull request #1 from spacebudz/main
Browse files Browse the repository at this point in the history
Merge Latest Conway Changes
  • Loading branch information
thaddeusdiamond committed Sep 6, 2024
2 parents a125e98 + 868fb09 commit 2eee8ab
Show file tree
Hide file tree
Showing 25 changed files with 694 additions and 379 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ npm install lucid-cardano
For JavaScript and TypeScript

```js
import { Lucid } from "https://deno.land/x/lucid@0.10.7/mod.ts";
import { Lucid } from "https://deno.land/x/lucid@0.10.10/mod.ts";
```

#### Web

```html
<script type="module">
import { Lucid } from "https://unpkg.com/lucid-cardano@0.10.7/web/mod.js"
import { Lucid } from "https://unpkg.com/lucid-cardano@0.10.10/web/mod.js"
// ...
</script>
```
Expand All @@ -67,7 +67,7 @@ Outputs a `dist` folder
### Basic usage

```js
// import { Blockfrost, Lucid } from "https://deno.land/x/lucid@0.10.7/mod.ts"; Deno
// import { Blockfrost, Lucid } from "https://deno.land/x/lucid@0.10.10/mod.ts"; Deno
import { Blockfrost, Lucid } from "lucid-cardano"; // NPM

const lucid = await Lucid.new(
Expand Down
2 changes: 1 addition & 1 deletion blueprint.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import packageJson from "./package.json" assert { type: "json" };
import packageJson from "./package.json" with { type: "json" };
import { parse } from "https://deno.land/std@0.185.0/flags/mod.ts";

const flags = parse(Deno.args, {
Expand Down
4 changes: 2 additions & 2 deletions build.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as dnt from "https://deno.land/x/dnt@0.30.0/mod.ts";
import * as dnt from "https://deno.land/x/dnt@0.40.0/mod.ts";
import * as esbuild from "https://deno.land/x/esbuild@v0.17.11/mod.js";
import packageInfo from "./package.json" assert { type: "json" };
import packageInfo from "./package.json" with { type: "json" };

await dnt.emptyDir("./dist");

Expand Down
6 changes: 2 additions & 4 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"test:core": "cd src/core/libs/cardano_multiplatform_lib && cargo test; cd ../cardano_message_signing && cargo test"
},
"lint": {
"files": {
"include": ["src/"],
"exclude": ["src/core/"]
}
"include": ["src/"],
"exclude": ["src/core/"]
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lucid-cardano",
"version": "0.10.7",
"version": "0.10.10",
"license": "MIT",
"author": "Alessandro Konrad",
"description": "Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.",
Expand Down
2 changes: 1 addition & 1 deletion src/core/core.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as C from "./libs/cardano_multiplatform_lib/cardano_multiplatform_lib.generated.js";
import * as M from "./libs/cardano_message_signing/cardano_message_signing.generated.js";
import packageJson from "../../package.json" assert { type: "json" };
import packageJson from "../../package.json" with { type: "json" };

async function unsafeInstantiate(module: any, url: string) {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ export class COSEEncrypt {
ciphertext() {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
wasm.coseencrypt0_ciphertext(retptr, this.ptr);
wasm.coseencrypt_ciphertext(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
let v0;
Expand Down Expand Up @@ -1745,7 +1745,7 @@ export class COSESign {
payload() {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
wasm.coseencrypt0_ciphertext(retptr, this.ptr);
wasm.coseencrypt_ciphertext(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
let v0;
Expand Down Expand Up @@ -1856,7 +1856,7 @@ export class COSESign1 {
payload() {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
wasm.coseencrypt0_ciphertext(retptr, this.ptr);
wasm.coseencrypt_ciphertext(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
let v0;
Expand Down Expand Up @@ -2154,7 +2154,7 @@ export class COSESignature {
signature() {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
wasm.cosesignature_signature(retptr, this.ptr);
wasm.cosesign1_signature(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var v0 = getArrayU8FromWasm0(r0, r1).slice();
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,7 @@ class COSEEncrypt {
ciphertext() {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
wasm.coseencrypt0_ciphertext(retptr, this.ptr);
wasm.coseencrypt_ciphertext(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
let v0;
Expand Down Expand Up @@ -1768,7 +1768,7 @@ class COSESign {
payload() {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
wasm.coseencrypt0_ciphertext(retptr, this.ptr);
wasm.coseencrypt_ciphertext(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
let v0;
Expand Down Expand Up @@ -1880,7 +1880,7 @@ class COSESign1 {
payload() {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
wasm.coseencrypt0_ciphertext(retptr, this.ptr);
wasm.coseencrypt_ciphertext(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
let v0;
Expand Down Expand Up @@ -2181,7 +2181,7 @@ class COSESignature {
signature() {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
wasm.cosesignature_signature(retptr, this.ptr);
wasm.cosesign1_signature(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var v0 = getArrayU8FromWasm0(r0, r1).slice();
Expand Down
Loading

0 comments on commit 2eee8ab

Please sign in to comment.