@towns-protocol/generated 0.0.311 → 0.0.315
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -11
- package/dev/.contracts-hash +1 -0
- package/package.json +13 -4
- package/scripts/prepare.js +206 -0
- package/.turbo/turbo-build.log +0 -1
- package/dev/typings/ISpaceOwner.ts +0 -476
- package/dev/typings/factories/ISpaceOwner__factory.ts +0 -289
package/README.md
CHANGED
|
@@ -1,23 +1,35 @@
|
|
|
1
1
|
# @towns-protocol/generated
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Description
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Contract ABIs and TypeScript types for the Towns Protocol smart contracts. This package provides compiled artifacts and
|
|
6
|
+
type definitions for interacting with Towns Protocol contracts on Base and Towns chains.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
./scripts/build-contract-types.sh
|
|
9
|
-
```
|
|
8
|
+
## Overview
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
This package contains:
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
- **[`dev/abis/`](dev/abis/)** - Contract ABI JSON files and TypeScript exports
|
|
13
|
+
- **[`dev/typings/`](dev/typings/)** - TypeScript type definitions and factory contracts
|
|
14
|
+
- **[`deployments/`](deployments/)** - Contract addresses by network and environment
|
|
15
|
+
- **[`config/`](config/)** - Deployment configuration files
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+
## Quick Start
|
|
16
18
|
|
|
17
19
|
```bash
|
|
18
|
-
|
|
20
|
+
# After fresh clone
|
|
21
|
+
yarn install && yarn build
|
|
22
|
+
|
|
23
|
+
# Get artifacts (auto-downloads or generates as needed)
|
|
24
|
+
yarn build
|
|
19
25
|
```
|
|
20
26
|
|
|
21
|
-
##
|
|
27
|
+
## Troubleshooting
|
|
22
28
|
|
|
23
|
-
|
|
29
|
+
```bash
|
|
30
|
+
# Missing artifacts error
|
|
31
|
+
yarn build
|
|
32
|
+
|
|
33
|
+
# Clean slate regeneration
|
|
34
|
+
rm -rf dev/ && yarn build
|
|
35
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2a890e76265ec36d414aff9f3442dedac305cbd5
|
package/package.json
CHANGED
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@towns-protocol/generated",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.315",
|
|
4
4
|
"packageManager": "yarn@3.8.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"build": "yarn make-config",
|
|
7
|
+
"build": "yarn prepare && yarn make-config",
|
|
8
8
|
"make-config": "node ./scripts/make-config.js",
|
|
9
|
-
"preinstall": "
|
|
9
|
+
"preinstall": "yarn make-config",
|
|
10
|
+
"prepare": "node ./scripts/prepare.js"
|
|
10
11
|
},
|
|
12
|
+
"files": [
|
|
13
|
+
"config/**/*",
|
|
14
|
+
"deployments/**/*",
|
|
15
|
+
"dev/**/*",
|
|
16
|
+
"scripts/**/*",
|
|
17
|
+
"v3/**/*",
|
|
18
|
+
"README.md"
|
|
19
|
+
],
|
|
11
20
|
"imports": {
|
|
12
21
|
"#/dev/*": "./dev/*",
|
|
13
22
|
"#/v3/*": "./v3/*",
|
|
@@ -17,5 +26,5 @@
|
|
|
17
26
|
"publishConfig": {
|
|
18
27
|
"access": "public"
|
|
19
28
|
},
|
|
20
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "beebbdcf8f7cdd914eb11b4b8318c44c9537a2c7"
|
|
21
30
|
}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* CONTRACT ARTIFACT MANAGEMENT
|
|
5
|
+
*
|
|
6
|
+
* Strategy: npm download when possible, local generation when needed.
|
|
7
|
+
*
|
|
8
|
+
* 1. No artifacts → try npm download → validate hash → fallback to local gen
|
|
9
|
+
* 2. Artifacts exist → compare hash → regenerate if contracts changed
|
|
10
|
+
* 3. SKIP_CONTRACT_GEN=true → use existing or npm download, never fail
|
|
11
|
+
*
|
|
12
|
+
* Uses package.json version + git tree hash for validation.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { execSync } from 'child_process';
|
|
16
|
+
import { existsSync, readFileSync, mkdirSync } from 'fs';
|
|
17
|
+
import { resolve, dirname } from 'path';
|
|
18
|
+
import { fileURLToPath } from 'url';
|
|
19
|
+
import { createRequire } from 'module';
|
|
20
|
+
|
|
21
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
22
|
+
const packageRoot = resolve(__dirname, '..');
|
|
23
|
+
const contractsDir = resolve(packageRoot, '../contracts');
|
|
24
|
+
const devDir = resolve(packageRoot, 'dev');
|
|
25
|
+
const hashFile = resolve(devDir, '.contracts-hash');
|
|
26
|
+
|
|
27
|
+
// Get current package version
|
|
28
|
+
function getCurrentVersion() {
|
|
29
|
+
const require = createRequire(import.meta.url);
|
|
30
|
+
const packageJson = require('../package.json');
|
|
31
|
+
return packageJson.version;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Check if generated files already exist
|
|
35
|
+
function generatedFilesExist() {
|
|
36
|
+
return existsSync(resolve(devDir, 'abis')) && existsSync(resolve(devDir, 'typings'));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Get git hash of contracts directory
|
|
40
|
+
function getContractsHash() {
|
|
41
|
+
if (!existsSync(resolve(contractsDir, 'src'))) return null;
|
|
42
|
+
|
|
43
|
+
try {
|
|
44
|
+
return execSync('git rev-parse HEAD:./src', {
|
|
45
|
+
cwd: contractsDir,
|
|
46
|
+
encoding: 'utf8',
|
|
47
|
+
stdio: 'pipe'
|
|
48
|
+
}).trim();
|
|
49
|
+
} catch (error) {
|
|
50
|
+
return null; // Not in git repo or other error
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Check if contracts have changed by comparing hashes
|
|
55
|
+
function contractsChanged() {
|
|
56
|
+
const currentHash = getContractsHash();
|
|
57
|
+
|
|
58
|
+
if (!currentHash) return false; // No contracts source, use existing generated files
|
|
59
|
+
|
|
60
|
+
if (!existsSync(hashFile)) return true; // No stored hash, need to generate
|
|
61
|
+
|
|
62
|
+
const storedHash = readFileSync(hashFile, 'utf8').trim();
|
|
63
|
+
return currentHash !== storedHash;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Download artifacts from npm
|
|
67
|
+
async function downloadArtifactsFromNpm() {
|
|
68
|
+
const currentVersion = getCurrentVersion();
|
|
69
|
+
if (!currentVersion) return false;
|
|
70
|
+
|
|
71
|
+
console.log(`Attempting npm download for version ${currentVersion}...`);
|
|
72
|
+
|
|
73
|
+
const tempDir = resolve(packageRoot, '.temp-download');
|
|
74
|
+
|
|
75
|
+
try {
|
|
76
|
+
if (existsSync(tempDir)) execSync(`rm -rf "${tempDir}"`, { stdio: 'pipe' });
|
|
77
|
+
mkdirSync(tempDir, { recursive: true });
|
|
78
|
+
|
|
79
|
+
execSync(`npm pack @towns-protocol/generated@${currentVersion}`, {
|
|
80
|
+
cwd: tempDir, stdio: 'pipe'
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
const files = execSync('ls *.tgz', { cwd: tempDir, encoding: 'utf8' }).trim().split('\n');
|
|
84
|
+
execSync(`tar -xzf "${files[0]}" -C "${tempDir}"`, { stdio: 'pipe' });
|
|
85
|
+
|
|
86
|
+
const extractedDevDir = resolve(tempDir, 'package/dev');
|
|
87
|
+
if (!existsSync(extractedDevDir)) {
|
|
88
|
+
console.log('Downloaded package missing dev/ directory');
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (!existsSync(devDir)) mkdirSync(devDir, { recursive: true });
|
|
93
|
+
execSync(`cp -r "${extractedDevDir}/." "${devDir}/"`, { stdio: 'pipe' });
|
|
94
|
+
|
|
95
|
+
// Validate hash if contracts exist
|
|
96
|
+
const currentHash = getContractsHash();
|
|
97
|
+
if (currentHash && existsSync(hashFile)) {
|
|
98
|
+
const downloadedHash = readFileSync(hashFile, 'utf8').trim();
|
|
99
|
+
if (currentHash !== downloadedHash) {
|
|
100
|
+
console.log('Hash mismatch, falling back to local generation');
|
|
101
|
+
execSync(`rm -rf "${devDir}"`, { stdio: 'pipe' });
|
|
102
|
+
return false;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
console.log('Successfully downloaded artifacts from npm');
|
|
107
|
+
return true;
|
|
108
|
+
} catch (error) {
|
|
109
|
+
return false;
|
|
110
|
+
} finally {
|
|
111
|
+
if (existsSync(tempDir)) execSync(`rm -rf "${tempDir}"`, { stdio: 'pipe' });
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Check if Foundry is installed
|
|
116
|
+
function isFoundryInstalled() {
|
|
117
|
+
try {
|
|
118
|
+
execSync('forge --version', { stdio: 'pipe' });
|
|
119
|
+
return true;
|
|
120
|
+
} catch {
|
|
121
|
+
return false;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// Install Foundry if not present
|
|
126
|
+
function installFoundry() {
|
|
127
|
+
console.log('Installing Foundry...');
|
|
128
|
+
try {
|
|
129
|
+
// Install foundryup
|
|
130
|
+
execSync('curl -L https://foundry.paradigm.xyz | bash', { stdio: 'inherit' });
|
|
131
|
+
|
|
132
|
+
// foundryup modifies shell PATH, but we need to update Node.js process PATH
|
|
133
|
+
// so subsequent execSync calls can find forge
|
|
134
|
+
const foundryPath = `${process.env.HOME}/.foundry/bin`;
|
|
135
|
+
process.env.PATH = `${foundryPath}:${process.env.PATH}`;
|
|
136
|
+
|
|
137
|
+
// Install latest foundry
|
|
138
|
+
execSync('foundryup', { stdio: 'inherit' });
|
|
139
|
+
|
|
140
|
+
console.log('Foundry installation completed');
|
|
141
|
+
return true;
|
|
142
|
+
} catch (error) {
|
|
143
|
+
console.log('Foundry installation failed:', error.message);
|
|
144
|
+
return false;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// Generate contract artifacts
|
|
149
|
+
function generateArtifacts() {
|
|
150
|
+
if (!isFoundryInstalled()) {
|
|
151
|
+
console.log('Foundry not found, attempting installation...');
|
|
152
|
+
if (!installFoundry()) {
|
|
153
|
+
throw new Error('Failed to install Foundry - cannot generate contract artifacts');
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// Look for build script in contracts package (sibling to generated package)
|
|
158
|
+
if (!existsSync(contractsDir)) {
|
|
159
|
+
console.log('Contracts directory not found, cannot generate locally');
|
|
160
|
+
throw new Error('Cannot generate artifacts: contracts package not available and npm download failed');
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
const buildScript = resolve(contractsDir, 'scripts/build-contract-types.sh');
|
|
164
|
+
|
|
165
|
+
if (!existsSync(buildScript)) {
|
|
166
|
+
throw new Error(`Build script not found at ${buildScript}`);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
execSync(`bash ${buildScript}`, {
|
|
170
|
+
cwd: contractsDir,
|
|
171
|
+
stdio: 'inherit'
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// Main logic
|
|
176
|
+
async function main() {
|
|
177
|
+
const skipRequested = process.env.SKIP_CONTRACT_GEN === 'true';
|
|
178
|
+
|
|
179
|
+
if (!generatedFilesExist()) {
|
|
180
|
+
console.log('No artifacts found, trying npm download first...');
|
|
181
|
+
if (!(await downloadArtifactsFromNpm())) {
|
|
182
|
+
console.log('NPM download failed, generating locally...');
|
|
183
|
+
generateArtifacts();
|
|
184
|
+
}
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
if (skipRequested) {
|
|
189
|
+
console.log('Skipping generation (SKIP_CONTRACT_GEN=true)');
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
if (contractsChanged()) {
|
|
194
|
+
console.log('Contracts changed, regenerating...');
|
|
195
|
+
generateArtifacts();
|
|
196
|
+
} else {
|
|
197
|
+
console.log('Artifacts up to date');
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
202
|
+
main().catch(error => {
|
|
203
|
+
console.error('Preparation failed:', error.message);
|
|
204
|
+
process.exit(1);
|
|
205
|
+
});
|
|
206
|
+
}
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Combined deployments config JSON written to config/deployments.json
|
|
@@ -1,476 +0,0 @@
|
|
|
1
|
-
/* Autogenerated file. Do not edit manually. */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
import type {
|
|
5
|
-
BaseContract,
|
|
6
|
-
BigNumber,
|
|
7
|
-
BigNumberish,
|
|
8
|
-
BytesLike,
|
|
9
|
-
CallOverrides,
|
|
10
|
-
ContractTransaction,
|
|
11
|
-
Overrides,
|
|
12
|
-
PopulatedTransaction,
|
|
13
|
-
Signer,
|
|
14
|
-
utils,
|
|
15
|
-
} from "ethers";
|
|
16
|
-
import type {
|
|
17
|
-
FunctionFragment,
|
|
18
|
-
Result,
|
|
19
|
-
EventFragment,
|
|
20
|
-
} from "@ethersproject/abi";
|
|
21
|
-
import type { Listener, Provider } from "@ethersproject/providers";
|
|
22
|
-
import type {
|
|
23
|
-
TypedEventFilter,
|
|
24
|
-
TypedEvent,
|
|
25
|
-
TypedListener,
|
|
26
|
-
OnEvent,
|
|
27
|
-
PromiseOrValue,
|
|
28
|
-
} from "./common";
|
|
29
|
-
|
|
30
|
-
export declare namespace ISpaceOwnerBase {
|
|
31
|
-
export type SpaceStruct = {
|
|
32
|
-
name: PromiseOrValue<string>;
|
|
33
|
-
uri: PromiseOrValue<string>;
|
|
34
|
-
tokenId: PromiseOrValue<BigNumberish>;
|
|
35
|
-
createdAt: PromiseOrValue<BigNumberish>;
|
|
36
|
-
shortDescription: PromiseOrValue<string>;
|
|
37
|
-
longDescription: PromiseOrValue<string>;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export type SpaceStructOutput = [
|
|
41
|
-
string,
|
|
42
|
-
string,
|
|
43
|
-
BigNumber,
|
|
44
|
-
BigNumber,
|
|
45
|
-
string,
|
|
46
|
-
string
|
|
47
|
-
] & {
|
|
48
|
-
name: string;
|
|
49
|
-
uri: string;
|
|
50
|
-
tokenId: BigNumber;
|
|
51
|
-
createdAt: BigNumber;
|
|
52
|
-
shortDescription: string;
|
|
53
|
-
longDescription: string;
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface ISpaceOwnerInterface extends utils.Interface {
|
|
58
|
-
functions: {
|
|
59
|
-
"getDefaultUri()": FunctionFragment;
|
|
60
|
-
"getFactory()": FunctionFragment;
|
|
61
|
-
"getSpaceByTokenId(uint256)": FunctionFragment;
|
|
62
|
-
"getSpaceInfo(address)": FunctionFragment;
|
|
63
|
-
"mintSpace(string,string,address,string,string)": FunctionFragment;
|
|
64
|
-
"nextTokenId()": FunctionFragment;
|
|
65
|
-
"setDefaultUri(string)": FunctionFragment;
|
|
66
|
-
"setFactory(address)": FunctionFragment;
|
|
67
|
-
"updateSpaceInfo(address,string,string,string,string)": FunctionFragment;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
getFunction(
|
|
71
|
-
nameOrSignatureOrTopic:
|
|
72
|
-
| "getDefaultUri"
|
|
73
|
-
| "getFactory"
|
|
74
|
-
| "getSpaceByTokenId"
|
|
75
|
-
| "getSpaceInfo"
|
|
76
|
-
| "mintSpace"
|
|
77
|
-
| "nextTokenId"
|
|
78
|
-
| "setDefaultUri"
|
|
79
|
-
| "setFactory"
|
|
80
|
-
| "updateSpaceInfo"
|
|
81
|
-
): FunctionFragment;
|
|
82
|
-
|
|
83
|
-
encodeFunctionData(
|
|
84
|
-
functionFragment: "getDefaultUri",
|
|
85
|
-
values?: undefined
|
|
86
|
-
): string;
|
|
87
|
-
encodeFunctionData(
|
|
88
|
-
functionFragment: "getFactory",
|
|
89
|
-
values?: undefined
|
|
90
|
-
): string;
|
|
91
|
-
encodeFunctionData(
|
|
92
|
-
functionFragment: "getSpaceByTokenId",
|
|
93
|
-
values: [PromiseOrValue<BigNumberish>]
|
|
94
|
-
): string;
|
|
95
|
-
encodeFunctionData(
|
|
96
|
-
functionFragment: "getSpaceInfo",
|
|
97
|
-
values: [PromiseOrValue<string>]
|
|
98
|
-
): string;
|
|
99
|
-
encodeFunctionData(
|
|
100
|
-
functionFragment: "mintSpace",
|
|
101
|
-
values: [
|
|
102
|
-
PromiseOrValue<string>,
|
|
103
|
-
PromiseOrValue<string>,
|
|
104
|
-
PromiseOrValue<string>,
|
|
105
|
-
PromiseOrValue<string>,
|
|
106
|
-
PromiseOrValue<string>
|
|
107
|
-
]
|
|
108
|
-
): string;
|
|
109
|
-
encodeFunctionData(
|
|
110
|
-
functionFragment: "nextTokenId",
|
|
111
|
-
values?: undefined
|
|
112
|
-
): string;
|
|
113
|
-
encodeFunctionData(
|
|
114
|
-
functionFragment: "setDefaultUri",
|
|
115
|
-
values: [PromiseOrValue<string>]
|
|
116
|
-
): string;
|
|
117
|
-
encodeFunctionData(
|
|
118
|
-
functionFragment: "setFactory",
|
|
119
|
-
values: [PromiseOrValue<string>]
|
|
120
|
-
): string;
|
|
121
|
-
encodeFunctionData(
|
|
122
|
-
functionFragment: "updateSpaceInfo",
|
|
123
|
-
values: [
|
|
124
|
-
PromiseOrValue<string>,
|
|
125
|
-
PromiseOrValue<string>,
|
|
126
|
-
PromiseOrValue<string>,
|
|
127
|
-
PromiseOrValue<string>,
|
|
128
|
-
PromiseOrValue<string>
|
|
129
|
-
]
|
|
130
|
-
): string;
|
|
131
|
-
|
|
132
|
-
decodeFunctionResult(
|
|
133
|
-
functionFragment: "getDefaultUri",
|
|
134
|
-
data: BytesLike
|
|
135
|
-
): Result;
|
|
136
|
-
decodeFunctionResult(functionFragment: "getFactory", data: BytesLike): Result;
|
|
137
|
-
decodeFunctionResult(
|
|
138
|
-
functionFragment: "getSpaceByTokenId",
|
|
139
|
-
data: BytesLike
|
|
140
|
-
): Result;
|
|
141
|
-
decodeFunctionResult(
|
|
142
|
-
functionFragment: "getSpaceInfo",
|
|
143
|
-
data: BytesLike
|
|
144
|
-
): Result;
|
|
145
|
-
decodeFunctionResult(functionFragment: "mintSpace", data: BytesLike): Result;
|
|
146
|
-
decodeFunctionResult(
|
|
147
|
-
functionFragment: "nextTokenId",
|
|
148
|
-
data: BytesLike
|
|
149
|
-
): Result;
|
|
150
|
-
decodeFunctionResult(
|
|
151
|
-
functionFragment: "setDefaultUri",
|
|
152
|
-
data: BytesLike
|
|
153
|
-
): Result;
|
|
154
|
-
decodeFunctionResult(functionFragment: "setFactory", data: BytesLike): Result;
|
|
155
|
-
decodeFunctionResult(
|
|
156
|
-
functionFragment: "updateSpaceInfo",
|
|
157
|
-
data: BytesLike
|
|
158
|
-
): Result;
|
|
159
|
-
|
|
160
|
-
events: {
|
|
161
|
-
"SpaceOwner__SetDefaultUri(string)": EventFragment;
|
|
162
|
-
"SpaceOwner__SetFactory(address)": EventFragment;
|
|
163
|
-
"SpaceOwner__UpdateSpace(address)": EventFragment;
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
getEvent(nameOrSignatureOrTopic: "SpaceOwner__SetDefaultUri"): EventFragment;
|
|
167
|
-
getEvent(nameOrSignatureOrTopic: "SpaceOwner__SetFactory"): EventFragment;
|
|
168
|
-
getEvent(nameOrSignatureOrTopic: "SpaceOwner__UpdateSpace"): EventFragment;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
export interface SpaceOwner__SetDefaultUriEventObject {
|
|
172
|
-
uri: string;
|
|
173
|
-
}
|
|
174
|
-
export type SpaceOwner__SetDefaultUriEvent = TypedEvent<
|
|
175
|
-
[string],
|
|
176
|
-
SpaceOwner__SetDefaultUriEventObject
|
|
177
|
-
>;
|
|
178
|
-
|
|
179
|
-
export type SpaceOwner__SetDefaultUriEventFilter =
|
|
180
|
-
TypedEventFilter<SpaceOwner__SetDefaultUriEvent>;
|
|
181
|
-
|
|
182
|
-
export interface SpaceOwner__SetFactoryEventObject {
|
|
183
|
-
factory: string;
|
|
184
|
-
}
|
|
185
|
-
export type SpaceOwner__SetFactoryEvent = TypedEvent<
|
|
186
|
-
[string],
|
|
187
|
-
SpaceOwner__SetFactoryEventObject
|
|
188
|
-
>;
|
|
189
|
-
|
|
190
|
-
export type SpaceOwner__SetFactoryEventFilter =
|
|
191
|
-
TypedEventFilter<SpaceOwner__SetFactoryEvent>;
|
|
192
|
-
|
|
193
|
-
export interface SpaceOwner__UpdateSpaceEventObject {
|
|
194
|
-
space: string;
|
|
195
|
-
}
|
|
196
|
-
export type SpaceOwner__UpdateSpaceEvent = TypedEvent<
|
|
197
|
-
[string],
|
|
198
|
-
SpaceOwner__UpdateSpaceEventObject
|
|
199
|
-
>;
|
|
200
|
-
|
|
201
|
-
export type SpaceOwner__UpdateSpaceEventFilter =
|
|
202
|
-
TypedEventFilter<SpaceOwner__UpdateSpaceEvent>;
|
|
203
|
-
|
|
204
|
-
export interface ISpaceOwner extends BaseContract {
|
|
205
|
-
connect(signerOrProvider: Signer | Provider | string): this;
|
|
206
|
-
attach(addressOrName: string): this;
|
|
207
|
-
deployed(): Promise<this>;
|
|
208
|
-
|
|
209
|
-
interface: ISpaceOwnerInterface;
|
|
210
|
-
|
|
211
|
-
queryFilter<TEvent extends TypedEvent>(
|
|
212
|
-
event: TypedEventFilter<TEvent>,
|
|
213
|
-
fromBlockOrBlockhash?: string | number | undefined,
|
|
214
|
-
toBlock?: string | number | undefined
|
|
215
|
-
): Promise<Array<TEvent>>;
|
|
216
|
-
|
|
217
|
-
listeners<TEvent extends TypedEvent>(
|
|
218
|
-
eventFilter?: TypedEventFilter<TEvent>
|
|
219
|
-
): Array<TypedListener<TEvent>>;
|
|
220
|
-
listeners(eventName?: string): Array<Listener>;
|
|
221
|
-
removeAllListeners<TEvent extends TypedEvent>(
|
|
222
|
-
eventFilter: TypedEventFilter<TEvent>
|
|
223
|
-
): this;
|
|
224
|
-
removeAllListeners(eventName?: string): this;
|
|
225
|
-
off: OnEvent<this>;
|
|
226
|
-
on: OnEvent<this>;
|
|
227
|
-
once: OnEvent<this>;
|
|
228
|
-
removeListener: OnEvent<this>;
|
|
229
|
-
|
|
230
|
-
functions: {
|
|
231
|
-
getDefaultUri(overrides?: CallOverrides): Promise<[string]>;
|
|
232
|
-
|
|
233
|
-
getFactory(overrides?: CallOverrides): Promise<[string]>;
|
|
234
|
-
|
|
235
|
-
getSpaceByTokenId(
|
|
236
|
-
tokenId: PromiseOrValue<BigNumberish>,
|
|
237
|
-
overrides?: CallOverrides
|
|
238
|
-
): Promise<[string]>;
|
|
239
|
-
|
|
240
|
-
getSpaceInfo(
|
|
241
|
-
space: PromiseOrValue<string>,
|
|
242
|
-
overrides?: CallOverrides
|
|
243
|
-
): Promise<[ISpaceOwnerBase.SpaceStructOutput]>;
|
|
244
|
-
|
|
245
|
-
mintSpace(
|
|
246
|
-
name: PromiseOrValue<string>,
|
|
247
|
-
uri: PromiseOrValue<string>,
|
|
248
|
-
space: PromiseOrValue<string>,
|
|
249
|
-
shortDescription: PromiseOrValue<string>,
|
|
250
|
-
longDescription: PromiseOrValue<string>,
|
|
251
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
252
|
-
): Promise<ContractTransaction>;
|
|
253
|
-
|
|
254
|
-
nextTokenId(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
255
|
-
|
|
256
|
-
setDefaultUri(
|
|
257
|
-
uri: PromiseOrValue<string>,
|
|
258
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
259
|
-
): Promise<ContractTransaction>;
|
|
260
|
-
|
|
261
|
-
setFactory(
|
|
262
|
-
factory: PromiseOrValue<string>,
|
|
263
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
264
|
-
): Promise<ContractTransaction>;
|
|
265
|
-
|
|
266
|
-
updateSpaceInfo(
|
|
267
|
-
space: PromiseOrValue<string>,
|
|
268
|
-
name: PromiseOrValue<string>,
|
|
269
|
-
uri: PromiseOrValue<string>,
|
|
270
|
-
shortDescription: PromiseOrValue<string>,
|
|
271
|
-
longDescription: PromiseOrValue<string>,
|
|
272
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
273
|
-
): Promise<ContractTransaction>;
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
getDefaultUri(overrides?: CallOverrides): Promise<string>;
|
|
277
|
-
|
|
278
|
-
getFactory(overrides?: CallOverrides): Promise<string>;
|
|
279
|
-
|
|
280
|
-
getSpaceByTokenId(
|
|
281
|
-
tokenId: PromiseOrValue<BigNumberish>,
|
|
282
|
-
overrides?: CallOverrides
|
|
283
|
-
): Promise<string>;
|
|
284
|
-
|
|
285
|
-
getSpaceInfo(
|
|
286
|
-
space: PromiseOrValue<string>,
|
|
287
|
-
overrides?: CallOverrides
|
|
288
|
-
): Promise<ISpaceOwnerBase.SpaceStructOutput>;
|
|
289
|
-
|
|
290
|
-
mintSpace(
|
|
291
|
-
name: PromiseOrValue<string>,
|
|
292
|
-
uri: PromiseOrValue<string>,
|
|
293
|
-
space: PromiseOrValue<string>,
|
|
294
|
-
shortDescription: PromiseOrValue<string>,
|
|
295
|
-
longDescription: PromiseOrValue<string>,
|
|
296
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
297
|
-
): Promise<ContractTransaction>;
|
|
298
|
-
|
|
299
|
-
nextTokenId(overrides?: CallOverrides): Promise<BigNumber>;
|
|
300
|
-
|
|
301
|
-
setDefaultUri(
|
|
302
|
-
uri: PromiseOrValue<string>,
|
|
303
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
304
|
-
): Promise<ContractTransaction>;
|
|
305
|
-
|
|
306
|
-
setFactory(
|
|
307
|
-
factory: PromiseOrValue<string>,
|
|
308
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
309
|
-
): Promise<ContractTransaction>;
|
|
310
|
-
|
|
311
|
-
updateSpaceInfo(
|
|
312
|
-
space: PromiseOrValue<string>,
|
|
313
|
-
name: PromiseOrValue<string>,
|
|
314
|
-
uri: PromiseOrValue<string>,
|
|
315
|
-
shortDescription: PromiseOrValue<string>,
|
|
316
|
-
longDescription: PromiseOrValue<string>,
|
|
317
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
318
|
-
): Promise<ContractTransaction>;
|
|
319
|
-
|
|
320
|
-
callStatic: {
|
|
321
|
-
getDefaultUri(overrides?: CallOverrides): Promise<string>;
|
|
322
|
-
|
|
323
|
-
getFactory(overrides?: CallOverrides): Promise<string>;
|
|
324
|
-
|
|
325
|
-
getSpaceByTokenId(
|
|
326
|
-
tokenId: PromiseOrValue<BigNumberish>,
|
|
327
|
-
overrides?: CallOverrides
|
|
328
|
-
): Promise<string>;
|
|
329
|
-
|
|
330
|
-
getSpaceInfo(
|
|
331
|
-
space: PromiseOrValue<string>,
|
|
332
|
-
overrides?: CallOverrides
|
|
333
|
-
): Promise<ISpaceOwnerBase.SpaceStructOutput>;
|
|
334
|
-
|
|
335
|
-
mintSpace(
|
|
336
|
-
name: PromiseOrValue<string>,
|
|
337
|
-
uri: PromiseOrValue<string>,
|
|
338
|
-
space: PromiseOrValue<string>,
|
|
339
|
-
shortDescription: PromiseOrValue<string>,
|
|
340
|
-
longDescription: PromiseOrValue<string>,
|
|
341
|
-
overrides?: CallOverrides
|
|
342
|
-
): Promise<BigNumber>;
|
|
343
|
-
|
|
344
|
-
nextTokenId(overrides?: CallOverrides): Promise<BigNumber>;
|
|
345
|
-
|
|
346
|
-
setDefaultUri(
|
|
347
|
-
uri: PromiseOrValue<string>,
|
|
348
|
-
overrides?: CallOverrides
|
|
349
|
-
): Promise<void>;
|
|
350
|
-
|
|
351
|
-
setFactory(
|
|
352
|
-
factory: PromiseOrValue<string>,
|
|
353
|
-
overrides?: CallOverrides
|
|
354
|
-
): Promise<void>;
|
|
355
|
-
|
|
356
|
-
updateSpaceInfo(
|
|
357
|
-
space: PromiseOrValue<string>,
|
|
358
|
-
name: PromiseOrValue<string>,
|
|
359
|
-
uri: PromiseOrValue<string>,
|
|
360
|
-
shortDescription: PromiseOrValue<string>,
|
|
361
|
-
longDescription: PromiseOrValue<string>,
|
|
362
|
-
overrides?: CallOverrides
|
|
363
|
-
): Promise<void>;
|
|
364
|
-
};
|
|
365
|
-
|
|
366
|
-
filters: {
|
|
367
|
-
"SpaceOwner__SetDefaultUri(string)"(
|
|
368
|
-
uri?: null
|
|
369
|
-
): SpaceOwner__SetDefaultUriEventFilter;
|
|
370
|
-
SpaceOwner__SetDefaultUri(uri?: null): SpaceOwner__SetDefaultUriEventFilter;
|
|
371
|
-
|
|
372
|
-
"SpaceOwner__SetFactory(address)"(
|
|
373
|
-
factory?: null
|
|
374
|
-
): SpaceOwner__SetFactoryEventFilter;
|
|
375
|
-
SpaceOwner__SetFactory(factory?: null): SpaceOwner__SetFactoryEventFilter;
|
|
376
|
-
|
|
377
|
-
"SpaceOwner__UpdateSpace(address)"(
|
|
378
|
-
space?: PromiseOrValue<string> | null
|
|
379
|
-
): SpaceOwner__UpdateSpaceEventFilter;
|
|
380
|
-
SpaceOwner__UpdateSpace(
|
|
381
|
-
space?: PromiseOrValue<string> | null
|
|
382
|
-
): SpaceOwner__UpdateSpaceEventFilter;
|
|
383
|
-
};
|
|
384
|
-
|
|
385
|
-
estimateGas: {
|
|
386
|
-
getDefaultUri(overrides?: CallOverrides): Promise<BigNumber>;
|
|
387
|
-
|
|
388
|
-
getFactory(overrides?: CallOverrides): Promise<BigNumber>;
|
|
389
|
-
|
|
390
|
-
getSpaceByTokenId(
|
|
391
|
-
tokenId: PromiseOrValue<BigNumberish>,
|
|
392
|
-
overrides?: CallOverrides
|
|
393
|
-
): Promise<BigNumber>;
|
|
394
|
-
|
|
395
|
-
getSpaceInfo(
|
|
396
|
-
space: PromiseOrValue<string>,
|
|
397
|
-
overrides?: CallOverrides
|
|
398
|
-
): Promise<BigNumber>;
|
|
399
|
-
|
|
400
|
-
mintSpace(
|
|
401
|
-
name: PromiseOrValue<string>,
|
|
402
|
-
uri: PromiseOrValue<string>,
|
|
403
|
-
space: PromiseOrValue<string>,
|
|
404
|
-
shortDescription: PromiseOrValue<string>,
|
|
405
|
-
longDescription: PromiseOrValue<string>,
|
|
406
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
407
|
-
): Promise<BigNumber>;
|
|
408
|
-
|
|
409
|
-
nextTokenId(overrides?: CallOverrides): Promise<BigNumber>;
|
|
410
|
-
|
|
411
|
-
setDefaultUri(
|
|
412
|
-
uri: PromiseOrValue<string>,
|
|
413
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
414
|
-
): Promise<BigNumber>;
|
|
415
|
-
|
|
416
|
-
setFactory(
|
|
417
|
-
factory: PromiseOrValue<string>,
|
|
418
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
419
|
-
): Promise<BigNumber>;
|
|
420
|
-
|
|
421
|
-
updateSpaceInfo(
|
|
422
|
-
space: PromiseOrValue<string>,
|
|
423
|
-
name: PromiseOrValue<string>,
|
|
424
|
-
uri: PromiseOrValue<string>,
|
|
425
|
-
shortDescription: PromiseOrValue<string>,
|
|
426
|
-
longDescription: PromiseOrValue<string>,
|
|
427
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
428
|
-
): Promise<BigNumber>;
|
|
429
|
-
};
|
|
430
|
-
|
|
431
|
-
populateTransaction: {
|
|
432
|
-
getDefaultUri(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
433
|
-
|
|
434
|
-
getFactory(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
435
|
-
|
|
436
|
-
getSpaceByTokenId(
|
|
437
|
-
tokenId: PromiseOrValue<BigNumberish>,
|
|
438
|
-
overrides?: CallOverrides
|
|
439
|
-
): Promise<PopulatedTransaction>;
|
|
440
|
-
|
|
441
|
-
getSpaceInfo(
|
|
442
|
-
space: PromiseOrValue<string>,
|
|
443
|
-
overrides?: CallOverrides
|
|
444
|
-
): Promise<PopulatedTransaction>;
|
|
445
|
-
|
|
446
|
-
mintSpace(
|
|
447
|
-
name: PromiseOrValue<string>,
|
|
448
|
-
uri: PromiseOrValue<string>,
|
|
449
|
-
space: PromiseOrValue<string>,
|
|
450
|
-
shortDescription: PromiseOrValue<string>,
|
|
451
|
-
longDescription: PromiseOrValue<string>,
|
|
452
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
453
|
-
): Promise<PopulatedTransaction>;
|
|
454
|
-
|
|
455
|
-
nextTokenId(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
456
|
-
|
|
457
|
-
setDefaultUri(
|
|
458
|
-
uri: PromiseOrValue<string>,
|
|
459
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
460
|
-
): Promise<PopulatedTransaction>;
|
|
461
|
-
|
|
462
|
-
setFactory(
|
|
463
|
-
factory: PromiseOrValue<string>,
|
|
464
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
465
|
-
): Promise<PopulatedTransaction>;
|
|
466
|
-
|
|
467
|
-
updateSpaceInfo(
|
|
468
|
-
space: PromiseOrValue<string>,
|
|
469
|
-
name: PromiseOrValue<string>,
|
|
470
|
-
uri: PromiseOrValue<string>,
|
|
471
|
-
shortDescription: PromiseOrValue<string>,
|
|
472
|
-
longDescription: PromiseOrValue<string>,
|
|
473
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
474
|
-
): Promise<PopulatedTransaction>;
|
|
475
|
-
};
|
|
476
|
-
}
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
/* Autogenerated file. Do not edit manually. */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
|
|
5
|
-
import { Contract, Signer, utils } from "ethers";
|
|
6
|
-
import type { Provider } from "@ethersproject/providers";
|
|
7
|
-
import type { ISpaceOwner, ISpaceOwnerInterface } from "../ISpaceOwner";
|
|
8
|
-
|
|
9
|
-
const _abi = [
|
|
10
|
-
{
|
|
11
|
-
type: "function",
|
|
12
|
-
name: "getDefaultUri",
|
|
13
|
-
inputs: [],
|
|
14
|
-
outputs: [
|
|
15
|
-
{
|
|
16
|
-
name: "",
|
|
17
|
-
type: "string",
|
|
18
|
-
internalType: "string",
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
stateMutability: "view",
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
type: "function",
|
|
25
|
-
name: "getFactory",
|
|
26
|
-
inputs: [],
|
|
27
|
-
outputs: [
|
|
28
|
-
{
|
|
29
|
-
name: "",
|
|
30
|
-
type: "address",
|
|
31
|
-
internalType: "address",
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
stateMutability: "view",
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
type: "function",
|
|
38
|
-
name: "getSpaceByTokenId",
|
|
39
|
-
inputs: [
|
|
40
|
-
{
|
|
41
|
-
name: "tokenId",
|
|
42
|
-
type: "uint256",
|
|
43
|
-
internalType: "uint256",
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
outputs: [
|
|
47
|
-
{
|
|
48
|
-
name: "",
|
|
49
|
-
type: "address",
|
|
50
|
-
internalType: "address",
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
stateMutability: "view",
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
type: "function",
|
|
57
|
-
name: "getSpaceInfo",
|
|
58
|
-
inputs: [
|
|
59
|
-
{
|
|
60
|
-
name: "space",
|
|
61
|
-
type: "address",
|
|
62
|
-
internalType: "address",
|
|
63
|
-
},
|
|
64
|
-
],
|
|
65
|
-
outputs: [
|
|
66
|
-
{
|
|
67
|
-
name: "",
|
|
68
|
-
type: "tuple",
|
|
69
|
-
internalType: "struct ISpaceOwnerBase.Space",
|
|
70
|
-
components: [
|
|
71
|
-
{
|
|
72
|
-
name: "name",
|
|
73
|
-
type: "string",
|
|
74
|
-
internalType: "string",
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
name: "uri",
|
|
78
|
-
type: "string",
|
|
79
|
-
internalType: "string",
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
name: "tokenId",
|
|
83
|
-
type: "uint256",
|
|
84
|
-
internalType: "uint256",
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
name: "createdAt",
|
|
88
|
-
type: "uint256",
|
|
89
|
-
internalType: "uint256",
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
name: "shortDescription",
|
|
93
|
-
type: "string",
|
|
94
|
-
internalType: "string",
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
name: "longDescription",
|
|
98
|
-
type: "string",
|
|
99
|
-
internalType: "string",
|
|
100
|
-
},
|
|
101
|
-
],
|
|
102
|
-
},
|
|
103
|
-
],
|
|
104
|
-
stateMutability: "view",
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
type: "function",
|
|
108
|
-
name: "mintSpace",
|
|
109
|
-
inputs: [
|
|
110
|
-
{
|
|
111
|
-
name: "name",
|
|
112
|
-
type: "string",
|
|
113
|
-
internalType: "string",
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
name: "uri",
|
|
117
|
-
type: "string",
|
|
118
|
-
internalType: "string",
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
name: "space",
|
|
122
|
-
type: "address",
|
|
123
|
-
internalType: "address",
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
name: "shortDescription",
|
|
127
|
-
type: "string",
|
|
128
|
-
internalType: "string",
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
name: "longDescription",
|
|
132
|
-
type: "string",
|
|
133
|
-
internalType: "string",
|
|
134
|
-
},
|
|
135
|
-
],
|
|
136
|
-
outputs: [
|
|
137
|
-
{
|
|
138
|
-
name: "tokenId",
|
|
139
|
-
type: "uint256",
|
|
140
|
-
internalType: "uint256",
|
|
141
|
-
},
|
|
142
|
-
],
|
|
143
|
-
stateMutability: "nonpayable",
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
type: "function",
|
|
147
|
-
name: "nextTokenId",
|
|
148
|
-
inputs: [],
|
|
149
|
-
outputs: [
|
|
150
|
-
{
|
|
151
|
-
name: "",
|
|
152
|
-
type: "uint256",
|
|
153
|
-
internalType: "uint256",
|
|
154
|
-
},
|
|
155
|
-
],
|
|
156
|
-
stateMutability: "view",
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
type: "function",
|
|
160
|
-
name: "setDefaultUri",
|
|
161
|
-
inputs: [
|
|
162
|
-
{
|
|
163
|
-
name: "uri",
|
|
164
|
-
type: "string",
|
|
165
|
-
internalType: "string",
|
|
166
|
-
},
|
|
167
|
-
],
|
|
168
|
-
outputs: [],
|
|
169
|
-
stateMutability: "nonpayable",
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
type: "function",
|
|
173
|
-
name: "setFactory",
|
|
174
|
-
inputs: [
|
|
175
|
-
{
|
|
176
|
-
name: "factory",
|
|
177
|
-
type: "address",
|
|
178
|
-
internalType: "address",
|
|
179
|
-
},
|
|
180
|
-
],
|
|
181
|
-
outputs: [],
|
|
182
|
-
stateMutability: "nonpayable",
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
type: "function",
|
|
186
|
-
name: "updateSpaceInfo",
|
|
187
|
-
inputs: [
|
|
188
|
-
{
|
|
189
|
-
name: "space",
|
|
190
|
-
type: "address",
|
|
191
|
-
internalType: "address",
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
name: "name",
|
|
195
|
-
type: "string",
|
|
196
|
-
internalType: "string",
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
name: "uri",
|
|
200
|
-
type: "string",
|
|
201
|
-
internalType: "string",
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
name: "shortDescription",
|
|
205
|
-
type: "string",
|
|
206
|
-
internalType: "string",
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
name: "longDescription",
|
|
210
|
-
type: "string",
|
|
211
|
-
internalType: "string",
|
|
212
|
-
},
|
|
213
|
-
],
|
|
214
|
-
outputs: [],
|
|
215
|
-
stateMutability: "nonpayable",
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
type: "event",
|
|
219
|
-
name: "SpaceOwner__SetDefaultUri",
|
|
220
|
-
inputs: [
|
|
221
|
-
{
|
|
222
|
-
name: "uri",
|
|
223
|
-
type: "string",
|
|
224
|
-
indexed: false,
|
|
225
|
-
internalType: "string",
|
|
226
|
-
},
|
|
227
|
-
],
|
|
228
|
-
anonymous: false,
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
type: "event",
|
|
232
|
-
name: "SpaceOwner__SetFactory",
|
|
233
|
-
inputs: [
|
|
234
|
-
{
|
|
235
|
-
name: "factory",
|
|
236
|
-
type: "address",
|
|
237
|
-
indexed: false,
|
|
238
|
-
internalType: "address",
|
|
239
|
-
},
|
|
240
|
-
],
|
|
241
|
-
anonymous: false,
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
type: "event",
|
|
245
|
-
name: "SpaceOwner__UpdateSpace",
|
|
246
|
-
inputs: [
|
|
247
|
-
{
|
|
248
|
-
name: "space",
|
|
249
|
-
type: "address",
|
|
250
|
-
indexed: true,
|
|
251
|
-
internalType: "address",
|
|
252
|
-
},
|
|
253
|
-
],
|
|
254
|
-
anonymous: false,
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
type: "error",
|
|
258
|
-
name: "SpaceOwner__DefaultUriNotSet",
|
|
259
|
-
inputs: [],
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
type: "error",
|
|
263
|
-
name: "SpaceOwner__OnlyFactoryAllowed",
|
|
264
|
-
inputs: [],
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
type: "error",
|
|
268
|
-
name: "SpaceOwner__OnlySpaceOwnerAllowed",
|
|
269
|
-
inputs: [],
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
type: "error",
|
|
273
|
-
name: "SpaceOwner__SpaceNotFound",
|
|
274
|
-
inputs: [],
|
|
275
|
-
},
|
|
276
|
-
] as const;
|
|
277
|
-
|
|
278
|
-
export class ISpaceOwner__factory {
|
|
279
|
-
static readonly abi = _abi;
|
|
280
|
-
static createInterface(): ISpaceOwnerInterface {
|
|
281
|
-
return new utils.Interface(_abi) as ISpaceOwnerInterface;
|
|
282
|
-
}
|
|
283
|
-
static connect(
|
|
284
|
-
address: string,
|
|
285
|
-
signerOrProvider: Signer | Provider
|
|
286
|
-
): ISpaceOwner {
|
|
287
|
-
return new Contract(address, _abi, signerOrProvider) as ISpaceOwner;
|
|
288
|
-
}
|
|
289
|
-
}
|