Skip to content

Commit

Permalink
Merge branch 'master' into 3663-switch-out-old-indexer-endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlee348 authored Dec 16, 2024
2 parents 57b86fb + cdb3366 commit 43f9496
Show file tree
Hide file tree
Showing 53 changed files with 2,468 additions and 989 deletions.
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @0xsequence/core
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

[![npm version](https://badge.fury.io/js/@0xsequence%2Fkit.svg)](https://badge.fury.io/js/@0xsequence%2Fkit)

Sequence Kit 🧰 is a library enabling developers to easily integrate web3 wallets in their app. It is based on [wagmi](https://wagmi.sh/) and supports all wagmi features.
Easily integrate web3 wallets in your app with Sequence Kit 🧰. Based on [wagmi](https://wagmi.sh/), and supporting all wagmi features.

- Connect via social logins eg: facebook, google, discord, etc...! 🔐🪪
- Connect to popular web3 wallets eg: walletConnect, metamask ! 🦊 ⛓️
Expand Down
4 changes: 2 additions & 2 deletions examples/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"typescript": "latest"
},
"peerDependencies": {
"@0xsequence/design-system": ">= 1.7.8",
"@0xsequence/network": ">=2.0.12",
"@0xsequence/design-system": "*",
"@0xsequence/network": "*",
"wagmi": "*"
},
"private": true
Expand Down
5 changes: 3 additions & 2 deletions examples/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@
"@0xsequence/kit-checkout": "workspace:*",
"@0xsequence/kit-wallet": "workspace:*",
"@0xsequence/kit-example-shared-components": "workspace:*",
"@0xsequence/network": "2.0.12",
"@0xsequence/network": "2.1.4",
"@0xsequence/waas": "2.1.4",
"@tanstack/react-query": "^5.37.1",
"next": "14.2.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"viem": "^2.12.0",
"wagmi": "^2.9.5"
"wagmi": "^2.13.3"
},
"devDependencies": {
"@types/node": "^20.12.12",
Expand Down
8 changes: 7 additions & 1 deletion examples/next/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ export const kitConfig: KitConfig = {
export const config = createConfig('waas', {
...kitConfig,
appName: 'Kit Demo',
chainIds: [ChainId.ARBITRUM_NOVA, ChainId.ARBITRUM_SEPOLIA, ChainId.POLYGON],
chainIds: [
ChainId.ARBITRUM_NOVA,
ChainId.ARBITRUM_SEPOLIA,
ChainId.POLYGON,
ChainId.IMMUTABLE_ZKEVM,
ChainId.IMMUTABLE_ZKEVM_TESTNET
],
defaultChainId: ChainId.ARBITRUM_NOVA,

// Waas specific config options
Expand Down
5 changes: 3 additions & 2 deletions examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
"@0xsequence/kit-wallet": "workspace:*",
"@0xsequence/kit-example-shared-components": "workspace:*",
"@tanstack/react-query": "^5.37.1",
"@0xsequence/network": "2.0.12",
"@0xsequence/network": "2.1.4",
"@0xsequence/waas": "2.1.4",
"framer-motion": "^8.5.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"typescript": "^5.4.5",
"viem": "^2.12.0",
"wagmi": "^2.9.5"
"wagmi": "^2.13.3"
},
"devDependencies": {
"@types/node": "^20.12.12",
Expand Down
12 changes: 9 additions & 3 deletions examples/react/src/components/Connected.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
useWriteContract
} from 'wagmi'

import { sponsoredContractAddresses } from '../config'
import { sponsoredContractAddresses, getErc1155SaleContractConfig } from '../config'
import { messageToSign } from '../constants'
import { abi } from '../constants/nft-abi'
import { delay, getCheckoutSettings, getOrderbookCalldata } from '../utils'
Expand Down Expand Up @@ -336,12 +336,14 @@ export const Connected = () => {
// const salesContractAddress = '0xf0056139095224f4eec53c578ab4de1e227b9597'
// const collectionAddress = '0x92473261f2c26f2264429c451f70b0192f858795'
// const price = '200000000000000'
// const contractId = '674eb55a3d739107bbd18ecb'

// // ERC-20 contract
const currencyAddress = '0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359'
const salesContractAddress = '0xe65b75eb7c58ffc0bf0e671d64d0e1c6cd0d3e5b'
const collectionAddress = '0xdeb398f41ccd290ee5114df7e498cf04fac916cb'
const price = '20000'
const contractId = '674eb5613d739107bbd18ed2'

const chainId = 137

Expand All @@ -358,8 +360,12 @@ export const Connected = () => {
recipientAddress: address,
currencyAddress,
collectionAddress,
creditCardProviders: ['sardine'],
isDev: true,
creditCardProviders: ['sardine', 'transak'],
transakConfig: {
contractId,
apiKey: '5911d9ec-46b5-48fa-a755-d59a715ff0cf'
},
isDev: false,
copyrightText: 'ⓒ2024 Sequence',
onSuccess: (txnHash: string) => {
console.log('success!', txnHash)
Expand Down
33 changes: 31 additions & 2 deletions examples/react/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ export const config =
? createConfig('waas', {
...kitConfig,
appName: 'Kit Demo',
chainIds: [ChainId.ARBITRUM_NOVA, ChainId.ARBITRUM_SEPOLIA, ChainId.POLYGON],
chainIds: [
ChainId.ARBITRUM_NOVA,
ChainId.ARBITRUM_SEPOLIA,
ChainId.POLYGON,
ChainId.IMMUTABLE_ZKEVM,
ChainId.IMMUTABLE_ZKEVM_TESTNET
],
defaultChainId: ChainId.ARBITRUM_NOVA,
waasConfigKey: isDebugMode
? 'eyJwcm9qZWN0SWQiOjY5NCwicnBjU2VydmVyIjoiaHR0cHM6Ly9kZXYtd2Fhcy5zZXF1ZW5jZS5hcHAiLCJlbWFpbFJlZ2lvbiI6ImNhLWNlbnRyYWwtMSIsImVtYWlsQ2xpZW50SWQiOiI1NGF0bjV1cGk2M3FjNTlhMWVtM3ZiaHJzbiJ9'
Expand All @@ -81,10 +87,33 @@ export const config =
: createConfig('universal', {
...kitConfig,
appName: 'Kit Demo',
chainIds: [ChainId.ARBITRUM_NOVA, ChainId.ARBITRUM_SEPOLIA, ChainId.POLYGON],
chainIds: [
ChainId.ARBITRUM_NOVA,
ChainId.ARBITRUM_SEPOLIA,
ChainId.POLYGON,
ChainId.IMMUTABLE_ZKEVM,
ChainId.IMMUTABLE_ZKEVM_TESTNET
],
defaultChainId: ChainId.ARBITRUM_NOVA,

walletConnect: {
projectId: walletConnectProjectId
}
})

export const getErc1155SaleContractConfig = (walletAddress: string) => ({
chain: 137,
// ERC20 token sale
contractAddress: '0xe65b75eb7c58ffc0bf0e671d64d0e1c6cd0d3e5b',
collectionAddress: '0xdeb398f41ccd290ee5114df7e498cf04fac916cb',
// Native token sale
// contractAddress: '0xf0056139095224f4eec53c578ab4de1e227b9597',
// collectionAddress: '0x92473261f2c26f2264429c451f70b0192f858795',
wallet: walletAddress,
items: [{
tokenId: '1',
quantity: '1'
}],
onSuccess: () => { console.log('success') },
isDev: isDebugMode
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"rimraf": "^5.0.7",
"turbo": "2.0.1",
"typescript": "~5.4.5",
"wagmi": "^2.9.5"
"wagmi": "^2.13.3"
},
"resolutions": {},
"packageManager": "[email protected]"
Expand Down
47 changes: 47 additions & 0 deletions packages/checkout/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,52 @@
# @0xsequence/kit-connectors

## 4.5.2

### Patch Changes

- Fixing walletconnect default chainId

- Updated dependencies []:
- @0xsequence/kit@4.5.2

## 4.5.1

### Patch Changes

- Updating onEmailConflict listeners to handle multiple providers

- Updated dependencies []:
- @0xsequence/kit@4.5.1

## 4.5.0

### Minor Changes

- Adding metamask connector

### Patch Changes

- Updated dependencies []:
- @0xsequence/kit@4.5.0

## 4.4.6

### Patch Changes

- Updating sequence to include fix for projectAccessKey sending to universal wallet

- Updated dependencies []:
- @0xsequence/kit@4.4.6

## 4.4.5

### Patch Changes

- Fixing waas time drift

- Updated dependencies []:
- @0xsequence/kit@4.4.5

## 4.4.4

### Patch Changes
Expand Down
Loading

0 comments on commit 43f9496

Please sign in to comment.