Skip to content

Commit

Permalink
Update vite
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejearley committed Jul 26, 2023
1 parent e037c16 commit bd29e97
Show file tree
Hide file tree
Showing 5 changed files with 1,114 additions and 263 deletions.
14 changes: 7 additions & 7 deletions apps/landing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"vue-router": "^4.0.15"
},
"devDependencies": {
"@vitejs/plugin-vue": "^3.0.0",
"autoprefixer": "^10.4.12",
"postcss": "^8.4.18",
"tailwindcss": "^3.2.0",
"typescript": "^4.5.4",
"vite": "^3.0.0",
"vue-tsc": "^0.34.7"
"@vitejs/plugin-vue": "^4.2.3",
"autoprefixer": "^10.4.14",
"postcss": "^8.4.27",
"tailwindcss": "^3.3.3",
"typescript": "^5.1.6",
"vite": "^4.4.7",
"vue-tsc": "^1.8.8"
}
}
14 changes: 7 additions & 7 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
"xlsx": "^0.18.5"
},
"devDependencies": {
"@vitejs/plugin-vue": "^3.0.0",
"autoprefixer": "^10.4.12",
"postcss": "^8.4.14",
"rollup-plugin-polyfill-node": "^0.11.0",
"tailwindcss": "^3.2.0",
"@vitejs/plugin-vue": "^4.2.3",
"autoprefixer": "^10.4.14",
"postcss": "^8.4.27",
"rollup-plugin-polyfill-node": "^0.12.0",
"tailwindcss": "^3.3.3",
"typescript": "^5.1.6",
"vite": "^3.0.0",
"vue-tsc": "^0.34.7"
"vite": "^4.4.7",
"vue-tsc": "^1.8.7"
}
}
11 changes: 4 additions & 7 deletions apps/web/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'
import { Plugin, defineConfig } from 'vite'
import { fileURLToPath } from 'url'
import * as path from 'path'
import nodePolyFills from 'rollup-plugin-polyfill-node'
import nodePolyfills from 'rollup-plugin-polyfill-node'

export default defineConfig({
server: { port: 3001 },
plugins: [
vue(),
nodePolyFills()
nodePolyfills() as Plugin
],
define: {
'global': 'globalThis'
Expand All @@ -28,8 +28,5 @@ export default defineConfig({
'.vue',
]
},
envPrefix: 'PUBLIC_',
optimizeDeps:{
exclude: ['@wagmi/core', 'viem']
}
envPrefix: 'PUBLIC_'
})
88 changes: 44 additions & 44 deletions contracts/ethereum/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2116,6 +2116,50 @@ _Send ETH to a user_
| user | address | The user address |
| amount | uint256 | The amount of stake to send |

## MockFunctionsOracle

### constructor

```solidity
constructor() public
```

### getRegistry

```solidity
function getRegistry() external view returns (address)
```

Returns the address of the registry contract

#### Return Values

| Name | Type | Description |
| ---- | ---- | ----------- |
| [0] | address | address The address of the registry contract |

### sendRequest

```solidity
function sendRequest(uint64 _subscriptionId, bytes _data, uint32 _gasLimit) external returns (bytes32 requestId)
```

Sends a request (encoded as data) using the provided subscriptionId

#### Parameters

| Name | Type | Description |
| ---- | ---- | ----------- |
| _subscriptionId | uint64 | A unique subscription ID allocated by billing system, a client can make requests from different contracts referencing the same subscription |
| _data | bytes | Encoded Chainlink Functions request data, use FunctionsClient API to encode a request |
| _gasLimit | uint32 | Gas limit for the fulfillment callback |

#### Return Values

| Name | Type | Description |
| ---- | ---- | ----------- |
| requestId | bytes32 | A unique request identifier (unique per DON) |

## IDepositContract

### DepositEvent
Expand Down Expand Up @@ -2212,47 +2256,3 @@ struct RegistrationParams {
function registerUpkeep(struct KeeperRegistrarInterface.RegistrationParams requestParams) external returns (uint256)
```

## MockFunctionsOracle

### constructor

```solidity
constructor() public
```

### getRegistry

```solidity
function getRegistry() external view returns (address)
```

Returns the address of the registry contract

#### Return Values

| Name | Type | Description |
| ---- | ---- | ----------- |
| [0] | address | address The address of the registry contract |

### sendRequest

```solidity
function sendRequest(uint64 _subscriptionId, bytes _data, uint32 _gasLimit) external returns (bytes32 requestId)
```

Sends a request (encoded as data) using the provided subscriptionId

#### Parameters

| Name | Type | Description |
| ---- | ---- | ----------- |
| _subscriptionId | uint64 | A unique subscription ID allocated by billing system, a client can make requests from different contracts referencing the same subscription |
| _data | bytes | Encoded Chainlink Functions request data, use FunctionsClient API to encode a request |
| _gasLimit | uint32 | Gas limit for the fulfillment callback |

#### Return Values

| Name | Type | Description |
| ---- | ---- | ----------- |
| requestId | bytes32 | A unique request identifier (unique per DON) |

Loading

0 comments on commit bd29e97

Please sign in to comment.