@tari-project/tari-permissions 0.5.5 → 0.8.0
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/dist/tari_permissions.d.ts +1 -32
- package/dist/tari_permissions.js +0 -17
- package/package.json +1 -1
|
@@ -73,15 +73,6 @@ export declare class NonFungibleAddress {
|
|
|
73
73
|
"@@TAGGED@@": any[];
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
export declare class NonFungibleIndexAddress {
|
|
77
|
-
private resource_address;
|
|
78
|
-
private index;
|
|
79
|
-
constructor(resource_address: ResourceAddress, index: number);
|
|
80
|
-
toJSON(): {
|
|
81
|
-
resource_address: ResourceAddress;
|
|
82
|
-
index: number;
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
76
|
export declare class ComponentAddress {
|
|
86
77
|
private tagged;
|
|
87
78
|
constructor(hash: Hash);
|
|
@@ -96,7 +87,7 @@ export declare class VaultId {
|
|
|
96
87
|
"@@TAGGED@@": any[];
|
|
97
88
|
};
|
|
98
89
|
}
|
|
99
|
-
export type SubstateAddressType = ResourceAddress | ComponentAddress | VaultId | UnclaimedConfidentialOutputAddress | NonFungibleAddress
|
|
90
|
+
export type SubstateAddressType = ResourceAddress | ComponentAddress | VaultId | UnclaimedConfidentialOutputAddress | NonFungibleAddress;
|
|
100
91
|
export declare class SubstateAddress {
|
|
101
92
|
private value;
|
|
102
93
|
constructor(value: SubstateAddressType);
|
|
@@ -105,43 +96,21 @@ export declare class SubstateAddress {
|
|
|
105
96
|
Resource?: undefined;
|
|
106
97
|
Vault?: undefined;
|
|
107
98
|
UnclaimedConfidentialOutput?: undefined;
|
|
108
|
-
NonFungible?: undefined;
|
|
109
|
-
NonFungibleIndex?: undefined;
|
|
110
99
|
} | {
|
|
111
100
|
Resource: ResourceAddress;
|
|
112
101
|
Component?: undefined;
|
|
113
102
|
Vault?: undefined;
|
|
114
103
|
UnclaimedConfidentialOutput?: undefined;
|
|
115
|
-
NonFungible?: undefined;
|
|
116
|
-
NonFungibleIndex?: undefined;
|
|
117
104
|
} | {
|
|
118
105
|
Vault: VaultId;
|
|
119
106
|
Component?: undefined;
|
|
120
107
|
Resource?: undefined;
|
|
121
108
|
UnclaimedConfidentialOutput?: undefined;
|
|
122
|
-
NonFungible?: undefined;
|
|
123
|
-
NonFungibleIndex?: undefined;
|
|
124
109
|
} | {
|
|
125
110
|
UnclaimedConfidentialOutput: UnclaimedConfidentialOutputAddress;
|
|
126
111
|
Component?: undefined;
|
|
127
112
|
Resource?: undefined;
|
|
128
113
|
Vault?: undefined;
|
|
129
|
-
NonFungible?: undefined;
|
|
130
|
-
NonFungibleIndex?: undefined;
|
|
131
|
-
} | {
|
|
132
|
-
NonFungible: NonFungibleAddress;
|
|
133
|
-
Component?: undefined;
|
|
134
|
-
Resource?: undefined;
|
|
135
|
-
Vault?: undefined;
|
|
136
|
-
UnclaimedConfidentialOutput?: undefined;
|
|
137
|
-
NonFungibleIndex?: undefined;
|
|
138
|
-
} | {
|
|
139
|
-
NonFungibleIndex: NonFungibleIndexAddress;
|
|
140
|
-
Component?: undefined;
|
|
141
|
-
Resource?: undefined;
|
|
142
|
-
Vault?: undefined;
|
|
143
|
-
UnclaimedConfidentialOutput?: undefined;
|
|
144
|
-
NonFungible?: undefined;
|
|
145
114
|
};
|
|
146
115
|
}
|
|
147
116
|
export declare class TariPermissionAccountBalance {
|
package/dist/tari_permissions.js
CHANGED
|
@@ -90,17 +90,6 @@ export class NonFungibleAddress {
|
|
|
90
90
|
return this.tagged.toJSON();
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
export class NonFungibleIndexAddress {
|
|
94
|
-
resource_address;
|
|
95
|
-
index;
|
|
96
|
-
constructor(resource_address, index) {
|
|
97
|
-
this.resource_address = resource_address;
|
|
98
|
-
this.index = index;
|
|
99
|
-
}
|
|
100
|
-
toJSON() {
|
|
101
|
-
return { resource_address: this.resource_address, index: this.index };
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
93
|
export class ComponentAddress {
|
|
105
94
|
tagged;
|
|
106
95
|
constructor(hash) {
|
|
@@ -137,12 +126,6 @@ export class SubstateAddress {
|
|
|
137
126
|
else if (this.value instanceof UnclaimedConfidentialOutputAddress) {
|
|
138
127
|
return { UnclaimedConfidentialOutput: this.value };
|
|
139
128
|
}
|
|
140
|
-
else if (this.value instanceof NonFungibleAddress) {
|
|
141
|
-
return { NonFungible: this.value };
|
|
142
|
-
}
|
|
143
|
-
else if (this.value instanceof NonFungibleIndexAddress) {
|
|
144
|
-
return { NonFungibleIndex: this.value };
|
|
145
|
-
}
|
|
146
129
|
throw "Unknown type";
|
|
147
130
|
}
|
|
148
131
|
}
|