@river-build/web3
Version:
Dapps for our Space and Registry contracts
18 lines • 589 B
JavaScript
import { IERC721AShim } from './IERC721AShim';
import { ISpaceOwnerShim } from './ISpaceOwnerShim';
export class SpaceOwner {
config;
provider;
spaceOwner;
erc721A;
constructor(config, provider) {
this.config = config;
this.provider = provider;
this.spaceOwner = new ISpaceOwnerShim(this.config.addresses.spaceOwner, provider);
this.erc721A = new IERC721AShim(this.config.addresses.spaceOwner, provider);
}
async getNumTotalSpaces() {
return this.erc721A.read.totalSupply();
}
}
//# sourceMappingURL=SpaceOwner.js.map