Skip to content

Commit

Permalink
chore: merge remote-tracking branch 'origin/main' into feat/new-lever…
Browse files Browse the repository at this point in the history
…age-with-opensea-sell-support
  • Loading branch information
Uziel Ludueña authored and Uziel Ludueña committed Jan 16, 2024
2 parents bda54ad + f1a8b36 commit 1711220
Show file tree
Hide file tree
Showing 289 changed files with 27,260 additions and 2,008 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
github_repo: ${{ github.repository }}
version: ${{ env.PACKAGE_VERSION }}
git_commit_sha: ${{ github.sha }}
git_tag_prefix: "v"
git_tag_prefix: 'v'

# Create a GitHub release
- name: Create Release
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint
yarn lint && yarn fmt-check
13 changes: 13 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
node_modules

dist

docs

src/generated

*.log
.env
.vscode
.DS_Store
*.lock
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"printWidth": 100,
"singleQuote": true
}
11 changes: 5 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ We are also using an object to accomodate for the flexibility of adding new para

---


## Leverage Sell

**Description:**
Expand Down Expand Up @@ -134,7 +133,7 @@ Both arguments could be inferred from loan.

**Migration to version 0.3.x is discouraged until release is a stable version, and not a beta version as it is right now.**

---
---

This document outlines the breaking changes introduced in our codebase for version 0.3.0b1. Please review these changes carefully to ensure a smooth migration.

Expand All @@ -147,7 +146,7 @@ This document outlines the breaking changes introduced in our codebase for versi

## Approve NFT For All

**Description:**
**Description:**

`approveNFTForAll` method now expects an object with the following shape:

Expand All @@ -157,15 +156,15 @@ This document outlines the breaking changes introduced in our codebase for versi

`to` is optional and will default to MultiSourceLoan contract.

**Reason:**
**Reason:**

Consistency accross other methods.

---

## Approve Token

**Description:**
**Description:**

`approveToken` method now expects an object with the following shape:

Expand All @@ -177,7 +176,7 @@ Consistency accross other methods.

`to` is optional and will default to internal `MAX_NUMBER`` constant.

**Reason:**
**Reason:**

Consistency accross other methods.

Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ yarn add gondi
To get started, you need to provide a wallet only.

```javascript
import { Gondi } from "gondi";
import { createWalletClient, http } from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { mainnet } from "viem/chains";
const transport = http("https://eth-mainnet.g.alchemy.com/v2/...");
import { Gondi } from 'gondi';
import { createWalletClient, http } from 'viem';
import { privateKeyToAccount } from 'viem/accounts';
import { mainnet } from 'viem/chains';
const transport = http('https://eth-mainnet.g.alchemy.com/v2/...');

const wallet = createWalletClient({
account: privateKeyToAccount(privateKey),
Expand All @@ -47,11 +47,11 @@ Typescript types are included in the package.
We use integer ids to identify collections and NFTs. We provide helper functions to get them:

```javascript
const nftId = await gondi.nftId({ slug: "collection-slug", tokenId: 0n });
const collectionId = await gondi.collectionId({ slug: "collection-slug" });
const nftId = await gondi.nftId({ slug: 'collection-slug', tokenId: 0n });
const collectionId = await gondi.collectionId({ slug: 'collection-slug' });
const collectionId = (
await gondi.collectionId({
contractAddress: "0x0000000000000000000000000000000000000000",
contractAddress: '0x0000000000000000000000000000000000000000',
})
)[0]; // It's an array because some collections use same contract (e.g. Artblocks)
```
Expand Down Expand Up @@ -90,7 +90,7 @@ const offer = await gondi.makeCollectionOffer({
### Listing Offers

```javascript
import { OffersSortField, Ordering } from "gondi";
import { OffersSortField, Ordering } from 'gondi';
const offer = await gondi.offers({
cusor, // Cursor returned by previous calls.
limit, // Number results.
Expand Down
4 changes: 2 additions & 2 deletions codegen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ generates:
- typescript-generic-sdk
- add:
content:
- "/* eslint-disable */"
- "//@ts-nocheck"
- '/* eslint-disable */'
- '//@ts-nocheck'
- "import { Address, Hash, Hex } from 'viem'"
config:
defaultBaseOptions:
Expand Down
1 change: 1 addition & 0 deletions docs/0.3.18/.nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
85 changes: 85 additions & 0 deletions docs/0.3.18/assets/highlight.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
:root {
--light-hl-0: #795E26;
--dark-hl-0: #DCDCAA;
--light-hl-1: #000000;
--dark-hl-1: #D4D4D4;
--light-hl-2: #A31515;
--dark-hl-2: #CE9178;
--light-hl-3: #0000FF;
--dark-hl-3: #569CD6;
--light-hl-4: #008000;
--dark-hl-4: #6A9955;
--light-hl-5: #AF00DB;
--dark-hl-5: #C586C0;
--light-hl-6: #001080;
--dark-hl-6: #9CDCFE;
--light-hl-7: #0070C1;
--dark-hl-7: #4FC1FF;
--light-hl-8: #098658;
--dark-hl-8: #B5CEA8;
--light-code-background: #FFFFFF;
--dark-code-background: #1E1E1E;
}

@media (prefers-color-scheme: light) { :root {
--hl-0: var(--light-hl-0);
--hl-1: var(--light-hl-1);
--hl-2: var(--light-hl-2);
--hl-3: var(--light-hl-3);
--hl-4: var(--light-hl-4);
--hl-5: var(--light-hl-5);
--hl-6: var(--light-hl-6);
--hl-7: var(--light-hl-7);
--hl-8: var(--light-hl-8);
--code-background: var(--light-code-background);
} }

@media (prefers-color-scheme: dark) { :root {
--hl-0: var(--dark-hl-0);
--hl-1: var(--dark-hl-1);
--hl-2: var(--dark-hl-2);
--hl-3: var(--dark-hl-3);
--hl-4: var(--dark-hl-4);
--hl-5: var(--dark-hl-5);
--hl-6: var(--dark-hl-6);
--hl-7: var(--dark-hl-7);
--hl-8: var(--dark-hl-8);
--code-background: var(--dark-code-background);
} }

:root[data-theme='light'] {
--hl-0: var(--light-hl-0);
--hl-1: var(--light-hl-1);
--hl-2: var(--light-hl-2);
--hl-3: var(--light-hl-3);
--hl-4: var(--light-hl-4);
--hl-5: var(--light-hl-5);
--hl-6: var(--light-hl-6);
--hl-7: var(--light-hl-7);
--hl-8: var(--light-hl-8);
--code-background: var(--light-code-background);
}

:root[data-theme='dark'] {
--hl-0: var(--dark-hl-0);
--hl-1: var(--dark-hl-1);
--hl-2: var(--dark-hl-2);
--hl-3: var(--dark-hl-3);
--hl-4: var(--dark-hl-4);
--hl-5: var(--dark-hl-5);
--hl-6: var(--dark-hl-6);
--hl-7: var(--dark-hl-7);
--hl-8: var(--dark-hl-8);
--code-background: var(--dark-code-background);
}

.hl-0 { color: var(--hl-0); }
.hl-1 { color: var(--hl-1); }
.hl-2 { color: var(--hl-2); }
.hl-3 { color: var(--hl-3); }
.hl-4 { color: var(--hl-4); }
.hl-5 { color: var(--hl-5); }
.hl-6 { color: var(--hl-6); }
.hl-7 { color: var(--hl-7); }
.hl-8 { color: var(--hl-8); }
pre, code { background: var(--code-background); }
58 changes: 58 additions & 0 deletions docs/0.3.18/assets/main.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/0.3.18/assets/search.js

Large diffs are not rendered by default.

Loading

0 comments on commit 1711220

Please sign in to comment.